Class: AWSCDK::AppFlow::CfnConnectorProfile::ServiceNowConnectorProfileCredentialsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_connector_profile.rb

Overview

The connector-specific profile credentials required when using ServiceNow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(o_auth2_credentials: nil, password: nil, username: nil) ⇒ ServiceNowConnectorProfileCredentialsProperty

Returns a new instance of ServiceNowConnectorProfileCredentialsProperty.

Parameters:



2575
2576
2577
2578
2579
2580
2581
2582
# File 'app_flow/cfn_connector_profile.rb', line 2575

def initialize(o_auth2_credentials: nil, password: nil, username: nil)
  @o_auth2_credentials = o_auth2_credentials.is_a?(Hash) ? ::AWSCDK::AppFlow::CfnConnectorProfile::OAuth2CredentialsProperty.new(**o_auth2_credentials.transform_keys(&:to_sym)) : o_auth2_credentials
  Jsii::Type.check_type(@o_auth2_credentials, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBmbG93LkNmbkNvbm5lY3RvclByb2ZpbGUuT0F1dGgyQ3JlZGVudGlhbHNQcm9wZXJ0eSJ9XX19")), "oAuth2Credentials") unless @o_auth2_credentials.nil?
  @password = password
  Jsii::Type.check_type(@password, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "password") unless @password.nil?
  @username = username
  Jsii::Type.check_type(@username, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "username") unless @username.nil?
end

Instance Attribute Details

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

The OAuth 2.0 credentials required to authenticate the user.



2588
2589
2590
# File 'app_flow/cfn_connector_profile.rb', line 2588

def o_auth2_credentials
  @o_auth2_credentials
end

#passwordString? (readonly)

The password that corresponds to the user name.



2593
2594
2595
# File 'app_flow/cfn_connector_profile.rb', line 2593

def password
  @password
end

#usernameString? (readonly)

The name of the user.



2598
2599
2600
# File 'app_flow/cfn_connector_profile.rb', line 2598

def username
  @username
end

Class Method Details

.jsii_propertiesObject



2600
2601
2602
2603
2604
2605
2606
# File 'app_flow/cfn_connector_profile.rb', line 2600

def self.jsii_properties
  {
    :o_auth2_credentials => "oAuth2Credentials",
    :password => "password",
    :username => "username",
  }
end

Instance Method Details

#to_jsiiObject



2608
2609
2610
2611
2612
2613
2614
2615
2616
# File 'app_flow/cfn_connector_profile.rb', line 2608

def to_jsii
  result = {}
  result.merge!({
    "oAuth2Credentials" => @o_auth2_credentials,
    "password" => @password,
    "username" => @username,
  })
  result.compact
end