Class CfnProfileProps.Builder
java.lang.Object
software.amazon.awscdk.services.rolesanywhere.CfnProfileProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProfileProps>
- Enclosing interface:
CfnProfileProps
@Stability(Stable)
public static final class CfnProfileProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProfileProps>
A builder for
CfnProfileProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.durationSeconds
(Number durationSeconds) Sets the value ofCfnProfileProps.getDurationSeconds()
Sets the value ofCfnProfileProps.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnProfileProps.getEnabled()
managedPolicyArns
(List<String> managedPolicyArns) Sets the value ofCfnProfileProps.getManagedPolicyArns()
Sets the value ofCfnProfileProps.getName()
requireInstanceProperties
(Boolean requireInstanceProperties) Sets the value ofCfnProfileProps.getRequireInstanceProperties()
requireInstanceProperties
(IResolvable requireInstanceProperties) Sets the value ofCfnProfileProps.getRequireInstanceProperties()
Sets the value ofCfnProfileProps.getRoleArns()
sessionPolicy
(String sessionPolicy) Sets the value ofCfnProfileProps.getSessionPolicy()
Sets the value ofCfnProfileProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnProfileProps.getName()
- Parameters:
name
- The customer specified name of the resource. This parameter is required.- Returns:
this
-
roleArns
Sets the value ofCfnProfileProps.getRoleArns()
- Parameters:
roleArns
- A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request. This parameter is required.- Returns:
this
-
durationSeconds
Sets the value ofCfnProfileProps.getDurationSeconds()
- Parameters:
durationSeconds
- The number of seconds vended session credentials will be valid for.- Returns:
this
-
enabled
Sets the value ofCfnProfileProps.getEnabled()
- Parameters:
enabled
- The enabled status of the resource.- Returns:
this
-
enabled
Sets the value ofCfnProfileProps.getEnabled()
- Parameters:
enabled
- The enabled status of the resource.- Returns:
this
-
managedPolicyArns
Sets the value ofCfnProfileProps.getManagedPolicyArns()
- Parameters:
managedPolicyArns
- A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.- Returns:
this
-
requireInstanceProperties
@Stability(Stable) public CfnProfileProps.Builder requireInstanceProperties(Boolean requireInstanceProperties) Sets the value ofCfnProfileProps.getRequireInstanceProperties()
- Parameters:
requireInstanceProperties
- Specifies whether instance properties are required in CreateSession requests with this profile.- Returns:
this
-
requireInstanceProperties
@Stability(Stable) public CfnProfileProps.Builder requireInstanceProperties(IResolvable requireInstanceProperties) Sets the value ofCfnProfileProps.getRequireInstanceProperties()
- Parameters:
requireInstanceProperties
- Specifies whether instance properties are required in CreateSession requests with this profile.- Returns:
this
-
sessionPolicy
Sets the value ofCfnProfileProps.getSessionPolicy()
- Parameters:
sessionPolicy
- A session policy that will applied to the trust boundary of the vended session credentials.- Returns:
this
-
tags
Sets the value ofCfnProfileProps.getTags()
- Parameters:
tags
- A list of Tags.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProfileProps>
- Returns:
- a new instance of
CfnProfileProps
- Throws:
NullPointerException
- if any required attribute was not provided
-