Class: AWSCDK::DataZone::CfnConnection::RedshiftCredentialsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataZone::CfnConnection::RedshiftCredentialsProperty
- Defined in:
- data_zone/cfn_connection.rb
Overview
Amazon Redshift credentials of a connection.
Instance Attribute Summary collapse
-
#secret_arn ⇒ String?
readonly
The secret ARN of the Amazon Redshift credentials of a connection.
-
#username_password ⇒ AWSCDK::IResolvable, ...
readonly
The username and password of the Amazon Redshift credentials of a connection.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(secret_arn: nil, username_password: nil) ⇒ RedshiftCredentialsProperty
constructor
A new instance of RedshiftCredentialsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(secret_arn: nil, username_password: nil) ⇒ RedshiftCredentialsProperty
Returns a new instance of RedshiftCredentialsProperty.
1773 1774 1775 1776 1777 1778 |
# File 'data_zone/cfn_connection.rb', line 1773 def initialize(secret_arn: nil, username_password: nil) @secret_arn = secret_arn Jsii::Type.check_type(@secret_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretArn") unless @secret_arn.nil? @username_password = username_password.is_a?(Hash) ? ::AWSCDK::DataZone::CfnConnection::UsernamePasswordProperty.new(**username_password.transform_keys(&:to_sym)) : username_password Jsii::Type.check_type(@username_password, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kYXRhem9uZS5DZm5Db25uZWN0aW9uLlVzZXJuYW1lUGFzc3dvcmRQcm9wZXJ0eSJ9XX19")), "usernamePassword") unless @username_password.nil? end |
Instance Attribute Details
#secret_arn ⇒ String? (readonly)
The secret ARN of the Amazon Redshift credentials of a connection.
1784 1785 1786 |
# File 'data_zone/cfn_connection.rb', line 1784 def secret_arn @secret_arn end |
#username_password ⇒ AWSCDK::IResolvable, ... (readonly)
The username and password of the Amazon Redshift credentials of a connection.
1789 1790 1791 |
# File 'data_zone/cfn_connection.rb', line 1789 def username_password @username_password end |
Class Method Details
.jsii_properties ⇒ Object
1791 1792 1793 1794 1795 1796 |
# File 'data_zone/cfn_connection.rb', line 1791 def self.jsii_properties { :secret_arn => "secretArn", :username_password => "usernamePassword", } end |
Instance Method Details
#to_jsii ⇒ Object
1798 1799 1800 1801 1802 1803 1804 1805 |
# File 'data_zone/cfn_connection.rb', line 1798 def to_jsii result = {} result.merge!({ "secretArn" => @secret_arn, "usernamePassword" => @username_password, }) result.compact end |