# EventSourceProperty

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
const eventSourceProperty: sam.CfnFunction.EventSourceProperty = {
  properties: {
    skillId: 'skillId',
  },
  type: 'type',
};
```

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_sam as sam

event_source_property = sam.CfnFunction.EventSourceProperty(
    properties=sam.CfnFunction.AlexaSkillEventProperty(
        skill_id="skillId"
    ),
    type="type"
)
```

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.sam.*;

EventSourceProperty eventSourceProperty = EventSourceProperty.builder()
        .properties(AlexaSkillEventProperty.builder()
                .skillId("skillId")
                .build())
        .type("type")
        .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.SAM;

var eventSourceProperty = new EventSourceProperty {
    Properties = new AlexaSkillEventProperty {
        SkillId = "skillId"
    },
    Type = "type"
};
```

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"

eventSourceProperty := &EventSourceProperty{
	Properties: &AlexaSkillEventProperty{
		SkillId: jsii.String("skillId"),
	},
	Type: jsii.String("type"),
}
```

## Properties

- `properties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.AlexaSkillEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.AlexaSkillEventProperty.html) | [CfnFunction.ApiEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.ApiEventProperty.html) | [CfnFunction.CloudWatchEventEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.CloudWatchEventEventProperty.html) | [CfnFunction.CloudWatchLogsEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.CloudWatchLogsEventProperty.html) | [CfnFunction.CognitoEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.CognitoEventProperty.html) | [CfnFunction.DynamoDBEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.DynamoDBEventProperty.html) | [CfnFunction.EventBridgeRuleEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.EventBridgeRuleEventProperty.html) | [CfnFunction.HttpApiEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.HttpApiEventProperty.html) | [CfnFunction.IoTRuleEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.IoTRuleEventProperty.html) | [CfnFunction.KinesisEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.KinesisEventProperty.html) | [CfnFunction.S3EventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.S3EventProperty.html) | [CfnFunction.ScheduleEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.ScheduleEventProperty.html) | [CfnFunction.SNSEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.SNSEventProperty.html) | [CfnFunction.SQSEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sam.CfnFunction.SQSEventProperty.html) (required)

- `type`: string (required)
