Skip to content

/AWS1/CL_EC2=>ASSOCIATEIAMINSTANCEPROFILE()

About AssociateIamInstanceProfile

Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

Method Signature

IMPORTING

Required arguments:

IO_IAMINSTANCEPROFILE TYPE REF TO /AWS1/CL_EC2IAMINSTPROFILESPEC /AWS1/CL_EC2IAMINSTPROFILESPEC

The IAM instance profile.

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2ASSCIAMINSTPFLRS /AWS1/CL_EC2ASSCIAMINSTPFLRS