SourceAccessConfiguration

class aws_cdk.aws_lambda.SourceAccessConfiguration(*, type, uri)

Bases: object

Specific settings like the authentication protocol or the VPC components to secure access to your event source.

Parameters
  • type (SourceAccessConfigurationType) – The type of authentication protocol or the VPC components for your event source. For example: “SASL_SCRAM_512_AUTH”.

  • uri (str) – 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.

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_lambda as lambda_

# source_access_configuration_type is of type SourceAccessConfigurationType

source_access_configuration = lambda.SourceAccessConfiguration(
    type=source_access_configuration_type,
    uri="uri"
)

Attributes

type

The type of authentication protocol or the VPC components for your event source.

For example: “SASL_SCRAM_512_AUTH”.

Return type

SourceAccessConfigurationType

uri

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.

See

SourceAccessConfigurationType

Return type

str