GetRoleCredentialsRequest
¶
Source code in docs_src/capo_account_access_runtime/types/get_role_credentials_request.py
access_type
instance-attribute
¶
access_type: AccessType
The type of access to request for the role. Specify PROGRAMMATIC_ACCESS to receive access key credentials for use with the CLI or an Amazon Web Services SDK.
role_arn
instance-attribute
¶
role_arn: str
The Amazon Resource Name (ARN) of the role to retrieve credentials for. You must be entitled to assume this role.
session_duration
instance-attribute
¶
session_duration: NotRequired[int]
The duration, in seconds, that the returned credentials remain valid. If you don't specify a value, the service uses the default session duration. The maximum value can't exceed the maximum session duration configured for the role.
session_name
instance-attribute
¶
session_name: NotRequired[SessionName]
An optional name for the role session. The name can be 2 to 64 characters and can contain alphanumeric characters and the following symbols: plus (+), equal (=), comma (,), period (.), at (@), and hyphen (-). The session name appears in CloudTrail logs for the assumed role session.