Class: AWSCDK::AppSync::CfnAPI::AuthModeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnAPI::AuthModeProperty
- Defined in:
- app_sync/cfn_api.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.
591 592 593 594 |
# File 'app_sync/cfn_api.rb', line 591 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.
600 601 602 |
# File 'app_sync/cfn_api.rb', line 600 def auth_type @auth_type end |
Class Method Details
.jsii_properties ⇒ Object
602 603 604 605 606 |
# File 'app_sync/cfn_api.rb', line 602 def self.jsii_properties { :auth_type => "authType", } end |
Instance Method Details
#to_jsii ⇒ Object
608 609 610 611 612 613 614 |
# File 'app_sync/cfn_api.rb', line 608 def to_jsii result = {} result.merge!({ "authType" => @auth_type, }) result.compact end |