async fn put_model_package_group_policy(
        &self,
        input: PutModelPackageGroupPolicyInput,
    ) -> Result<PutModelPackageGroupPolicyOutput, RusotoError<PutModelPackageGroupPolicyError>>
    {
        let mut request = self.new_signed_request("POST", "/");
        request.add_header("x-amz-target", "SageMaker.PutModelPackageGroupPolicy");
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));

        let response = self
            .sign_and_dispatch(request, PutModelPackageGroupPolicyError::from_response)
            .await?;
        let mut response = response;
        let response = response.buffer().await.map_err(RusotoError::HttpDispatch)?;
        proto::json::ResponsePayload::new(&response)
            .deserialize::<PutModelPackageGroupPolicyOutput, _>()
    }
<p>Adds a resouce policy to control access to a model group. For information about resoure policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html">Identity-based policies and resource-based policies</a> in the <i>AWS Identity and Access Management User Guide.</i>.</p>
rusoto/services/sagemaker/src/generated.rs