Class: Aws::EC2::Types::AssociateIamInstanceProfileRequest

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 AssociateIamInstanceProfileRequest data as a hash:

{
  iam_instance_profile: { # required
    arn: "String",
    name: "String",
  },
  instance_id: "InstanceId", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#iam_instance_profileTypes::IamInstanceProfileSpecification

The IAM instance profile.



1608
1609
1610
1611
1612
1613
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1608

class AssociateIamInstanceProfileRequest < Struct.new(
  :iam_instance_profile,
  :instance_id)
  SENSITIVE = []
  include Aws::Structure
end

#instance_idString

The ID of the instance.

Returns:

  • (String)


1608
1609
1610
1611
1612
1613
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1608

class AssociateIamInstanceProfileRequest < Struct.new(
  :iam_instance_profile,
  :instance_id)
  SENSITIVE = []
  include Aws::Structure
end