Class CfnMaintenanceWindowTarget.Builder

java.lang.Object
software.amazon.awscdk.services.ssm.CfnMaintenanceWindowTarget.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMaintenanceWindowTarget>
Enclosing class:
CfnMaintenanceWindowTarget

@Stability(Stable) public static final class CfnMaintenanceWindowTarget.Builder extends Object implements software.amazon.jsii.Builder<CfnMaintenanceWindowTarget>
A fluent builder for CfnMaintenanceWindowTarget.
  • Method Details

    • create

      @Stability(Stable) public static CfnMaintenanceWindowTarget.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnMaintenanceWindowTarget.Builder.
    • resourceType

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder resourceType(String resourceType)
      The type of target that is being registered with the maintenance window.

      Parameters:
      resourceType - The type of target that is being registered with the maintenance window. This parameter is required.
      Returns:
      this
    • targets

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder targets(IResolvable targets)
      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.

      Parameters:
      targets - The targets to register with the maintenance window. This parameter is required.
      Returns:
      this
    • targets

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder targets(List<? extends Object> targets)
      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.

      Parameters:
      targets - The targets to register with the maintenance window. This parameter is required.
      Returns:
      this
    • windowId

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder windowId(String windowId)
      The ID of the maintenance window to register the target with.

      Parameters:
      windowId - The ID of the maintenance window to register the target with. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder description(String description)
      A description for the target.

      Parameters:
      description - A description for the target. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder name(String name)
      The name for the maintenance window target.

      Parameters:
      name - The name for the maintenance window target. This parameter is required.
      Returns:
      this
    • ownerInformation

      @Stability(Stable) public CfnMaintenanceWindowTarget.Builder ownerInformation(String ownerInformation)
      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.

      Parameters:
      ownerInformation - 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. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnMaintenanceWindowTarget build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnMaintenanceWindowTarget>
      Returns:
      a newly built instance of CfnMaintenanceWindowTarget.