SageMaker / Client / put_model_package_group_policy
put_model_package_group_policy#
- 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 in the Amazon Web Services Identity and Access Management User Guide..
See also: AWS API Documentation
Request Syntax
response = client.put_model_package_group_policy( ModelPackageGroupName='string', ResourcePolicy='string' )
- Parameters:
ModelPackageGroupName (string) –
[REQUIRED]
The name of the model group to add a resource policy to.
ResourcePolicy (string) –
[REQUIRED]
The resource policy for the model group.
- Return type:
dict
- Returns:
Response Syntax
{ 'ModelPackageGroupArn': 'string' }
Response Structure
(dict) –
ModelPackageGroupArn (string) –
The Amazon Resource Name (ARN) of the model package group.
Exceptions