Class: AWSCDK::Lambda::SourceAccessConfiguration

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, uri:) ⇒ SourceAccessConfiguration

Returns a new instance of SourceAccessConfiguration.

Parameters:



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

#typeAWSCDK::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

#uriString (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.

Returns:

  • (String)

See Also:



29
30
31
# File 'lambda/source_access_configuration.rb', line 29

def uri
  @uri
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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