Actions, resources, and condition keys for Amazon Machine Learning
Amazon Machine Learning (service prefix: machinelearning) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Machine Learning
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AddTags |
Tagging, Write |
|||
|
CreateBatchPrediction |
Write |
|||
|
CreateDataSourceFromS3 |
Write |
|||
|
CreateEvaluation |
Write |
|||
|
CreateMLModel |
Write |
|||
|
CreateRealtimeEndpoint |
Write |
|||
|
DeleteBatchPrediction |
Write |
|||
|
DeleteDataSource |
Write |
|||
|
DeleteEvaluation |
Write |
|||
|
DeleteMLModel |
Write |
|||
|
DeleteRealtimeEndpoint |
Write |
|||
|
DescribeBatchPredictions |
List |
|||
|
DescribeDataSources |
List |
|||
|
DescribeEvaluations |
List |
|||
|
DescribeMLModels |
List |
|||
|
DescribeTags |
List |
|||
|
GetBatchPrediction |
Read |
|||
|
GetDataSource |
Read |
|||
|
GetEvaluation |
Read |
|||
|
GetMLModel |
Read |
|||
|
Predict |
Write |
Actions defined by Amazon Machine Learning
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.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Adds one or more tags to an object, up to a limit of 10. Each tag consists of a key and an optional value |
Tagging, Write |
|||
Generates predictions for a group of observations |
Write |
|||
Creates a DataSource object from an Amazon RDS |
Write |
|||
Creates a DataSource from a database hosted on an Amazon Redshift cluster |
Write |
|||
Creates a DataSource object from S3 |
Write |
|||
Creates a new Evaluation of an MLModel |
Write |
|||
Creates a new MLModel |
Write |
|||
Creates a real-time endpoint for the MLModel |
Write |
|||
Assigns the DELETED status to a BatchPrediction, rendering it unusable |
Write |
|||
Assigns the DELETED status to a DataSource, rendering it unusable |
Write |
|||
Assigns the DELETED status to an Evaluation, rendering it unusable |
Write |
|||
Assigns the DELETED status to an MLModel, rendering it unusable |
Write |
|||
Deletes a real time endpoint of an MLModel |
Write |
|||
Deletes the specified tags associated with an ML object. After this operation is complete, you can't recover deleted tags |
Tagging, Write |
|||
Returns a list of BatchPrediction operations that match the search criteria in the request |
List |
|||
Returns a list of DataSource that match the search criteria in the request |
List |
|||
Returns a list of DescribeEvaluations that match the search criteria in the request |
List |
|||
Returns a list of MLModel that match the search criteria in the request |
List |
|||
Describes one or more of the tags for your Amazon ML object |
List |
|||
Returns a BatchPrediction that includes detailed metadata, status, and data file information |
Read |
|||
Returns a DataSource that includes metadata and data file information, as well as the current status of the DataSource |
Read |
|||
Returns an Evaluation that includes metadata as well as the current status of the Evaluation |
Read |
|||
Returns an MLModel that includes detailed metadata, and data source information as well as the current status of the MLModel |
Read |
|||
Generates a prediction for the observation using the specified ML Model |
Write |
|||
Updates the BatchPredictionName of a BatchPrediction |
Write |
|||
Updates the DataSourceName of a DataSource |
Write |
|||
Updates the EvaluationName of an Evaluation |
Write |
|||
Updates the MLModelName and the ScoreThreshold of an MLModel |
Write |
Resource types defined by Amazon Machine Learning
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:machinelearning:${Region}:${Account}:batchprediction/${BatchPredictionId} |
||
arn:${Partition}:machinelearning:${Region}:${Account}:datasource/${DatasourceId} |
||
arn:${Partition}:machinelearning:${Region}:${Account}:evaluation/${EvaluationId} |
||
arn:${Partition}:machinelearning:${Region}:${Account}:mlmodel/${MlModelId} |
Condition keys for Amazon Machine Learning
Amazon Machine Learning has no service-specific condition keys that can be used in the
Condition element of policy statements.