InstanceProfileAttributes
- class aws_cdk.aws_iam.InstanceProfileAttributes(*, instance_profile_arn, role=None)
Bases:
object
Attributes of an Instance Profile.
- Parameters:
instance_profile_arn (
str
) – The ARN of the InstanceProfile. Format: arn::iam:::instance-profile/role (
Optional
[IRole
]) – The role associated with the InstanceProfile. Default: - no role
- ExampleMetadata:
infused
Example:
role = iam.Role(self, "Role", assumed_by=iam.ServicePrincipal("ec2.amazonaws.com") ) instance_profile = iam.InstanceProfile.from_instance_profile_attributes(self, "ImportedInstanceProfile", instance_profile_arn="arn:aws:iam::account-id:instance-profile/MyInstanceProfile", role=role )
Attributes
- instance_profile_arn
The ARN of the InstanceProfile.
Format: arn::iam:::instance-profile/
- role
The role associated with the InstanceProfile.
- Default:
no role