Class: AWSCDK::AppSync::CfnAPI::AuthModeProperty

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

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.



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



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_jsiiObject



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