CfnChannelNamespaceProps
- class aws_cdk.aws_appsync.CfnChannelNamespaceProps(*, api_id, name, code_handlers=None, code_s3_location=None, publish_auth_modes=None, subscribe_auth_modes=None, tags=None)
Bases:
object
Properties for defining a
CfnChannelNamespace
.- Parameters:
api_id (
str
) – TheApi
ID.name (
str
) – The name of the channel namespace. This name must be unique within theApi
.code_handlers (
Optional
[str
]) – The event handler functions that run custom business logic to process published events and subscribe requests.code_s3_location (
Optional
[str
]) – The Amazon S3 endpoint where the code is located.publish_auth_modes (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,AuthModeProperty
,Dict
[str
,Any
]]],None
]) – The authorization mode to use for publishing messages on the channel namespace. This configuration overrides the defaultApi
authorization configuration.subscribe_auth_modes (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,AuthModeProperty
,Dict
[str
,Any
]]],None
]) – The authorization mode to use for subscribing to messages on the channel namespace. This configuration overrides the defaultApi
authorization configuration.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – A set of tags (key-value pairs) for this channel namespace.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_appsync as appsync cfn_channel_namespace_props = appsync.CfnChannelNamespaceProps( api_id="apiId", name="name", # the properties below are optional code_handlers="codeHandlers", code_s3_location="codeS3Location", publish_auth_modes=[appsync.CfnChannelNamespace.AuthModeProperty( auth_type="authType" )], subscribe_auth_modes=[appsync.CfnChannelNamespace.AuthModeProperty( auth_type="authType" )], tags=[CfnTag( key="key", value="value" )] )
Attributes
- api_id
The
Api
ID.
- code_handlers
The event handler functions that run custom business logic to process published events and subscribe requests.
- code_s3_location
The Amazon S3 endpoint where the code is located.
- name
The name of the channel namespace.
This name must be unique within the
Api
.
- publish_auth_modes
The authorization mode to use for publishing messages on the channel namespace.
This configuration overrides the default
Api
authorization configuration.
- subscribe_auth_modes
The authorization mode to use for subscribing to messages on the channel namespace.
This configuration overrides the default
Api
authorization configuration.
- tags
A set of tags (key-value pairs) for this channel namespace.