Class InstanceProfileAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.iam.InstanceProfileAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceProfileAttributes>
- Enclosing interface:
InstanceProfileAttributes
@Stability(Stable)
public static final class InstanceProfileAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceProfileAttributes>
A builder for
InstanceProfileAttributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceProfileArn
(String instanceProfileArn) Sets the value ofInstanceProfileAttributes.getInstanceProfileArn()
Sets the value ofInstanceProfileAttributes.getRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceProfileArn
@Stability(Stable) public InstanceProfileAttributes.Builder instanceProfileArn(String instanceProfileArn) Sets the value ofInstanceProfileAttributes.getInstanceProfileArn()
- Parameters:
instanceProfileArn
- The ARN of the InstanceProfile. This parameter is required. Format: arn::iam::invalid input: '<'account-id>:instance-profile/invalid input: '<'instance-profile-name-with-path> - Returns:
this
-
role
Sets the value ofInstanceProfileAttributes.getRole()
- Parameters:
role
- The role associated with the InstanceProfile.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InstanceProfileAttributes>
- Returns:
- a new instance of
InstanceProfileAttributes
- Throws:
NullPointerException
- if any required attribute was not provided
-