Class CfnApi.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnApi.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi>
- Enclosing class:
CfnApi
@Stability(Stable)
public static final class CfnApi.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi>
A fluent builder for
CfnApi
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnApi.Builder
eventConfig
(IResolvable eventConfig) Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.eventConfig
(CfnApi.EventConfigProperty eventConfig) Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.The name of theApi
.ownerContact
(String ownerContact) The owner contact information for an API resource.A set of tags (key-value pairs) for this API.
-
Method Details
-
create
@Stability(Stable) public static CfnApi.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnApi.Builder
.
-
name
The name of theApi
.- Parameters:
name
- The name of theApi
. This parameter is required.- Returns:
this
- See Also:
-
eventConfig
Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.- Parameters:
eventConfig
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API. This parameter is required.- Returns:
this
- See Also:
-
eventConfig
Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.- Parameters:
eventConfig
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API. This parameter is required.- Returns:
this
- See Also:
-
ownerContact
The owner contact information for an API resource.This field accepts any string input with a length of 0 - 256 characters.
- Parameters:
ownerContact
- The owner contact information for an API resource. This parameter is required.- Returns:
this
- See Also:
-
tags
A set of tags (key-value pairs) for this API.- Parameters:
tags
- A set of tags (key-value pairs) for this API. This parameter is required.- Returns:
this
- See Also:
-
build
-