@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:52.063Z") 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 .
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnMaintenanceWindowTarget(Construct scope,
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description for the target.
|
java.lang.String |
getName()
The name for the maintenance window target.
|
java.lang.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.
|
java.lang.String |
getResourceType()
The type of target that is being registered with the maintenance window.
|
java.lang.Object |
getTargets()
The targets to register with the maintenance window.
|
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDescription(java.lang.String value)
A description for the target.
|
void |
setName(java.lang.String value)
The name for the maintenance window target.
|
void |
setOwnerInformation(java.lang.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(java.lang.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(java.util.List<java.lang.Object> value)
The targets to register with the maintenance window.
|
void |
setWindowId(java.lang.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, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnMaintenanceWindowTarget(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnMaintenanceWindowTarget(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnMaintenanceWindowTarget(Construct scope, java.lang.String id, 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getResourceType()
public void setResourceType(java.lang.String value)
public java.lang.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.
public void setTargets(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.
public void setTargets(java.util.List<java.lang.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.
public java.lang.String getWindowId()
public void setWindowId(java.lang.String value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getOwnerInformation()
public void setOwnerInformation(java.lang.String value)