From f4f5642baecad8c5762f02345d911fa08a395ee6 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sun, 29 May 2022 20:46:05 +0000 Subject: [PATCH] Prep release 3.1.11 (#5178) --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ IMPLEMENTATION_COVERAGE.md | 9 ++++++++- docs/docs/services/ec2.rst | 8 +++++++- docs/docs/services/forecast.rst | 6 ++++++ moto/ec2/models/instances.py | 8 +++++++- 5 files changed, 56 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 78795824f..31b407517 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,34 @@ Moto Changelog ============== +3.1.11 +----- +Docker Digest for 3.1.11: + + New Methods: + * GuardDuty: + * create_filter() + * delete_detector() + * delete_filter() + * enable_organization_admin_account() + * get_detector() + * get_filter() + * list_organization_admin_accounts() + * update_detector() + * update_filter() + * KMS: + * create_grant() + * list_grants() + * list_retirable_grants() + * retire_grant() + * revoke_grant() + + Miscellaneous: + * EC2:describe_network_acls() now supports the `entry.egress`-filter + * EC2:run_instances() now supports validation for the KeyPair-parameter. This is disabled by default - set MOTO_ENABLE_KEYPAIR_VALIDATION to true to enable this. + * EC2:run_instances() now supports validation for the ImageId-parameter. This is disabled by default - set MOTO_ENABLE_AMI_VALIDATION to true to enable this. + + 3.1.10 ----- Docker Digest for 3.1.10: _sha256:18c6367dbb843850a5b52bc2b74cde9fd2a03719da667aa01b7c80de26849fb6_ diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index 68fe2688b..6d6449ab4 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -2573,7 +2573,7 @@ ## forecast
-11% implemented +9% implemented - [ ] create_auto_predictor - [ ] create_dataset @@ -2583,6 +2583,7 @@ - [ ] create_explainability_export - [ ] create_forecast - [ ] create_forecast_export_job +- [ ] create_monitor - [ ] create_predictor - [ ] create_predictor_backtest_export_job - [ ] delete_dataset @@ -2592,6 +2593,7 @@ - [ ] delete_explainability_export - [ ] delete_forecast - [ ] delete_forecast_export_job +- [ ] delete_monitor - [ ] delete_predictor - [ ] delete_predictor_backtest_export_job - [ ] delete_resource_tree @@ -2603,6 +2605,7 @@ - [ ] describe_explainability_export - [ ] describe_forecast - [ ] describe_forecast_export_job +- [ ] describe_monitor - [ ] describe_predictor - [ ] describe_predictor_backtest_export_job - [ ] get_accuracy_metrics @@ -2613,9 +2616,12 @@ - [ ] list_explainability_exports - [ ] list_forecast_export_jobs - [ ] list_forecasts +- [ ] list_monitor_evaluations +- [ ] list_monitors - [ ] list_predictor_backtest_export_jobs - [ ] list_predictors - [ ] list_tags_for_resource +- [ ] resume_resource - [ ] stop_resource - [ ] tag_resource - [ ] untag_resource @@ -5892,6 +5898,7 @@ - drs - ecr-public - elastic-inference +- emr-serverless - evidently - finspace - finspace-data diff --git a/docs/docs/services/ec2.rst b/docs/docs/services/ec2.rst index 0cf688f81..060ae770d 100644 --- a/docs/docs/services/ec2.rst +++ b/docs/docs/services/ec2.rst @@ -567,7 +567,13 @@ ec2 The Placement-parameter is validated to verify the availability-zone exists for the current region. The InstanceType-parameter can be validated, to see if it is a known instance-type. - This validation can be enabled by setting the environment variable `MOTO_EC2_ENABLE_INSTANCE_TYPE_VALIDATION=true` + Enable this validation by setting the environment variable `MOTO_EC2_ENABLE_INSTANCE_TYPE_VALIDATION=true` + + The ImageId-parameter can be validated, to see if it is a known AMI. + Enable this validation by setting the environment variable `MOTO_ENABLE_AMI_VALIDATION=true` + + The KeyPair-parameter can be validated, to see if it is a known key-pair. + Enable this validation by setting the environment variable `MOTO_ENABLE_KEYPAIR_VALIDATION=true` - [ ] run_scheduled_instances diff --git a/docs/docs/services/forecast.rst b/docs/docs/services/forecast.rst index c8423e321..85edd95cf 100644 --- a/docs/docs/services/forecast.rst +++ b/docs/docs/services/forecast.rst @@ -33,6 +33,7 @@ forecast - [ ] create_explainability_export - [ ] create_forecast - [ ] create_forecast_export_job +- [ ] create_monitor - [ ] create_predictor - [ ] create_predictor_backtest_export_job - [ ] delete_dataset @@ -42,6 +43,7 @@ forecast - [ ] delete_explainability_export - [ ] delete_forecast - [ ] delete_forecast_export_job +- [ ] delete_monitor - [ ] delete_predictor - [ ] delete_predictor_backtest_export_job - [ ] delete_resource_tree @@ -53,6 +55,7 @@ forecast - [ ] describe_explainability_export - [ ] describe_forecast - [ ] describe_forecast_export_job +- [ ] describe_monitor - [ ] describe_predictor - [ ] describe_predictor_backtest_export_job - [ ] get_accuracy_metrics @@ -63,9 +66,12 @@ forecast - [ ] list_explainability_exports - [ ] list_forecast_export_jobs - [ ] list_forecasts +- [ ] list_monitor_evaluations +- [ ] list_monitors - [ ] list_predictor_backtest_export_jobs - [ ] list_predictors - [ ] list_tags_for_resource +- [ ] resume_resource - [ ] stop_resource - [ ] tag_resource - [ ] untag_resource diff --git a/moto/ec2/models/instances.py b/moto/ec2/models/instances.py index c3745523b..2068903fe 100644 --- a/moto/ec2/models/instances.py +++ b/moto/ec2/models/instances.py @@ -660,7 +660,13 @@ class InstanceBackend(object): The Placement-parameter is validated to verify the availability-zone exists for the current region. The InstanceType-parameter can be validated, to see if it is a known instance-type. - This validation can be enabled by setting the environment variable `MOTO_EC2_ENABLE_INSTANCE_TYPE_VALIDATION=true` + Enable this validation by setting the environment variable `MOTO_EC2_ENABLE_INSTANCE_TYPE_VALIDATION=true` + + The ImageId-parameter can be validated, to see if it is a known AMI. + Enable this validation by setting the environment variable `MOTO_ENABLE_AMI_VALIDATION=true` + + The KeyPair-parameter can be validated, to see if it is a known key-pair. + Enable this validation by setting the environment variable `MOTO_ENABLE_KEYPAIR_VALIDATION=true` """ # Logic resides in add_instances # Fake method here to make implementation coverage script aware that this method is implemented