Class: AWSCDK::AppFlow::CfnConnectorProfile::APIKeyCredentialsProperty

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

Overview

The API key credentials required for API key authentication.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, api_secret_key: nil) ⇒ APIKeyCredentialsProperty

Returns a new instance of APIKeyCredentialsProperty.

Parameters:

  • api_key (String)

    The API key required for API key authentication.

  • api_secret_key (String, nil) (defaults to: nil)

    The API secret key required for API key authentication.



629
630
631
632
633
634
# File 'app_flow/cfn_connector_profile.rb', line 629

def initialize(api_key:, api_secret_key: nil)
  @api_key = api_key
  Jsii::Type.check_type(@api_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKey")
  @api_secret_key = api_secret_key
  Jsii::Type.check_type(@api_secret_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiSecretKey") unless @api_secret_key.nil?
end

Instance Attribute Details

#api_keyString (readonly)

The API key required for API key authentication.



640
641
642
# File 'app_flow/cfn_connector_profile.rb', line 640

def api_key
  @api_key
end

#api_secret_keyString? (readonly)

The API secret key required for API key authentication.



645
646
647
# File 'app_flow/cfn_connector_profile.rb', line 645

def api_secret_key
  @api_secret_key
end

Class Method Details

.jsii_propertiesObject



647
648
649
650
651
652
# File 'app_flow/cfn_connector_profile.rb', line 647

def self.jsii_properties
  {
    :api_key => "apiKey",
    :api_secret_key => "apiSecretKey",
  }
end

Instance Method Details

#to_jsiiObject



654
655
656
657
658
659
660
661
# File 'app_flow/cfn_connector_profile.rb', line 654

def to_jsii
  result = {}
  result.merge!({
    "apiKey" => @api_key,
    "apiSecretKey" => @api_secret_key,
  })
  result.compact
end