Class: AWSCDK::Events::CfnConnection::APIKeyAuthParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Events::CfnConnection::APIKeyAuthParametersProperty
- Defined in:
- events/cfn_connection.rb
Overview
The API key authorization parameters for the connection.
Instance Attribute Summary collapse
-
#api_key_name ⇒ String
readonly
The name of the API key to use for authorization.
-
#api_key_value ⇒ String
readonly
The value for the API key to use for authorization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(api_key_name:, api_key_value:) ⇒ APIKeyAuthParametersProperty
constructor
A new instance of APIKeyAuthParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(api_key_name:, api_key_value:) ⇒ APIKeyAuthParametersProperty
Returns a new instance of APIKeyAuthParametersProperty.
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_name ⇒ String (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_value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |