Class CfnProfile.Builder
java.lang.Object
software.amazon.awscdk.services.rolesanywhere.CfnProfile.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProfile>
- Enclosing class:
CfnProfile
@Stability(Stable)
public static final class CfnProfile.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProfile>
A fluent builder for
CfnProfile
.-
Method Summary
Modifier and TypeMethodDescriptionacceptRoleSessionName
(Boolean acceptRoleSessionName) Used to determine if a custom role session name will be accepted in a temporary credential request.acceptRoleSessionName
(IResolvable acceptRoleSessionName) Used to determine if a custom role session name will be accepted in a temporary credential request.attributeMappings
(List<? extends Object> attributeMappings) A mapping applied to the authenticating end-entity certificate.attributeMappings
(IResolvable attributeMappings) A mapping applied to the authenticating end-entity certificate.build()
static CfnProfile.Builder
durationSeconds
(Number durationSeconds) The number of seconds vended session credentials will be valid for.The enabled status of the resource.enabled
(IResolvable enabled) The enabled status of the resource.managedPolicyArns
(List<String> managedPolicyArns) A list of managed policy ARNs.The customer specified name of the resource.requireInstanceProperties
(Boolean requireInstanceProperties) Specifies whether instance properties are required in CreateSession requests with this profile.requireInstanceProperties
(IResolvable requireInstanceProperties) Specifies whether instance properties are required in CreateSession requests with this profile.A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.sessionPolicy
(String sessionPolicy) A session policy that will applied to the trust boundary of the vended session credentials.A list of Tags.
-
Method Details
-
create
@Stability(Stable) public static CfnProfile.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnProfile.Builder
.
-
name
The customer specified name of the resource.- Parameters:
name
- The customer specified name of the resource. This parameter is required.- Returns:
this
- See Also:
-
roleArns
A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.- 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
- See Also:
-
acceptRoleSessionName
Used to determine if a custom role session name will be accepted in a temporary credential request.- Parameters:
acceptRoleSessionName
- Used to determine if a custom role session name will be accepted in a temporary credential request. This parameter is required.- Returns:
this
- See Also:
-
acceptRoleSessionName
@Stability(Stable) public CfnProfile.Builder acceptRoleSessionName(IResolvable acceptRoleSessionName) Used to determine if a custom role session name will be accepted in a temporary credential request.- Parameters:
acceptRoleSessionName
- Used to determine if a custom role session name will be accepted in a temporary credential request. This parameter is required.- Returns:
this
- See Also:
-
attributeMappings
A mapping applied to the authenticating end-entity certificate.- Parameters:
attributeMappings
- A mapping applied to the authenticating end-entity certificate. This parameter is required.- Returns:
this
- See Also:
-
attributeMappings
@Stability(Stable) public CfnProfile.Builder attributeMappings(List<? extends Object> attributeMappings) A mapping applied to the authenticating end-entity certificate.- Parameters:
attributeMappings
- A mapping applied to the authenticating end-entity certificate. This parameter is required.- Returns:
this
- See Also:
-
durationSeconds
The number of seconds vended session credentials will be valid for.- Parameters:
durationSeconds
- The number of seconds vended session credentials will be valid for. This parameter is required.- Returns:
this
- See Also:
-
enabled
The enabled status of the resource.- Parameters:
enabled
- The enabled status of the resource. This parameter is required.- Returns:
this
- See Also:
-
enabled
The enabled status of the resource.- Parameters:
enabled
- The enabled status of the resource. This parameter is required.- Returns:
this
- See Also:
-
managedPolicyArns
A list of managed policy ARNs.Managed policies identified by this list will be applied to the vended session credentials.
- Parameters:
managedPolicyArns
- A list of managed policy ARNs. This parameter is required.- Returns:
this
- See Also:
-
requireInstanceProperties
@Stability(Stable) public CfnProfile.Builder requireInstanceProperties(Boolean requireInstanceProperties) Specifies whether instance properties are required in CreateSession requests with this profile.- Parameters:
requireInstanceProperties
- Specifies whether instance properties are required in CreateSession requests with this profile. This parameter is required.- Returns:
this
- See Also:
-
requireInstanceProperties
@Stability(Stable) public CfnProfile.Builder requireInstanceProperties(IResolvable requireInstanceProperties) Specifies whether instance properties are required in CreateSession requests with this profile.- Parameters:
requireInstanceProperties
- Specifies whether instance properties are required in CreateSession requests with this profile. This parameter is required.- Returns:
this
- See Also:
-
sessionPolicy
A session policy that will applied to the trust boundary of the vended session credentials.- Parameters:
sessionPolicy
- A session policy that will applied to the trust boundary of the vended session credentials. This parameter is required.- Returns:
this
- See Also:
-
tags
A list of Tags.- Parameters:
tags
- A list of Tags. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProfile>
- Returns:
- a newly built instance of
CfnProfile
.
-