Class: AWSCDK::AppFlow::CfnConnectorProfile::AmplitudeConnectorProfileCredentialsProperty

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

Overview

The connector-specific credentials required when using Amplitude.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, secret_key:) ⇒ AmplitudeConnectorProfileCredentialsProperty

Returns a new instance of AmplitudeConnectorProfileCredentialsProperty.

Parameters:

  • api_key (String)

    A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API.

  • secret_key (String)

    The Secret Access Key portion of the credentials.



586
587
588
589
590
591
# File 'app_flow/cfn_connector_profile.rb', line 586

def initialize(api_key:, secret_key:)
  @api_key = api_key
  Jsii::Type.check_type(@api_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKey")
  @secret_key = secret_key
  Jsii::Type.check_type(@secret_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "secretKey")
end

Instance Attribute Details

#api_keyString (readonly)

A unique alphanumeric identifier used to authenticate a user, developer, or calling program to your API.



597
598
599
# File 'app_flow/cfn_connector_profile.rb', line 597

def api_key
  @api_key
end

#secret_keyString (readonly)

The Secret Access Key portion of the credentials.



602
603
604
# File 'app_flow/cfn_connector_profile.rb', line 602

def secret_key
  @secret_key
end

Class Method Details

.jsii_propertiesObject



604
605
606
607
608
609
# File 'app_flow/cfn_connector_profile.rb', line 604

def self.jsii_properties
  {
    :api_key => "apiKey",
    :secret_key => "secretKey",
  }
end

Instance Method Details

#to_jsiiObject



611
612
613
614
615
616
617
618
# File 'app_flow/cfn_connector_profile.rb', line 611

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