Skip to content

CreateProfileRequest

Source code in docs_src/capo_rolesanywhere/types/create_profile_request.py
class CreateProfileRequest(TypedDict, closed=True):
    name: "capo_rolesanywhere.types.resource_name.ResourceName"
    """<p>The name of the profile.</p>"""
    require_instance_properties: NotRequired["bool"]
    """<p>Unused, saved for future use. Will likely specify whether instance properties are required in temporary credential requests with this profile. </p>"""
    session_policy: NotRequired["str"]
    """<p>A session policy that applies to the trust boundary of the vended session credentials. </p>"""
    role_arns: "capo_rolesanywhere.types.role_arn_list.RoleArnList"
    """<p>A list of IAM roles that this profile can assume in a temporary credential request.</p>"""
    managed_policy_arns: NotRequired[
        "capo_rolesanywhere.types.managed_policy_list.ManagedPolicyList"
    ]
    """<p>A list of managed policy ARNs that apply to the vended session credentials. </p>"""
    duration_seconds: NotRequired["int"]
    """<p> Used to determine how long sessions vended using this profile are valid for. See the <code>Expiration</code> section of the <a href="https://docs.aws.amazon.com/rolesanywhere/latest/userguide/authentication-create-session.html#credentials-object">CreateSession API documentation</a> page for more details. In requests, if this value is not provided, the default value will be 3600. </p>"""
    enabled: NotRequired["bool"]
    """<p>Specifies whether the profile is enabled.</p>"""
    tags: NotRequired["capo_rolesanywhere.types.tag_list.TagList"]
    """<p>The tags to attach to the profile.</p>"""
    accept_role_session_name: NotRequired["bool"]
    """<p>Used to determine if a custom role session name will be accepted in a temporary credential request.</p>"""
    alias_name: NotRequired["capo_rolesanywhere.types.alias_name.AliasName"]
    """<p>An alias for the profile. When you set an alias, the response includes the alias ARN of the profile in <code>aliasArn</code>.</p> <p>An alias name contains 1 to 256 characters. It must begin with a letter (A-Z or a-z). It can contain only letters (A-Z and a-z), numbers (0-9), underscores (_), hyphens (-), and forward slashes (/). A forward slash can appear only between two other characters, so an alias name can't end with a forward slash or contain two in a row. Alias names that begin with <code>aws/</code>, in any combination of uppercase and lowercase letters, are reserved. Alias names are case sensitive.</p> <p>The alias name must be unique among resources of the same type in your account and Region. If another resource of the same type already has the alias, the request fails with a <code>ValidationException</code>. An invalid or reserved alias name also causes a <code>ValidationException</code>.</p> <p>If you omit this parameter or specify an empty string, the resource is created without an alias.</p>"""
    tip_configuration: NotRequired[
        "capo_rolesanywhere.types.tip_configuration.TipConfiguration"
    ]
    """<p>The trusted identity propagation (TIP) settings for the profile. When you enable TIP, sessions from the profile include the identity from the certificate in <code>aws:OriginIdentity</code> condition keys.</p> <p>If you omit this parameter, the profile doesn't use TIP.</p>"""

accept_role_session_name instance-attribute

accept_role_session_name: NotRequired[bool]

Used to determine if a custom role session name will be accepted in a temporary credential request.

alias_name instance-attribute

alias_name: NotRequired[AliasName]

An alias for the profile. When you set an alias, the response includes the alias ARN of the profile in aliasArn.

An alias name contains 1 to 256 characters. It must begin with a letter (A-Z or a-z). It can contain only letters (A-Z and a-z), numbers (0-9), underscores (_), hyphens (-), and forward slashes (/). A forward slash can appear only between two other characters, so an alias name can't end with a forward slash or contain two in a row. Alias names that begin with aws/, in any combination of uppercase and lowercase letters, are reserved. Alias names are case sensitive.

The alias name must be unique among resources of the same type in your account and Region. If another resource of the same type already has the alias, the request fails with a ValidationException. An invalid or reserved alias name also causes a ValidationException.

If you omit this parameter or specify an empty string, the resource is created without an alias.

duration_seconds instance-attribute

duration_seconds: NotRequired[int]

Used to determine how long sessions vended using this profile are valid for. See the Expiration section of the CreateSession API documentation page for more details. In requests, if this value is not provided, the default value will be 3600.

enabled instance-attribute

enabled: NotRequired[bool]

Specifies whether the profile is enabled.

managed_policy_arns instance-attribute

managed_policy_arns: NotRequired[ManagedPolicyList]

A list of managed policy ARNs that apply to the vended session credentials.

name instance-attribute

The name of the profile.

require_instance_properties instance-attribute

require_instance_properties: NotRequired[bool]

Unused, saved for future use. Will likely specify whether instance properties are required in temporary credential requests with this profile.

role_arns instance-attribute

role_arns: RoleArnList

A list of IAM roles that this profile can assume in a temporary credential request.

session_policy instance-attribute

session_policy: NotRequired[str]

A session policy that applies to the trust boundary of the vended session credentials.

tags instance-attribute

tags: NotRequired[TagList]

The tags to attach to the profile.

tip_configuration instance-attribute

tip_configuration: NotRequired[TipConfiguration]

The trusted identity propagation (TIP) settings for the profile. When you enable TIP, sessions from the profile include the identity from the certificate in aws:OriginIdentity condition keys.

If you omit this parameter, the profile doesn't use TIP.