Class Action
Defines an action for an extension.
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Action : DeputyBase
Syntax (vb)
Public Class Action Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
Function fn;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new LambdaDestination(fn)
}) }
});
Synopsis
Constructors
| Action(IActionProps) | Defines an action for an extension. |
Properties
| ActionPoints | The action points that will trigger the extension action. |
| Description | The description for the action. |
| EventDestination | The event destination for the action. |
| ExecutionRole | The execution role for the action. |
| InvokeWithoutExecutionRole | The flag that specifies whether to create the execution role. |
| Name | The name for the action. |
Constructors
Action(IActionProps)
Defines an action for an extension.
public Action(IActionProps props)
Parameters
- props IActionProps
Remarks
ExampleMetadata: infused
Examples
Function fn;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new LambdaDestination(fn)
}) }
});
Properties
ActionPoints
The action points that will trigger the extension action.
public virtual ActionPoint[] ActionPoints { get; }
Property Value
Remarks
ExampleMetadata: infused
Description
The description for the action.
public virtual string? Description { get; }
Property Value
Remarks
ExampleMetadata: infused
EventDestination
The event destination for the action.
public virtual IEventDestination EventDestination { get; }
Property Value
Remarks
ExampleMetadata: infused
ExecutionRole
The execution role for the action.
public virtual IRole? ExecutionRole { get; }
Property Value
Remarks
ExampleMetadata: infused
InvokeWithoutExecutionRole
The flag that specifies whether to create the execution role.
public virtual bool? InvokeWithoutExecutionRole { get; }
Property Value
bool?
Remarks
ExampleMetadata: infused
Name
The name for the action.
public virtual string? Name { get; }
Property Value
Remarks
ExampleMetadata: infused