@Stability(value=Stable)
public static interface CfnMaintenanceWindowTarget.TargetsProperty
extends software.amazon.jsii.JsiiSerializable
Targets is a property of the AWS::SSM::MaintenanceWindowTarget resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ssm.*;
TargetsProperty targetsProperty = TargetsProperty.builder()
.key("key")
.values(List.of("values"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnMaintenanceWindowTarget.TargetsProperty.Builder
A builder for
CfnMaintenanceWindowTarget.TargetsProperty |
static class |
CfnMaintenanceWindowTarget.TargetsProperty.Jsii$Proxy
An implementation for
CfnMaintenanceWindowTarget.TargetsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnMaintenanceWindowTarget.TargetsProperty.Builder |
builder() |
String |
getKey()
User-defined criteria for sending commands that target managed nodes that meet the criteria.
|
List<String> |
getValues()
User-defined criteria that maps to `Key` .
|
@Stability(value=Stable) @NotNull String getKey()
@Stability(value=Stable) @NotNull List<String> getValues()
For example, if you specified tag:ServerRole , you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer .
Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50.
@Stability(value=Stable) static CfnMaintenanceWindowTarget.TargetsProperty.Builder builder()
Copyright © 2022. All rights reserved.