Class ActionProps
Properties for the Action construct.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ActionProps : Object, IActionProps
Syntax (vb)
Public Class ActionProps
Inherits Object
Implements 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)
}) }
});
Synopsis
Constructors
Action |
Properties
Action |
The action points that will trigger the extension action. |
Description | The description for the action. |
Event |
The event destination for the action. |
Execution |
The execution role for the action. |
Invoke |
The flag that specifies whether or not to create the execution role. |
Name | The name for the action. |
Constructors
ActionProps()
public ActionProps()
Properties
ActionPoints
The action points that will trigger the extension action.
public ActionPoint[] ActionPoints { get; set; }
Property Value
Description
The description for the action.
public string Description { get; set; }
Property Value
System.
Remarks
Default: - No description.
EventDestination
The event destination for the action.
public IEventDestination EventDestination { get; set; }
Property Value
ExecutionRole
The execution role for the action.
public IRole ExecutionRole { get; set; }
Property Value
Remarks
Default: - A role is generated.
InvokeWithoutExecutionRole
The flag that specifies whether or not to create the execution role.
public Nullable<bool> InvokeWithoutExecutionRole { get; set; }
Property Value
System.
Remarks
If set to true, then the role will not be auto-generated under the assumption there is already the corresponding resource-based policy attached to the event destination. If false, the execution role will be generated if not provided.
Default: false
Name
The name for the action.
public string Name { get; set; }
Property Value
System.
Remarks
Default: - A name is generated.