InstanceProfileAttributes Struct
Attributes of an Instance Profile.
Example
ts
const role = new iam.Role(this, 'Role', {
assumedBy: new iam.ServicePrincipal('ec2.amazonaws.com'),
});
const instanceProfile = iam.InstanceProfile.fromInstanceProfileAttributes(this, 'ImportedInstanceProfile', {
instanceProfileArn: 'arn:aws:iam::account-id:instance-profile/MyInstanceProfile',
role,
});
Properties
instanceProfileArnstringinstance_profile_arnstrinstanceProfileArnStringInstanceProfileArnstringInstanceProfileArn*stringrequired#The ARN of the InstanceProfile.
Format: arn:<partition>:iam::<account-id>:instance-profile/<instance-profile-name-with-path>