Interface InstanceProfileAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InstanceProfileAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:22.984Z")
@Stability(Stable)
public interface InstanceProfileAttributes
extends software.amazon.jsii.JsiiSerializable
Attributes of an Instance Profile.
Example:
Role role = Role.Builder.create(this, "Role")
.assumedBy(new ServicePrincipal("ec2.amazonaws.com"))
.build();
IInstanceProfile instanceProfile = InstanceProfile.fromInstanceProfileAttributes(this, "ImportedInstanceProfile", InstanceProfileAttributes.builder()
.instanceProfileArn("arn:aws:iam::account-id:instance-profile/MyInstanceProfile")
.role(role)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forInstanceProfileAttributesstatic final classAn implementation forInstanceProfileAttributes -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInstanceProfileArn
The ARN of the InstanceProfile.Format: arn:
:iam::invalid input: '<'account-id>:instance-profile/invalid input: '<'instance-profile-name-with-path> -
getRole
The role associated with the InstanceProfile.Default: - no role
-
builder
- Returns:
- a
InstanceProfileAttributes.BuilderofInstanceProfileAttributes
-