@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:20.909Z") @Stability(value=Stable) public class CfnMaintenanceWindowTarget extends CfnResource implements IInspectable
The AWS::SSM::MaintenanceWindowTarget resource registers a target with a maintenance window for AWS Systems Manager . For more information, see RegisterTargetWithMaintenanceWindow in the AWS Systems Manager API Reference .
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.*;
CfnMaintenanceWindowTarget cfnMaintenanceWindowTarget = CfnMaintenanceWindowTarget.Builder.create(this, "MyCfnMaintenanceWindowTarget")
.resourceType("resourceType")
.targets(List.of(TargetsProperty.builder()
.key("key")
.values(List.of("values"))
.build()))
.windowId("windowId")
// the properties below are optional
.description("description")
.name("name")
.ownerInformation("ownerInformation")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnMaintenanceWindowTarget.Builder
A fluent builder for
CfnMaintenanceWindowTarget. |
static interface |
CfnMaintenanceWindowTarget.TargetsProperty
The `Targets` property type specifies adding a target to a maintenance window target in AWS Systems Manager .
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnMaintenanceWindowTarget(Construct scope,
String id,
CfnMaintenanceWindowTargetProps props)
Create a new `AWS::SSM::MaintenanceWindowTarget`.
|
protected |
CfnMaintenanceWindowTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnMaintenanceWindowTarget(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description for the target.
|
String |
getName()
The name for the maintenance window target.
|
String |
getOwnerInformation()
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.
|
String |
getResourceType()
The type of target that is being registered with the maintenance window.
|
Object |
getTargets()
The targets to register with the maintenance window.
|
String |
getWindowId()
The ID of the maintenance window to register the target with.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
A description for the target.
|
void |
setName(String value)
The name for the maintenance window target.
|
void |
setOwnerInformation(String value)
A user-provided value that will be included in any Amazon CloudWatch Events events that are raised while running tasks for these targets in this maintenance window.
|
void |
setResourceType(String value)
The type of target that is being registered with the maintenance window.
|
void |
setTargets(IResolvable value)
The targets to register with the maintenance window.
|
void |
setTargets(List<Object> value)
The targets to register with the maintenance window.
|
void |
setWindowId(String value)
The ID of the maintenance window to register the target with.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnMaintenanceWindowTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMaintenanceWindowTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnMaintenanceWindowTarget(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
CfnMaintenanceWindowTargetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getResourceType()
@Stability(value=Stable)
public void setResourceType(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getTargets()
In other words, the instances to run commands on when the maintenance window runs.
You must specify targets by using the WindowTargetIds parameter.
@Stability(value=Stable)
public void setTargets(@NotNull
IResolvable value)
In other words, the instances to run commands on when the maintenance window runs.
You must specify targets by using the WindowTargetIds parameter.
@Stability(value=Stable)
public void setTargets(@NotNull
List<Object> value)
In other words, the instances to run commands on when the maintenance window runs.
You must specify targets by using the WindowTargetIds parameter.
@Stability(value=Stable) @NotNull public String getWindowId()
@Stability(value=Stable)
public void setWindowId(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getName()
@Stability(value=Stable)
public void setName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getOwnerInformation()
@Stability(value=Stable)
public void setOwnerInformation(@Nullable
String value)
Copyright © 2023. All rights reserved.