Class: AWSCDK::DataZone::CfnConnection::AuthenticationConfigurationInputProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnConnection::AuthenticationConfigurationInputProperty
- Defined in:
- data_zone/cfn_connection.rb
Overview
The authentication configuration of a connection.
Instance Attribute Summary collapse
-
#authentication_type ⇒ String?
readonly
The authentication type of a connection.
-
#basic_authentication_credentials ⇒ AWSCDK::IResolvable, ...
readonly
The basic authentication credentials of a connection.
-
#custom_authentication_credentials ⇒ AWSCDK::IResolvable, ...
readonly
The custom authentication credentials of a connection.
-
#kms_key_arn ⇒ String?
readonly
The KMS key ARN of a connection.
-
#o_auth2_properties ⇒ AWSCDK::IResolvable, ...
readonly
The oAuth2 properties of a connection.
-
#secret_arn ⇒ String?
readonly
The secret ARN of a connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authentication_type: nil, basic_authentication_credentials: nil, custom_authentication_credentials: nil, kms_key_arn: nil, o_auth2_properties: nil, secret_arn: nil) ⇒ AuthenticationConfigurationInputProperty
constructor
A new instance of AuthenticationConfigurationInputProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authentication_type: nil, basic_authentication_credentials: nil, custom_authentication_credentials: nil, kms_key_arn: nil, o_auth2_properties: nil, secret_arn: nil) ⇒ AuthenticationConfigurationInputProperty
Returns a new instance of AuthenticationConfigurationInputProperty.
756 757 758 759 760 761 762 763 764 765 766 767 768 769 |
# File 'data_zone/cfn_connection.rb', line 756 def initialize(authentication_type: nil, basic_authentication_credentials: nil, custom_authentication_credentials: nil, kms_key_arn: nil, o_auth2_properties: nil, secret_arn: nil) @authentication_type = authentication_type Jsii::Type.check_type(@authentication_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authenticationType") unless @authentication_type.nil? @basic_authentication_credentials = basic_authentication_credentials.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::BasicAuthenticationCredentialsProperty.new(**basic_authentication_credentials.transform_keys(&:to_sym)) : basic_authentication_credentials Jsii::Type.check_type(@basic_authentication_credentials, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLkJhc2ljQXV0aGVudGljYXRpb25DcmVkZW50aWFsc1Byb3BlcnR5In1dfX0=")), "basicAuthenticationCredentials") unless @basic_authentication_credentials.nil? @custom_authentication_credentials = custom_authentication_credentials Jsii::Type.check_type(@custom_authentication_credentials, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "customAuthenticationCredentials") unless @custom_authentication_credentials.nil? @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? @o_auth2_properties = o_auth2_properties.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::OAuth2PropertiesProperty.new(**o_auth2_properties.transform_keys(&:to_sym)) : o_auth2_properties Jsii::Type.check_type(@o_auth2_properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLk9BdXRoMlByb3BlcnRpZXNQcm9wZXJ0eSJ9XX19")), "oAuth2Properties") unless @o_auth2_properties.nil? @secret_arn = secret_arn Jsii::Type.check_type(@secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretArn") unless @secret_arn.nil? end |
Instance Attribute Details
#authentication_type ⇒ String? (readonly)
The authentication type of a connection.
775 776 777 |
# File 'data_zone/cfn_connection.rb', line 775 def authentication_type @authentication_type end |
#basic_authentication_credentials ⇒ AWSCDK::IResolvable, ... (readonly)
The basic authentication credentials of a connection.
780 781 782 |
# File 'data_zone/cfn_connection.rb', line 780 def basic_authentication_credentials @basic_authentication_credentials end |
#custom_authentication_credentials ⇒ AWSCDK::IResolvable, ... (readonly)
The custom authentication credentials of a connection.
785 786 787 |
# File 'data_zone/cfn_connection.rb', line 785 def custom_authentication_credentials @custom_authentication_credentials end |
#kms_key_arn ⇒ String? (readonly)
The KMS key ARN of a connection.
790 791 792 |
# File 'data_zone/cfn_connection.rb', line 790 def kms_key_arn @kms_key_arn end |
#o_auth2_properties ⇒ AWSCDK::IResolvable, ... (readonly)
The oAuth2 properties of a connection.
795 796 797 |
# File 'data_zone/cfn_connection.rb', line 795 def o_auth2_properties @o_auth2_properties end |
#secret_arn ⇒ String? (readonly)
The secret ARN of a connection.
800 801 802 |
# File 'data_zone/cfn_connection.rb', line 800 def secret_arn @secret_arn end |
Class Method Details
.jsii_properties ⇒ Object
802 803 804 805 806 807 808 809 810 811 |
# File 'data_zone/cfn_connection.rb', line 802 def self.jsii_properties { :authentication_type => "authenticationType", :basic_authentication_credentials => "basicAuthenticationCredentials", :custom_authentication_credentials => "customAuthenticationCredentials", :kms_key_arn => "kmsKeyArn", :o_auth2_properties => "oAuth2Properties", :secret_arn => "secretArn", } end |
Instance Method Details
#to_jsii ⇒ Object
813 814 815 816 817 818 819 820 821 822 823 824 |
# File 'data_zone/cfn_connection.rb', line 813 def to_jsii result = {} result.merge!({ "authenticationType" => @authentication_type, "basicAuthenticationCredentials" => @basic_authentication_credentials, "customAuthenticationCredentials" => @custom_authentication_credentials, "kmsKeyArn" => @kms_key_arn, "oAuth2Properties" => @o_auth2_properties, "secretArn" => @secret_arn, }) result.compact end |