Class: AWSCDK::Lambda::SourceAccessConfiguration
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::SourceAccessConfiguration
- Defined in:
- lambda/source_access_configuration.rb
Overview
Specific settings like the authentication protocol or the VPC components to secure access to your event source.
Instance Attribute Summary collapse
-
#type ⇒ AWSCDK::Lambda::SourceAccessConfigurationType
readonly
The type of authentication protocol or the VPC components for your event source.
-
#uri ⇒ String
readonly
The value for your chosen configuration in type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, uri:) ⇒ SourceAccessConfiguration
constructor
A new instance of SourceAccessConfiguration.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, uri:) ⇒ SourceAccessConfiguration
Returns a new instance of SourceAccessConfiguration.
9 10 11 12 13 14 |
# File 'lambda/source_access_configuration.rb', line 9 def initialize(type:, uri:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLlNvdXJjZUFjY2Vzc0NvbmZpZ3VyYXRpb25UeXBlIn0=")), "type") @uri = uri Jsii::Type.check_type(@uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uri") end |
Instance Attribute Details
#type ⇒ AWSCDK::Lambda::SourceAccessConfigurationType (readonly)
The type of authentication protocol or the VPC components for your event source.
For example: "SASL_SCRAM_512_AUTH".
21 22 23 |
# File 'lambda/source_access_configuration.rb', line 21 def type @type end |
#uri ⇒ String (readonly)
The value for your chosen configuration in type.
For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName". The exact string depends on the type.
29 30 31 |
# File 'lambda/source_access_configuration.rb', line 29 def uri @uri end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'lambda/source_access_configuration.rb', line 31 def self.jsii_properties { :type => "type", :uri => "uri", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lambda/source_access_configuration.rb', line 38 def to_jsii result = {} result.merge!({ "type" => @type, "uri" => @uri, }) result.compact end |