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.BuilderdurationSeconds(Number durationSeconds) Sets the maximum number of seconds that vended temporary credentials through CreateSession will be valid for, between 900 and 3600.Indicates whether the profile is enabled.enabled(IResolvable enabled) Indicates whether the profile is enabled.managedPolicyArns(List<String> managedPolicyArns) A list of managed policy ARNs that apply to the vended session credentials.The name of the profile.requireInstanceProperties(Boolean requireInstanceProperties) Specifies whether instance properties are required in temporary credential requests with this profile.requireInstanceProperties(IResolvable requireInstanceProperties) Specifies whether instance properties are required in temporary credential requests with this profile.A list of IAM role ARNs.sessionPolicy(String sessionPolicy) A session policy that applies to the trust boundary of the vended session credentials.The tags to attach to the profile.
-
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 name of the profile.- Parameters:
name- The name of the profile. This parameter is required.- Returns:
this- See Also:
-
roleArns
A list of IAM role ARNs.During
CreateSession, if a matching role ARN is provided, the properties in this profile will be applied to the intersection session policy.- Parameters:
roleArns- A list of IAM role ARNs. This parameter is required.- Returns:
this- See Also:
-
durationSeconds
Sets the maximum number of seconds that vended temporary credentials through CreateSession will be valid for, between 900 and 3600.- Parameters:
durationSeconds- Sets the maximum number of seconds that vended temporary credentials through CreateSession will be valid for, between 900 and 3600. This parameter is required.- Returns:
this- See Also:
-
enabled
Indicates whether the profile is enabled.- Parameters:
enabled- Indicates whether the profile is enabled. This parameter is required.- Returns:
this- See Also:
-
enabled
Indicates whether the profile is enabled.- Parameters:
enabled- Indicates whether the profile is enabled. This parameter is required.- Returns:
this- See Also:
-
managedPolicyArns
A list of managed policy ARNs that apply to the vended session credentials.- Parameters:
managedPolicyArns- A list of managed policy ARNs that apply to the vended session credentials. This parameter is required.- Returns:
this- See Also:
-
requireInstanceProperties
@Stability(Stable) public CfnProfile.Builder requireInstanceProperties(Boolean requireInstanceProperties) Specifies whether instance properties are required in temporary credential requests with this profile.- Parameters:
requireInstanceProperties- Specifies whether instance properties are required in temporary credential 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 temporary credential requests with this profile.- Parameters:
requireInstanceProperties- Specifies whether instance properties are required in temporary credential requests with this profile. This parameter is required.- Returns:
this- See Also:
-
sessionPolicy
A session policy that applies to the trust boundary of the vended session credentials.- Parameters:
sessionPolicy- A session policy that applies to the trust boundary of the vended session credentials. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to attach to the profile.- Parameters:
tags- The tags to attach to the profile. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProfile>- Returns:
- a newly built instance of
CfnProfile.
-