@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:39.573Z") public class CfnProfile extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnProfile.Builder
A fluent builder for
CfnProfile . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnProfile(Construct scope,
java.lang.String id,
CfnProfileProps props)
Create a new `AWS::RolesAnywhere::Profile`.
|
protected |
CfnProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnProfile(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrProfileArn()
The ARN of the profile.
|
java.lang.String |
getAttrProfileId()
The unique primary identifier of the Profile.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Number |
getDurationSeconds()
Sets the maximum number of seconds that vended temporary credentials through [CreateSession](https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html) will be valid for, between 900 and 3600.
|
java.lang.Object |
getEnabled()
Indicates whether the profile is enabled.
|
java.util.List<java.lang.String> |
getManagedPolicyArns()
A list of managed policy ARNs that apply to the vended session credentials.
|
java.lang.String |
getName()
The name of the profile.
|
java.lang.Object |
getRequireInstanceProperties()
Specifies whether instance properties are required in temporary credential requests with this profile.
|
java.util.List<java.lang.String> |
getRoleArns()
A list of IAM role ARNs.
|
java.lang.String |
getSessionPolicy()
A session policy that applies to the trust boundary of the vended session credentials.
|
TagManager |
getTags()
The tags to attach to the profile.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDurationSeconds(java.lang.Number value)
Sets the maximum number of seconds that vended temporary credentials through [CreateSession](https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html) will be valid for, between 900 and 3600.
|
void |
setEnabled(java.lang.Boolean value)
Indicates whether the profile is enabled.
|
void |
setEnabled(IResolvable value)
Indicates whether the profile is enabled.
|
void |
setManagedPolicyArns(java.util.List<java.lang.String> value)
A list of managed policy ARNs that apply to the vended session credentials.
|
void |
setName(java.lang.String value)
The name of the profile.
|
void |
setRequireInstanceProperties(java.lang.Boolean value)
Specifies whether instance properties are required in temporary credential requests with this profile.
|
void |
setRequireInstanceProperties(IResolvable value)
Specifies whether instance properties are required in temporary credential requests with this profile.
|
void |
setRoleArns(java.util.List<java.lang.String> value)
A list of IAM role ARNs.
|
void |
setSessionPolicy(java.lang.String value)
A session policy that applies to the trust boundary of the vended session credentials.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnProfile(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnProfile(Construct scope, java.lang.String id, CfnProfileProps props)
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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrProfileArn()
public java.lang.String getAttrProfileId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getName()
public void setName(java.lang.String value)
public java.util.List<java.lang.String> getRoleArns()
During CreateSession
, if a matching role ARN is provided, the properties in this profile will be applied to the intersection session policy.
public void setRoleArns(java.util.List<java.lang.String> value)
During CreateSession
, if a matching role ARN is provided, the properties in this profile will be applied to the intersection session policy.
public java.lang.Number getDurationSeconds()
public void setDurationSeconds(java.lang.Number value)
public java.lang.Object getEnabled()
public void setEnabled(java.lang.Boolean value)
public void setEnabled(IResolvable value)
public java.util.List<java.lang.String> getManagedPolicyArns()
public void setManagedPolicyArns(java.util.List<java.lang.String> value)
public java.lang.Object getRequireInstanceProperties()
public void setRequireInstanceProperties(java.lang.Boolean value)
public void setRequireInstanceProperties(IResolvable value)
public java.lang.String getSessionPolicy()
public void setSessionPolicy(java.lang.String value)