Class: Aws::EC2::Types::AssociateInstanceEventWindowRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass AssociateInstanceEventWindowRequest data as a hash:

{
  dry_run: false,
  instance_event_window_id: "InstanceEventWindowId", # required
  association_target: { # required
    instance_ids: ["InstanceId"],
    instance_tags: [
      {
        key: "String",
        value: "String",
      },
    ],
    dedicated_host_ids: ["DedicatedHostId"],
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#association_targetTypes::InstanceEventWindowAssociationRequest

One or more targets associated with the specified event window.



2072
2073
2074
2075
2076
2077
2078
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2072

class AssociateInstanceEventWindowRequest < Struct.new(
  :dry_run,
  :instance_event_window_id,
  :association_target)
  SENSITIVE = []
  include Aws::Structure
end

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


2072
2073
2074
2075
2076
2077
2078
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2072

class AssociateInstanceEventWindowRequest < Struct.new(
  :dry_run,
  :instance_event_window_id,
  :association_target)
  SENSITIVE = []
  include Aws::Structure
end

#instance_event_window_idString

The ID of the event window.

Returns:

  • (String)


2072
2073
2074
2075
2076
2077
2078
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 2072

class AssociateInstanceEventWindowRequest < Struct.new(
  :dry_run,
  :instance_event_window_id,
  :association_target)
  SENSITIVE = []
  include Aws::Structure
end