RunCommandParametersProperty Struct
This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.
| 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_events as events } from 'aws-cdk-lib';
const runCommandParametersProperty: events.CfnRule.RunCommandParametersProperty = {
runCommandTargets: [{
key: 'key',
values: ['values'],
}],
};
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_events as events
run_command_parameters_property = events.CfnRule.RunCommandParametersProperty(
run_command_targets=[events.CfnRule.RunCommandTargetProperty(
key="key",
values=["values"]
)]
)
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.events.*;
RunCommandParametersProperty runCommandParametersProperty = RunCommandParametersProperty.builder()
.runCommandTargets(List.of(RunCommandTargetProperty.builder()
.key("key")
.values(List.of("values"))
.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.Events;
var runCommandParametersProperty = new RunCommandParametersProperty {
RunCommandTargets = new [] { new RunCommandTargetProperty {
Key = "key",
Values = new [] { "values" }
} }
};
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"
runCommandParametersProperty := &RunCommandParametersProperty{
RunCommandTargets: []interface{}{
&RunCommandTargetProperty{
Key: jsii.String("key"),
Values: []*string{
jsii.String("values"),
},
},
},
}
Properties
runCommandTargetsIResolvable | IResolvable | CfnRule.RunCommandTargetProperty[]run_command_targetstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, RunCommandTargetProperty]]]runCommandTargetsIResolvableRunCommandTargetsIResolvableRunCommandTargetsinterface{} required #Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.