Action Class
Defines an action for an extension.
Example
ts
declare const fn: lambda.Function;
new appconfig.Extension(this, 'MyExtension', {
actions: [
new appconfig.Action({
actionPoints: [appconfig.ActionPoint.ON_DEPLOYMENT_START],
eventDestination: new appconfig.LambdaDestination(fn),
}),
],
});
python
# fn: lambda.Function
appconfig.Extension(self, "MyExtension",
actions=[
appconfig.Action(
action_points=[appconfig.ActionPoint.ON_DEPLOYMENT_START],
event_destination=appconfig.LambdaDestination(fn)
)
]
)
java
Function fn;
Extension.Builder.create(this, "MyExtension")
.actions(List.of(
Action.Builder.create()
.actionPoints(List.of(ActionPoint.ON_DEPLOYMENT_START))
.eventDestination(new LambdaDestination(fn))
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
Function fn;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new LambdaDestination(fn)
}) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var fn Function
appconfig.NewExtension(this, jsii.String("MyExtension"), &ExtensionProps{
Actions: []Action{
appconfig.NewAction(&ActionProps{
ActionPoints: []ActionPoint{
appconfig.ActionPoint_ON_DEPLOYMENT_START,
},
EventDestination: appconfig.NewLambdaDestination(fn),
}),
},
})
Initializer
ts
new Action(props: ActionProps)
python
Action(props: ActionProps)
java
new Action(ActionProps props)
csharp
new Action(ActionProps props)
go
NewAction(Props ActionProps)
Properties
actionPointsActionPoint[]action_pointstyping.List[ActionPoint]actionPointsList<ActionPoint>ActionPointsActionPoint[]ActionPoints*[]ActionPointrequired#The action points that will trigger the extension action.
The description for the action.
eventDestinationIEventDestinationevent_destinationIEventDestinationeventDestinationIEventDestinationEventDestinationIEventDestinationEventDestinationIEventDestinationrequired#The event destination for the action.
The execution role for the action.
invokeWithoutExecutionRolebooleaninvoke_without_execution_roleboolinvokeWithoutExecutionRoleBooleanInvokeWithoutExecutionRoleboolInvokeWithoutExecutionRole*bool#The flag that specifies whether to create the execution role.
The name for the action.