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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptRoleSessionName(Boolean acceptRoleSessionName) Sets the value ofCfnProfileProps.getAcceptRoleSessionName()acceptRoleSessionName(IResolvable acceptRoleSessionName) Sets the value ofCfnProfileProps.getAcceptRoleSessionName()attributeMappings(List<? extends Object> attributeMappings) Sets the value ofCfnProfileProps.getAttributeMappings()attributeMappings(IResolvable attributeMappings) Sets the value ofCfnProfileProps.getAttributeMappings()build()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
-
acceptRoleSessionName
@Stability(Stable) public CfnProfileProps.Builder acceptRoleSessionName(Boolean acceptRoleSessionName) Sets the value ofCfnProfileProps.getAcceptRoleSessionName()- Parameters:
acceptRoleSessionName- Used to determine if a custom role session name will be accepted in a temporary credential request.- Returns:
this
-
acceptRoleSessionName
@Stability(Stable) public CfnProfileProps.Builder acceptRoleSessionName(IResolvable acceptRoleSessionName) Sets the value ofCfnProfileProps.getAcceptRoleSessionName()- Parameters:
acceptRoleSessionName- Used to determine if a custom role session name will be accepted in a temporary credential request.- Returns:
this
-
attributeMappings
Sets the value ofCfnProfileProps.getAttributeMappings()- Parameters:
attributeMappings- A mapping applied to the authenticating end-entity certificate.- Returns:
this
-
attributeMappings
@Stability(Stable) public CfnProfileProps.Builder attributeMappings(List<? extends Object> attributeMappings) Sets the value ofCfnProfileProps.getAttributeMappings()- Parameters:
attributeMappings- A mapping applied to the authenticating end-entity certificate.- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnProfileProps>- Returns:
- a new instance of
CfnProfileProps - Throws:
NullPointerException- if any required attribute was not provided
-