Class: AWSCDK::Lambda::CfnEventSourceMapping::SourceAccessConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/cfn_event_source_mapping.rb

Overview

An array of the authentication protocol, VPC components, or virtual host to secure and define your event source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil, uri: nil) ⇒ SourceAccessConfigurationProperty

Returns a new instance of SourceAccessConfigurationProperty.

Parameters:

  • type (String, nil) (defaults to: nil)

    The type of authentication protocol, VPC components, or virtual host for your event source. For example: "Type":"SASL_SCRAM_512_AUTH" .

  • uri (String, nil) (defaults to: nil)

    The value for your chosen configuration in Type .



1577
1578
1579
1580
1581
1582
# File 'lambda/cfn_event_source_mapping.rb', line 1577

def initialize(type: nil, uri: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @uri = uri
  Jsii::Type.check_type(@uri, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uri") unless @uri.nil?
end

Instance Attribute Details

#typeString? (readonly)

The type of authentication protocol, VPC components, or virtual host for your event source. For example: "Type":"SASL_SCRAM_512_AUTH" .

  • BASIC_AUTH – (Amazon MQ) The AWS Secrets Manager secret that stores your broker credentials.
  • BASIC_AUTH – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
  • VPC_SUBNET – (Self-managed Apache Kafka) The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
  • VPC_SECURITY_GROUP – (Self-managed Apache Kafka) The VPC security group used to manage access to your self-managed Apache Kafka brokers.
  • SASL_SCRAM_256_AUTH – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
  • SASL_SCRAM_512_AUTH – (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
  • VIRTUAL_HOST –- (RabbitMQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
  • CLIENT_CERTIFICATE_TLS_AUTH – (Amazon MSK, self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
  • SERVER_ROOT_CA_CERTIFICATE – (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.


1598
1599
1600
# File 'lambda/cfn_event_source_mapping.rb', line 1598

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" .



1605
1606
1607
# File 'lambda/cfn_event_source_mapping.rb', line 1605

def uri
  @uri
end

Class Method Details

.jsii_propertiesObject



1607
1608
1609
1610
1611
1612
# File 'lambda/cfn_event_source_mapping.rb', line 1607

def self.jsii_properties
  {
    :type => "type",
    :uri => "uri",
  }
end

Instance Method Details

#to_jsiiObject



1614
1615
1616
1617
1618
1619
1620
1621
# File 'lambda/cfn_event_source_mapping.rb', line 1614

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "uri" => @uri,
  })
  result.compact
end