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.



1662
1663
1664
1665
1666
1667
1668
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1662

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)


1662
1663
1664
1665
1666
1667
1668
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1662

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)


1662
1663
1664
1665
1666
1667
1668
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1662

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