:doc:`SageMaker <../../sagemaker>` / Client / put_model_package_group_policy

******************************
put_model_package_group_policy
******************************



.. py:method:: SageMaker.Client.put_model_package_group_policy(**kwargs)

  

  Adds a resouce policy to control access to a model group. For information about resoure policies, see `Identity-based policies and resource-based policies <https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html>`__ in the *Amazon Web Services Identity and Access Management User Guide.*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/PutModelPackageGroupPolicy>`_  


  **Request Syntax**
  ::

    response = client.put_model_package_group_policy(
        ModelPackageGroupName='string',
        ResourcePolicy='string'
    )
    
  :type ModelPackageGroupName: string
  :param ModelPackageGroupName: **[REQUIRED]** 

    The name of the model group to add a resource policy to.

    

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

    The resource policy for the model group.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ModelPackageGroupArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ModelPackageGroupArn** *(string) --* 

        The Amazon Resource Name (ARN) of the model package group.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ConflictException`

  