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 TypeMethodDescriptionbuild()
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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
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
-
enabled
The enabled status of the resource.- Parameters:
enabled
- The enabled status of the resource. This parameter is required.- Returns:
this
-
enabled
The enabled status of the resource.- Parameters:
enabled
- The enabled status of the resource. This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
tags
A list of Tags.- Parameters:
tags
- A list of Tags. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProfile>
- Returns:
- a newly built instance of
CfnProfile
.
-