Class: AWSCDK::Events::CfnConnection::APIKeyAuthParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
events/cfn_connection.rb

Overview

The API key authorization parameters for the connection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key_name:, api_key_value:) ⇒ APIKeyAuthParametersProperty

Returns a new instance of APIKeyAuthParametersProperty.

Parameters:

  • api_key_name (String)

    The name of the API key to use for authorization.

  • api_key_value (String)

    The value for the API key to use for authorization.



647
648
649
650
651
652
# File 'events/cfn_connection.rb', line 647

def initialize(api_key_name:, api_key_value:)
  @api_key_name = api_key_name
  Jsii::Type.check_type(@api_key_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeyName")
  @api_key_value = api_key_value
  Jsii::Type.check_type(@api_key_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "apiKeyValue")
end

Instance Attribute Details

#api_key_nameString (readonly)

The name of the API key to use for authorization.



658
659
660
# File 'events/cfn_connection.rb', line 658

def api_key_name
  @api_key_name
end

#api_key_valueString (readonly)

The value for the API key to use for authorization.



663
664
665
# File 'events/cfn_connection.rb', line 663

def api_key_value
  @api_key_value
end

Class Method Details

.jsii_propertiesObject



665
666
667
668
669
670
# File 'events/cfn_connection.rb', line 665

def self.jsii_properties
  {
    :api_key_name => "apiKeyName",
    :api_key_value => "apiKeyValue",
  }
end

Instance Method Details

#to_jsiiObject



672
673
674
675
676
677
678
679
# File 'events/cfn_connection.rb', line 672

def to_jsii
  result = {}
  result.merge!({
    "apiKeyName" => @api_key_name,
    "apiKeyValue" => @api_key_value,
  })
  result.compact
end