You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::SSM::Types::RegisterTargetWithMaintenanceWindowRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing RegisterTargetWithMaintenanceWindowRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  window_id: "MaintenanceWindowId", # required
  resource_type: "INSTANCE", # required, accepts INSTANCE
  targets: [ # required
    {
      key: "TargetKey",
      values: ["TargetValue"],
    },
  ],
  owner_information: "OwnerInformation",
  name: "MaintenanceWindowName",
  description: "MaintenanceWindowDescription",
  client_token: "ClientToken",
}

Instance Attribute Summary collapse

Instance Attribute Details

#client_tokenString

User-provided idempotency token.

Returns:

  • (String)

    User-provided idempotency token.

#descriptionString

An optional description for the target.

Returns:

  • (String)

    An optional description for the target.

#nameString

An optional name for the target.

Returns:

  • (String)

    An optional name for the target.

#owner_informationString

User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.

Returns:

  • (String)

    User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this Maintenance Window.

#resource_typeString

The type of target being registered with the Maintenance Window.

Possible values:

  • INSTANCE

Returns:

  • (String)

    The type of target being registered with the Maintenance Window.

#targetsArray<Types::Target>

The targets (either instances or tags). Instances are specified using Key=instanceids,Values=<instanceid1>,<instanceid2>. Tags are specified using Key=<tag name>,Values=<tag value>.

Returns:

  • (Array<Types::Target>)

    The targets (either instances or tags).

#window_idString

The ID of the Maintenance Window the target should be registered with.

Returns:

  • (String)

    The ID of the Maintenance Window the target should be registered with.