Class CfnChannelNamespace.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnChannelNamespace.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelNamespace>
- Enclosing class:
CfnChannelNamespace
@Stability(Stable)
public static final class CfnChannelNamespace.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelNamespace>
A fluent builder for
CfnChannelNamespace
.-
Method Summary
Modifier and TypeMethodDescriptionTheApi
ID.build()
codeHandlers
(String codeHandlers) The event handler functions that run custom business logic to process published events and subscribe requests.codeS3Location
(String codeS3Location) The Amazon S3 endpoint where the code is located.static CfnChannelNamespace.Builder
The name of the channel namespace.publishAuthModes
(List<? extends Object> publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.publishAuthModes
(IResolvable publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.subscribeAuthModes
(List<? extends Object> subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.subscribeAuthModes
(IResolvable subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.A set of tags (key-value pairs) for this channel namespace.
-
Method Details
-
create
@Stability(Stable) public static CfnChannelNamespace.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
CfnChannelNamespace.Builder
.
-
apiId
TheApi
ID.- Parameters:
apiId
- TheApi
ID. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the channel namespace.This name must be unique within the
Api
.- Parameters:
name
- The name of the channel namespace. This parameter is required.- Returns:
this
- See Also:
-
codeHandlers
The event handler functions that run custom business logic to process published events and subscribe requests.- Parameters:
codeHandlers
- The event handler functions that run custom business logic to process published events and subscribe requests. This parameter is required.- Returns:
this
- See Also:
-
codeS3Location
The Amazon S3 endpoint where the code is located.- Parameters:
codeS3Location
- The Amazon S3 endpoint where the code is located. This parameter is required.- Returns:
this
- See Also:
-
publishAuthModes
@Stability(Stable) public CfnChannelNamespace.Builder publishAuthModes(IResolvable publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.This configuration overrides the default
Api
authorization configuration.- Parameters:
publishAuthModes
- The authorization mode to use for publishing messages on the channel namespace. This parameter is required.- Returns:
this
- See Also:
-
publishAuthModes
@Stability(Stable) public CfnChannelNamespace.Builder publishAuthModes(List<? extends Object> publishAuthModes) The authorization mode to use for publishing messages on the channel namespace.This configuration overrides the default
Api
authorization configuration.- Parameters:
publishAuthModes
- The authorization mode to use for publishing messages on the channel namespace. This parameter is required.- Returns:
this
- See Also:
-
subscribeAuthModes
@Stability(Stable) public CfnChannelNamespace.Builder subscribeAuthModes(IResolvable subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.This configuration overrides the default
Api
authorization configuration.- Parameters:
subscribeAuthModes
- The authorization mode to use for subscribing to messages on the channel namespace. This parameter is required.- Returns:
this
- See Also:
-
subscribeAuthModes
@Stability(Stable) public CfnChannelNamespace.Builder subscribeAuthModes(List<? extends Object> subscribeAuthModes) The authorization mode to use for subscribing to messages on the channel namespace.This configuration overrides the default
Api
authorization configuration.- Parameters:
subscribeAuthModes
- The authorization mode to use for subscribing to messages on the channel namespace. This parameter is required.- Returns:
this
- See Also:
-
tags
A set of tags (key-value pairs) for this channel namespace.- Parameters:
tags
- A set of tags (key-value pairs) for this channel namespace. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannelNamespace>
- Returns:
- a newly built instance of
CfnChannelNamespace
.
-