Introduce mock_aws() (#7194)
This commit is contained in:
parent
416ca0c5be
commit
a7f3b367b4
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [3.9, "3.10", "3.11", "3.12"]
|
||||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
|
1
.github/workflows/dockertests.yml
vendored
1
.github/workflows/dockertests.yml
vendored
@ -203,6 +203,7 @@ jobs:
|
||||
pwd
|
||||
ls -la
|
||||
cp server_output.log serverlogs3/server_output.log
|
||||
ls -la serverlogs3
|
||||
- name: Archive Logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
|
@ -32,4 +32,6 @@ The following is a non-exhaustive list of the environment variables that can be
|
||||
+-------------------------------+----------+-----------+-------------------------------------------------------------------------------------------------+
|
||||
| MOTO_S3_CUSTOM_ENDPOINTS | str | | See :ref:`s3`. |
|
||||
+-------------------------------+----------+-----------+-------------------------------------------------------------------------------------------------+
|
||||
| MOTO_PRETTIFY_RESPONSES | bool | False | Prettify responses from Moto, making it easier to read and debug. |
|
||||
+-------------------------------+----------+-----------+-------------------------------------------------------------------------------------------------+
|
||||
|
||||
|
@ -6,13 +6,21 @@ Configuration Options
|
||||
|
||||
Moto has a variety of ways to configure the mock behaviour.
|
||||
|
||||
If you are using the decorators, some options are configurable within the decorator:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_aws(config={
|
||||
"batch": {"use_docker": True},
|
||||
"lambda": {"use_docker": True}
|
||||
})
|
||||
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
environment_variables
|
||||
recorder/index
|
||||
prettify_responses
|
||||
state_transition/index
|
||||
state_transition/models
|
||||
|
||||
|
@ -1,38 +0,0 @@
|
||||
.. _prettify_responses_page:
|
||||
|
||||
.. role:: raw-html(raw)
|
||||
:format: html
|
||||
|
||||
=============================
|
||||
Prettify responses
|
||||
=============================
|
||||
|
||||
This option allows to prettify responses from moto. Pretty responses are more readable (eg. for debugging purposes).
|
||||
It also makes moto better in mocking AWS as AWS returns prettified responses.
|
||||
|
||||
Ugly output:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
<DeleteLaunchTemplatesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"><requestId>178936da-50ad-4d58-8871-22d9979e8658example</requestId><launchTemplate><defaultVersionNumber>1</defaultVersionNumber><launchTemplateId>lt-d920e32b0cccd6adb</launchTemplateId><launchTemplateName>example-name</launchTemplateName></launchTemplate></DeleteLaunchTemplatesResponse>
|
||||
|
||||
Prettified output:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
<DeleteLaunchTemplatesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/">
|
||||
<requestId>178936da-50ad-4d58-8871-22d9979e8658example</requestId>
|
||||
<launchTemplate>
|
||||
<defaultVersionNumber>1</defaultVersionNumber>
|
||||
<launchTemplateId>lt-d920e32b0cccd6adb</launchTemplateId>
|
||||
<launchTemplateName>example-name</launchTemplateName>
|
||||
</launchTemplate>
|
||||
</DeleteLaunchTemplatesResponse>
|
||||
|
||||
|
||||
Enabling Pretty responses
|
||||
#########################
|
||||
|
||||
As changing responses can interfere with some external tools, it is disabled by default.
|
||||
If you want to enable it, use environment variable:
|
||||
`MOTO_PRETTIFY_RESPONSES=True`
|
@ -45,31 +45,3 @@ This means the following:
|
||||
|
||||
- Make sure you use unique names for functions/queues/etc
|
||||
- Calls to `describe_reservations()`/`list_queues()`/etc might return resources from other tests
|
||||
|
||||
|
||||
Terraform tests
|
||||
^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
To verify that Moto behaves correctly, we run a subset of Terraform's tests against the MotoServer to ensure it behaves the same as AWS does.
|
||||
|
||||
These tests will be run automatically for every PR, so you should not need to make any changes here.
|
||||
|
||||
A list of which tests currently pass against Moto can be found in `tests/terraformtests/terraform-tests.success.txt`.
|
||||
|
||||
Use the following commands to see the full list of available tests:
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
cd tests/terraformtests/terraform-provider-aws
|
||||
# Choose the correct service in the next command - this example will list all tests for the ELB-service
|
||||
go test ./internal/service/elb/ -v -list TestAcc
|
||||
|
||||
In order to check whether MotoServer behaves correctly against a specific test, you can use the following commands:
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
# Ensure you are back in the root-directory
|
||||
# Start the MotoServer on port 4566
|
||||
moto_server -p 4566
|
||||
# Run the new tests
|
||||
make terraformtests SERVICE_NAME=elb TEST_NAMES=NewTestName
|
||||
|
@ -52,15 +52,15 @@ There are several ways to verify that the value will be persisted successfully.
|
||||
Decorator
|
||||
~~~~~~~~~
|
||||
|
||||
With a decorator wrapping, all the calls to S3 are automatically mocked out.
|
||||
With a simple decorator wrapping, all calls to AWS are automatically mocked out.
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
import boto3
|
||||
from moto import mock_s3
|
||||
from moto import mock_aws
|
||||
from mymodule import MyModel
|
||||
|
||||
@mock_s3
|
||||
@mock_aws
|
||||
def test_my_model_save():
|
||||
conn = boto3.resource("s3", region_name="us-east-1")
|
||||
# We need to create the bucket since this is all in Moto's 'virtual' AWS account
|
||||
@ -82,7 +82,7 @@ Same as the Decorator, every call inside the ``with`` statement is mocked out.
|
||||
.. sourcecode:: python
|
||||
|
||||
def test_my_model_save():
|
||||
with mock_s3():
|
||||
with mock_aws():
|
||||
conn = boto3.resource("s3", region_name="us-east-1")
|
||||
conn.create_bucket(Bucket="mybucket")
|
||||
|
||||
@ -102,7 +102,7 @@ You can also start and stop the mocking manually.
|
||||
.. sourcecode:: python
|
||||
|
||||
def test_my_model_save():
|
||||
mock = mock_s3()
|
||||
mock = mock_aws()
|
||||
mock.start()
|
||||
|
||||
conn = boto3.resource("s3", region_name="us-east-1")
|
||||
@ -126,7 +126,7 @@ If you use `unittest`_ to run tests, and you want to use `moto` inside `setUp`,
|
||||
.. sourcecode:: python
|
||||
|
||||
import unittest
|
||||
from moto import mock_s3
|
||||
from moto import mock_aws
|
||||
import boto3
|
||||
|
||||
def func_to_test(bucket_name, key, content):
|
||||
@ -138,8 +138,8 @@ If you use `unittest`_ to run tests, and you want to use `moto` inside `setUp`,
|
||||
|
||||
bucket_name = "test-bucket"
|
||||
def setUp(self):
|
||||
self.mock_s3 = mock_s3()
|
||||
self.mock_s3.start()
|
||||
self.mock_aws = mock_aws()
|
||||
self.mock_aws.start()
|
||||
|
||||
# you can use boto3.client("s3") if you prefer
|
||||
s3 = boto3.resource("s3")
|
||||
@ -147,7 +147,7 @@ If you use `unittest`_ to run tests, and you want to use `moto` inside `setUp`,
|
||||
bucket.create()
|
||||
|
||||
def tearDown(self):
|
||||
self.mock_s3.stop()
|
||||
self.mock_aws.stop()
|
||||
|
||||
def test(self):
|
||||
content = b"abc"
|
||||
@ -171,7 +171,7 @@ The decorator is effective for every test-method inside your class. State is not
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_s3
|
||||
@mock_aws
|
||||
class TestMockClassLevel(unittest.TestCase):
|
||||
def setUp(self):
|
||||
s3 = boto3.client("s3", region_name="us-east-1")
|
||||
@ -195,14 +195,13 @@ The decorator is effective for every test-method inside your class. State is not
|
||||
Stand-alone server mode
|
||||
~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Moto also comes with a stand-alone server allowing you to mock out an AWS HTTP endpoint. For testing purposes, it's extremely useful even if you don't use Python.
|
||||
Moto also comes with a stand-alone server allowing you to mock out the AWS HTTP endpoints. This is useful if you are using any other language than Python.
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
$ moto_server -p3000
|
||||
* Running on http://127.0.0.1:3000/
|
||||
|
||||
However, this method isn't encouraged if you're using ``boto3``, the best solution would be to use a decorator method.
|
||||
See :doc:`server_mode` for more information.
|
||||
|
||||
Recommended Usage
|
||||
@ -250,19 +249,19 @@ Here is an example:
|
||||
os.environ["AWS_DEFAULT_REGION"] = "us-east-1"
|
||||
|
||||
@pytest.fixture(scope="function")
|
||||
def s3(aws_credentials):
|
||||
with mock_s3():
|
||||
def aws(aws_credentials):
|
||||
with mock_aws():
|
||||
yield boto3.client("s3", region_name="us-east-1")
|
||||
|
||||
@pytest.fixture
|
||||
def create_bucket1(s3):
|
||||
def create_bucket1(aws):
|
||||
boto3.client("s3").create_bucket(Bucket="b1")
|
||||
|
||||
@pytest.fixture
|
||||
def create_bucket2(s3):
|
||||
def create_bucket2(aws):
|
||||
boto3.client("s3").create_bucket(Bucket="b2")
|
||||
|
||||
def test_s3_directly(s3):
|
||||
def test_s3_directly(aws):
|
||||
s3.create_bucket(Bucket="somebucket")
|
||||
|
||||
result = s3.list_buckets()
|
||||
@ -303,7 +302,7 @@ Example:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
def test_something(s3):
|
||||
def test_something(aws):
|
||||
# s3 is a fixture defined above that yields a boto3 s3 client.
|
||||
|
||||
from some.package.that.does.something.with.s3 import some_func # <-- Local import for unit test
|
||||
@ -323,7 +322,7 @@ If it is not possible to rearrange imports, we can patch the boto3-client or res
|
||||
outside_client = boto3.client("s3")
|
||||
s3 = boto3.resource("s3")
|
||||
|
||||
@mock_s3
|
||||
@mock_aws
|
||||
def test_mock_works_with_client_or_resource_created_outside():
|
||||
from moto.core import patch_client, patch_resource
|
||||
patch_client(outside_client)
|
||||
|
@ -19,7 +19,7 @@ This is a decorator that works similarly to the environment variable, but the se
|
||||
.. sourcecode:: python
|
||||
|
||||
@set_initial_no_auth_action_count(4)
|
||||
@mock_ec2
|
||||
@mock_aws
|
||||
def test_describe_instances_allowed():
|
||||
policy_document = {
|
||||
"Version": "2012-10-17",
|
||||
|
@ -50,4 +50,9 @@ For Moto 3.x:
|
||||
- ECS ARN's now use the new (long) format by default
|
||||
|
||||
For Moto 4.x:
|
||||
- Removed decorators `mock_dynamodb2` and `mock_rds2` (they were functionally equivalent with `mock_dynamodb` and `mock_rds` since 3.x)
|
||||
- Removed decorators `mock_dynamodb2` and `mock_rds2` (they were functionally equivalent with `mock_dynamodb` and `mock_rds` since 3.x)
|
||||
|
||||
For Moto 5.x:
|
||||
- All decorators have been replaced with `mock_aws`
|
||||
- The `batch_simple` decorator has been replaced with: `@mock_aws(config={"batch": {"use_docker": False}})`
|
||||
- The `awslambda_simple` decorator has been replaced with: `@mock_aws(config={"lambda": {"use_docker": False}})`
|
@ -76,7 +76,7 @@ See the following example:
|
||||
def tearDown(self):
|
||||
self.server.stop()
|
||||
|
||||
@mock_s3
|
||||
@mock_aws
|
||||
def test_load_data_using_decorators(self):
|
||||
server_client = boto3.client("s3", endpoint_url="http://127.0.0.1:5000")
|
||||
server_client.create_bucket(Bucket="test")
|
||||
@ -120,7 +120,7 @@ Example Usage
|
||||
|
||||
To use Moto in your tests, pass the `endpoint_url`-parameter to the SDK of your choice.
|
||||
|
||||
For some SDK's, this can be configured using the environment variable `AWS_ENDPOINT_URL`. See the official AWS documentation: https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html
|
||||
For more recent SDK's, this can be configured using the environment variable `AWS_ENDPOINT_URL`. See the official AWS documentation: https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html
|
||||
|
||||
If your SDK does not support this, here are some code samples to set this parameter the old-fashioned way.
|
||||
|
||||
|
@ -14,17 +14,6 @@ acm-pca
|
||||
|
||||
.. autoclass:: moto.acmpca.models.ACMPCABackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_acmpca
|
||||
def test_acmpca_behaviour:
|
||||
boto3.client("acm-pca")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_certificate_authority
|
||||
|
@ -12,17 +12,6 @@
|
||||
acm
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_acm
|
||||
def test_acm_behaviour:
|
||||
boto3.client("acm")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] add_tags_to_certificate
|
||||
|
@ -14,17 +14,6 @@ amp
|
||||
|
||||
.. autoclass:: moto.amp.models.PrometheusServiceBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_amp
|
||||
def test_amp_behaviour:
|
||||
boto3.client("amp")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_alert_manager_definition
|
||||
|
@ -14,17 +14,6 @@ apigateway
|
||||
|
||||
.. autoclass:: moto.apigateway.models.APIGatewayBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_apigateway
|
||||
def test_apigateway_behaviour:
|
||||
boto3.client("apigateway")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_api_key
|
||||
|
@ -14,17 +14,6 @@ apigatewaymanagementapi
|
||||
|
||||
.. autoclass:: moto.apigatewaymanagementapi.models.ApiGatewayManagementApiBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_apigatewaymanagementapi
|
||||
def test_apigatewaymanagementapi_behaviour:
|
||||
boto3.client("apigatewaymanagementapi")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] delete_connection
|
||||
|
@ -14,17 +14,6 @@ apigatewayv2
|
||||
|
||||
.. autoclass:: moto.apigatewayv2.models.ApiGatewayV2Backend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_apigatewayv2
|
||||
def test_apigatewayv2_behaviour:
|
||||
boto3.client("apigatewayv2")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_api
|
||||
|
@ -14,17 +14,6 @@ appconfig
|
||||
|
||||
.. autoclass:: moto.appconfig.models.AppConfigBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_appconfig
|
||||
def test_appconfig_behaviour:
|
||||
boto3.client("appconfig")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_application
|
||||
|
@ -12,17 +12,6 @@
|
||||
application-autoscaling
|
||||
=======================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_applicationautoscaling
|
||||
def test_applicationautoscaling_behaviour:
|
||||
boto3.client("application-autoscaling")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] delete_scaling_policy
|
||||
|
@ -14,17 +14,6 @@ appsync
|
||||
|
||||
.. autoclass:: moto.appsync.models.AppSyncBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_appsync
|
||||
def test_appsync_behaviour:
|
||||
boto3.client("appsync")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] associate_api
|
||||
|
@ -12,17 +12,6 @@
|
||||
athena
|
||||
======
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_athena
|
||||
def test_athena_behaviour:
|
||||
boto3.client("athena")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] batch_get_named_query
|
||||
|
@ -12,17 +12,6 @@
|
||||
autoscaling
|
||||
===========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_autoscaling
|
||||
def test_autoscaling_behaviour:
|
||||
boto3.client("autoscaling")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] attach_instances
|
||||
|
@ -14,17 +14,6 @@ batch
|
||||
|
||||
.. autoclass:: moto.batch.models.BatchBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_batch
|
||||
def test_batch_behaviour:
|
||||
boto3.client("batch")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] cancel_job
|
||||
|
@ -14,17 +14,6 @@ budgets
|
||||
|
||||
.. autoclass:: moto.budgets.models.BudgetsBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_budgets
|
||||
def test_budgets_behaviour:
|
||||
boto3.client("budgets")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_budget
|
||||
|
@ -14,17 +14,6 @@ ce
|
||||
|
||||
.. autoclass:: moto.ce.models.CostExplorerBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ce
|
||||
def test_ce_behaviour:
|
||||
boto3.client("ce")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_anomaly_monitor
|
||||
|
@ -14,17 +14,6 @@ cloudformation
|
||||
|
||||
.. autoclass:: moto.cloudformation.models.CloudFormationBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_cloudformation
|
||||
def test_cloudformation_behaviour:
|
||||
boto3.client("cloudformation")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] activate_organizations_access
|
||||
|
@ -12,17 +12,6 @@
|
||||
cloudfront
|
||||
==========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_cloudfront
|
||||
def test_cloudfront_behaviour:
|
||||
boto3.client("cloudfront")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] associate_alias
|
||||
|
@ -14,17 +14,6 @@ cloudtrail
|
||||
|
||||
.. autoclass:: moto.cloudtrail.models.CloudTrailBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_cloudtrail
|
||||
def test_cloudtrail_behaviour:
|
||||
boto3.client("cloudtrail")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] add_tags
|
||||
|
@ -12,17 +12,6 @@
|
||||
cloudwatch
|
||||
==========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_cloudwatch
|
||||
def test_cloudwatch_behaviour:
|
||||
boto3.client("cloudwatch")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] delete_alarms
|
||||
|
@ -12,17 +12,6 @@
|
||||
codebuild
|
||||
=========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_codebuild
|
||||
def test_codebuild_behaviour:
|
||||
boto3.client("codebuild")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] batch_delete_builds
|
||||
|
@ -12,17 +12,6 @@
|
||||
codecommit
|
||||
==========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_codecommit
|
||||
def test_codecommit_behaviour:
|
||||
boto3.client("codecommit")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] associate_approval_rule_template_with_repository
|
||||
|
@ -12,17 +12,6 @@
|
||||
codepipeline
|
||||
============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_codepipeline
|
||||
def test_codepipeline_behaviour:
|
||||
boto3.client("codepipeline")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] acknowledge_job
|
||||
|
@ -12,17 +12,6 @@
|
||||
cognito-identity
|
||||
================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_cognitoidentity
|
||||
def test_cognitoidentity_behaviour:
|
||||
boto3.client("cognito-identity")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_identity_pool
|
||||
|
@ -14,17 +14,6 @@ cognito-idp
|
||||
|
||||
.. autoclass:: moto.cognitoidp.models.CognitoIdpBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_cognitoidp
|
||||
def test_cognitoidp_behaviour:
|
||||
boto3.client("cognito-idp")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] add_custom_attributes
|
||||
|
@ -14,17 +14,6 @@ comprehend
|
||||
|
||||
.. autoclass:: moto.comprehend.models.ComprehendBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_comprehend
|
||||
def test_comprehend_behaviour:
|
||||
boto3.client("comprehend")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] batch_detect_dominant_language
|
||||
|
@ -12,17 +12,6 @@
|
||||
config
|
||||
======
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_config
|
||||
def test_config_behaviour:
|
||||
boto3.client("config")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] batch_get_aggregate_resource_config
|
||||
|
@ -12,17 +12,6 @@
|
||||
databrew
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_databrew
|
||||
def test_databrew_behaviour:
|
||||
boto3.client("databrew")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] batch_delete_recipe_version
|
||||
|
@ -12,17 +12,6 @@
|
||||
datapipeline
|
||||
============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_datapipeline
|
||||
def test_datapipeline_behaviour:
|
||||
boto3.client("datapipeline")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] activate_pipeline
|
||||
|
@ -12,17 +12,6 @@
|
||||
datasync
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_datasync
|
||||
def test_datasync_behaviour:
|
||||
boto3.client("datasync")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_storage_system
|
||||
|
@ -12,17 +12,6 @@
|
||||
dax
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_dax
|
||||
def test_dax_behaviour:
|
||||
boto3.client("dax")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_cluster
|
||||
|
@ -12,17 +12,6 @@
|
||||
dms
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_dms
|
||||
def test_dms_behaviour:
|
||||
boto3.client("dms")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_tags_to_resource
|
||||
|
@ -14,17 +14,6 @@ ds
|
||||
|
||||
.. autoclass:: moto.ds.models.DirectoryServiceBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ds
|
||||
def test_ds_behaviour:
|
||||
boto3.client("ds")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_shared_directory
|
||||
|
@ -12,17 +12,6 @@
|
||||
dynamodb
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_dynamodb
|
||||
def test_dynamodb_behaviour:
|
||||
boto3.client("dynamodb")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] batch_execute_statement
|
||||
|
@ -12,17 +12,6 @@
|
||||
dynamodbstreams
|
||||
===============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_dynamodbstreams
|
||||
def test_dynamodbstreams_behaviour:
|
||||
boto3.client("dynamodbstreams")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] describe_stream
|
||||
|
@ -14,17 +14,6 @@ ebs
|
||||
|
||||
.. autoclass:: moto.ebs.models.EBSBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ebs
|
||||
def test_ebs_behaviour:
|
||||
boto3.client("ebs")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] complete_snapshot
|
||||
|
@ -12,17 +12,6 @@
|
||||
ec2-instance-connect
|
||||
====================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ec2instanceconnect
|
||||
def test_ec2instanceconnect_behaviour:
|
||||
boto3.client("ec2-instance-connect")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] send_serial_console_ssh_public_key
|
||||
|
@ -14,17 +14,6 @@ ec2
|
||||
|
||||
.. autoclass:: moto.ec2.models.EC2Backend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ec2
|
||||
def test_ec2_behaviour:
|
||||
boto3.client("ec2")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_address_transfer
|
||||
|
@ -12,17 +12,6 @@
|
||||
ecr
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ecr
|
||||
def test_ecr_behaviour:
|
||||
boto3.client("ecr")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] batch_check_layer_availability
|
||||
|
@ -14,17 +14,6 @@ ecs
|
||||
|
||||
.. autoclass:: moto.ecs.models.EC2ContainerServiceBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ecs
|
||||
def test_ecs_behaviour:
|
||||
boto3.client("ecs")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_capacity_provider
|
||||
|
@ -14,17 +14,6 @@ efs
|
||||
|
||||
.. autoclass:: moto.efs.models.EFSBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_efs
|
||||
def test_efs_behaviour:
|
||||
boto3.client("efs")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_access_point
|
||||
|
@ -12,17 +12,6 @@
|
||||
eks
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_eks
|
||||
def test_eks_behaviour:
|
||||
boto3.client("eks")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] associate_access_policy
|
||||
|
@ -14,17 +14,6 @@ elasticache
|
||||
|
||||
.. autoclass:: moto.elasticache.models.ElastiCacheBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_elasticache
|
||||
def test_elasticache_behaviour:
|
||||
boto3.client("elasticache")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_tags_to_resource
|
||||
|
@ -12,17 +12,6 @@
|
||||
elasticbeanstalk
|
||||
================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_elasticbeanstalk
|
||||
def test_elasticbeanstalk_behaviour:
|
||||
boto3.client("elasticbeanstalk")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] abort_environment_update
|
||||
|
@ -12,17 +12,6 @@
|
||||
elastictranscoder
|
||||
=================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_elastictranscoder
|
||||
def test_elastictranscoder_behaviour:
|
||||
boto3.client("elastictranscoder")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] cancel_job
|
||||
|
@ -12,17 +12,6 @@
|
||||
elb
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_elb
|
||||
def test_elb_behaviour:
|
||||
boto3.client("elb")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_tags
|
||||
|
@ -12,17 +12,6 @@
|
||||
elbv2
|
||||
=====
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_elbv2
|
||||
def test_elbv2_behaviour:
|
||||
boto3.client("elbv2")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] add_listener_certificates
|
||||
|
@ -14,17 +14,6 @@ emr-containers
|
||||
|
||||
.. autoclass:: moto.emrcontainers.models.EMRContainersBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_emrcontainers
|
||||
def test_emrcontainers_behaviour:
|
||||
boto3.client("emr-containers")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] cancel_job_run
|
||||
|
@ -14,17 +14,6 @@ emr-serverless
|
||||
|
||||
.. autoclass:: moto.emrserverless.models.EMRServerlessBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_emrserverless
|
||||
def test_emrserverless_behaviour:
|
||||
boto3.client("emr-serverless")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] cancel_job_run
|
||||
|
@ -12,17 +12,6 @@
|
||||
emr
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_emr
|
||||
def test_emr_behaviour:
|
||||
boto3.client("emr")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_instance_fleet
|
||||
|
@ -14,17 +14,6 @@ es
|
||||
|
||||
.. autoclass:: moto.es.models.ElasticsearchServiceBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_es
|
||||
def test_es_behaviour:
|
||||
boto3.client("es")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_inbound_cross_cluster_search_connection
|
||||
|
@ -14,17 +14,6 @@ events
|
||||
|
||||
.. autoclass:: moto.events.models.EventsBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_events
|
||||
def test_events_behaviour:
|
||||
boto3.client("events")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] activate_event_source
|
||||
|
@ -14,17 +14,6 @@ firehose
|
||||
|
||||
.. autoclass:: moto.firehose.models.FirehoseBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_firehose
|
||||
def test_firehose_behaviour:
|
||||
boto3.client("firehose")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_delivery_stream
|
||||
|
@ -12,17 +12,6 @@
|
||||
forecast
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_forecast
|
||||
def test_forecast_behaviour:
|
||||
boto3.client("forecast")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_auto_predictor
|
||||
|
@ -12,17 +12,6 @@
|
||||
glacier
|
||||
=======
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_glacier
|
||||
def test_glacier_behaviour:
|
||||
boto3.client("glacier")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] abort_multipart_upload
|
||||
|
@ -12,17 +12,6 @@
|
||||
glue
|
||||
====
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_glue
|
||||
def test_glue_behaviour:
|
||||
boto3.client("glue")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] batch_create_partition
|
||||
|
@ -12,17 +12,6 @@
|
||||
greengrass
|
||||
==========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_greengrass
|
||||
def test_greengrass_behaviour:
|
||||
boto3.client("greengrass")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] associate_role_to_group
|
||||
|
@ -12,17 +12,6 @@
|
||||
guardduty
|
||||
=========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_guardduty
|
||||
def test_guardduty_behaviour:
|
||||
boto3.client("guardduty")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_administrator_invitation
|
||||
|
@ -12,17 +12,6 @@
|
||||
iam
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_iam
|
||||
def test_iam_behaviour:
|
||||
boto3.client("iam")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_client_id_to_open_id_connect_provider
|
||||
|
@ -14,17 +14,6 @@ identitystore
|
||||
|
||||
.. autoclass:: moto.identitystore.models.IdentityStoreBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_identitystore
|
||||
def test_identitystore_behaviour:
|
||||
boto3.client("identitystore")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_group
|
||||
|
@ -6,24 +6,6 @@ Implemented Services
|
||||
====================
|
||||
|
||||
Please see a list of all currently supported services. Each service will have a list of the endpoints that are implemented.
|
||||
Each service will also have an example on how to mock an individual service.
|
||||
|
||||
Note that you can mock multiple services at the same time:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_s3
|
||||
@mock_sqs
|
||||
def test_both_s3_and_sqs():
|
||||
...
|
||||
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_all()
|
||||
def test_all_supported_services_at_the_same_time():
|
||||
...
|
||||
|
||||
|
||||
.. toctree::
|
||||
:titlesonly:
|
||||
|
@ -12,17 +12,6 @@
|
||||
inspector2
|
||||
==========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_inspector2
|
||||
def test_inspector2_behaviour:
|
||||
boto3.client("inspector2")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] associate_member
|
||||
|
@ -12,17 +12,6 @@
|
||||
iot-data
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_iotdata
|
||||
def test_iotdata_behaviour:
|
||||
boto3.client("iot-data")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] delete_thing_shadow
|
||||
|
@ -12,17 +12,6 @@
|
||||
iot
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_iot
|
||||
def test_iot_behaviour:
|
||||
boto3.client("iot")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_certificate_transfer
|
||||
|
@ -14,17 +14,6 @@ ivs
|
||||
|
||||
.. autoclass:: moto.ivs.models.IVSBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ivs
|
||||
def test_ivs_behaviour:
|
||||
boto3.client("ivs")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] batch_get_channel
|
||||
|
@ -12,17 +12,6 @@
|
||||
kinesis-video-archived-media
|
||||
============================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_kinesisvideoarchivedmedia
|
||||
def test_kinesisvideoarchivedmedia_behaviour:
|
||||
boto3.client("kinesis-video-archived-media")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] get_clip
|
||||
|
@ -12,17 +12,6 @@
|
||||
kinesis
|
||||
=======
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_kinesis
|
||||
def test_kinesis_behaviour:
|
||||
boto3.client("kinesis")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] add_tags_to_stream
|
||||
|
@ -12,17 +12,6 @@
|
||||
kinesisvideo
|
||||
============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_kinesisvideo
|
||||
def test_kinesisvideo_behaviour:
|
||||
boto3.client("kinesisvideo")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_signaling_channel
|
||||
|
@ -12,17 +12,6 @@
|
||||
kms
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_kms
|
||||
def test_kms_behaviour:
|
||||
boto3.client("kms")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] cancel_key_deletion
|
||||
|
@ -12,17 +12,6 @@
|
||||
lakeformation
|
||||
=============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_lakeformation
|
||||
def test_lakeformation_behaviour:
|
||||
boto3.client("lakeformation")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] add_lf_tags_to_resource
|
||||
|
@ -14,17 +14,6 @@ lambda
|
||||
|
||||
.. autoclass:: moto.awslambda.models.LambdaBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_lambda
|
||||
def test_lambda_behaviour:
|
||||
boto3.client("lambda")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_layer_version_permission
|
||||
|
@ -12,17 +12,6 @@
|
||||
logs
|
||||
====
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_logs
|
||||
def test_logs_behaviour:
|
||||
boto3.client("logs")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] associate_kms_key
|
||||
|
@ -12,17 +12,6 @@
|
||||
managedblockchain
|
||||
=================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_managedblockchain
|
||||
def test_managedblockchain_behaviour:
|
||||
boto3.client("managedblockchain")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_accessor
|
||||
|
@ -12,17 +12,6 @@
|
||||
mediaconnect
|
||||
============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_mediaconnect
|
||||
def test_mediaconnect_behaviour:
|
||||
boto3.client("mediaconnect")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_bridge_outputs
|
||||
|
@ -12,17 +12,6 @@
|
||||
medialive
|
||||
=========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_medialive
|
||||
def test_medialive_behaviour:
|
||||
boto3.client("medialive")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_input_device_transfer
|
||||
|
@ -12,17 +12,6 @@
|
||||
mediapackage
|
||||
============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_mediapackage
|
||||
def test_mediapackage_behaviour:
|
||||
boto3.client("mediapackage")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] configure_logs
|
||||
|
@ -12,17 +12,6 @@
|
||||
mediastore-data
|
||||
===============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_mediastoredata
|
||||
def test_mediastoredata_behaviour:
|
||||
boto3.client("mediastore-data")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] delete_object
|
||||
|
@ -12,17 +12,6 @@
|
||||
mediastore
|
||||
==========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_mediastore
|
||||
def test_mediastore_behaviour:
|
||||
boto3.client("mediastore")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_container
|
||||
|
@ -12,17 +12,6 @@
|
||||
meteringmarketplace
|
||||
===================
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_meteringmarketplace
|
||||
def test_meteringmarketplace_behaviour:
|
||||
boto3.client("meteringmarketplace")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] batch_meter_usage
|
||||
|
@ -14,17 +14,6 @@ mq
|
||||
|
||||
.. autoclass:: moto.mq.models.MQBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_mq
|
||||
def test_mq_behaviour:
|
||||
boto3.client("mq")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_broker
|
||||
|
@ -14,17 +14,6 @@ neptune
|
||||
|
||||
.. autoclass:: moto.neptune.models.NeptuneBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_neptune
|
||||
def test_neptune_behaviour:
|
||||
boto3.client("neptune")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_role_to_db_cluster
|
||||
|
@ -14,17 +14,6 @@ opensearch
|
||||
|
||||
.. autoclass:: moto.opensearch.models.OpenSearchServiceBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_opensearch
|
||||
def test_opensearch_behaviour:
|
||||
boto3.client("opensearch")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_inbound_connection
|
||||
|
@ -12,17 +12,6 @@
|
||||
opsworks
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_opsworks
|
||||
def test_opsworks_behaviour:
|
||||
boto3.client("opsworks")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] assign_instance
|
||||
|
@ -12,17 +12,6 @@
|
||||
organizations
|
||||
=============
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_organizations
|
||||
def test_organizations_behaviour:
|
||||
boto3.client("organizations")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_handshake
|
||||
|
@ -12,17 +12,6 @@
|
||||
panorama
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_panorama
|
||||
def test_panorama_behaviour:
|
||||
boto3.client("panorama")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_application_instance
|
||||
|
@ -14,17 +14,6 @@ personalize
|
||||
|
||||
.. autoclass:: moto.personalize.models.PersonalizeBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_personalize
|
||||
def test_personalize_behaviour:
|
||||
boto3.client("personalize")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] create_batch_inference_job
|
||||
|
@ -14,17 +14,6 @@ pinpoint
|
||||
|
||||
.. autoclass:: moto.pinpoint.models.PinpointBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_pinpoint
|
||||
def test_pinpoint_behaviour:
|
||||
boto3.client("pinpoint")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] create_app
|
||||
|
@ -12,17 +12,6 @@
|
||||
polly
|
||||
=====
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_polly
|
||||
def test_polly_behaviour:
|
||||
boto3.client("polly")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [X] delete_lexicon
|
||||
|
@ -14,17 +14,6 @@ quicksight
|
||||
|
||||
.. autoclass:: moto.quicksight.models.QuickSightBackend
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_quicksight
|
||||
def test_quicksight_behaviour:
|
||||
boto3.client("quicksight")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] cancel_ingestion
|
||||
|
@ -12,17 +12,6 @@
|
||||
ram
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_ram
|
||||
def test_ram_behaviour:
|
||||
boto3.client("ram")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] accept_resource_share_invitation
|
||||
|
@ -12,17 +12,6 @@
|
||||
rds-data
|
||||
========
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_rdsdata
|
||||
def test_rdsdata_behaviour:
|
||||
boto3.client("rds-data")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] batch_execute_statement
|
||||
|
@ -12,17 +12,6 @@
|
||||
rds
|
||||
===
|
||||
|
||||
|start-h3| Example usage |end-h3|
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
@mock_rds
|
||||
def test_rds_behaviour:
|
||||
boto3.client("rds")
|
||||
...
|
||||
|
||||
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_role_to_db_cluster
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user