# SourceAccessConfiguration

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

- Source: [`aws-lambda/lib/event-source-mapping.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-lambda/lib/event-source-mapping.ts#L80)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `type`: [SourceAccessConfigurationType](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.SourceAccessConfigurationType.html) (required) — The type of authentication protocol or the VPC components for your event source.

  For example: "SASL_SCRAM_512_AUTH".

- `uri`: string (required) — 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.
