CfnEventActionProps Struct
Properties for defining a CfnEventAction.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dataexchange as dataexchange } from 'aws-cdk-lib';
const cfnEventActionProps: dataexchange.CfnEventActionProps = {
action: {
exportRevisionToS3: {
revisionDestination: {
bucket: 'bucket',
// the properties below are optional
keyPattern: 'keyPattern',
},
// the properties below are optional
encryption: {
type: 'type',
// the properties below are optional
kmsKeyArn: 'kmsKeyArn',
},
},
},
event: {
revisionPublished: {
dataSetId: 'dataSetId',
},
},
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dataexchange as dataexchange
cfn_event_action_props = dataexchange.CfnEventActionProps(
action=dataexchange.CfnEventAction.ActionProperty(
export_revision_to_s3=dataexchange.CfnEventAction.AutoExportRevisionToS3RequestDetailsProperty(
revision_destination=dataexchange.CfnEventAction.AutoExportRevisionDestinationEntryProperty(
bucket="bucket",
# the properties below are optional
key_pattern="keyPattern"
),
# the properties below are optional
encryption=dataexchange.CfnEventAction.ExportServerSideEncryptionProperty(
type="type",
# the properties below are optional
kms_key_arn="kmsKeyArn"
)
)
),
event=dataexchange.CfnEventAction.EventProperty(
revision_published=dataexchange.CfnEventAction.RevisionPublishedProperty(
data_set_id="dataSetId"
)
),
# the properties below are optional
tags=[CfnTag(
key="key",
value="value"
)]
)
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.dataexchange.*;
CfnEventActionProps cfnEventActionProps = CfnEventActionProps.builder()
.action(ActionProperty.builder()
.exportRevisionToS3(AutoExportRevisionToS3RequestDetailsProperty.builder()
.revisionDestination(AutoExportRevisionDestinationEntryProperty.builder()
.bucket("bucket")
// the properties below are optional
.keyPattern("keyPattern")
.build())
// the properties below are optional
.encryption(ExportServerSideEncryptionProperty.builder()
.type("type")
// the properties below are optional
.kmsKeyArn("kmsKeyArn")
.build())
.build())
.build())
.event(EventProperty.builder()
.revisionPublished(RevisionPublishedProperty.builder()
.dataSetId("dataSetId")
.build())
.build())
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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.DataExchange;
var cfnEventActionProps = new CfnEventActionProps {
Action = new ActionProperty {
ExportRevisionToS3 = new AutoExportRevisionToS3RequestDetailsProperty {
RevisionDestination = new AutoExportRevisionDestinationEntryProperty {
Bucket = "bucket",
// the properties below are optional
KeyPattern = "keyPattern"
},
// the properties below are optional
Encryption = new ExportServerSideEncryptionProperty {
Type = "type",
// the properties below are optional
KmsKeyArn = "kmsKeyArn"
}
}
},
Event = new EventProperty {
RevisionPublished = new RevisionPublishedProperty {
DataSetId = "dataSetId"
}
},
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnEventActionProps := &CfnEventActionProps{
Action: &ActionProperty{
ExportRevisionToS3: &AutoExportRevisionToS3RequestDetailsProperty{
RevisionDestination: &AutoExportRevisionDestinationEntryProperty{
Bucket: jsii.String("bucket"),
// the properties below are optional
KeyPattern: jsii.String("keyPattern"),
},
// the properties below are optional
Encryption: &ExportServerSideEncryptionProperty{
Type: jsii.String("type"),
// the properties below are optional
KmsKeyArn: jsii.String("kmsKeyArn"),
},
},
},
Event: &EventProperty{
RevisionPublished: &RevisionPublishedProperty{
DataSetId: jsii.String("dataSetId"),
},
},
// the properties below are optional
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
actionIResolvable | CfnEventAction.ActionPropertyactiontyping.Union[IResolvable, ActionProperty]actionIResolvableActionIResolvableActioninterface{} required #What occurs after a certain event.
eventIResolvable | CfnEventAction.EventPropertyeventtyping.Union[IResolvable, EventProperty]eventIResolvableEventIResolvableEventinterface{} required #What occurs to start an action.