java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:35.018Z") @Stability(Stable) public class CfnProfile extends CfnResource implements IInspectable
A CloudFormation AWS::RolesAnywhere::Profile.

Creates a Profile.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.rolesanywhere.*;
 CfnProfile cfnProfile = CfnProfile.Builder.create(this, "MyCfnProfile")
         .name("name")
         .roleArns(List.of("roleArns"))
         // the properties below are optional
         .durationSeconds(123)
         .enabled(false)
         .managedPolicyArns(List.of("managedPolicyArns"))
         .requireInstanceProperties(false)
         .sessionPolicy("sessionPolicy")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnProfile

      protected CfnProfile(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnProfile

      protected CfnProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnProfile

      @Stability(Stable) public CfnProfile(@NotNull Construct scope, @NotNull String id, @NotNull CfnProfileProps props)
      Create a new AWS::RolesAnywhere::Profile.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrProfileArn

      @Stability(Stable) @NotNull public String getAttrProfileArn()
      The ARN of the profile.
    • getAttrProfileId

      @Stability(Stable) @NotNull public String getAttrProfileId()
      The unique primary identifier of the Profile.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      A list of Tags.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The customer specified name of the resource.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The customer specified name of the resource.
    • getRoleArns

      @Stability(Stable) @NotNull public List<String> getRoleArns()
      A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
    • setRoleArns

      @Stability(Stable) public void setRoleArns(@NotNull List<String> value)
      A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
    • getDurationSeconds

      @Stability(Stable) @Nullable public Number getDurationSeconds()
      The number of seconds vended session credentials will be valid for.
    • setDurationSeconds

      @Stability(Stable) public void setDurationSeconds(@Nullable Number value)
      The number of seconds vended session credentials will be valid for.
    • getEnabled

      @Stability(Stable) @Nullable public Object getEnabled()
      The enabled status of the resource.
    • setEnabled

      @Stability(Stable) public void setEnabled(@Nullable Boolean value)
      The enabled status of the resource.
    • setEnabled

      @Stability(Stable) public void setEnabled(@Nullable IResolvable value)
      The enabled status of the resource.
    • getManagedPolicyArns

      @Stability(Stable) @Nullable public List<String> getManagedPolicyArns()
      A list of managed policy ARNs.

      Managed policies identified by this list will be applied to the vended session credentials.

    • setManagedPolicyArns

      @Stability(Stable) public void setManagedPolicyArns(@Nullable List<String> value)
      A list of managed policy ARNs.

      Managed policies identified by this list will be applied to the vended session credentials.

    • getRequireInstanceProperties

      @Stability(Stable) @Nullable public Object getRequireInstanceProperties()
      Specifies whether instance properties are required in CreateSession requests with this profile.
    • setRequireInstanceProperties

      @Stability(Stable) public void setRequireInstanceProperties(@Nullable Boolean value)
      Specifies whether instance properties are required in CreateSession requests with this profile.
    • setRequireInstanceProperties

      @Stability(Stable) public void setRequireInstanceProperties(@Nullable IResolvable value)
      Specifies whether instance properties are required in CreateSession requests with this profile.
    • getSessionPolicy

      @Stability(Stable) @Nullable public String getSessionPolicy()
      A session policy that will applied to the trust boundary of the vended session credentials.
    • setSessionPolicy

      @Stability(Stable) public void setSessionPolicy(@Nullable String value)
      A session policy that will applied to the trust boundary of the vended session credentials.