Class: AWSCDK::QuickSight::CfnDataSource::CredentialPairProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSource::CredentialPairProperty
- Defined in:
- quick_sight/cfn_data_source.rb
Overview
The combination of user name and password that are used as credentials.
Instance Attribute Summary collapse
-
#alternate_data_source_parameters ⇒ AWSCDK::IResolvable, ...
readonly
A set of alternate data source parameters that you want to share for these credentials.
-
#password ⇒ String
readonly
Password.
-
#username ⇒ String
readonly
User name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(password:, username:, alternate_data_source_parameters: nil) ⇒ CredentialPairProperty
constructor
A new instance of CredentialPairProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(password:, username:, alternate_data_source_parameters: nil) ⇒ CredentialPairProperty
Returns a new instance of CredentialPairProperty.
935 936 937 938 939 940 941 942 |
# File 'quick_sight/cfn_data_source.rb', line 935 def initialize(password:, username:, alternate_data_source_parameters: nil) @password = password Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") @username = username Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") @alternate_data_source_parameters = alternate_data_source_parameters Jsii::Type.check_type(@alternate_data_source_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXRhU291cmNlLkRhdGFTb3VyY2VQYXJhbWV0ZXJzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "alternateDataSourceParameters") unless @alternate_data_source_parameters.nil? end |
Instance Attribute Details
#alternate_data_source_parameters ⇒ AWSCDK::IResolvable, ... (readonly)
A set of alternate data source parameters that you want to share for these credentials.
The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the DataSourceParameters structure that's in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.
960 961 962 |
# File 'quick_sight/cfn_data_source.rb', line 960 def alternate_data_source_parameters @alternate_data_source_parameters end |
#password ⇒ String (readonly)
Password.
948 949 950 |
# File 'quick_sight/cfn_data_source.rb', line 948 def password @password end |
#username ⇒ String (readonly)
User name.
953 954 955 |
# File 'quick_sight/cfn_data_source.rb', line 953 def username @username end |
Class Method Details
.jsii_properties ⇒ Object
962 963 964 965 966 967 968 |
# File 'quick_sight/cfn_data_source.rb', line 962 def self.jsii_properties { :password => "password", :username => "username", :alternate_data_source_parameters => "alternateDataSourceParameters", } end |
Instance Method Details
#to_jsii ⇒ Object
970 971 972 973 974 975 976 977 978 |
# File 'quick_sight/cfn_data_source.rb', line 970 def to_jsii result = {} result.merge!({ "password" => @password, "username" => @username, "alternateDataSourceParameters" => @alternate_data_source_parameters, }) result.compact end |