Skip to content
v2.277.0

AppSyncEventResource Class ​

A class used to generate resource arns for AppSync Event APIs.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const appSyncEventResource = appsync.AppSyncEventResource.all();
python
# 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

app_sync_event_resource = appsync.AppSyncEventResource.all()
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;

AppSyncEventResource appSyncEventResource = AppSyncEventResource.all();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;

var appSyncEventResource = AppSyncEventResource.All();
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

appSyncEventResource := awscdk.Aws_appsync.AppSyncEventResource_All()

Methods ​

all(): AppSyncEventResource // chainable@staticmethod def all() -> AppSyncEventResourcepublic static AppSyncEventResource all()public static AppSyncEventResource All()func All() AppSyncEventResourcestatic#
Generate the resource names that accepts all types: `*`.
allChannelNamespaces(): AppSyncEventResource // chainable@staticmethod def all_channel_namespaces() -> AppSyncEventResourcepublic static AppSyncEventResource allChannelNamespaces()public static AppSyncEventResource AllChannelNamespaces()func AllChannelNamespaces() AppSyncEventResourcestatic#
Generate the resource names that accepts all channel namespaces: `*`.
forAPI(): AppSyncEventResource // chainable@staticmethod def for_api() -> AppSyncEventResourcepublic static AppSyncEventResource forAPI()public static AppSyncEventResource ForAPI()func ForAPI() AppSyncEventResourcestatic#
Generate a resource for the calling API.
ofChannelNamespace(channelNamespace: string): AppSyncEventResource // chainable@staticmethod def of_channel_namespace(channel_namespace: str) -> AppSyncEventResourcepublic static AppSyncEventResource ofChannelNamespace(String channelNamespace)public static AppSyncEventResource OfChannelNamespace(string channelNamespace)func OfChannelNamespace(ChannelNamespace *string) AppSyncEventResourcestatic#
Generate the resource names given a channel namespace.
1 parameter

Parameters

  • channelNamespacechannel_namespacechannelNamespacechannelNamespaceChannelNamespace — The channel namespace that needs to be allowed.
resourceArns(api: EventApiBase): string[]def resource_arns(self, api: EventApiBase) -> typing.List[str]public List<String> resourceArns(EventApiBase api)public string[] ResourceArns(EventApiBase api)func ResourceArns(Api EventApiBase) *[]*string#
Return the Resource ARN.
1 parameter

Parameters

  • apiapiapiapiApi — The AppSync API to give permissions.