Class: AWSCDK::AppSync::CfnDataSource::AuthorizationConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_sync/cfn_data_source.rb

Overview

The AuthorizationConfig property type specifies the authorization type and configuration for an AWS AppSync http data source.

AuthorizationConfig is a property of the AWS AppSync DataSource HttpConfig property type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorization_type:, aws_iam_config: nil) ⇒ AuthorizationConfigProperty

Returns a new instance of AuthorizationConfigProperty.

Parameters:



682
683
684
685
686
687
# File 'app_sync/cfn_data_source.rb', line 682

def initialize(authorization_type:, aws_iam_config: nil)
  @authorization_type = authorization_type
  Jsii::Type.check_type(@authorization_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizationType")
  @aws_iam_config = aws_iam_config.is_a?(Hash) ? ::AWSCDK::AppSync::CfnDataSource::AWSIAMConfigProperty.new(**aws_iam_config.transform_keys(&:to_sym)) : aws_iam_config
  Jsii::Type.check_type(@aws_iam_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzeW5jLkNmbkRhdGFTb3VyY2UuQXdzSWFtQ29uZmlnUHJvcGVydHkifV19fQ==")), "awsIamConfig") unless @aws_iam_config.nil?
end

Instance Attribute Details

#authorization_typeString (readonly)

The authorization type that the HTTP endpoint requires.

  • AWS_IAM : The authorization type is Signature Version 4 (SigV4).


695
696
697
# File 'app_sync/cfn_data_source.rb', line 695

def authorization_type
  @authorization_type
end

#aws_iam_configAWSCDK::IResolvable, ... (readonly)

The AWS Identity and Access Management settings.



700
701
702
# File 'app_sync/cfn_data_source.rb', line 700

def aws_iam_config
  @aws_iam_config
end

Class Method Details

.jsii_propertiesObject



702
703
704
705
706
707
# File 'app_sync/cfn_data_source.rb', line 702

def self.jsii_properties
  {
    :authorization_type => "authorizationType",
    :aws_iam_config => "awsIamConfig",
  }
end

Instance Method Details

#to_jsiiObject



709
710
711
712
713
714
715
716
# File 'app_sync/cfn_data_source.rb', line 709

def to_jsii
  result = {}
  result.merge!({
    "authorizationType" => @authorization_type,
    "awsIamConfig" => @aws_iam_config,
  })
  result.compact
end