SSOAdmin / Client / provision_permission_set

provision_permission_set#

SSOAdmin.Client.provision_permission_set(**kwargs)#

The process by which a specified permission set is provisioned to the specified target.

See also: AWS API Documentation

Request Syntax

response = client.provision_permission_set(
    InstanceArn='string',
    PermissionSetArn='string',
    TargetId='string',
    TargetType='AWS_ACCOUNT'|'ALL_PROVISIONED_ACCOUNTS'
)
Parameters:
  • InstanceArn (string) –

    [REQUIRED]

    The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

  • PermissionSetArn (string) –

    [REQUIRED]

    The ARN of the permission set.

  • TargetId (string) – TargetID is an AWS account identifier, typically a 10-12 digit string (For example, 123456789012).

  • TargetType (string) –

    [REQUIRED]

    The entity type for which the assignment will be created.

Return type:

dict

Returns:

Response Syntax

{
    'PermissionSetProvisioningStatus': {
        'Status': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED',
        'RequestId': 'string',
        'AccountId': 'string',
        'PermissionSetArn': 'string',
        'FailureReason': 'string',
        'CreatedDate': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) –

    • PermissionSetProvisioningStatus (dict) –

      The status object for the permission set provisioning operation.

      • Status (string) –

        The status of the permission set provisioning process.

      • RequestId (string) –

        The identifier for tracking the request operation that is generated by the universally unique identifier (UUID) workflow.

      • AccountId (string) –

        The identifier of the AWS account from which to list the assignments.

      • PermissionSetArn (string) –

        The ARN of the permission set that is being provisioned. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

      • FailureReason (string) –

        The message that contains an error or exception in case of an operation failure.

      • CreatedDate (datetime) –

        The date that the permission set was created.

Exceptions

  • SSOAdmin.Client.exceptions.ResourceNotFoundException

  • SSOAdmin.Client.exceptions.InternalServerException

  • SSOAdmin.Client.exceptions.ThrottlingException

  • SSOAdmin.Client.exceptions.ValidationException

  • SSOAdmin.Client.exceptions.AccessDeniedException

  • SSOAdmin.Client.exceptions.ConflictException