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 Details

    • create

      @Stability(Stable) public static CfnProfile.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnProfile.Builder.
    • name

      @Stability(Stable) public CfnProfile.Builder name(String name)
      The customer specified name of the resource.

      Parameters:
      name - The customer specified name of the resource. This parameter is required.
      Returns:
      this
    • roleArns

      @Stability(Stable) public CfnProfile.Builder roleArns(List<String> 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

      @Stability(Stable) public CfnProfile.Builder durationSeconds(Number 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

      @Stability(Stable) public CfnProfile.Builder enabled(Boolean enabled)
      The enabled status of the resource.

      Parameters:
      enabled - The enabled status of the resource. This parameter is required.
      Returns:
      this
    • enabled

      @Stability(Stable) public CfnProfile.Builder enabled(IResolvable enabled)
      The enabled status of the resource.

      Parameters:
      enabled - The enabled status of the resource. This parameter is required.
      Returns:
      this
    • managedPolicyArns

      @Stability(Stable) public CfnProfile.Builder managedPolicyArns(List<String> 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

      @Stability(Stable) public CfnProfile.Builder sessionPolicy(String 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

      @Stability(Stable) public CfnProfile.Builder tags(List<? extends CfnTag> tags)
      A list of Tags.

      Parameters:
      tags - A list of Tags. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnProfile build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnProfile>
      Returns:
      a newly built instance of CfnProfile.