ActionProperty Struct
The Action property type specifies the configuration to launch.
| 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_ssmincidents as ssmincidents } from 'aws-cdk-lib';
const actionProperty: ssmincidents.CfnResponsePlan.ActionProperty = {
ssmAutomation: {
documentName: 'documentName',
roleArn: 'roleArn',
// the properties below are optional
documentVersion: 'documentVersion',
dynamicParameters: [{
key: 'key',
value: {
variable: 'variable',
},
}],
parameters: [{
key: 'key',
values: ['values'],
}],
targetAccount: 'targetAccount',
},
};
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_ssmincidents as ssmincidents
action_property = ssmincidents.CfnResponsePlan.ActionProperty(
ssm_automation=ssmincidents.CfnResponsePlan.SsmAutomationProperty(
document_name="documentName",
role_arn="roleArn",
# the properties below are optional
document_version="documentVersion",
dynamic_parameters=[ssmincidents.CfnResponsePlan.DynamicSsmParameterProperty(
key="key",
value=ssmincidents.CfnResponsePlan.DynamicSsmParameterValueProperty(
variable="variable"
)
)],
parameters=[ssmincidents.CfnResponsePlan.SsmParameterProperty(
key="key",
values=["values"]
)],
target_account="targetAccount"
)
)
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.ssmincidents.*;
ActionProperty actionProperty = ActionProperty.builder()
.ssmAutomation(SsmAutomationProperty.builder()
.documentName("documentName")
.roleArn("roleArn")
// the properties below are optional
.documentVersion("documentVersion")
.dynamicParameters(List.of(DynamicSsmParameterProperty.builder()
.key("key")
.value(DynamicSsmParameterValueProperty.builder()
.variable("variable")
.build())
.build()))
.parameters(List.of(SsmParameterProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.targetAccount("targetAccount")
.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.SSMIncidents;
var actionProperty = new ActionProperty {
SsmAutomation = new SsmAutomationProperty {
DocumentName = "documentName",
RoleArn = "roleArn",
// the properties below are optional
DocumentVersion = "documentVersion",
DynamicParameters = new [] { new DynamicSsmParameterProperty {
Key = "key",
Value = new DynamicSsmParameterValueProperty {
Variable = "variable"
}
} },
Parameters = new [] { new SsmParameterProperty {
Key = "key",
Values = new [] { "values" }
} },
TargetAccount = "targetAccount"
}
};
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"
actionProperty := &ActionProperty{
SsmAutomation: &SsmAutomationProperty{
DocumentName: jsii.String("documentName"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
DocumentVersion: jsii.String("documentVersion"),
DynamicParameters: []interface{}{
&DynamicSsmParameterProperty{
Key: jsii.String("key"),
Value: &DynamicSsmParameterValueProperty{
Variable: jsii.String("variable"),
},
},
},
Parameters: []interface{}{
&SsmParameterProperty{
Key: jsii.String("key"),
Values: []*string{
jsii.String("values"),
},
},
},
TargetAccount: jsii.String("targetAccount"),
},
}
Properties
ssmAutomationoptionalIResolvable | CfnResponsePlan.ssm_automationoptionaltyping.Union[IResolvable, SsmAutomationProperty]ssmAutomationoptionalIResolvableSsmAutomationoptionalIResolvableSsmAutomationoptionalinterface{} #Details about the Systems Manager automation document that will be used as a runbook during an incident.