Interface CfnMaintenanceWindowTargetProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnMaintenanceWindowTargetProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.764Z") @Stability(Stable) public interface CfnMaintenanceWindowTargetProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnMaintenanceWindowTarget.

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.*;
 CfnMaintenanceWindowTargetProps cfnMaintenanceWindowTargetProps = CfnMaintenanceWindowTargetProps.builder()
         .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();
 
  • Method Details

    • getResourceType

      @Stability(Stable) @NotNull String getResourceType()
      The type of target that is being registered with the maintenance window.
    • getTargets

      @Stability(Stable) @NotNull Object getTargets()
      The targets to register with the maintenance window.

      In other words, the instances to run commands on when the maintenance window runs.

      You must specify targets by using the WindowTargetIds parameter.

    • getWindowId

      @Stability(Stable) @NotNull String getWindowId()
      The ID of the maintenance window to register the target with.
    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description for the target.
    • getName

      @Stability(Stable) @Nullable default String getName()
      The name for the maintenance window target.
    • getOwnerInformation

      @Stability(Stable) @Nullable default 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.
    • builder

      @Stability(Stable) static CfnMaintenanceWindowTargetProps.Builder builder()
      Returns:
      a CfnMaintenanceWindowTargetProps.Builder of CfnMaintenanceWindowTargetProps