SourceAccessConfiguration Struct
Specific settings like the authentication protocol or the VPC components to secure access to your event source.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
declare const sourceAccessConfigurationType: lambda.SourceAccessConfigurationType;
const sourceAccessConfiguration: lambda.SourceAccessConfiguration = {
type: sourceAccessConfigurationType,
uri: 'uri',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_
# source_access_configuration_type: lambda.SourceAccessConfigurationType
source_access_configuration = lambda.SourceAccessConfiguration(
type=source_access_configuration_type,
uri="uri"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
SourceAccessConfigurationType sourceAccessConfigurationType;
SourceAccessConfiguration sourceAccessConfiguration = SourceAccessConfiguration.builder()
.type(sourceAccessConfigurationType)
.uri("uri")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
SourceAccessConfigurationType sourceAccessConfigurationType;
var sourceAccessConfiguration = new SourceAccessConfiguration {
Type = sourceAccessConfigurationType,
Uri = "uri"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var sourceAccessConfigurationType SourceAccessConfigurationType
sourceAccessConfiguration := &SourceAccessConfiguration{
Type: sourceAccessConfigurationType,
Uri: jsii.String("uri"),
}
Properties
typeSourceAccessConfigurationTypetypeSourceAccessConfigurationTypetypeSourceAccessConfigurationTypeTypeSourceAccessConfigurationTypeTypeSourceAccessConfigurationTyperequired#The type of authentication protocol or the VPC components for your event source.
For example: "SASL_SCRAM_512_AUTH".
The value for your chosen configuration in type.
For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890㊙️MyBrokerSecretName". The exact string depends on the type.