Class ChannelNamespace
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appsync.ChannelNamespace
- All Implemented Interfaces:
IResource,IChannelNamespace,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:32.656Z")
@Stability(Stable)
public class ChannelNamespace
extends Resource
implements IChannelNamespace
A Channel Namespace.
Example:
EventApi api;
ChannelNamespace.Builder.create(this, "Namespace")
.api(api)
.authorizationConfig(NamespaceAuthConfig.builder()
// Override publishing authorization to API Key
.publishAuthModeTypes(List.of(AppSyncAuthorizationType.API_KEY))
// Override subscribing authorization to Lambda
.subscribeAuthModeTypes(List.of(AppSyncAuthorizationType.LAMBDA))
.build())
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IChannelNamespace
IChannelNamespace.Jsii$Default, IChannelNamespace.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChannelNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedChannelNamespace(software.amazon.jsii.JsiiObjectRef objRef) ChannelNamespace(software.constructs.Construct scope, String id, ChannelNamespaceProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IChannelNamespacefromChannelNamespaceArn(software.constructs.Construct scope, String id, String channelNamespaceArn) Use an existing channel namespace by ARN.the ARN of the channel namespace.grantPublish(IGrantable grantee) Adds an IAM policy statement for EventPublish access to this channel namespace to an IAM principal's policy.grantPublishAndSubscribe(IGrantable grantee) Adds an IAM policy statement for EventPublish and EventSubscribe access to this channel namespace to an IAM principal's policy.grantSubscribe(IGrantable grantee) Adds an IAM policy statement for EventSubscribe access to this channel namespace to an IAM principal's policy.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
ChannelNamespace
protected ChannelNamespace(software.amazon.jsii.JsiiObjectRef objRef) -
ChannelNamespace
protected ChannelNamespace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ChannelNamespace
@Stability(Stable) public ChannelNamespace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ChannelNamespaceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromChannelNamespaceArn
@Stability(Stable) @NotNull public static IChannelNamespace fromChannelNamespaceArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String channelNamespaceArn) Use an existing channel namespace by ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.channelNamespaceArn- This parameter is required.
-
grantPublish
Adds an IAM policy statement for EventPublish access to this channel namespace to an IAM principal's policy.- Parameters:
grantee- The principal. This parameter is required.
-
grantPublishAndSubscribe
Adds an IAM policy statement for EventPublish and EventSubscribe access to this channel namespace to an IAM principal's policy.- Parameters:
grantee- The principal. This parameter is required.
-
grantSubscribe
Adds an IAM policy statement for EventSubscribe access to this channel namespace to an IAM principal's policy.- Parameters:
grantee- The principal. This parameter is required.
-
getChannelNamespaceArn
the ARN of the channel namespace.- Specified by:
getChannelNamespaceArnin interfaceIChannelNamespace
-