:doc:`SSOAdmin <../../sso-admin>` / Client / provision_permission_set

************************
provision_permission_set
************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/sso-admin-2020-07-20/ProvisionPermissionSet>`_  


  **Request Syntax**
  ::

    response = client.provision_permission_set(
        InstanceArn='string',
        PermissionSetArn='string',
        TargetId='string',
        TargetType='AWS_ACCOUNT'|'ALL_PROVISIONED_ACCOUNTS'
    )
    
  :type InstanceArn: string
  :param InstanceArn: **[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 Amazon Web Services Service Namespaces </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

    

  
  :type PermissionSetArn: string
  :param PermissionSetArn: **[REQUIRED]** 

    The ARN of the permission set.

    

  
  :type TargetId: string
  :param TargetId: 

    TargetID is an Amazon Web Services account identifier, (For example, 123456789012).

    

  
  :type TargetType: string
  :param TargetType: **[REQUIRED]** 

    The entity type for which the assignment will be created.

    

  
  
  :rtype: 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 Amazon Web Services 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 Amazon Web Services Service Namespaces </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services 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**
  
  *   :py:class:`SSOAdmin.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.InternalServerException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ValidationException`

  
  *   :py:class:`SSOAdmin.Client.exceptions.ConflictException`

  