Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (62 sloc) 11.6 KB

Actions, Resources, and Condition Keys for Amazon SageMaker

Amazon SageMaker (service prefix: sagemaker) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.

References:

Topics

Actions Defined by Amazon SageMaker

You can specify the following actions in the Action element of an IAM policy statement. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.

The Resource column indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") in the Resource element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. Required resources are indicated in the table with an asterisk (*). If you specify a resource-level permission ARN in a statement using this action, then it must be of this type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one but not the other.

For details about the columns in the following table, see The Actions Table.


[See the AWS documentation website for more details]

Resources Defined by Amazon SageMaker

The following resource types are defined by this service and can be used in the Resource element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the table. For details about the columns in the following table, see The Resource Types Table.


Resource Types ARN Condition Keys
labeling-job arn:${Partition}:sagemaker:${Region}:${Account}:labeling-job/${LabelingJobName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
workteam arn:${Partition}:sagemaker:${Region}:${Account}:workteam/${WorkteamName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
notebook-instance arn:${Partition}:sagemaker:${Region}:${Account}:notebook-instance/${NotebookInstanceName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
notebook-instance-lifecycle-config arn:${Partition}:sagemaker:${Region}:${Account}:notebook-instance-lifecycle-config/${NotebookInstanceLifecycleConfigName}
code-repository arn:${Partition}:sagemaker:${Region}:${Account}:code-repository/${CodeRepositoryName}
algorithm arn:${Partition}:sagemaker:${Region}:${Account}:algorithm/${AlgorithmName}
training-job arn:${Partition}:sagemaker:${Region}:${Account}:training-job/${TrainingJobName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
hyper-parameter-tuning-job arn:${Partition}:sagemaker:${Region}:${Account}:hyper-parameter-tuning-job/${HyperParameterTuningJobName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
model-package arn:${Partition}:sagemaker:${Region}:${Account}:model-package/${ModelPackageName}
model arn:${Partition}:sagemaker:${Region}:${Account}:model/${ModelName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
endpoint-config arn:${Partition}:sagemaker:${Region}:${Account}:endpoint-config/${EndpointConfigName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
endpoint arn:${Partition}:sagemaker:${Region}:${Account}:endpoint/${EndpointName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
transform-job arn:${Partition}:sagemaker:${Region}:${Account}:transform-job/${TransformJobName} aws:ResourceTag/${TagKey} sagemaker:ResourceTag/${TagKey}
compilation-job arn:${Partition}:sagemaker:${Region}:${Account}:compilation-job/${CompilationJobName}

Condition Keys for Amazon SageMaker

Amazon SageMaker defines the following condition keys that can be used in the Condition element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see The Condition Keys Table.

To view the global condition keys that are available to all services, see Available Global Condition Keys in the IAM Policy Reference.


Condition Keys Description Type
aws:RequestTag/${TagKey} A key that is present in the request the user makes to the SageMaker service. String
aws:ResourceTag/${TagKey} A tag key and value pair. String
aws:TagKeys The list of all the tag key names associated with the resource in the request. String
sagemaker:AcceleratorTypes The list of all accelerator types associated with the resource in the request. ArrayOfString
sagemaker:DirectInternetAccess The direct internet access associated with the resource in the request. String
sagemaker:FileSystemAccessMode File system access mode associated with the resource in the request. String
sagemaker:FileSystemDirectoryPath File system directory path associated with the resource in the request. String
sagemaker:FileSystemId A file system ID associated with the resource in the request. String
sagemaker:FileSystemType File system type associated with the resource in the request. String
sagemaker:InstanceTypes The list of all instance types associated with the resource in the request. ArrayOfString
sagemaker:InterContainerTrafficEncryption The inter container traffic encryption associated with the resource in the request. Bool
sagemaker:MaxRuntimeInSeconds The max runtime in seconds associated with the resource in the request. Numeric
sagemaker:ModelArn The model arn associated with the resource in the request. ARN
sagemaker:NetworkIsolation The network isolation associated with the resource in the request. Bool
sagemaker:OutputKmsKey The output kms key associated with the resource in the request. ARN
sagemaker:ResourceTag/ The preface string for a tag key and value pair attached to a resource. String
sagemaker:ResourceTag/${TagKey} A tag key and value pair. String
sagemaker:RootAccess The root access associated with the resource in the request. String
sagemaker:VolumeKmsKey The volume kms key associated with the resource in the request. ARN
sagemaker:VpcSecurityGroupIds The list of all vpc security group ids associated with the resource in the request. ArrayOfString
sagemaker:VpcSubnets The list of all vpc subnets associated with the resource in the request. ArrayOfString
You can’t perform that action at this time.