Show / Hide Table of Contents

Interface IInstanceProfileAttributes

Attributes of an Instance Profile.

Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IInstanceProfileAttributes
Syntax (vb)
Public Interface IInstanceProfileAttributes
Remarks

ExampleMetadata: infused

Examples
var role = new Role(this, "Role", new RoleProps {
                AssumedBy = new ServicePrincipal("ec2.amazonaws.com")
            });

            var instanceProfile = InstanceProfile.FromInstanceProfileAttributes(this, "ImportedInstanceProfile", new InstanceProfileAttributes {
                InstanceProfileArn = "arn:aws:iam::account-id:instance-profile/MyInstanceProfile",
                Role = role
            });

Synopsis

Properties

InstanceProfileArn

The ARN of the InstanceProfile.

Role

The role associated with the InstanceProfile.

Properties

InstanceProfileArn

The ARN of the InstanceProfile.

string InstanceProfileArn { get; }
Property Value

string

Remarks

Format: arn:<partition>:iam::<account-id>:instance-profile/<instance-profile-name-with-path>

Role

The role associated with the InstanceProfile.

IRole? Role { get; }
Property Value

IRole

Remarks

Default: - no role

Back to top Generated by DocFX