Class: AWSCDK::AppFlow::CfnConnectorProfile::DatadogConnectorProfileCredentialsProperty

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

Overview

The connector-specific credentials required by Datadog.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key:, application_key:) ⇒ DatadogConnectorProfileCredentialsProperty

Returns a new instance of DatadogConnectorProfileCredentialsProperty.

Parameters:

  • api_key (String)

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

  • application_key (String)

    Application keys, in conjunction with your API key, give you full access to Datadog’s programmatic API.



1326
1327
1328
1329
1330
1331
# File 'app_flow/cfn_connector_profile.rb', line 1326

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

Instance Attribute Details

#api_keyString (readonly)

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



1337
1338
1339
# File 'app_flow/cfn_connector_profile.rb', line 1337

def api_key
  @api_key
end

#application_keyString (readonly)

Application keys, in conjunction with your API key, give you full access to Datadog’s programmatic API.

Application keys are associated with the user account that created them. The application key is used to log all requests made to the API.



1344
1345
1346
# File 'app_flow/cfn_connector_profile.rb', line 1344

def application_key
  @application_key
end

Class Method Details

.jsii_propertiesObject



1346
1347
1348
1349
1350
1351
# File 'app_flow/cfn_connector_profile.rb', line 1346

def self.jsii_properties
  {
    :api_key => "apiKey",
    :application_key => "applicationKey",
  }
end

Instance Method Details

#to_jsiiObject



1353
1354
1355
1356
1357
1358
1359
1360
# File 'app_flow/cfn_connector_profile.rb', line 1353

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