Class: AWSCDK::AppSync::CfnChannelNamespace::AuthModeProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auth_type: nil) ⇒ AuthModeProperty

Returns a new instance of AuthModeProperty.

Parameters:

  • auth_type (String, nil) (defaults to: nil)

    The authorization type.



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_typeString? (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_propertiesObject



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_jsiiObject



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