

# Actions, resources, and condition keys for Amazon Machine Learning
<a name="list_amazonmachinelearning"></a>

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

References:
+ Learn how to [configure this service](https://docs.aws.amazon.com/machine-learning/latest/dg/).
+ View a list of the [API operations available for this service](https://docs.aws.amazon.com/machine-learning/latest/APIReference/).
+ Learn how to secure this service and its resources by [using IAM](https://docs.aws.amazon.com/machine-learning/latest/dg/controlling-access-to-amazon-ml-resources-by-using-iam.html) permission policies.

**Topics**
+ [Actions defined by Amazon Machine Learning](#amazonmachinelearning-actions-as-permissions)
+ [Resource types defined by Amazon Machine Learning](#amazonmachinelearning-resources-for-iam-policies)
+ [Condition keys for Amazon Machine Learning](#amazonmachinelearning-policy-keys)

## Actions defined by Amazon Machine Learning
<a name="amazonmachinelearning-actions-as-permissions"></a>

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 **Access level** column of the Actions table describes how the action is classified (List, Read, Permissions management, or Tagging). This classification can help you understand the level of access that an action grants when you use it in a policy. For more information about access levels, see [Access levels in policy summaries](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_understand-policy-summary-access-level-summaries.html).

The **Resource types** column of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("\*") to which the policy applies 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. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (\*). If you limit resource access with the `Resource` element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.

The **Condition keys** column of the Actions table includes keys that you can specify in a policy statement's `Condition` element. For more information on the condition keys that are associated with resources for the service, see the **Condition keys** column of the Resource types table.

The **Dependent actions** column of the Actions table shows additional permissions that may be required to successfully call an action. These permissions may be needed in addition to the permission for the action itself. When an action specifies dependent actions, those dependencies may apply to additional resources defined for that action, not only the first resource listed in the table.

**Note**  
Resource condition keys are listed in the [Resource types](#amazonmachinelearning-resources-for-iam-policies) table. You can find a link to the resource type that applies to an action in the **Resource types (\*required)** column of the Actions table. The resource type in the Resource types table includes the **Condition keys** column, which are the resource condition keys that apply to an action in the Actions table.

For details about the columns in the following table, see [Actions table](reference_policies_actions-resources-contextkeys.html#actions_table).


****  


- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_AddTags.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_AddTags.html) **
  - **Description:** Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key and an optional value
  - **Access level:** Tagging
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-evaluation](#amazonmachinelearning-evaluation)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateBatchPrediction.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateBatchPrediction.html) **
  - **Description:** Generates predictions for a group of observations
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateDataSourceFromRDS.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateDataSourceFromRDS.html) **
  - **Description:** Creates a DataSource object from an Amazon RDS
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateDataSourceFromRedshift.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateDataSourceFromRedshift.html) **
  - **Description:** Creates a DataSource from a database hosted on an Amazon Redshift cluster
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateDataSourceFromS3.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateDataSourceFromS3.html) **
  - **Description:** Creates a DataSource object from S3
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateEvaluation.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateEvaluation.html) **
  - **Description:** Creates a new Evaluation of an MLModel
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-evaluation](#amazonmachinelearning-evaluation)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateMLModel.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateMLModel.html) **
  - **Description:** Creates a new MLModel
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateRealtimeEndpoint.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_CreateRealtimeEndpoint.html) **
  - **Description:** Creates a real-time endpoint for the MLModel
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteBatchPrediction.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteBatchPrediction.html) **
  - **Description:** Assigns the DELETED status to a BatchPrediction, rendering it unusable
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteDataSource.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteDataSource.html) **
  - **Description:** Assigns the DELETED status to a DataSource, rendering it unusable
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteEvaluation.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteEvaluation.html) **
  - **Description:** Assigns the DELETED status to an Evaluation, rendering it unusable
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-evaluation](#amazonmachinelearning-evaluation) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteMLModel.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteMLModel.html) **
  - **Description:** Assigns the DELETED status to an MLModel, rendering it unusable
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteRealtimeEndpoint.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteRealtimeEndpoint.html) **
  - **Description:** Deletes a real time endpoint of an MLModel
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteTags.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DeleteTags.html) **
  - **Description:** Deletes the specified tags associated with an ML object. After this operation is complete, you can't recover deleted tags
  - **Access level:** Tagging
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-evaluation](#amazonmachinelearning-evaluation)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeBatchPredictions.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeBatchPredictions.html) **
  - **Description:** Returns a list of BatchPrediction operations that match the search criteria in the request
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeDataSources.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeDataSources.html) **
  - **Description:** Returns a list of DataSource that match the search criteria in the request
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeEvaluations.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeEvaluations.html) **
  - **Description:** Returns a list of DescribeEvaluations that match the search criteria in the request
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeMLModels.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeMLModels.html) **
  - **Description:** Returns a list of MLModel that match the search criteria in the request
  - **Access level:** List
  - **Resource types (\*required):** 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeTags.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_DescribeTags.html) **
  - **Description:** Describes one or more of the tags for your Amazon ML object
  - **Access level:** List
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-evaluation](#amazonmachinelearning-evaluation)  / **Condition keys:**  / **Dependent actions:** 
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel)  / **Condition keys:**  / **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetBatchPrediction.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetBatchPrediction.html) **
  - **Description:** Returns a BatchPrediction that includes detailed metadata, status, and data file information
  - **Access level:** Read
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetDataSource.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetDataSource.html) **
  - **Description:** Returns a DataSource that includes metadata and data file information, as well as the current status of the DataSource
  - **Access level:** Read
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetEvaluation.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetEvaluation.html) **
  - **Description:** Returns an Evaluation that includes metadata as well as the current status of the Evaluation
  - **Access level:** Read
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetMLModel.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_GetMLModel.html) **
  - **Description:** Returns an MLModel that includes detailed metadata, and data source information as well as the current status of the MLModel
  - **Access level:** Read
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_Predict.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_Predict.html) **
  - **Description:** Generates a prediction for the observation using the specified ML Model
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateBatchPrediction.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateBatchPrediction.html) **
  - **Description:** Updates the BatchPredictionName of a BatchPrediction
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-batchprediction](#amazonmachinelearning-batchprediction) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateDataSource.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateDataSource.html) **
  - **Description:** Updates the DataSourceName of a DataSource
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-datasource](#amazonmachinelearning-datasource) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateEvaluation.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateEvaluation.html) **
  - **Description:** Updates the EvaluationName of an Evaluation
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-evaluation](#amazonmachinelearning-evaluation) 
  - **Condition keys:** 
  - **Dependent actions:** 

- **  [https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateMLModel.html](https://docs.aws.amazon.com/machine-learning/latest/APIReference/API_UpdateMLModel.html) **
  - **Description:** Updates the MLModelName and the ScoreThreshold of an MLModel
  - **Access level:** Write
  - **Resource types (\*required):**  [#amazonmachinelearning-mlmodel](#amazonmachinelearning-mlmodel) 
  - **Condition keys:** 
  - **Dependent actions:** 



## Resource types defined by Amazon Machine Learning
<a name="amazonmachinelearning-resources-for-iam-policies"></a>

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](#amazonmachinelearning-actions-as-permissions) 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 Resource types table. For details about the columns in the following table, see [Resource types table](reference_policies_actions-resources-contextkeys.html#resources_table).


****  

| Resource types | ARN | Condition keys | 
| --- | --- | --- | 
|   [https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#batch-predictions](https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#batch-predictions)  |  arn:${Partition}:machinelearning:${Region}:${Account}:batchprediction/${BatchPredictionId}  |  | 
|   [https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#datasources](https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#datasources)  |  arn:${Partition}:machinelearning:${Region}:${Account}:datasource/${DatasourceId}  |  | 
|   [https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#evaluations](https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#evaluations)  |  arn:${Partition}:machinelearning:${Region}:${Account}:evaluation/${EvaluationId}  |  | 
|   [https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#ml-models](https://docs.aws.amazon.com/machine-learning/latest/dg/amazon-machine-learning-key-concepts.html#ml-models)  |  arn:${Partition}:machinelearning:${Region}:${Account}:mlmodel/${MlModelId}  |  | 

## Condition keys for Amazon Machine Learning
<a name="amazonmachinelearning-policy-keys"></a>

Machine Learning has no service-specific context keys that can be used in the `Condition` element of policy statements. For the list of the global context keys that are available to all services, see [AWS global condition context keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html).