Class: AWSCDK::AppSync::CfnChannelNamespace::AuthModeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnChannelNamespace::AuthModeProperty
- Defined in:
- app_sync/cfn_channel_namespace.rb
Overview
Describes an authorization configuration.
Use AuthMode to specify the publishing and subscription authorization configuration for an Event API.
Instance Attribute Summary collapse
-
#auth_type ⇒ String?
readonly
The authorization type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth_type: nil) ⇒ AuthModeProperty
constructor
A new instance of AuthModeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(auth_type: nil) ⇒ AuthModeProperty
Returns a new instance of AuthModeProperty.
613 614 615 616 |
# File 'app_sync/cfn_channel_namespace.rb', line 613 def initialize(auth_type: nil) @auth_type = auth_type Jsii::Type.check_type(@auth_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authType") unless @auth_type.nil? end |
Instance Attribute Details
#auth_type ⇒ String? (readonly)
The authorization type.
622 623 624 |
# File 'app_sync/cfn_channel_namespace.rb', line 622 def auth_type @auth_type end |
Class Method Details
.jsii_properties ⇒ Object
624 625 626 627 628 |
# File 'app_sync/cfn_channel_namespace.rb', line 624 def self.jsii_properties { :auth_type => "authType", } end |
Instance Method Details
#to_jsii ⇒ Object
630 631 632 633 634 635 636 |
# File 'app_sync/cfn_channel_namespace.rb', line 630 def to_jsii result = {} result.merge!({ "authType" => @auth_type, }) result.compact end |