disable_profile
(**kwargs)¶Disables a profile. When disabled, CreateSession requests with this profile fail.
Required permissions:rolesanywhere:DisableProfile
.
See also: AWS API Documentation
Request Syntax
response = client.disable_profile(
profileId='string'
)
[REQUIRED]
The unique identifier of the profile.
{
'profile': {
'createdAt': datetime(2015, 1, 1),
'createdBy': 'string',
'durationSeconds': 123,
'enabled': True|False,
'managedPolicyArns': [
'string',
],
'name': 'string',
'profileArn': 'string',
'profileId': 'string',
'requireInstanceProperties': True|False,
'roleArns': [
'string',
],
'sessionPolicy': 'string',
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
The state of the profile after a read or write operation.
The ISO-8601 timestamp when the profile was created.
The Amazon Web Services account that created the profile.
The number of seconds the vended session credentials are valid for.
Indicates whether the profile is enabled.
A list of managed policy ARNs that apply to the vended session credentials.
The name of the profile.
The ARN of the profile.
The unique identifier of the profile.
Specifies whether instance properties are required in CreateSession requests with this profile.
A list of IAM roles that this profile can assume in a CreateSession operation.
A session policy that applies to the trust boundary of the vended session credentials.
The ISO-8601 timestamp when the profile was last updated.
Exceptions
IAMRolesAnywhere.Client.exceptions.ResourceNotFoundException
IAMRolesAnywhere.Client.exceptions.AccessDeniedException