EventSourceProperty Struct
Example
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
# 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
// 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();
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"
};
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
propertiesIResolvable | CfnFunction.AlexaSkillEventProperty | CfnFunction.ApiEventProperty | CfnFunction.CloudWatchEventEventProperty | CfnFunction.CloudWatchLogsEventProperty | CfnFunction.CognitoEventProperty | CfnFunction.DynamoDBEventProperty | CfnFunction.EventBridgeRuleEventProperty | CfnFunction.HttpApiEventProperty | CfnFunction.IoTRuleEventProperty | CfnFunction.KinesisEventProperty | CfnFunction.S3EventProperty | CfnFunction.ScheduleEventProperty | CfnFunction.SNSEventProperty | CfnFunction.SQSEventPropertypropertiestyping.Union[IResolvable, AlexaSkillEventProperty, ApiEventProperty, CloudWatchEventEventProperty, CloudWatchLogsEventProperty, CognitoEventProperty, DynamoDBEventProperty, EventBridgeRuleEventProperty, HttpApiEventProperty, IoTRuleEventProperty, KinesisEventProperty, S3EventProperty, ScheduleEventProperty, SNSEventProperty, SQSEventProperty]propertiesIResolvablePropertiesIResolvablePropertiesinterface{}required#