Skip to content

Put Model Package Group Policy

sagemaker_put_model_package_group_policy R Documentation

Adds a resouce policy to control access to a model group

Description

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..

Usage

sagemaker_put_model_package_group_policy(ModelPackageGroupName,
  ResourcePolicy)

Arguments

ModelPackageGroupName

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

ResourcePolicy

[required] The resource policy for the model group.

Value

A list with the following syntax:

list(
  ModelPackageGroupArn = "string"
)

Request syntax

svc$put_model_package_group_policy(
  ModelPackageGroupName = "string",
  ResourcePolicy = "string"
)