Class: AWSCDK::QuickSight::CfnDataSource::CredentialPairProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(password:, username:, alternate_data_source_parameters: nil) ⇒ CredentialPairProperty

Returns a new instance of CredentialPairProperty.

Parameters:



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_parametersAWSCDK::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

#passwordString (readonly)

Password.



948
949
950
# File 'quick_sight/cfn_data_source.rb', line 948

def password
  @password
end

#usernameString (readonly)

User name.



953
954
955
# File 'quick_sight/cfn_data_source.rb', line 953

def username
  @username
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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