# 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.274.0/packages/aws-cdk-lib/aws-lambda/lib/event-source-mapping.ts#L80)

## 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',
};
```

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