Class: AWSCDK::AppSync::AppSyncEventResource
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppSync::AppSyncEventResource
- Defined in:
- app_sync/app_sync_event_resource.rb
Overview
A class used to generate resource arns for AppSync Event APIs.
Class Method Summary collapse
-
.all ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate the resource names that accepts all types:
*. -
.all_channel_namespaces ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate the resource names that accepts all channel namespaces:
*. -
.for_api ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate a resource for the calling API.
- .jsii_overridable_methods ⇒ Object
-
.of_channel_namespace(channel_namespace) ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate the resource names given a channel namespace.
Instance Method Summary collapse
-
#initialize(*args) ⇒ AppSyncEventResource
constructor
A new instance of AppSyncEventResource.
-
#resource_arns(api) ⇒ Array<String>
Return the Resource ARN.
Constructor Details
#initialize(*args) ⇒ AppSyncEventResource
Returns a new instance of AppSyncEventResource.
8 9 10 |
# File 'app_sync/app_sync_event_resource.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_appsync.AppSyncEventResource does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.all ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate the resource names that accepts all types: *.
21 22 23 |
# File 'app_sync/app_sync_event_resource.rb', line 21 def self.all() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appsync.AppSyncEventResource", "all", []) end |
.all_channel_namespaces ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate the resource names that accepts all channel namespaces: *.
28 29 30 |
# File 'app_sync/app_sync_event_resource.rb', line 28 def self.all_channel_namespaces() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appsync.AppSyncEventResource", "allChannelNamespaces", []) end |
.for_api ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate a resource for the calling API.
35 36 37 |
# File 'app_sync/app_sync_event_resource.rb', line 35 def self.for_api() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appsync.AppSyncEventResource", "forAPI", []) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'app_sync/app_sync_event_resource.rb', line 12 def self.jsii_overridable_methods { :resource_arns => { kind: :method, name: "resourceArns", is_optional: false }, } end |
.of_channel_namespace(channel_namespace) ⇒ AWSCDK::AppSync::AppSyncEventResource
Generate the resource names given a channel namespace.
43 44 45 46 |
# File 'app_sync/app_sync_event_resource.rb', line 43 def self.of_channel_namespace(channel_namespace) Jsii::Type.check_type(channel_namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channelNamespace") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appsync.AppSyncEventResource", "ofChannelNamespace", [channel_namespace]) end |
Instance Method Details
#resource_arns(api) ⇒ Array<String>
Return the Resource ARN.
52 53 54 55 |
# File 'app_sync/app_sync_event_resource.rb', line 52 def resource_arns(api) Jsii::Type.check_type(api, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5FdmVudEFwaUJhc2UifQ==")), "api") jsii_call_method("resourceArns", [api]) end |