CfnProfileProps
- class aws_cdk.aws_rolesanywhere.CfnProfileProps(*, name, role_arns, duration_seconds=None, enabled=None, managed_policy_arns=None, require_instance_properties=None, session_policy=None, tags=None)
Bases:
object
Properties for defining a
CfnProfile
.- Parameters:
name (
str
) – The customer specified name of the resource.role_arns (
Sequence
[str
]) – A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.duration_seconds (
Union
[int
,float
,None
]) – The number of seconds vended session credentials will be valid for.enabled (
Union
[bool
,IResolvable
,None
]) – The enabled status of the resource.managed_policy_arns (
Optional
[Sequence
[str
]]) – A list of managed policy ARNs. Managed policies identified by this list will be applied to the vended session credentials.require_instance_properties (
Union
[bool
,IResolvable
,None
]) – Specifies whether instance properties are required in CreateSession requests with this profile.session_policy (
Optional
[str
]) – A session policy that will applied to the trust boundary of the vended session credentials.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – A list of Tags.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_rolesanywhere as rolesanywhere cfn_profile_props = rolesanywhere.CfnProfileProps( name="name", role_arns=["roleArns"], # the properties below are optional duration_seconds=123, enabled=False, managed_policy_arns=["managedPolicyArns"], require_instance_properties=False, session_policy="sessionPolicy", tags=[CfnTag( key="key", value="value" )] )
Attributes
- duration_seconds
The number of seconds vended session credentials will be valid for.
- enabled
The enabled status of the resource.
- managed_policy_arns
A list of managed policy ARNs.
Managed policies identified by this list will be applied to the vended session credentials.
- name
The customer specified name of the resource.
- require_instance_properties
Specifies whether instance properties are required in CreateSession requests with this profile.
- role_arns
A list of IAM role ARNs that can be assumed when this profile is specified in a CreateSession request.
- session_policy
A session policy that will applied to the trust boundary of the vended session credentials.