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,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:31.849Z")
@Stability(Stable)
public class CfnProfile
extends CfnResource
implements IInspectable, ITaggable
Creates a profile , a list of the roles that Roles Anywhere service is trusted to assume.
You use profiles to intersect permissions with IAM managed policies.
Required permissions: rolesanywhere:CreateProfile .
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();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.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 TypeMethodDescriptionThe ARN of the profile.The unique primary identifier of the Profile.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.A list of managed policy ARNs that apply to the vended session credentials.getName()The name of the profile.Specifies whether instance properties are required in temporary credential requests with this profile.A list of IAM role ARNs.A session policy that applies to the trust boundary of the vended session credentials.getTags()Tag Manager which manages the tags for this resource.The tags to attach to the profile.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDurationSeconds(Number value) Sets the maximum number of seconds that vended temporary credentials through CreateSession will be valid for, between 900 and 3600.voidsetEnabled(Boolean value) Indicates whether the profile is enabled.voidsetEnabled(IResolvable value) Indicates whether the profile is enabled.voidsetManagedPolicyArns(List<String> value) A list of managed policy ARNs that apply to the vended session credentials.voidThe name of the profile.voidSpecifies whether instance properties are required in temporary credential requests with this profile.voidSpecifies whether instance properties are required in temporary credential requests with this profile.voidsetRoleArns(List<String> value) A list of IAM role ARNs.voidsetSessionPolicy(String value) A session policy that applies to the trust boundary of the vended session credentials.voidsetTagsRaw(List<CfnTag> value) The tags to attach to the profile.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.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
-
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
-
getTags
Tag Manager which manages the tags for this resource. -
getName
The name of the profile. -
setName
The name of the profile. -
getRoleArns
A list of IAM role ARNs. -
setRoleArns
A list of IAM role ARNs. -
getDurationSeconds
Sets the maximum number of seconds that vended temporary credentials through CreateSession will be valid for, between 900 and 3600. -
setDurationSeconds
Sets the maximum number of seconds that vended temporary credentials through CreateSession will be valid for, between 900 and 3600. -
getEnabled
Indicates whether the profile is enabled. -
setEnabled
Indicates whether the profile is enabled. -
setEnabled
Indicates whether the profile is enabled. -
getManagedPolicyArns
A list of managed policy ARNs that apply to the vended session credentials. -
setManagedPolicyArns
A list of managed policy ARNs that apply to the vended session credentials. -
getRequireInstanceProperties
Specifies whether instance properties are required in temporary credential requests with this profile. -
setRequireInstanceProperties
Specifies whether instance properties are required in temporary credential requests with this profile. -
setRequireInstanceProperties
Specifies whether instance properties are required in temporary credential requests with this profile. -
getSessionPolicy
A session policy that applies to the trust boundary of the vended session credentials. -
setSessionPolicy
A session policy that applies to the trust boundary of the vended session credentials. -
getTagsRaw
The tags to attach to the profile. -
setTagsRaw
The tags to attach to the profile.
-