Class CfnProfile
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.rolesanywhere.CfnProfile
- All Implemented Interfaces:
IInspectable,ITaggable,IProfileRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:47.325Z")
@Stability(Stable)
public class CfnProfile
extends CfnResource
implements IInspectable, IProfileRef, ITaggable
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
.acceptRoleSessionName(false)
.attributeMappings(List.of(AttributeMappingProperty.builder()
.certificateField("certificateField")
.mappingRules(List.of(MappingRuleProperty.builder()
.specifier("specifier")
.build()))
.build()))
.durationSeconds(123)
.enabled(false)
.managedPolicyArns(List.of("managedPolicyArns"))
.requireInstanceProperties(false)
.sessionPolicy("sessionPolicy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA mapping applied to the authenticating end-entity certificate.static final classA fluent builder forCfnProfile.static interfaceA single mapping entry for each supported specifier or sub-field.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.rolesanywhere.IProfileRef
IProfileRef.Jsii$Default, IProfileRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnProfile(software.amazon.jsii.JsiiObjectRef objRef) CfnProfile(software.constructs.Construct scope, String id, CfnProfileProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IProfileReffromProfileArn(software.constructs.Construct scope, String id, String arn) Creates a new IProfileRef from an ARN.static IProfileReffromProfileId(software.constructs.Construct scope, String id, String profileId) Creates a new IProfileRef from a profileId.Used to determine if a custom role session name will be accepted in a temporary credential request.A mapping applied to the authenticating end-entity certificate.The ARN of the profile.The unique primary identifier of the Profile.The number of seconds vended session credentials will be valid for.The enabled status of the resource.A list of managed policy ARNs.getName()The customer specified name of the resource.A reference to a Profile resource.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.A session policy that will applied to the trust boundary of the vended session credentials.getTags()Tag Manager which manages the tags for this resource.A list of Tags.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAcceptRoleSessionName(Boolean value) Used to determine if a custom role session name will be accepted in a temporary credential request.voidUsed to determine if a custom role session name will be accepted in a temporary credential request.voidsetAttributeMappings(List<Object> value) A mapping applied to the authenticating end-entity certificate.voidsetAttributeMappings(IResolvable value) A mapping applied to the authenticating end-entity certificate.voidsetDurationSeconds(Number value) The number of seconds vended session credentials will be valid for.voidsetEnabled(Boolean value) The enabled status of the resource.voidsetEnabled(IResolvable value) The enabled status of the resource.voidsetManagedPolicyArns(List<String> value) A list of managed policy ARNs.voidThe customer specified name of the resource.voidSpecifies whether instance properties are required in CreateSession requests with this profile.voidSpecifies whether instance properties are required in CreateSession requests with this profile.voidsetRoleArns(List<String> value) A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.voidsetSessionPolicy(String value) A session policy that will applied to the trust boundary of the vended session credentials.voidsetTagsRaw(List<CfnTag> value) A list of Tags.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnProfileProps props) - 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromProfileArn
@Stability(Stable) @NotNull public static IProfileRef fromProfileArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IProfileRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromProfileId
@Stability(Stable) @NotNull public static IProfileRef fromProfileId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String profileId) Creates a new IProfileRef from a profileId.- Parameters:
scope- This parameter is required.id- This parameter is required.profileId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrProfileArn
The ARN of the profile. -
getAttrProfileId
The unique primary identifier of the Profile. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getProfileRef
A reference to a Profile resource.- Specified by:
getProfileRefin interfaceIProfileRef
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The customer specified name of the resource. -
setName
The customer specified name of the resource. -
getRoleArns
A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request. -
setRoleArns
A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request. -
getAcceptRoleSessionName
Used to determine if a custom role session name will be accepted in a temporary credential request.Returns union: either
BooleanorIResolvable -
setAcceptRoleSessionName
Used to determine if a custom role session name will be accepted in a temporary credential request. -
setAcceptRoleSessionName
Used to determine if a custom role session name will be accepted in a temporary credential request. -
getAttributeMappings
A mapping applied to the authenticating end-entity certificate.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnProfile.AttributeMappingProperty> -
setAttributeMappings
A mapping applied to the authenticating end-entity certificate. -
setAttributeMappings
A mapping applied to the authenticating end-entity certificate. -
getDurationSeconds
The number of seconds vended session credentials will be valid for. -
setDurationSeconds
The number of seconds vended session credentials will be valid for. -
getEnabled
The enabled status of the resource.Returns union: either
BooleanorIResolvable -
setEnabled
The enabled status of the resource. -
setEnabled
The enabled status of the resource. -
getManagedPolicyArns
A list of managed policy ARNs. -
setManagedPolicyArns
A list of managed policy ARNs. -
getRequireInstanceProperties
Specifies whether instance properties are required in CreateSession requests with this profile.Returns union: either
BooleanorIResolvable -
setRequireInstanceProperties
Specifies whether instance properties are required in CreateSession requests with this profile. -
setRequireInstanceProperties
Specifies whether instance properties are required in CreateSession requests with this profile. -
getSessionPolicy
A session policy that will applied to the trust boundary of the vended session credentials. -
setSessionPolicy
A session policy that will applied to the trust boundary of the vended session credentials. -
getTagsRaw
A list of Tags. -
setTagsRaw
A list of Tags.
-