Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- testbed/boto__botocore/tests/acceptance/features/environment.py +56 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/cloudsearch/cloudsearch.feature +13 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/elastictranscoder/elastictranscoder.feature +13 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/opsworks/opsworks.feature +13 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/rds/rds.feature +13 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/ses/ses.feature +13 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/sts/sts.feature +14 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/support/support.feature +19 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/waf/waf.feature +17 -0
- testbed/boto__botocore/tests/acceptance/features/smoke/workspaces/workspaces.feature +15 -0
- testbed/boto__botocore/tests/functional/configured_endpoint_urls/__init__.py +12 -0
- testbed/boto__botocore/tests/functional/configured_endpoint_urls/profile-tests.json +505 -0
- testbed/boto__botocore/tests/functional/configured_endpoint_urls/test_configured_endpoint_url.py +249 -0
- testbed/boto__botocore/tests/functional/crt/__init__.py +0 -0
- testbed/boto__botocore/tests/functional/csm/__init__.py +12 -0
- testbed/boto__botocore/tests/functional/csm/cases.json +1128 -0
- testbed/boto__botocore/tests/functional/csm/data/csmtest/2018-06-19/service-2.json +42 -0
- testbed/boto__botocore/tests/functional/csm/test_monitoring.py +211 -0
- testbed/boto__botocore/tests/functional/docs/__init__.py +143 -0
- testbed/boto__botocore/tests/functional/docs/test_alias.py +37 -0
- testbed/boto__botocore/tests/functional/docs/test_autoscaling.py +21 -0
- testbed/boto__botocore/tests/functional/docs/test_ec2.py +44 -0
- testbed/boto__botocore/tests/functional/docs/test_glacier.py +30 -0
- testbed/boto__botocore/tests/functional/docs/test_lex.py +33 -0
- testbed/boto__botocore/tests/functional/docs/test_s3.py +102 -0
- testbed/boto__botocore/tests/functional/docs/test_secretsmanager.py +23 -0
- testbed/boto__botocore/tests/functional/docs/test_shared_example_config.py +142 -0
- testbed/boto__botocore/tests/functional/docs/test_streaming_body.py +41 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/accessanalyzer/endpoint-tests-1.json +678 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/account/endpoint-tests-1.json +376 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/acm-pca/endpoint-tests-1.json +665 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/acm/endpoint-tests-1.json +665 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/amp/endpoint-tests-1.json +431 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/amplify/endpoint-tests-1.json +548 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/amplifybackend/endpoint-tests-1.json +522 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/amplifyuibuilder/endpoint-tests-1.json +522 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/apigateway/endpoint-tests-1.json +600 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/apigatewaymanagementapi/endpoint-tests-1.json +314 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/apigatewayv2/endpoint-tests-1.json +600 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appconfig/endpoint-tests-1.json +639 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appconfigdata/endpoint-tests-1.json +613 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appfabric/endpoint-tests-1.json +314 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appflow/endpoint-tests-1.json +509 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appintegrations/endpoint-tests-1.json +431 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/application-autoscaling/endpoint-tests-1.json +639 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/application-insights/endpoint-tests-1.json +600 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/applicationcostprofiler/endpoint-tests-1.json +314 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appmesh/endpoint-tests-1.json +834 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/apprunner/endpoint-tests-1.json +392 -0
- testbed/boto__botocore/tests/functional/endpoint-rules/appstream/endpoint-tests-1.json +496 -0
testbed/boto__botocore/tests/acceptance/features/environment.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
import botocore.session
|
| 4 |
+
|
| 5 |
+
SESSION = botocore.session.get_session()
|
| 6 |
+
KNOWN_SERVICES = SESSION.get_available_services()
|
| 7 |
+
|
| 8 |
+
# For the services where the tag name doesn't match
|
| 9 |
+
# the name we use to create_client(), we need to maintain
|
| 10 |
+
# a map until we can get these changes pushed upstream.
|
| 11 |
+
TAG_TO_ENDPOINT_PREFIX = {
|
| 12 |
+
'cognitoidentity': 'cognito-identity',
|
| 13 |
+
'cognitosync': 'cognito-sync',
|
| 14 |
+
'elasticloadbalancing': 'elb',
|
| 15 |
+
'elasticfilesystem': 'efs',
|
| 16 |
+
}
|
| 17 |
+
REGION = 'us-east-1'
|
| 18 |
+
REGION_OVERRIDES = {
|
| 19 |
+
'devicefarm': 'us-west-2',
|
| 20 |
+
'efs': 'us-west-2',
|
| 21 |
+
}
|
| 22 |
+
SKIP_SERVICES = {
|
| 23 |
+
# efs/support require subscriptions and may not work on every machine.
|
| 24 |
+
'efs',
|
| 25 |
+
'support',
|
| 26 |
+
# sts and importexport are skipped because they do not
|
| 27 |
+
# work when using temporary credentials.
|
| 28 |
+
'sts',
|
| 29 |
+
'importexport',
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def before_feature(context, feature):
|
| 34 |
+
for tag in feature.tags:
|
| 35 |
+
if tag in TAG_TO_ENDPOINT_PREFIX:
|
| 36 |
+
service_name = TAG_TO_ENDPOINT_PREFIX[tag]
|
| 37 |
+
break
|
| 38 |
+
elif tag in KNOWN_SERVICES:
|
| 39 |
+
service_name = tag
|
| 40 |
+
break
|
| 41 |
+
else:
|
| 42 |
+
raise RuntimeError(f"Unable to create a client for feature: {feature}")
|
| 43 |
+
|
| 44 |
+
if service_name in SKIP_SERVICES:
|
| 45 |
+
feature.mark_skipped()
|
| 46 |
+
return
|
| 47 |
+
region_name = _get_region_for_service(service_name)
|
| 48 |
+
context.client = SESSION.create_client(service_name, region_name)
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def _get_region_for_service(service_name):
|
| 52 |
+
if os.environ.get('AWS_SMOKE_TEST_REGION', ''):
|
| 53 |
+
region_name = os.environ['AWS_SMOKE_TEST_REGION']
|
| 54 |
+
else:
|
| 55 |
+
region_name = REGION_OVERRIDES.get(service_name, REGION)
|
| 56 |
+
return region_name
|
testbed/boto__botocore/tests/acceptance/features/smoke/cloudsearch/cloudsearch.feature
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@cloudsearch
|
| 3 |
+
Feature: Amazon CloudSearch
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "DescribeDomains" API
|
| 7 |
+
Then the response should contain a "DomainStatusList"
|
| 8 |
+
|
| 9 |
+
Scenario: Handling errors
|
| 10 |
+
When I attempt to call the "DescribeIndexFields" API with:
|
| 11 |
+
| DomainName | fakedomain |
|
| 12 |
+
Then I expect the response error code to be "ResourceNotFound"
|
| 13 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/elastictranscoder/elastictranscoder.feature
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@elastictranscoder
|
| 3 |
+
Feature: Amazon Elastic Transcoder
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "ListPresets" API
|
| 7 |
+
Then the value at "Presets" should be a list
|
| 8 |
+
|
| 9 |
+
Scenario: Handling errors
|
| 10 |
+
When I attempt to call the "ReadJob" API with:
|
| 11 |
+
| Id | fake_job |
|
| 12 |
+
Then I expect the response error code to be "ValidationException"
|
| 13 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/opsworks/opsworks.feature
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@opsworks
|
| 3 |
+
Feature: AWS OpsWorks
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "DescribeStacks" API
|
| 7 |
+
Then the value at "Stacks" should be a list
|
| 8 |
+
|
| 9 |
+
Scenario: Handling errors
|
| 10 |
+
When I attempt to call the "DescribeLayers" API with:
|
| 11 |
+
| StackId | fake_stack |
|
| 12 |
+
Then I expect the response error code to be "ResourceNotFoundException"
|
| 13 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/rds/rds.feature
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@rds
|
| 3 |
+
Feature: Amazon RDS
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "DescribeDBEngineVersions" API
|
| 7 |
+
Then the value at "DBEngineVersions" should be a list
|
| 8 |
+
|
| 9 |
+
Scenario: Handling errors
|
| 10 |
+
When I attempt to call the "DescribeDBInstances" API with:
|
| 11 |
+
| DBInstanceIdentifier | fake-id |
|
| 12 |
+
Then I expect the response error code to be "DBInstanceNotFound"
|
| 13 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/ses/ses.feature
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@ses @email
|
| 3 |
+
Feature: Amazon Simple Email Service
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "ListIdentities" API
|
| 7 |
+
Then the value at "Identities" should be a list
|
| 8 |
+
|
| 9 |
+
Scenario: Handling errors
|
| 10 |
+
When I attempt to call the "VerifyEmailIdentity" API with:
|
| 11 |
+
| EmailAddress | fake_email |
|
| 12 |
+
Then I expect the response error code to be "InvalidParameterValue"
|
| 13 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/sts/sts.feature
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@sts
|
| 3 |
+
Feature: AWS STS
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "GetSessionToken" API
|
| 7 |
+
Then the response should contain a "Credentials"
|
| 8 |
+
|
| 9 |
+
Scenario: Handling errors
|
| 10 |
+
When I attempt to call the "GetFederationToken" API with:
|
| 11 |
+
| Name | temp |
|
| 12 |
+
| Policy | {\"temp\":true} |
|
| 13 |
+
Then I expect the response error code to be "MalformedPolicyDocument"
|
| 14 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/support/support.feature
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@support
|
| 3 |
+
Feature: AWS Support
|
| 4 |
+
|
| 5 |
+
I want to use AWS Support
|
| 6 |
+
|
| 7 |
+
Scenario: Making a request
|
| 8 |
+
When I call the "DescribeServices" API
|
| 9 |
+
Then the value at "services" should be a list
|
| 10 |
+
|
| 11 |
+
Scenario: Handling errors
|
| 12 |
+
When I attempt to call the "CreateCase" API with:
|
| 13 |
+
| subject | subject |
|
| 14 |
+
| communicationBody | communication |
|
| 15 |
+
| categoryCode | category |
|
| 16 |
+
| serviceCode | amazon-dynamodb |
|
| 17 |
+
| severityCode | low |
|
| 18 |
+
Then I expect the response error code to be "InvalidParameterValueException"
|
| 19 |
+
And the response error contains a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/waf/waf.feature
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@waf
|
| 3 |
+
Feature: AWS WAF
|
| 4 |
+
|
| 5 |
+
Scenario: Making a request
|
| 6 |
+
When I call the "ListRules" API with JSON:
|
| 7 |
+
"""
|
| 8 |
+
{"Limit":20}
|
| 9 |
+
"""
|
| 10 |
+
Then the value at "Rules" should be a list
|
| 11 |
+
|
| 12 |
+
Scenario: Handling errors
|
| 13 |
+
When I attempt to call the "CreateSqlInjectionMatchSet" API with:
|
| 14 |
+
| Name | fake_name |
|
| 15 |
+
| ChangeToken | fake_token |
|
| 16 |
+
Then I expect the response error code to be "WAFStaleDataException"
|
| 17 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/acceptance/features/smoke/workspaces/workspaces.feature
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# language: en
|
| 2 |
+
@workspaces
|
| 3 |
+
Feature: Amazon WorkSpaces
|
| 4 |
+
|
| 5 |
+
I want to use Amazon WorkSpaces
|
| 6 |
+
|
| 7 |
+
Scenario: Making a request
|
| 8 |
+
When I call the "DescribeWorkspaces" API
|
| 9 |
+
Then the value at "Workspaces" should be a list
|
| 10 |
+
|
| 11 |
+
Scenario: Handling errors
|
| 12 |
+
When I attempt to call the "DescribeWorkspaces" API with:
|
| 13 |
+
| DirectoryId | fake-id |
|
| 14 |
+
Then I expect the response error code to be "ValidationException"
|
| 15 |
+
And I expect the response error to contain a message
|
testbed/boto__botocore/tests/functional/configured_endpoint_urls/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
testbed/boto__botocore/tests/functional/configured_endpoint_urls/profile-tests.json
ADDED
|
@@ -0,0 +1,505 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"description": [
|
| 3 |
+
"These are test descriptions that describe how specific data should be loaded from a profile file based on a ",
|
| 4 |
+
"profile name."
|
| 5 |
+
],
|
| 6 |
+
|
| 7 |
+
"testSuites": [
|
| 8 |
+
{
|
| 9 |
+
"profiles": {
|
| 10 |
+
"default": {
|
| 11 |
+
"aws_access_key_id": "123",
|
| 12 |
+
"aws_secret_access_key": "456",
|
| 13 |
+
"region": "fake-region-10"
|
| 14 |
+
},
|
| 15 |
+
"service_localhost_global_only": {
|
| 16 |
+
"aws_access_key_id": "123",
|
| 17 |
+
"aws_secret_access_key": "456",
|
| 18 |
+
"region": "fake-region-10",
|
| 19 |
+
"endpoint_url": "http://localhost:1234"
|
| 20 |
+
},
|
| 21 |
+
"service_global_only": {
|
| 22 |
+
"aws_access_key_id": "123",
|
| 23 |
+
"aws_secret_access_key": "456",
|
| 24 |
+
"region": "fake-region-10",
|
| 25 |
+
"endpoint_url": "https://global.endpoint.aws"
|
| 26 |
+
},
|
| 27 |
+
"service_specific_s3": {
|
| 28 |
+
"aws_access_key_id": "123",
|
| 29 |
+
"aws_secret_access_key": "456",
|
| 30 |
+
"services": "service_specific_s3",
|
| 31 |
+
"region": "fake-region-10"
|
| 32 |
+
},
|
| 33 |
+
"global_and_service_specific_s3": {
|
| 34 |
+
"aws_access_key_id": "123",
|
| 35 |
+
"aws_secret_access_key": "456",
|
| 36 |
+
"endpoint_url": "https://global.endpoint.aws",
|
| 37 |
+
"services": "service_specific_s3",
|
| 38 |
+
"region": "fake-region-10"
|
| 39 |
+
},
|
| 40 |
+
"ignore_global_and_service_specific_s3": {
|
| 41 |
+
"aws_access_key_id": "123",
|
| 42 |
+
"aws_secret_access_key": "456",
|
| 43 |
+
"endpoint_url": "https://global.endpoint.aws",
|
| 44 |
+
"services": "service_specific_s3",
|
| 45 |
+
"region": "fake-region-10",
|
| 46 |
+
"ignore_configured_endpoint_urls": "true"
|
| 47 |
+
},
|
| 48 |
+
"service_specific_dynamodb_and_s3": {
|
| 49 |
+
"aws_access_key_id": "123",
|
| 50 |
+
"aws_secret_access_key": "456",
|
| 51 |
+
"services": "service_specific_dynamodb_and_s3",
|
| 52 |
+
"region": "fake-region-10"
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
|
| 56 |
+
"services": {
|
| 57 |
+
"service_specific_s3": {
|
| 58 |
+
"s3": {
|
| 59 |
+
"endpoint_url": "https://s3.endpoint.aws"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"service_specific_dynamodb_and_s3": {
|
| 63 |
+
"dynamodb": {
|
| 64 |
+
"endpoint_url": "https://dynamodb.endpoint.aws"
|
| 65 |
+
},
|
| 66 |
+
"s3": {
|
| 67 |
+
"endpoint_url": "https://s3.endpoint.aws"
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
|
| 72 |
+
"client_configs": {
|
| 73 |
+
"default": {},
|
| 74 |
+
"endpoint_url_provided":{
|
| 75 |
+
"endpoint_url": "https://client-config.endpoint.aws"
|
| 76 |
+
},
|
| 77 |
+
"ignore_configured_endpoint_urls": {
|
| 78 |
+
"ignore_configured_endpoint_urls": true
|
| 79 |
+
},
|
| 80 |
+
"provide_and_ignore_configured_endpoint_urls": {
|
| 81 |
+
"ignore_configured_endpoint_urls": true,
|
| 82 |
+
"endpoint_url": "https://client-config.endpoint.aws"
|
| 83 |
+
}
|
| 84 |
+
},
|
| 85 |
+
|
| 86 |
+
"environments": {
|
| 87 |
+
"default": {},
|
| 88 |
+
"global_only": {
|
| 89 |
+
"AWS_ENDPOINT_URL": "https://global-from-envvar.endpoint.aws"
|
| 90 |
+
},
|
| 91 |
+
"service_specific_s3": {
|
| 92 |
+
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws"
|
| 93 |
+
},
|
| 94 |
+
"global_and_service_specific_s3": {
|
| 95 |
+
"AWS_ENDPOINT_URL": "https://global-from-envvar.endpoint.aws",
|
| 96 |
+
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws"
|
| 97 |
+
|
| 98 |
+
},
|
| 99 |
+
"ignore_global_and_service_specific_s3": {
|
| 100 |
+
"AWS_ENDPOINT_URL": "https://global-from-envvar.endpoint.aws",
|
| 101 |
+
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws",
|
| 102 |
+
"AWS_IGNORE_CONFIGURED_ENDPOINT_URLS": "true"
|
| 103 |
+
},
|
| 104 |
+
"service_specific_dynamodb_and_s3": {
|
| 105 |
+
"AWS_ENDPOINT_URL_DYNAMODB": "https://dynamodb-from-envvar.endpoint.aws",
|
| 106 |
+
"AWS_ENDPOINT_URL_S3": "https://s3-from-envvar.endpoint.aws"
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
|
| 110 |
+
"endpointUrlTests": [
|
| 111 |
+
{
|
| 112 |
+
"name": "Global endpoint url is read from services section and used for an S3 client.",
|
| 113 |
+
"profile": "service_global_only",
|
| 114 |
+
"client_config": "default",
|
| 115 |
+
"environment": "default",
|
| 116 |
+
"service": "s3",
|
| 117 |
+
"output": {
|
| 118 |
+
"endpointUrl": "https://global.endpoint.aws"
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"name": "Service specific endpoint url is read from services section and used for an S3 client.",
|
| 123 |
+
"profile": "service_specific_s3",
|
| 124 |
+
"client_config": "default",
|
| 125 |
+
"environment": "default",
|
| 126 |
+
"service": "s3",
|
| 127 |
+
"output": {
|
| 128 |
+
"endpointUrl": "https://s3.endpoint.aws"
|
| 129 |
+
}
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"name": "S3 Service-specific endpoint URL from configuration file takes precedence over global endpoint URL from configuration file.",
|
| 133 |
+
"profile": "global_and_service_specific_s3",
|
| 134 |
+
"client_config": "default",
|
| 135 |
+
"environment": "default",
|
| 136 |
+
"service": "s3",
|
| 137 |
+
"output": {
|
| 138 |
+
"endpointUrl": "https://s3.endpoint.aws"
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"name": "Global endpoint url environment variable takes precedence over the value resolved by the SDK.",
|
| 143 |
+
"profile": "default",
|
| 144 |
+
"client_config": "default",
|
| 145 |
+
"environment": "global_only",
|
| 146 |
+
"service": "s3",
|
| 147 |
+
"output": {
|
| 148 |
+
"endpointUrl": "https://global-from-envvar.endpoint.aws"
|
| 149 |
+
}
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"name": "Global endpoint url environment variable takes precendence over global endpoint configuration option.",
|
| 153 |
+
"profile": "service_global_only",
|
| 154 |
+
"client_config": "default",
|
| 155 |
+
"environment": "global_only",
|
| 156 |
+
"service": "s3",
|
| 157 |
+
"output": {
|
| 158 |
+
"endpointUrl": "https://global-from-envvar.endpoint.aws"
|
| 159 |
+
}
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"name": "Global endpoint url environment variable takes precendence over service-specific endpoint configuration option.",
|
| 163 |
+
"profile": "service_specific_s3",
|
| 164 |
+
"client_config": "default",
|
| 165 |
+
"environment": "global_only",
|
| 166 |
+
"service": "s3",
|
| 167 |
+
"output": {
|
| 168 |
+
"endpointUrl": "https://global-from-envvar.endpoint.aws"
|
| 169 |
+
}
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "Global endpoint url environment variable takes precendence over global endpoint configuration option and service-specific endpoint configuration option.",
|
| 173 |
+
"profile": "global_and_service_specific_s3",
|
| 174 |
+
"client_config": "default",
|
| 175 |
+
"environment": "global_only",
|
| 176 |
+
"service": "s3",
|
| 177 |
+
"output": {
|
| 178 |
+
"endpointUrl": "https://global-from-envvar.endpoint.aws"
|
| 179 |
+
}
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the value resolved by the SDK.",
|
| 183 |
+
"profile": "default",
|
| 184 |
+
"client_config": "default",
|
| 185 |
+
"environment": "service_specific_s3",
|
| 186 |
+
"service": "s3",
|
| 187 |
+
"output": {
|
| 188 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 189 |
+
}
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url configuration option.",
|
| 193 |
+
"profile": "service_global_only",
|
| 194 |
+
"client_config": "default",
|
| 195 |
+
"environment": "service_specific_s3",
|
| 196 |
+
"service": "s3",
|
| 197 |
+
"output": {
|
| 198 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 199 |
+
}
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the service-specific endpoint url configuration option.",
|
| 203 |
+
"profile": "service_specific_s3",
|
| 204 |
+
"client_config": "default",
|
| 205 |
+
"environment": "service_specific_s3",
|
| 206 |
+
"service": "s3",
|
| 207 |
+
"output": {
|
| 208 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the services-specific endpoint url configuration option and the global endpoint url configuration option.",
|
| 213 |
+
"profile": "global_and_service_specific_s3",
|
| 214 |
+
"client_config": "default",
|
| 215 |
+
"environment": "service_specific_s3",
|
| 216 |
+
"service": "s3",
|
| 217 |
+
"output": {
|
| 218 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 219 |
+
}
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable.",
|
| 223 |
+
"profile": "default",
|
| 224 |
+
"client_config": "default",
|
| 225 |
+
"environment": "global_and_service_specific_s3",
|
| 226 |
+
"service": "s3",
|
| 227 |
+
"output": {
|
| 228 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable and the global endpoint url configuration option.",
|
| 233 |
+
"profile": "service_global_only",
|
| 234 |
+
"client_config": "default",
|
| 235 |
+
"environment": "global_and_service_specific_s3",
|
| 236 |
+
"service": "s3",
|
| 237 |
+
"output": {
|
| 238 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 239 |
+
}
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable and the the service-specific endpoint url configuration option.",
|
| 243 |
+
"profile": "service_specific_s3",
|
| 244 |
+
"client_config": "default",
|
| 245 |
+
"environment": "global_and_service_specific_s3",
|
| 246 |
+
"service": "s3",
|
| 247 |
+
"output": {
|
| 248 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"name": "Service-specific endpoint url environment variable takes precedence over the global endpoint url environment variable, the service-specific endpoint URL configuration option, and the global endpoint URL configuration option.",
|
| 253 |
+
"profile": "global_and_service_specific_s3",
|
| 254 |
+
"client_config": "default",
|
| 255 |
+
"environment": "global_and_service_specific_s3",
|
| 256 |
+
"service": "s3",
|
| 257 |
+
"output": {
|
| 258 |
+
"endpointUrl": "https://s3-from-envvar.endpoint.aws"
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"name": "Client configuration takes precedence over value provided by the SDK.",
|
| 263 |
+
"profile": "default",
|
| 264 |
+
"client_config": "endpoint_url_provided",
|
| 265 |
+
"environment": "default",
|
| 266 |
+
"service": "s3",
|
| 267 |
+
"output": {
|
| 268 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 269 |
+
}
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"name": "Client configuration takes precedence over global endpoint url from services section and used for an S3 client.",
|
| 273 |
+
"profile": "service_global_only",
|
| 274 |
+
"client_config": "endpoint_url_provided",
|
| 275 |
+
"environment": "default",
|
| 276 |
+
"service": "s3",
|
| 277 |
+
"output": {
|
| 278 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"name": "Client configuration takes precedence over service specific endpoint url from services section and used for an S3 client.",
|
| 283 |
+
"profile": "service_specific_s3",
|
| 284 |
+
"client_config": "endpoint_url_provided",
|
| 285 |
+
"environment": "default",
|
| 286 |
+
"service": "s3",
|
| 287 |
+
"output": {
|
| 288 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 289 |
+
}
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"name": "Client configuration takes precedence over S3 Service-specific endpoint URL from configuration file and global endpoint URL from configuration file.",
|
| 293 |
+
"profile": "global_and_service_specific_s3",
|
| 294 |
+
"client_config": "endpoint_url_provided",
|
| 295 |
+
"environment": "default",
|
| 296 |
+
"service": "s3",
|
| 297 |
+
"output": {
|
| 298 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 299 |
+
}
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"name": "Client configuration takes precedence over global endpoint url environment variable.",
|
| 303 |
+
"profile": "default",
|
| 304 |
+
"client_config": "endpoint_url_provided",
|
| 305 |
+
"environment": "global_only",
|
| 306 |
+
"service": "s3",
|
| 307 |
+
"output": {
|
| 308 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 309 |
+
}
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"name": "Client configuration takes precedence over global endpoint url environment variable and global endpoint configuration option.",
|
| 313 |
+
"profile": "service_global_only",
|
| 314 |
+
"client_config": "endpoint_url_provided",
|
| 315 |
+
"environment": "global_only",
|
| 316 |
+
"service": "s3",
|
| 317 |
+
"output": {
|
| 318 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 319 |
+
}
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"name": "Client configuration takes precedence over global endpoint url environment variable and service-specific endpoint configuration option.",
|
| 323 |
+
"profile": "service_specific_s3",
|
| 324 |
+
"client_config": "endpoint_url_provided",
|
| 325 |
+
"environment": "global_only",
|
| 326 |
+
"service": "s3",
|
| 327 |
+
"output": {
|
| 328 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 329 |
+
}
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"name": "Client configuration takes precedence over global endpoint url environment variable, global endpoint configuration option, and service-specific endpoint configuration option.",
|
| 333 |
+
"profile": "global_and_service_specific_s3",
|
| 334 |
+
"client_config": "endpoint_url_provided",
|
| 335 |
+
"environment": "global_only",
|
| 336 |
+
"service": "s3",
|
| 337 |
+
"output": {
|
| 338 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable.",
|
| 343 |
+
"profile": "default",
|
| 344 |
+
"client_config": "endpoint_url_provided",
|
| 345 |
+
"environment": "service_specific_s3",
|
| 346 |
+
"service": "s3",
|
| 347 |
+
"output": {
|
| 348 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 349 |
+
}
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable and the global endpoint url configuration option.",
|
| 353 |
+
"profile": "service_global_only",
|
| 354 |
+
"client_config": "endpoint_url_provided",
|
| 355 |
+
"environment": "service_specific_s3",
|
| 356 |
+
"service": "s3",
|
| 357 |
+
"output": {
|
| 358 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable and the service-specific endpoint url configuration option.",
|
| 363 |
+
"profile": "service_specific_s3",
|
| 364 |
+
"client_config": "endpoint_url_provided",
|
| 365 |
+
"environment": "service_specific_s3",
|
| 366 |
+
"service": "s3",
|
| 367 |
+
"output": {
|
| 368 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 369 |
+
}
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the services-specific endpoint url configuration option, and the global endpoint url configuration option.",
|
| 373 |
+
"profile": "global_and_service_specific_s3",
|
| 374 |
+
"client_config": "endpoint_url_provided",
|
| 375 |
+
"environment": "service_specific_s3",
|
| 376 |
+
"service": "s3",
|
| 377 |
+
"output": {
|
| 378 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 379 |
+
}
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable and the global endpoint url environment variable.",
|
| 383 |
+
"profile": "default",
|
| 384 |
+
"client_config": "endpoint_url_provided",
|
| 385 |
+
"environment": "global_and_service_specific_s3",
|
| 386 |
+
"service": "s3",
|
| 387 |
+
"output": {
|
| 388 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the global endpoint url environment variable, and the global endpoint url configuration option.",
|
| 393 |
+
"profile": "service_global_only",
|
| 394 |
+
"client_config": "endpoint_url_provided",
|
| 395 |
+
"environment": "global_and_service_specific_s3",
|
| 396 |
+
"service": "s3",
|
| 397 |
+
"output": {
|
| 398 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 399 |
+
}
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the global endpoint url environment variable, and the service-specific endpoint url configuration option.",
|
| 403 |
+
"profile": "service_specific_s3",
|
| 404 |
+
"client_config": "endpoint_url_provided",
|
| 405 |
+
"environment": "global_and_service_specific_s3",
|
| 406 |
+
"service": "s3",
|
| 407 |
+
"output": {
|
| 408 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 409 |
+
}
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"name": "Client configuration takes precedence over service-specific endpoint url environment variable, the global endpoint url environment variable, the service-specific endpoint URL configuration option, and the global endpoint URL configuration option.",
|
| 413 |
+
"profile": "global_and_service_specific_s3",
|
| 414 |
+
"client_config": "endpoint_url_provided",
|
| 415 |
+
"environment": "global_and_service_specific_s3",
|
| 416 |
+
"service": "s3",
|
| 417 |
+
"output": {
|
| 418 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 419 |
+
}
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"name": "All configured endpoints ignored due to environment variable.",
|
| 423 |
+
"profile": "global_and_service_specific_s3",
|
| 424 |
+
"client_config": "default",
|
| 425 |
+
"environment": "ignore_global_and_service_specific_s3",
|
| 426 |
+
"service": "s3",
|
| 427 |
+
"output": {
|
| 428 |
+
"endpointUrl": "https://s3.fake-region-10.amazonaws.com"
|
| 429 |
+
}
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"name": "All configured endpoints ignored due to shared config variable.",
|
| 433 |
+
"profile": "ignore_global_and_service_specific_s3",
|
| 434 |
+
"client_config": "default",
|
| 435 |
+
"environment": "global_and_service_specific_s3",
|
| 436 |
+
"service": "s3",
|
| 437 |
+
"output": {
|
| 438 |
+
"endpointUrl": "https://s3.fake-region-10.amazonaws.com"
|
| 439 |
+
}
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"name": "All configured endpoints ignored due to ignore client config parameter.",
|
| 443 |
+
"profile": "global_and_service_specific_s3",
|
| 444 |
+
"client_config": "ignore_configured_endpoint_urls",
|
| 445 |
+
"environment": "global_and_service_specific_s3",
|
| 446 |
+
"service": "s3",
|
| 447 |
+
"output": {
|
| 448 |
+
"endpointUrl": "https://s3.fake-region-10.amazonaws.com"
|
| 449 |
+
}
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"name": "Environment variable and shared config file configured endpoints ignored due to ignore shared config variable and client configured endpoint is used.",
|
| 453 |
+
"profile": "ignore_global_and_service_specific_s3",
|
| 454 |
+
"client_config": "endpoint_url_provided",
|
| 455 |
+
"environment": "global_and_service_specific_s3",
|
| 456 |
+
"service": "s3",
|
| 457 |
+
"output": {
|
| 458 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 459 |
+
}
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"name": "Environment variable and shared config file configured endpoints ignored due to ignore environment variable and client configured endpoint is used.",
|
| 463 |
+
"profile": "global_and_service_specific_s3",
|
| 464 |
+
"client_config": "endpoint_url_provided",
|
| 465 |
+
"environment": "ignore_global_and_service_specific_s3",
|
| 466 |
+
"service": "s3",
|
| 467 |
+
"output": {
|
| 468 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"name": "Environment variable and shared config file configured endpoints ignored due to ignore client config variable and client configured endpoint is used.",
|
| 473 |
+
"profile": "global_and_service_specific_s3",
|
| 474 |
+
"client_config": "provide_and_ignore_configured_endpoint_urls",
|
| 475 |
+
"environment": "global_and_service_specific_s3",
|
| 476 |
+
"service": "s3",
|
| 477 |
+
"output": {
|
| 478 |
+
"endpointUrl": "https://client-config.endpoint.aws"
|
| 479 |
+
}
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"name": "DynamoDB service-specific endpoint url shared config variable is used when service-specific S3 shared config variable is also present.",
|
| 483 |
+
"profile": "service_specific_dynamodb_and_s3",
|
| 484 |
+
"client_config": "default",
|
| 485 |
+
"environment": "default",
|
| 486 |
+
"service": "dynamodb",
|
| 487 |
+
"output": {
|
| 488 |
+
"endpointUrl": "https://dynamodb.endpoint.aws"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"name": "DynamoDB service-specific endpoint url environment variable is used when service-specific S3 environment variable is also present.",
|
| 493 |
+
"profile": "default",
|
| 494 |
+
"client_config": "default",
|
| 495 |
+
"environment": "service_specific_dynamodb_and_s3",
|
| 496 |
+
"service": "dynamodb",
|
| 497 |
+
"output": {
|
| 498 |
+
"endpointUrl": "https://dynamodb-from-envvar.endpoint.aws"
|
| 499 |
+
}
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
]
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
}
|
testbed/boto__botocore/tests/functional/configured_endpoint_urls/test_configured_endpoint_url.py
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
|
| 14 |
+
import json
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
from unittest import mock
|
| 17 |
+
|
| 18 |
+
import pytest
|
| 19 |
+
|
| 20 |
+
import botocore.configprovider
|
| 21 |
+
import botocore.utils
|
| 22 |
+
from botocore.compat import urlsplit
|
| 23 |
+
from botocore.config import Config
|
| 24 |
+
from tests import ClientHTTPStubber
|
| 25 |
+
|
| 26 |
+
ENDPOINT_TESTDATA_FILE = Path(__file__).parent / "profile-tests.json"
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def dict_to_ini_section(ini_dict, section_header):
|
| 30 |
+
section_str = f'[{section_header}]\n'
|
| 31 |
+
for key, value in ini_dict.items():
|
| 32 |
+
if isinstance(value, dict):
|
| 33 |
+
section_str += f"{key} =\n"
|
| 34 |
+
for new_key, new_value in value.items():
|
| 35 |
+
section_str += f" {new_key}={new_value}\n"
|
| 36 |
+
else:
|
| 37 |
+
section_str += f"{key}={value}\n"
|
| 38 |
+
return section_str + "\n"
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def create_cases():
|
| 42 |
+
with open(ENDPOINT_TESTDATA_FILE) as f:
|
| 43 |
+
test_suite = json.load(f)['testSuites'][0]
|
| 44 |
+
|
| 45 |
+
for test_case_data in test_suite['endpointUrlTests']:
|
| 46 |
+
yield pytest.param(
|
| 47 |
+
{
|
| 48 |
+
'service': test_case_data['service'],
|
| 49 |
+
'profile': test_case_data['profile'],
|
| 50 |
+
'expected_endpoint_url': test_case_data['output'][
|
| 51 |
+
'endpointUrl'
|
| 52 |
+
],
|
| 53 |
+
'client_args': get_create_client_args(
|
| 54 |
+
test_suite['client_configs'].get(
|
| 55 |
+
test_case_data['client_config'], {}
|
| 56 |
+
)
|
| 57 |
+
),
|
| 58 |
+
'config_file_contents': get_config_file_contents(
|
| 59 |
+
test_case_data['profile'], test_suite
|
| 60 |
+
),
|
| 61 |
+
'environment': test_suite['environments'].get(
|
| 62 |
+
test_case_data['environment'], {}
|
| 63 |
+
),
|
| 64 |
+
},
|
| 65 |
+
id=test_case_data['name'],
|
| 66 |
+
)
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
def get_create_client_args(test_case_client_config):
|
| 70 |
+
create_client_args = {}
|
| 71 |
+
|
| 72 |
+
if 'endpoint_url' in test_case_client_config:
|
| 73 |
+
create_client_args['endpoint_url'] = test_case_client_config[
|
| 74 |
+
'endpoint_url'
|
| 75 |
+
]
|
| 76 |
+
|
| 77 |
+
if 'ignore_configured_endpoint_urls' in test_case_client_config:
|
| 78 |
+
create_client_args['config'] = Config(
|
| 79 |
+
ignore_configured_endpoint_urls=test_case_client_config[
|
| 80 |
+
'ignore_configured_endpoint_urls'
|
| 81 |
+
]
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
+
return create_client_args
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def get_config_file_contents(profile_name, test_suite):
|
| 88 |
+
profile = test_suite['profiles'][profile_name]
|
| 89 |
+
|
| 90 |
+
profile_str = dict_to_ini_section(
|
| 91 |
+
profile,
|
| 92 |
+
section_header=f"profile {profile_name}",
|
| 93 |
+
)
|
| 94 |
+
|
| 95 |
+
services_section_name = profile.get('services', None)
|
| 96 |
+
|
| 97 |
+
if services_section_name is None:
|
| 98 |
+
return profile_str
|
| 99 |
+
|
| 100 |
+
services_section = test_suite['services'][services_section_name]
|
| 101 |
+
|
| 102 |
+
service_section_str = dict_to_ini_section(
|
| 103 |
+
services_section,
|
| 104 |
+
section_header=f'services {services_section_name}',
|
| 105 |
+
)
|
| 106 |
+
|
| 107 |
+
return profile_str + service_section_str
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
@pytest.fixture
|
| 111 |
+
def client_creator(tmp_path):
|
| 112 |
+
tmp_config_file_path = tmp_path / 'config'
|
| 113 |
+
environ = {'AWS_CONFIG_FILE': str(tmp_config_file_path)}
|
| 114 |
+
|
| 115 |
+
def _do_create_client(
|
| 116 |
+
service,
|
| 117 |
+
profile,
|
| 118 |
+
client_args=None,
|
| 119 |
+
config_file_contents=None,
|
| 120 |
+
environment=None,
|
| 121 |
+
):
|
| 122 |
+
environ.update(environment)
|
| 123 |
+
with open(tmp_config_file_path, 'w') as f:
|
| 124 |
+
f.write(config_file_contents)
|
| 125 |
+
f.flush()
|
| 126 |
+
|
| 127 |
+
return botocore.session.Session(profile=profile).create_client(
|
| 128 |
+
service, **client_args
|
| 129 |
+
)
|
| 130 |
+
|
| 131 |
+
with mock.patch('os.environ', environ):
|
| 132 |
+
yield _do_create_client
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def _normalize_endpoint(url):
|
| 136 |
+
split_endpoint = urlsplit(url)
|
| 137 |
+
actual_endpoint = f"{split_endpoint.scheme}://{split_endpoint.netloc}"
|
| 138 |
+
return actual_endpoint
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def assert_client_endpoint_url(client, expected_endpoint_url):
|
| 142 |
+
assert client.meta.endpoint_url == expected_endpoint_url
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
def assert_endpoint_url_used_for_operation(
|
| 146 |
+
client, expected_endpoint_url, operation, params
|
| 147 |
+
):
|
| 148 |
+
http_stubber = ClientHTTPStubber(client)
|
| 149 |
+
http_stubber.start()
|
| 150 |
+
http_stubber.add_response()
|
| 151 |
+
|
| 152 |
+
# Call an operation on the client
|
| 153 |
+
getattr(client, operation)(**params)
|
| 154 |
+
|
| 155 |
+
assert (
|
| 156 |
+
_normalize_endpoint(http_stubber.requests[0].url)
|
| 157 |
+
== expected_endpoint_url
|
| 158 |
+
)
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
def _known_service_names_and_ids():
|
| 162 |
+
my_session = botocore.session.get_session()
|
| 163 |
+
loader = my_session.get_component('data_loader')
|
| 164 |
+
available_services = loader.list_available_services('service-2')
|
| 165 |
+
|
| 166 |
+
result = []
|
| 167 |
+
for service_name in available_services:
|
| 168 |
+
model = my_session.get_service_model(service_name)
|
| 169 |
+
result.append((model.service_name, model.service_id))
|
| 170 |
+
return sorted(result)
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
SERVICE_TO_OPERATION = {'s3': 'list_buckets', 'dynamodb': 'list_tables'}
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
@pytest.mark.parametrize("test_case", create_cases())
|
| 177 |
+
def test_resolve_configured_endpoint_url(test_case, client_creator):
|
| 178 |
+
client = client_creator(
|
| 179 |
+
service=test_case['service'],
|
| 180 |
+
profile=test_case['profile'],
|
| 181 |
+
client_args=test_case['client_args'],
|
| 182 |
+
config_file_contents=test_case['config_file_contents'],
|
| 183 |
+
environment=test_case['environment'],
|
| 184 |
+
)
|
| 185 |
+
|
| 186 |
+
assert_endpoint_url_used_for_operation(
|
| 187 |
+
client=client,
|
| 188 |
+
expected_endpoint_url=test_case['expected_endpoint_url'],
|
| 189 |
+
operation=SERVICE_TO_OPERATION[test_case['service']],
|
| 190 |
+
params={},
|
| 191 |
+
)
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
@pytest.mark.parametrize(
|
| 195 |
+
'service_name,service_id', _known_service_names_and_ids()
|
| 196 |
+
)
|
| 197 |
+
def test_expected_service_env_var_name_is_respected(
|
| 198 |
+
service_name, service_id, client_creator
|
| 199 |
+
):
|
| 200 |
+
transformed_service_id = service_id.replace(' ', '_').upper()
|
| 201 |
+
|
| 202 |
+
client = client_creator(
|
| 203 |
+
service=service_name,
|
| 204 |
+
profile='default',
|
| 205 |
+
client_args={},
|
| 206 |
+
config_file_contents=(
|
| 207 |
+
'[profile default]\n'
|
| 208 |
+
'aws_access_key_id=123\n'
|
| 209 |
+
'aws_secret_access_key=456\n'
|
| 210 |
+
'region=fake-region-10\n'
|
| 211 |
+
),
|
| 212 |
+
environment={
|
| 213 |
+
f'AWS_ENDPOINT_URL_{transformed_service_id}': 'https://endpoint-override'
|
| 214 |
+
},
|
| 215 |
+
)
|
| 216 |
+
|
| 217 |
+
assert_client_endpoint_url(
|
| 218 |
+
client=client, expected_endpoint_url='https://endpoint-override'
|
| 219 |
+
)
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
@pytest.mark.parametrize(
|
| 223 |
+
'service_name,service_id', _known_service_names_and_ids()
|
| 224 |
+
)
|
| 225 |
+
def test_expected_service_config_section_name_is_respected(
|
| 226 |
+
service_name, service_id, client_creator
|
| 227 |
+
):
|
| 228 |
+
transformed_service_id = service_id.replace(' ', '_').lower()
|
| 229 |
+
|
| 230 |
+
client = client_creator(
|
| 231 |
+
service=service_name,
|
| 232 |
+
profile='default',
|
| 233 |
+
client_args={},
|
| 234 |
+
config_file_contents=(
|
| 235 |
+
f'[profile default]\n'
|
| 236 |
+
f'services=my-services\n'
|
| 237 |
+
f'aws_access_key_id=123\n'
|
| 238 |
+
f'aws_secret_access_key=456\n'
|
| 239 |
+
f'region=fake-region-10\n\n'
|
| 240 |
+
f'[services my-services]\n'
|
| 241 |
+
f'{transformed_service_id} = \n'
|
| 242 |
+
f' endpoint_url = https://endpoint-override\n\n'
|
| 243 |
+
),
|
| 244 |
+
environment={},
|
| 245 |
+
)
|
| 246 |
+
|
| 247 |
+
assert_client_endpoint_url(
|
| 248 |
+
client=client, expected_endpoint_url='https://endpoint-override'
|
| 249 |
+
)
|
testbed/boto__botocore/tests/functional/crt/__init__.py
ADDED
|
File without changes
|
testbed/boto__botocore/tests/functional/csm/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
testbed/boto__botocore/tests/functional/csm/cases.json
ADDED
|
@@ -0,0 +1,1128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": 1,
|
| 3 |
+
"defaults": {
|
| 4 |
+
"configuration": {
|
| 5 |
+
"accessKey": "myaccesskey",
|
| 6 |
+
"region": "us-west-2",
|
| 7 |
+
"environmentVariables": {
|
| 8 |
+
"AWS_CSM_ENABLED": "true"
|
| 9 |
+
},
|
| 10 |
+
"sharedConfigFile": {}
|
| 11 |
+
},
|
| 12 |
+
"optionalEventFields": {
|
| 13 |
+
"ApiCall": {
|
| 14 |
+
"ApiCallTimeout": "ANY_INT"
|
| 15 |
+
},
|
| 16 |
+
"ApiCallAttempt": {
|
| 17 |
+
"DestinationIp": "ANY_STR",
|
| 18 |
+
"AcquireConnectionLatency": "ANY_INT",
|
| 19 |
+
"ConnectionReused": "ANY_INT",
|
| 20 |
+
"ConnectLatency": "ANY_INT",
|
| 21 |
+
"RequestLatency": "ANY_INT",
|
| 22 |
+
"DnsLatency": "ANY_INT",
|
| 23 |
+
"TcpLatency": "ANY_INT",
|
| 24 |
+
"SslLatency": "ANY_INT"
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"cases": [
|
| 29 |
+
{
|
| 30 |
+
"description": "Tests a single client API call with no configuration provided",
|
| 31 |
+
"configuration": {
|
| 32 |
+
"accessKey": "myaccesskey",
|
| 33 |
+
"region": "us-west-2",
|
| 34 |
+
"environmentVariables": {},
|
| 35 |
+
"sharedConfigFile": {}
|
| 36 |
+
},
|
| 37 |
+
"apiCalls": [
|
| 38 |
+
{
|
| 39 |
+
"serviceId": "CSM Test",
|
| 40 |
+
"operationName": "TestOperation",
|
| 41 |
+
"params": {},
|
| 42 |
+
"attemptResponses": [
|
| 43 |
+
{
|
| 44 |
+
"httpStatus": 200,
|
| 45 |
+
"responseHeaders": {}
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
}
|
| 49 |
+
],
|
| 50 |
+
"expectedMonitoringEvents": []
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"description": "Test a single client API call",
|
| 54 |
+
"apiCalls": [
|
| 55 |
+
{
|
| 56 |
+
"serviceId": "CSM Test",
|
| 57 |
+
"operationName": "TestOperation",
|
| 58 |
+
"params": {},
|
| 59 |
+
"attemptResponses": [
|
| 60 |
+
{
|
| 61 |
+
"httpStatus": 200,
|
| 62 |
+
"responseHeaders": {}
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
| 66 |
+
],
|
| 67 |
+
"expectedMonitoringEvents": [
|
| 68 |
+
{
|
| 69 |
+
"Version": 1,
|
| 70 |
+
"Type": "ApiCallAttempt",
|
| 71 |
+
"Service": "CSM Test",
|
| 72 |
+
"Api": "TestOperation",
|
| 73 |
+
"ClientId": "",
|
| 74 |
+
"Timestamp": "ANY_INT",
|
| 75 |
+
"AttemptLatency": "ANY_INT",
|
| 76 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 77 |
+
"Region": "us-west-2",
|
| 78 |
+
"UserAgent": "ANY_STR",
|
| 79 |
+
"AccessKey": "myaccesskey",
|
| 80 |
+
"HttpStatusCode": 200
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"Version": 1,
|
| 84 |
+
"Type": "ApiCall",
|
| 85 |
+
"Service": "CSM Test",
|
| 86 |
+
"Api": "TestOperation",
|
| 87 |
+
"ClientId": "",
|
| 88 |
+
"Timestamp": "ANY_INT",
|
| 89 |
+
"Latency": "ANY_INT",
|
| 90 |
+
"AttemptCount": 1,
|
| 91 |
+
"MaxRetriesExceeded": 0,
|
| 92 |
+
"UserAgent": "ANY_STR",
|
| 93 |
+
"Region": "us-west-2",
|
| 94 |
+
"FinalHttpStatusCode": 200
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"description": "Tests a single client API call with bad request",
|
| 100 |
+
"apiCalls": [
|
| 101 |
+
{
|
| 102 |
+
"serviceId": "CSM Test",
|
| 103 |
+
"operationName": "TestOperation",
|
| 104 |
+
"params": {},
|
| 105 |
+
"attemptResponses": [
|
| 106 |
+
{
|
| 107 |
+
"httpStatus": 400,
|
| 108 |
+
"responseHeaders": {},
|
| 109 |
+
"errorCode": "TestOperationException",
|
| 110 |
+
"errorMessage": "There was an error"
|
| 111 |
+
}
|
| 112 |
+
]
|
| 113 |
+
}
|
| 114 |
+
],
|
| 115 |
+
"expectedMonitoringEvents": [
|
| 116 |
+
{
|
| 117 |
+
"Version": 1,
|
| 118 |
+
"Type": "ApiCallAttempt",
|
| 119 |
+
"Service": "CSM Test",
|
| 120 |
+
"Api": "TestOperation",
|
| 121 |
+
"ClientId": "",
|
| 122 |
+
"Timestamp": "ANY_INT",
|
| 123 |
+
"AttemptLatency": "ANY_INT",
|
| 124 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 125 |
+
"Region": "us-west-2",
|
| 126 |
+
"UserAgent": "ANY_STR",
|
| 127 |
+
"AccessKey": "myaccesskey",
|
| 128 |
+
"HttpStatusCode": 400,
|
| 129 |
+
"AwsException": "TestOperationException",
|
| 130 |
+
"AwsExceptionMessage": "There was an error"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"Version": 1,
|
| 134 |
+
"Type": "ApiCall",
|
| 135 |
+
"Service": "CSM Test",
|
| 136 |
+
"Api": "TestOperation",
|
| 137 |
+
"ClientId": "",
|
| 138 |
+
"Timestamp": "ANY_INT",
|
| 139 |
+
"Latency": "ANY_INT",
|
| 140 |
+
"AttemptCount": 1,
|
| 141 |
+
"MaxRetriesExceeded": 0,
|
| 142 |
+
"UserAgent": "ANY_STR",
|
| 143 |
+
"Region": "us-west-2",
|
| 144 |
+
"FinalAwsException": "TestOperationException",
|
| 145 |
+
"FinalAwsExceptionMessage": "There was an error",
|
| 146 |
+
"FinalHttpStatusCode": 400
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"description": "Tests a single client API call with retries",
|
| 152 |
+
"apiCalls": [
|
| 153 |
+
{
|
| 154 |
+
"serviceId": "CSM Test",
|
| 155 |
+
"operationName": "TestOperation",
|
| 156 |
+
"params": {},
|
| 157 |
+
"attemptResponses": [
|
| 158 |
+
{
|
| 159 |
+
"httpStatus": 503,
|
| 160 |
+
"responseHeaders": {},
|
| 161 |
+
"errorCode": "ServiceUnavailable",
|
| 162 |
+
"errorMessage": "Service is unavailable"
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"httpStatus": 200,
|
| 166 |
+
"responseHeaders": {}
|
| 167 |
+
}
|
| 168 |
+
]
|
| 169 |
+
}
|
| 170 |
+
],
|
| 171 |
+
"expectedMonitoringEvents": [
|
| 172 |
+
{
|
| 173 |
+
"Version": 1,
|
| 174 |
+
"Type": "ApiCallAttempt",
|
| 175 |
+
"Service": "CSM Test",
|
| 176 |
+
"Api": "TestOperation",
|
| 177 |
+
"ClientId": "",
|
| 178 |
+
"Timestamp": "ANY_INT",
|
| 179 |
+
"AttemptLatency": "ANY_INT",
|
| 180 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 181 |
+
"Region": "us-west-2",
|
| 182 |
+
"UserAgent": "ANY_STR",
|
| 183 |
+
"AccessKey": "myaccesskey",
|
| 184 |
+
"HttpStatusCode": 503,
|
| 185 |
+
"AwsException": "ServiceUnavailable",
|
| 186 |
+
"AwsExceptionMessage": "Service is unavailable"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"Version": 1,
|
| 190 |
+
"Type": "ApiCallAttempt",
|
| 191 |
+
"Service": "CSM Test",
|
| 192 |
+
"Api": "TestOperation",
|
| 193 |
+
"ClientId": "",
|
| 194 |
+
"Timestamp": "ANY_INT",
|
| 195 |
+
"AttemptLatency": "ANY_INT",
|
| 196 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 197 |
+
"Region": "us-west-2",
|
| 198 |
+
"UserAgent": "ANY_STR",
|
| 199 |
+
"AccessKey": "myaccesskey",
|
| 200 |
+
"HttpStatusCode": 200
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"Version": 1,
|
| 204 |
+
"Type": "ApiCall",
|
| 205 |
+
"Service": "CSM Test",
|
| 206 |
+
"Api": "TestOperation",
|
| 207 |
+
"ClientId": "",
|
| 208 |
+
"Timestamp": "ANY_INT",
|
| 209 |
+
"Latency": "ANY_INT",
|
| 210 |
+
"AttemptCount": 2,
|
| 211 |
+
"MaxRetriesExceeded": 0,
|
| 212 |
+
"UserAgent": "ANY_STR",
|
| 213 |
+
"Region": "us-west-2",
|
| 214 |
+
"FinalHttpStatusCode": 200
|
| 215 |
+
}
|
| 216 |
+
]
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"description": "Tests a single client API call with non-retryable SDK exception",
|
| 220 |
+
"apiCalls": [
|
| 221 |
+
{
|
| 222 |
+
"serviceId": "CSM Test",
|
| 223 |
+
"operationName": "TestOperation",
|
| 224 |
+
"params": {},
|
| 225 |
+
"attemptResponses": [
|
| 226 |
+
{
|
| 227 |
+
"sdkException": {
|
| 228 |
+
"isRetryable": false,
|
| 229 |
+
"message": "Unexpected exception was thrown"
|
| 230 |
+
}
|
| 231 |
+
}
|
| 232 |
+
]
|
| 233 |
+
}
|
| 234 |
+
],
|
| 235 |
+
"expectedMonitoringEvents": [
|
| 236 |
+
{
|
| 237 |
+
"Version": 1,
|
| 238 |
+
"Type": "ApiCallAttempt",
|
| 239 |
+
"Service": "CSM Test",
|
| 240 |
+
"Api": "TestOperation",
|
| 241 |
+
"ClientId": "",
|
| 242 |
+
"Timestamp": "ANY_INT",
|
| 243 |
+
"AttemptLatency": "ANY_INT",
|
| 244 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 245 |
+
"Region": "us-west-2",
|
| 246 |
+
"UserAgent": "ANY_STR",
|
| 247 |
+
"AccessKey": "myaccesskey",
|
| 248 |
+
"SdkException": "ANY_STR",
|
| 249 |
+
"SdkExceptionMessage": "Unexpected exception was thrown"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"Version": 1,
|
| 253 |
+
"Type": "ApiCall",
|
| 254 |
+
"Service": "CSM Test",
|
| 255 |
+
"Api": "TestOperation",
|
| 256 |
+
"ClientId": "",
|
| 257 |
+
"Timestamp": "ANY_INT",
|
| 258 |
+
"Latency": "ANY_INT",
|
| 259 |
+
"AttemptCount": 1,
|
| 260 |
+
"MaxRetriesExceeded": 0,
|
| 261 |
+
"UserAgent": "ANY_STR",
|
| 262 |
+
"Region": "us-west-2",
|
| 263 |
+
"FinalSdkException": "ANY_STR",
|
| 264 |
+
"FinalSdkExceptionMessage": "Unexpected exception was thrown"
|
| 265 |
+
}
|
| 266 |
+
]
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"description": "Tests a single client API call with a retryable SDK exception",
|
| 270 |
+
"apiCalls": [
|
| 271 |
+
{
|
| 272 |
+
"serviceId": "CSM Test",
|
| 273 |
+
"operationName": "TestOperation",
|
| 274 |
+
"params": {},
|
| 275 |
+
"attemptResponses": [
|
| 276 |
+
{
|
| 277 |
+
"sdkException": {
|
| 278 |
+
"isRetryable": true,
|
| 279 |
+
"message": "Retryable exception was thrown"
|
| 280 |
+
}
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"httpStatus": 200,
|
| 284 |
+
"responseHeaders": {}
|
| 285 |
+
}
|
| 286 |
+
]
|
| 287 |
+
}
|
| 288 |
+
],
|
| 289 |
+
"expectedMonitoringEvents": [
|
| 290 |
+
{
|
| 291 |
+
"Version": 1,
|
| 292 |
+
"Type": "ApiCallAttempt",
|
| 293 |
+
"Service": "CSM Test",
|
| 294 |
+
"Api": "TestOperation",
|
| 295 |
+
"ClientId": "",
|
| 296 |
+
"Timestamp": "ANY_INT",
|
| 297 |
+
"AttemptLatency": "ANY_INT",
|
| 298 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 299 |
+
"Region": "us-west-2",
|
| 300 |
+
"UserAgent": "ANY_STR",
|
| 301 |
+
"AccessKey": "myaccesskey",
|
| 302 |
+
"SdkException": "ANY_STR",
|
| 303 |
+
"SdkExceptionMessage": "Retryable exception was thrown"
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"Version": 1,
|
| 307 |
+
"Type": "ApiCallAttempt",
|
| 308 |
+
"Service": "CSM Test",
|
| 309 |
+
"Api": "TestOperation",
|
| 310 |
+
"ClientId": "",
|
| 311 |
+
"Timestamp": "ANY_INT",
|
| 312 |
+
"AttemptLatency": "ANY_INT",
|
| 313 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 314 |
+
"Region": "us-west-2",
|
| 315 |
+
"UserAgent": "ANY_STR",
|
| 316 |
+
"AccessKey": "myaccesskey",
|
| 317 |
+
"HttpStatusCode": 200
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"Version": 1,
|
| 321 |
+
"Type": "ApiCall",
|
| 322 |
+
"Service": "CSM Test",
|
| 323 |
+
"Api": "TestOperation",
|
| 324 |
+
"ClientId": "",
|
| 325 |
+
"Timestamp": "ANY_INT",
|
| 326 |
+
"Latency": "ANY_INT",
|
| 327 |
+
"AttemptCount": 2,
|
| 328 |
+
"MaxRetriesExceeded": 0,
|
| 329 |
+
"UserAgent": "ANY_STR",
|
| 330 |
+
"Region": "us-west-2",
|
| 331 |
+
"FinalHttpStatusCode": 200
|
| 332 |
+
}
|
| 333 |
+
]
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"description": "Tests enabling using the shared config file",
|
| 337 |
+
"configuration": {
|
| 338 |
+
"accessKey": "myaccesskey",
|
| 339 |
+
"region": "us-west-2",
|
| 340 |
+
"environmentVariables": {},
|
| 341 |
+
"sharedConfigFile": {
|
| 342 |
+
"csm_enabled": "true"
|
| 343 |
+
}
|
| 344 |
+
},
|
| 345 |
+
"apiCalls": [
|
| 346 |
+
{
|
| 347 |
+
"serviceId": "CSM Test",
|
| 348 |
+
"operationName": "TestOperation",
|
| 349 |
+
"params": {},
|
| 350 |
+
"attemptResponses": [
|
| 351 |
+
{
|
| 352 |
+
"httpStatus": 200,
|
| 353 |
+
"responseHeaders": {}
|
| 354 |
+
}
|
| 355 |
+
]
|
| 356 |
+
}
|
| 357 |
+
],
|
| 358 |
+
"expectedMonitoringEvents": [
|
| 359 |
+
{
|
| 360 |
+
"Version": 1,
|
| 361 |
+
"Type": "ApiCallAttempt",
|
| 362 |
+
"Service": "CSM Test",
|
| 363 |
+
"Api": "TestOperation",
|
| 364 |
+
"ClientId": "",
|
| 365 |
+
"Timestamp": "ANY_INT",
|
| 366 |
+
"AttemptLatency": "ANY_INT",
|
| 367 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 368 |
+
"Region": "us-west-2",
|
| 369 |
+
"UserAgent": "ANY_STR",
|
| 370 |
+
"AccessKey": "myaccesskey",
|
| 371 |
+
"HttpStatusCode": 200
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"Version": 1,
|
| 375 |
+
"Type": "ApiCall",
|
| 376 |
+
"Service": "CSM Test",
|
| 377 |
+
"Api": "TestOperation",
|
| 378 |
+
"ClientId": "",
|
| 379 |
+
"Timestamp": "ANY_INT",
|
| 380 |
+
"Latency": "ANY_INT",
|
| 381 |
+
"AttemptCount": 1,
|
| 382 |
+
"MaxRetriesExceeded": 0,
|
| 383 |
+
"UserAgent": "ANY_STR",
|
| 384 |
+
"Region": "us-west-2",
|
| 385 |
+
"FinalHttpStatusCode": 200
|
| 386 |
+
}
|
| 387 |
+
]
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"description": "Tests explicitly disabling with environment variables",
|
| 391 |
+
"configuration": {
|
| 392 |
+
"accessKey": "myaccesskey",
|
| 393 |
+
"region": "us-west-2",
|
| 394 |
+
"environmentVariables": {
|
| 395 |
+
"AWS_CSM_ENABLED": "false"
|
| 396 |
+
},
|
| 397 |
+
"sharedConfigFile": {}
|
| 398 |
+
},
|
| 399 |
+
"apiCalls": [
|
| 400 |
+
{
|
| 401 |
+
"serviceId": "CSM Test",
|
| 402 |
+
"operationName": "TestOperation",
|
| 403 |
+
"params": {},
|
| 404 |
+
"attemptResponses": [
|
| 405 |
+
{
|
| 406 |
+
"httpStatus": 200,
|
| 407 |
+
"responseHeaders": {}
|
| 408 |
+
}
|
| 409 |
+
]
|
| 410 |
+
}
|
| 411 |
+
],
|
| 412 |
+
"expectedMonitoringEvents": []
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"description": "Tests explicitly disabling with shared config file",
|
| 416 |
+
"configuration": {
|
| 417 |
+
"accessKey": "myaccesskey",
|
| 418 |
+
"region": "us-west-2",
|
| 419 |
+
"environmentVariables": {},
|
| 420 |
+
"sharedConfigFile": {
|
| 421 |
+
"csm_enabled": "false"
|
| 422 |
+
}
|
| 423 |
+
},
|
| 424 |
+
"apiCalls": [
|
| 425 |
+
{
|
| 426 |
+
"serviceId": "CSM Test",
|
| 427 |
+
"operationName": "TestOperation",
|
| 428 |
+
"params": {},
|
| 429 |
+
"attemptResponses": [
|
| 430 |
+
{
|
| 431 |
+
"httpStatus": 200,
|
| 432 |
+
"responseHeaders": {}
|
| 433 |
+
}
|
| 434 |
+
]
|
| 435 |
+
}
|
| 436 |
+
],
|
| 437 |
+
"expectedMonitoringEvents": []
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"description": "Tests overriding disables in shared config file with environment variables",
|
| 441 |
+
"configuration": {
|
| 442 |
+
"accessKey": "myaccesskey",
|
| 443 |
+
"region": "us-west-2",
|
| 444 |
+
"environmentVariables": {
|
| 445 |
+
"AWS_CSM_ENABLED": "true"
|
| 446 |
+
},
|
| 447 |
+
"sharedConfigFile": {
|
| 448 |
+
"csm_enabled": "false"
|
| 449 |
+
}
|
| 450 |
+
},
|
| 451 |
+
"apiCalls": [
|
| 452 |
+
{
|
| 453 |
+
"serviceId": "CSM Test",
|
| 454 |
+
"operationName": "TestOperation",
|
| 455 |
+
"params": {},
|
| 456 |
+
"attemptResponses": [
|
| 457 |
+
{
|
| 458 |
+
"httpStatus": 200,
|
| 459 |
+
"responseHeaders": {}
|
| 460 |
+
}
|
| 461 |
+
]
|
| 462 |
+
}
|
| 463 |
+
],
|
| 464 |
+
"expectedMonitoringEvents": [
|
| 465 |
+
{
|
| 466 |
+
"Version": 1,
|
| 467 |
+
"Type": "ApiCallAttempt",
|
| 468 |
+
"Service": "CSM Test",
|
| 469 |
+
"Api": "TestOperation",
|
| 470 |
+
"ClientId": "",
|
| 471 |
+
"Timestamp": "ANY_INT",
|
| 472 |
+
"AttemptLatency": "ANY_INT",
|
| 473 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 474 |
+
"Region": "us-west-2",
|
| 475 |
+
"UserAgent": "ANY_STR",
|
| 476 |
+
"AccessKey": "myaccesskey",
|
| 477 |
+
"HttpStatusCode": 200
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"Version": 1,
|
| 481 |
+
"Type": "ApiCall",
|
| 482 |
+
"Service": "CSM Test",
|
| 483 |
+
"Api": "TestOperation",
|
| 484 |
+
"ClientId": "",
|
| 485 |
+
"Timestamp": "ANY_INT",
|
| 486 |
+
"Latency": "ANY_INT",
|
| 487 |
+
"AttemptCount": 1,
|
| 488 |
+
"MaxRetriesExceeded": 0,
|
| 489 |
+
"UserAgent": "ANY_STR",
|
| 490 |
+
"Region": "us-west-2",
|
| 491 |
+
"FinalHttpStatusCode": 200
|
| 492 |
+
}
|
| 493 |
+
]
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"description": "Tests overriding enables in shared config file with environment variables",
|
| 497 |
+
"configuration": {
|
| 498 |
+
"accessKey": "myaccesskey",
|
| 499 |
+
"region": "us-west-2",
|
| 500 |
+
"environmentVariables": {
|
| 501 |
+
"AWS_CSM_ENABLED": "false"
|
| 502 |
+
},
|
| 503 |
+
"sharedConfigFile": {
|
| 504 |
+
"csm_enabled": "true"
|
| 505 |
+
}
|
| 506 |
+
},
|
| 507 |
+
"apiCalls": [
|
| 508 |
+
{
|
| 509 |
+
"serviceId": "CSM Test",
|
| 510 |
+
"operationName": "TestOperation",
|
| 511 |
+
"params": {},
|
| 512 |
+
"attemptResponses": [
|
| 513 |
+
{
|
| 514 |
+
"httpStatus": 200,
|
| 515 |
+
"responseHeaders": {}
|
| 516 |
+
}
|
| 517 |
+
]
|
| 518 |
+
}
|
| 519 |
+
],
|
| 520 |
+
"expectedMonitoringEvents": []
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"description": "Tests setting the client id with environment variables",
|
| 524 |
+
"configuration": {
|
| 525 |
+
"accessKey": "myaccesskey",
|
| 526 |
+
"region": "us-west-2",
|
| 527 |
+
"environmentVariables": {
|
| 528 |
+
"AWS_CSM_ENABLED": "true",
|
| 529 |
+
"AWS_CSM_CLIENT_ID": "from-env"
|
| 530 |
+
},
|
| 531 |
+
"sharedConfigFile": {}
|
| 532 |
+
},
|
| 533 |
+
"apiCalls": [
|
| 534 |
+
{
|
| 535 |
+
"serviceId": "CSM Test",
|
| 536 |
+
"operationName": "TestOperation",
|
| 537 |
+
"params": {},
|
| 538 |
+
"attemptResponses": [
|
| 539 |
+
{
|
| 540 |
+
"httpStatus": 200,
|
| 541 |
+
"responseHeaders": {}
|
| 542 |
+
}
|
| 543 |
+
]
|
| 544 |
+
}
|
| 545 |
+
],
|
| 546 |
+
"expectedMonitoringEvents": [
|
| 547 |
+
{
|
| 548 |
+
"Version": 1,
|
| 549 |
+
"Type": "ApiCallAttempt",
|
| 550 |
+
"Service": "CSM Test",
|
| 551 |
+
"Api": "TestOperation",
|
| 552 |
+
"ClientId": "from-env",
|
| 553 |
+
"Timestamp": "ANY_INT",
|
| 554 |
+
"AttemptLatency": "ANY_INT",
|
| 555 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 556 |
+
"Region": "us-west-2",
|
| 557 |
+
"UserAgent": "ANY_STR",
|
| 558 |
+
"AccessKey": "myaccesskey",
|
| 559 |
+
"HttpStatusCode": 200
|
| 560 |
+
},
|
| 561 |
+
{
|
| 562 |
+
"Version": 1,
|
| 563 |
+
"Type": "ApiCall",
|
| 564 |
+
"Service": "CSM Test",
|
| 565 |
+
"Api": "TestOperation",
|
| 566 |
+
"ClientId": "from-env",
|
| 567 |
+
"Timestamp": "ANY_INT",
|
| 568 |
+
"Latency": "ANY_INT",
|
| 569 |
+
"AttemptCount": 1,
|
| 570 |
+
"MaxRetriesExceeded": 0,
|
| 571 |
+
"UserAgent": "ANY_STR",
|
| 572 |
+
"Region": "us-west-2",
|
| 573 |
+
"FinalHttpStatusCode": 200
|
| 574 |
+
}
|
| 575 |
+
]
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"description": "Tests setting the client id with shared config file",
|
| 579 |
+
"configuration": {
|
| 580 |
+
"accessKey": "myaccesskey",
|
| 581 |
+
"region": "us-west-2",
|
| 582 |
+
"environmentVariables": {
|
| 583 |
+
"AWS_CSM_ENABLED": "true"
|
| 584 |
+
},
|
| 585 |
+
"sharedConfigFile": {
|
| 586 |
+
"csm_client_id": "from-config"
|
| 587 |
+
}
|
| 588 |
+
},
|
| 589 |
+
"apiCalls": [
|
| 590 |
+
{
|
| 591 |
+
"serviceId": "CSM Test",
|
| 592 |
+
"operationName": "TestOperation",
|
| 593 |
+
"params": {},
|
| 594 |
+
"attemptResponses": [
|
| 595 |
+
{
|
| 596 |
+
"httpStatus": 200,
|
| 597 |
+
"responseHeaders": {}
|
| 598 |
+
}
|
| 599 |
+
]
|
| 600 |
+
}
|
| 601 |
+
],
|
| 602 |
+
"expectedMonitoringEvents": [
|
| 603 |
+
{
|
| 604 |
+
"Version": 1,
|
| 605 |
+
"Type": "ApiCallAttempt",
|
| 606 |
+
"Service": "CSM Test",
|
| 607 |
+
"Api": "TestOperation",
|
| 608 |
+
"ClientId": "from-config",
|
| 609 |
+
"Timestamp": "ANY_INT",
|
| 610 |
+
"AttemptLatency": "ANY_INT",
|
| 611 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 612 |
+
"Region": "us-west-2",
|
| 613 |
+
"UserAgent": "ANY_STR",
|
| 614 |
+
"AccessKey": "myaccesskey",
|
| 615 |
+
"HttpStatusCode": 200
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"Version": 1,
|
| 619 |
+
"Type": "ApiCall",
|
| 620 |
+
"Service": "CSM Test",
|
| 621 |
+
"Api": "TestOperation",
|
| 622 |
+
"ClientId": "from-config",
|
| 623 |
+
"Timestamp": "ANY_INT",
|
| 624 |
+
"Latency": "ANY_INT",
|
| 625 |
+
"AttemptCount": 1,
|
| 626 |
+
"MaxRetriesExceeded": 0,
|
| 627 |
+
"UserAgent": "ANY_STR",
|
| 628 |
+
"Region": "us-west-2",
|
| 629 |
+
"FinalHttpStatusCode": 200
|
| 630 |
+
}
|
| 631 |
+
]
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"description": "Tests setting the client id with environment variables overrides the client id from the shared config file",
|
| 635 |
+
"configuration": {
|
| 636 |
+
"accessKey": "myaccesskey",
|
| 637 |
+
"region": "us-west-2",
|
| 638 |
+
"environmentVariables": {
|
| 639 |
+
"AWS_CSM_ENABLED": "true",
|
| 640 |
+
"AWS_CSM_CLIENT_ID": "from-env"
|
| 641 |
+
},
|
| 642 |
+
"sharedConfigFile": {
|
| 643 |
+
"csm_client_id": "from-config"
|
| 644 |
+
}
|
| 645 |
+
},
|
| 646 |
+
"apiCalls": [
|
| 647 |
+
{
|
| 648 |
+
"serviceId": "CSM Test",
|
| 649 |
+
"operationName": "TestOperation",
|
| 650 |
+
"params": {},
|
| 651 |
+
"attemptResponses": [
|
| 652 |
+
{
|
| 653 |
+
"httpStatus": 200,
|
| 654 |
+
"responseHeaders": {}
|
| 655 |
+
}
|
| 656 |
+
]
|
| 657 |
+
}
|
| 658 |
+
],
|
| 659 |
+
"expectedMonitoringEvents": [
|
| 660 |
+
{
|
| 661 |
+
"Version": 1,
|
| 662 |
+
"Type": "ApiCallAttempt",
|
| 663 |
+
"Service": "CSM Test",
|
| 664 |
+
"Api": "TestOperation",
|
| 665 |
+
"ClientId": "from-env",
|
| 666 |
+
"Timestamp": "ANY_INT",
|
| 667 |
+
"AttemptLatency": "ANY_INT",
|
| 668 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 669 |
+
"Region": "us-west-2",
|
| 670 |
+
"UserAgent": "ANY_STR",
|
| 671 |
+
"AccessKey": "myaccesskey",
|
| 672 |
+
"HttpStatusCode": 200
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"Version": 1,
|
| 676 |
+
"Type": "ApiCall",
|
| 677 |
+
"Service": "CSM Test",
|
| 678 |
+
"Api": "TestOperation",
|
| 679 |
+
"ClientId": "from-env",
|
| 680 |
+
"Timestamp": "ANY_INT",
|
| 681 |
+
"Latency": "ANY_INT",
|
| 682 |
+
"AttemptCount": 1,
|
| 683 |
+
"MaxRetriesExceeded": 0,
|
| 684 |
+
"UserAgent": "ANY_STR",
|
| 685 |
+
"Region": "us-west-2",
|
| 686 |
+
"FinalHttpStatusCode": 200
|
| 687 |
+
}
|
| 688 |
+
]
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"description": "Tests a single client API call using a session token",
|
| 692 |
+
"configuration": {
|
| 693 |
+
"accessKey": "myaccesskey",
|
| 694 |
+
"sessionToken": "mysessiontoken",
|
| 695 |
+
"region": "us-west-2",
|
| 696 |
+
"environmentVariables": {
|
| 697 |
+
"AWS_CSM_ENABLED": "true"
|
| 698 |
+
},
|
| 699 |
+
"sharedConfigFile": {}
|
| 700 |
+
},
|
| 701 |
+
"apiCalls": [
|
| 702 |
+
{
|
| 703 |
+
"serviceId": "CSM Test",
|
| 704 |
+
"operationName": "TestOperation",
|
| 705 |
+
"params": {},
|
| 706 |
+
"attemptResponses": [
|
| 707 |
+
{
|
| 708 |
+
"httpStatus": 200,
|
| 709 |
+
"responseHeaders": {}
|
| 710 |
+
}
|
| 711 |
+
]
|
| 712 |
+
}
|
| 713 |
+
],
|
| 714 |
+
"expectedMonitoringEvents": [
|
| 715 |
+
{
|
| 716 |
+
"Version": 1,
|
| 717 |
+
"Type": "ApiCallAttempt",
|
| 718 |
+
"Service": "CSM Test",
|
| 719 |
+
"Api": "TestOperation",
|
| 720 |
+
"ClientId": "",
|
| 721 |
+
"Timestamp": "ANY_INT",
|
| 722 |
+
"AttemptLatency": "ANY_INT",
|
| 723 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 724 |
+
"Region": "us-west-2",
|
| 725 |
+
"UserAgent": "ANY_STR",
|
| 726 |
+
"AccessKey": "myaccesskey",
|
| 727 |
+
"SessionToken": "mysessiontoken",
|
| 728 |
+
"HttpStatusCode": 200
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"Version": 1,
|
| 732 |
+
"Type": "ApiCall",
|
| 733 |
+
"Service": "CSM Test",
|
| 734 |
+
"Api": "TestOperation",
|
| 735 |
+
"ClientId": "",
|
| 736 |
+
"Timestamp": "ANY_INT",
|
| 737 |
+
"Latency": "ANY_INT",
|
| 738 |
+
"AttemptCount": 1,
|
| 739 |
+
"MaxRetriesExceeded": 0,
|
| 740 |
+
"UserAgent": "ANY_STR",
|
| 741 |
+
"Region": "us-west-2",
|
| 742 |
+
"FinalHttpStatusCode": 200
|
| 743 |
+
}
|
| 744 |
+
]
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"description": "Test a single client API call with x-amzn-RequestId response header",
|
| 748 |
+
"apiCalls": [
|
| 749 |
+
{
|
| 750 |
+
"serviceId": "CSM Test",
|
| 751 |
+
"operationName": "TestOperation",
|
| 752 |
+
"params": {},
|
| 753 |
+
"attemptResponses": [
|
| 754 |
+
{
|
| 755 |
+
"httpStatus": 200,
|
| 756 |
+
"responseHeaders": {
|
| 757 |
+
"x-amzn-RequestId": "request-id"
|
| 758 |
+
}
|
| 759 |
+
}
|
| 760 |
+
]
|
| 761 |
+
}
|
| 762 |
+
],
|
| 763 |
+
"expectedMonitoringEvents": [
|
| 764 |
+
{
|
| 765 |
+
"Version": 1,
|
| 766 |
+
"Type": "ApiCallAttempt",
|
| 767 |
+
"Service": "CSM Test",
|
| 768 |
+
"Api": "TestOperation",
|
| 769 |
+
"ClientId": "",
|
| 770 |
+
"Timestamp": "ANY_INT",
|
| 771 |
+
"AttemptLatency": "ANY_INT",
|
| 772 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 773 |
+
"Region": "us-west-2",
|
| 774 |
+
"UserAgent": "ANY_STR",
|
| 775 |
+
"AccessKey": "myaccesskey",
|
| 776 |
+
"HttpStatusCode": 200,
|
| 777 |
+
"XAmznRequestId": "request-id"
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"Version": 1,
|
| 781 |
+
"Type": "ApiCall",
|
| 782 |
+
"Service": "CSM Test",
|
| 783 |
+
"Api": "TestOperation",
|
| 784 |
+
"ClientId": "",
|
| 785 |
+
"Timestamp": "ANY_INT",
|
| 786 |
+
"Latency": "ANY_INT",
|
| 787 |
+
"AttemptCount": 1,
|
| 788 |
+
"MaxRetriesExceeded": 0,
|
| 789 |
+
"UserAgent": "ANY_STR",
|
| 790 |
+
"Region": "us-west-2",
|
| 791 |
+
"FinalHttpStatusCode": 200
|
| 792 |
+
}
|
| 793 |
+
]
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"description": "Test a single client API call with x-amz-request-id response header",
|
| 797 |
+
"apiCalls": [
|
| 798 |
+
{
|
| 799 |
+
"serviceId": "CSM Test",
|
| 800 |
+
"operationName": "TestOperation",
|
| 801 |
+
"params": {},
|
| 802 |
+
"attemptResponses": [
|
| 803 |
+
{
|
| 804 |
+
"httpStatus": 200,
|
| 805 |
+
"responseHeaders": {
|
| 806 |
+
"x-amz-request-id": "request-id"
|
| 807 |
+
}
|
| 808 |
+
}
|
| 809 |
+
]
|
| 810 |
+
}
|
| 811 |
+
],
|
| 812 |
+
"expectedMonitoringEvents": [
|
| 813 |
+
{
|
| 814 |
+
"Version": 1,
|
| 815 |
+
"Type": "ApiCallAttempt",
|
| 816 |
+
"Service": "CSM Test",
|
| 817 |
+
"Api": "TestOperation",
|
| 818 |
+
"ClientId": "",
|
| 819 |
+
"Timestamp": "ANY_INT",
|
| 820 |
+
"AttemptLatency": "ANY_INT",
|
| 821 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 822 |
+
"Region": "us-west-2",
|
| 823 |
+
"UserAgent": "ANY_STR",
|
| 824 |
+
"AccessKey": "myaccesskey",
|
| 825 |
+
"HttpStatusCode": 200,
|
| 826 |
+
"XAmzRequestId": "request-id"
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"Version": 1,
|
| 830 |
+
"Type": "ApiCall",
|
| 831 |
+
"Service": "CSM Test",
|
| 832 |
+
"Api": "TestOperation",
|
| 833 |
+
"ClientId": "",
|
| 834 |
+
"Timestamp": "ANY_INT",
|
| 835 |
+
"Latency": "ANY_INT",
|
| 836 |
+
"AttemptCount": 1,
|
| 837 |
+
"MaxRetriesExceeded": 0,
|
| 838 |
+
"UserAgent": "ANY_STR",
|
| 839 |
+
"Region": "us-west-2",
|
| 840 |
+
"FinalHttpStatusCode": 200
|
| 841 |
+
}
|
| 842 |
+
]
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"description": "Test a single client API call with x-amz-id-2 response header",
|
| 846 |
+
"apiCalls": [
|
| 847 |
+
{
|
| 848 |
+
"serviceId": "CSM Test",
|
| 849 |
+
"operationName": "TestOperation",
|
| 850 |
+
"params": {},
|
| 851 |
+
"attemptResponses": [
|
| 852 |
+
{
|
| 853 |
+
"httpStatus": 200,
|
| 854 |
+
"responseHeaders": {
|
| 855 |
+
"x-amz-id-2": "request-id"
|
| 856 |
+
}
|
| 857 |
+
}
|
| 858 |
+
]
|
| 859 |
+
}
|
| 860 |
+
],
|
| 861 |
+
"expectedMonitoringEvents": [
|
| 862 |
+
{
|
| 863 |
+
"Version": 1,
|
| 864 |
+
"Type": "ApiCallAttempt",
|
| 865 |
+
"Service": "CSM Test",
|
| 866 |
+
"Api": "TestOperation",
|
| 867 |
+
"ClientId": "",
|
| 868 |
+
"Timestamp": "ANY_INT",
|
| 869 |
+
"AttemptLatency": "ANY_INT",
|
| 870 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 871 |
+
"Region": "us-west-2",
|
| 872 |
+
"UserAgent": "ANY_STR",
|
| 873 |
+
"AccessKey": "myaccesskey",
|
| 874 |
+
"HttpStatusCode": 200,
|
| 875 |
+
"XAmzId2": "request-id"
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"Version": 1,
|
| 879 |
+
"Type": "ApiCall",
|
| 880 |
+
"Service": "CSM Test",
|
| 881 |
+
"Api": "TestOperation",
|
| 882 |
+
"ClientId": "",
|
| 883 |
+
"Timestamp": "ANY_INT",
|
| 884 |
+
"Latency": "ANY_INT",
|
| 885 |
+
"AttemptCount": 1,
|
| 886 |
+
"MaxRetriesExceeded": 0,
|
| 887 |
+
"UserAgent": "ANY_STR",
|
| 888 |
+
"Region": "us-west-2",
|
| 889 |
+
"FinalHttpStatusCode": 200
|
| 890 |
+
}
|
| 891 |
+
]
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"description": "Test max retries from AWS exception",
|
| 895 |
+
"configuration": {
|
| 896 |
+
"accessKey": "myaccesskey",
|
| 897 |
+
"region": "us-west-2",
|
| 898 |
+
"environmentVariables": {
|
| 899 |
+
"AWS_CSM_ENABLED": "true"
|
| 900 |
+
},
|
| 901 |
+
"sharedConfigFile": {},
|
| 902 |
+
"maxRetries": 1
|
| 903 |
+
},
|
| 904 |
+
"apiCalls": [
|
| 905 |
+
{
|
| 906 |
+
"serviceId": "CSM Test",
|
| 907 |
+
"operationName": "TestOperation",
|
| 908 |
+
"params": {},
|
| 909 |
+
"attemptResponses": [
|
| 910 |
+
{
|
| 911 |
+
"httpStatus": 503,
|
| 912 |
+
"responseHeaders": {},
|
| 913 |
+
"errorCode": "ServiceUnavailable",
|
| 914 |
+
"errorMessage": "Service is unavailable"
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"httpStatus": 503,
|
| 918 |
+
"responseHeaders": {},
|
| 919 |
+
"errorCode": "ServiceUnavailable",
|
| 920 |
+
"errorMessage": "Service is unavailable"
|
| 921 |
+
}
|
| 922 |
+
]
|
| 923 |
+
}
|
| 924 |
+
],
|
| 925 |
+
"expectedMonitoringEvents": [
|
| 926 |
+
{
|
| 927 |
+
"Version": 1,
|
| 928 |
+
"Type": "ApiCallAttempt",
|
| 929 |
+
"Service": "CSM Test",
|
| 930 |
+
"Api": "TestOperation",
|
| 931 |
+
"ClientId": "",
|
| 932 |
+
"Timestamp": "ANY_INT",
|
| 933 |
+
"AttemptLatency": "ANY_INT",
|
| 934 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 935 |
+
"Region": "us-west-2",
|
| 936 |
+
"UserAgent": "ANY_STR",
|
| 937 |
+
"AccessKey": "myaccesskey",
|
| 938 |
+
"HttpStatusCode": 503,
|
| 939 |
+
"AwsException": "ServiceUnavailable",
|
| 940 |
+
"AwsExceptionMessage": "Service is unavailable"
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"Version": 1,
|
| 944 |
+
"Type": "ApiCallAttempt",
|
| 945 |
+
"Service": "CSM Test",
|
| 946 |
+
"Api": "TestOperation",
|
| 947 |
+
"ClientId": "",
|
| 948 |
+
"Timestamp": "ANY_INT",
|
| 949 |
+
"AttemptLatency": "ANY_INT",
|
| 950 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 951 |
+
"Region": "us-west-2",
|
| 952 |
+
"UserAgent": "ANY_STR",
|
| 953 |
+
"AccessKey": "myaccesskey",
|
| 954 |
+
"HttpStatusCode": 503,
|
| 955 |
+
"AwsException": "ServiceUnavailable",
|
| 956 |
+
"AwsExceptionMessage": "Service is unavailable"
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"Version": 1,
|
| 960 |
+
"Type": "ApiCall",
|
| 961 |
+
"Service": "CSM Test",
|
| 962 |
+
"Api": "TestOperation",
|
| 963 |
+
"ClientId": "",
|
| 964 |
+
"Timestamp": "ANY_INT",
|
| 965 |
+
"Latency": "ANY_INT",
|
| 966 |
+
"AttemptCount": 2,
|
| 967 |
+
"MaxRetriesExceeded": 1,
|
| 968 |
+
"UserAgent": "ANY_STR",
|
| 969 |
+
"Region": "us-west-2",
|
| 970 |
+
"FinalAwsException": "ServiceUnavailable",
|
| 971 |
+
"FinalAwsExceptionMessage": "Service is unavailable",
|
| 972 |
+
"FinalHttpStatusCode": 503
|
| 973 |
+
}
|
| 974 |
+
]
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"description": "Test max retries from SDK exception",
|
| 978 |
+
"configuration": {
|
| 979 |
+
"accessKey": "myaccesskey",
|
| 980 |
+
"region": "us-west-2",
|
| 981 |
+
"environmentVariables": {
|
| 982 |
+
"AWS_CSM_ENABLED": "true"
|
| 983 |
+
},
|
| 984 |
+
"sharedConfigFile": {},
|
| 985 |
+
"maxRetries": 1
|
| 986 |
+
},
|
| 987 |
+
"apiCalls": [
|
| 988 |
+
{
|
| 989 |
+
"serviceId": "CSM Test",
|
| 990 |
+
"operationName": "TestOperation",
|
| 991 |
+
"params": {},
|
| 992 |
+
"attemptResponses": [
|
| 993 |
+
{
|
| 994 |
+
"sdkException": {
|
| 995 |
+
"isRetryable": true,
|
| 996 |
+
"message": "Retryable exception was thrown"
|
| 997 |
+
}
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"sdkException": {
|
| 1001 |
+
"isRetryable": true,
|
| 1002 |
+
"message": "Retryable exception was thrown"
|
| 1003 |
+
}
|
| 1004 |
+
}
|
| 1005 |
+
]
|
| 1006 |
+
}
|
| 1007 |
+
],
|
| 1008 |
+
"expectedMonitoringEvents": [
|
| 1009 |
+
{
|
| 1010 |
+
"Version": 1,
|
| 1011 |
+
"Type": "ApiCallAttempt",
|
| 1012 |
+
"Service": "CSM Test",
|
| 1013 |
+
"Api": "TestOperation",
|
| 1014 |
+
"ClientId": "",
|
| 1015 |
+
"Timestamp": "ANY_INT",
|
| 1016 |
+
"AttemptLatency": "ANY_INT",
|
| 1017 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 1018 |
+
"Region": "us-west-2",
|
| 1019 |
+
"UserAgent": "ANY_STR",
|
| 1020 |
+
"AccessKey": "myaccesskey",
|
| 1021 |
+
"SdkException": "ANY_STR",
|
| 1022 |
+
"SdkExceptionMessage": "Retryable exception was thrown"
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"Version": 1,
|
| 1026 |
+
"Type": "ApiCallAttempt",
|
| 1027 |
+
"Service": "CSM Test",
|
| 1028 |
+
"Api": "TestOperation",
|
| 1029 |
+
"ClientId": "",
|
| 1030 |
+
"Timestamp": "ANY_INT",
|
| 1031 |
+
"AttemptLatency": "ANY_INT",
|
| 1032 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 1033 |
+
"Region": "us-west-2",
|
| 1034 |
+
"UserAgent": "ANY_STR",
|
| 1035 |
+
"AccessKey": "myaccesskey",
|
| 1036 |
+
"SdkException": "ANY_STR",
|
| 1037 |
+
"SdkExceptionMessage": "Retryable exception was thrown"
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"Version": 1,
|
| 1041 |
+
"Type": "ApiCall",
|
| 1042 |
+
"Service": "CSM Test",
|
| 1043 |
+
"Api": "TestOperation",
|
| 1044 |
+
"ClientId": "",
|
| 1045 |
+
"Timestamp": "ANY_INT",
|
| 1046 |
+
"Latency": "ANY_INT",
|
| 1047 |
+
"AttemptCount": 2,
|
| 1048 |
+
"MaxRetriesExceeded": 1,
|
| 1049 |
+
"UserAgent": "ANY_STR",
|
| 1050 |
+
"Region": "us-west-2",
|
| 1051 |
+
"FinalSdkException": "ANY_STR",
|
| 1052 |
+
"FinalSdkExceptionMessage": "Retryable exception was thrown"
|
| 1053 |
+
}
|
| 1054 |
+
]
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"description": "Test API call event uses exception data from final attempt",
|
| 1058 |
+
"apiCalls": [
|
| 1059 |
+
{
|
| 1060 |
+
"serviceId": "CSM Test",
|
| 1061 |
+
"operationName": "TestOperation",
|
| 1062 |
+
"params": {},
|
| 1063 |
+
"attemptResponses": [
|
| 1064 |
+
{
|
| 1065 |
+
"sdkException": {
|
| 1066 |
+
"isRetryable": true,
|
| 1067 |
+
"message": "First retryable exception"
|
| 1068 |
+
}
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"sdkException": {
|
| 1072 |
+
"isRetryable": false,
|
| 1073 |
+
"message": "Second un-retryable exception"
|
| 1074 |
+
}
|
| 1075 |
+
}
|
| 1076 |
+
]
|
| 1077 |
+
}
|
| 1078 |
+
],
|
| 1079 |
+
"expectedMonitoringEvents": [
|
| 1080 |
+
{
|
| 1081 |
+
"Version": 1,
|
| 1082 |
+
"Type": "ApiCallAttempt",
|
| 1083 |
+
"Service": "CSM Test",
|
| 1084 |
+
"Api": "TestOperation",
|
| 1085 |
+
"ClientId": "",
|
| 1086 |
+
"Timestamp": "ANY_INT",
|
| 1087 |
+
"AttemptLatency": "ANY_INT",
|
| 1088 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 1089 |
+
"Region": "us-west-2",
|
| 1090 |
+
"UserAgent": "ANY_STR",
|
| 1091 |
+
"AccessKey": "myaccesskey",
|
| 1092 |
+
"SdkException": "ANY_STR",
|
| 1093 |
+
"SdkExceptionMessage": "First retryable exception"
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"Version": 1,
|
| 1097 |
+
"Type": "ApiCallAttempt",
|
| 1098 |
+
"Service": "CSM Test",
|
| 1099 |
+
"Api": "TestOperation",
|
| 1100 |
+
"ClientId": "",
|
| 1101 |
+
"Timestamp": "ANY_INT",
|
| 1102 |
+
"AttemptLatency": "ANY_INT",
|
| 1103 |
+
"Fqdn": "csmtest.us-west-2.amazonaws.com",
|
| 1104 |
+
"Region": "us-west-2",
|
| 1105 |
+
"UserAgent": "ANY_STR",
|
| 1106 |
+
"AccessKey": "myaccesskey",
|
| 1107 |
+
"SdkException": "ANY_STR",
|
| 1108 |
+
"SdkExceptionMessage": "Second un-retryable exception"
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"Version": 1,
|
| 1112 |
+
"Type": "ApiCall",
|
| 1113 |
+
"Service": "CSM Test",
|
| 1114 |
+
"Api": "TestOperation",
|
| 1115 |
+
"ClientId": "",
|
| 1116 |
+
"Timestamp": "ANY_INT",
|
| 1117 |
+
"Latency": "ANY_INT",
|
| 1118 |
+
"AttemptCount": 2,
|
| 1119 |
+
"MaxRetriesExceeded": 0,
|
| 1120 |
+
"UserAgent": "ANY_STR",
|
| 1121 |
+
"Region": "us-west-2",
|
| 1122 |
+
"FinalSdkException": "ANY_STR",
|
| 1123 |
+
"FinalSdkExceptionMessage": "Second un-retryable exception"
|
| 1124 |
+
}
|
| 1125 |
+
]
|
| 1126 |
+
}
|
| 1127 |
+
]
|
| 1128 |
+
}
|
testbed/boto__botocore/tests/functional/csm/data/csmtest/2018-06-19/service-2.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version":"2.0",
|
| 3 |
+
"metadata":{
|
| 4 |
+
"apiVersion":"2018-06-19",
|
| 5 |
+
"endpointPrefix":"csmtest",
|
| 6 |
+
"jsonVersion":"1.0",
|
| 7 |
+
"protocol":"json",
|
| 8 |
+
"serviceFullName":"CSM Test",
|
| 9 |
+
"serviceId":"CSM Test",
|
| 10 |
+
"signatureVersion":"v4",
|
| 11 |
+
"targetPrefix":"CSMTest_20180619",
|
| 12 |
+
"uid":"csmtest-2018-06-19"
|
| 13 |
+
},
|
| 14 |
+
"operations":{
|
| 15 |
+
"TestOperation":{
|
| 16 |
+
"name":"TestOperation",
|
| 17 |
+
"http":{
|
| 18 |
+
"method":"POST",
|
| 19 |
+
"requestUri":"/"
|
| 20 |
+
},
|
| 21 |
+
"input":{"shape":"TestOperationInput"},
|
| 22 |
+
"output":{"shape":"TestOperationOutput"},
|
| 23 |
+
"errors":[
|
| 24 |
+
{"shape":"TestOperationException"}
|
| 25 |
+
]
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"shapes":{
|
| 29 |
+
"TestOperationInput":{
|
| 30 |
+
"type": "structure",
|
| 31 |
+
"members": {}
|
| 32 |
+
},
|
| 33 |
+
"TestOperationOutput":{
|
| 34 |
+
"type": "structure",
|
| 35 |
+
"members": {}
|
| 36 |
+
},
|
| 37 |
+
"TestOperationException":{
|
| 38 |
+
"type": "strucutre",
|
| 39 |
+
"members": {}
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
testbed/boto__botocore/tests/functional/csm/test_monitoring.py
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under thimport mock
|
| 13 |
+
import contextlib
|
| 14 |
+
import copy
|
| 15 |
+
import json
|
| 16 |
+
import logging
|
| 17 |
+
import os
|
| 18 |
+
import socket
|
| 19 |
+
import threading
|
| 20 |
+
|
| 21 |
+
import pytest
|
| 22 |
+
|
| 23 |
+
import botocore.config
|
| 24 |
+
import botocore.exceptions
|
| 25 |
+
import botocore.session
|
| 26 |
+
from botocore import xform_name
|
| 27 |
+
from tests import ClientHTTPStubber, mock, temporary_file
|
| 28 |
+
|
| 29 |
+
logger = logging.getLogger(__name__)
|
| 30 |
+
|
| 31 |
+
CASES_FILE = os.path.join(os.path.dirname(__file__), 'cases.json')
|
| 32 |
+
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data/')
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
class RetryableException(botocore.exceptions.EndpointConnectionError):
|
| 36 |
+
fmt = '{message}'
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
class NonRetryableException(Exception):
|
| 40 |
+
pass
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
EXPECTED_EXCEPTIONS_THROWN = (
|
| 44 |
+
botocore.exceptions.ClientError,
|
| 45 |
+
NonRetryableException,
|
| 46 |
+
RetryableException,
|
| 47 |
+
)
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def _load_test_cases():
|
| 51 |
+
with open(CASES_FILE) as f:
|
| 52 |
+
loaded_tests = json.loads(f.read())
|
| 53 |
+
test_cases = _get_cases_with_defaults(loaded_tests)
|
| 54 |
+
_replace_expected_anys(test_cases)
|
| 55 |
+
return test_cases
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def _get_cases_with_defaults(loaded_tests):
|
| 59 |
+
cases = []
|
| 60 |
+
defaults = loaded_tests['defaults']
|
| 61 |
+
for case in loaded_tests['cases']:
|
| 62 |
+
base = copy.deepcopy(defaults)
|
| 63 |
+
base.update(case)
|
| 64 |
+
cases.append(base)
|
| 65 |
+
return cases
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def _replace_expected_anys(test_cases):
|
| 69 |
+
for case in test_cases:
|
| 70 |
+
for expected_event in case['expectedMonitoringEvents']:
|
| 71 |
+
for entry, value in expected_event.items():
|
| 72 |
+
if value in ['ANY_STR', 'ANY_INT']:
|
| 73 |
+
expected_event[entry] = mock.ANY
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
@pytest.mark.parametrize("test_case", _load_test_cases())
|
| 77 |
+
def test_client_monitoring(test_case):
|
| 78 |
+
_run_test_case(test_case)
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
@contextlib.contextmanager
|
| 82 |
+
def _configured_session(case_configuration, listener_port):
|
| 83 |
+
environ = {
|
| 84 |
+
'AWS_ACCESS_KEY_ID': case_configuration['accessKey'],
|
| 85 |
+
'AWS_SECRET_ACCESS_KEY': 'secret-key',
|
| 86 |
+
'AWS_DEFAULT_REGION': case_configuration['region'],
|
| 87 |
+
'AWS_DATA_PATH': DATA_DIR,
|
| 88 |
+
'AWS_CSM_PORT': listener_port,
|
| 89 |
+
}
|
| 90 |
+
if 'sessionToken' in case_configuration:
|
| 91 |
+
environ['AWS_SESSION_TOKEN'] = case_configuration['sessionToken']
|
| 92 |
+
environ.update(case_configuration['environmentVariables'])
|
| 93 |
+
with temporary_file('w') as f:
|
| 94 |
+
_setup_shared_config(
|
| 95 |
+
f, case_configuration['sharedConfigFile'], environ
|
| 96 |
+
)
|
| 97 |
+
with mock.patch('os.environ', environ):
|
| 98 |
+
session = botocore.session.Session()
|
| 99 |
+
if 'maxRetries' in case_configuration:
|
| 100 |
+
_setup_max_retry_attempts(session, case_configuration)
|
| 101 |
+
yield session
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
def _setup_shared_config(fileobj, shared_config_options, environ):
|
| 105 |
+
fileobj.write('[default]\n')
|
| 106 |
+
for key, value in shared_config_options.items():
|
| 107 |
+
fileobj.write(f'{key} = {value}\n')
|
| 108 |
+
fileobj.flush()
|
| 109 |
+
environ['AWS_CONFIG_FILE'] = fileobj.name
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def _setup_max_retry_attempts(session, case_configuration):
|
| 113 |
+
config = botocore.config.Config(
|
| 114 |
+
retries={'max_attempts': case_configuration['maxRetries']}
|
| 115 |
+
)
|
| 116 |
+
session.set_default_client_config(config)
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def _run_test_case(case):
|
| 120 |
+
with MonitoringListener() as listener:
|
| 121 |
+
with _configured_session(
|
| 122 |
+
case['configuration'], listener.port
|
| 123 |
+
) as session:
|
| 124 |
+
for api_call in case['apiCalls']:
|
| 125 |
+
_make_api_call(session, api_call)
|
| 126 |
+
assert listener.received_events == case['expectedMonitoringEvents']
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def _make_api_call(session, api_call):
|
| 130 |
+
client = session.create_client(
|
| 131 |
+
api_call['serviceId'].lower().replace(' ', '')
|
| 132 |
+
)
|
| 133 |
+
operation_name = api_call['operationName']
|
| 134 |
+
client_method = getattr(client, xform_name(operation_name))
|
| 135 |
+
with _stubbed_http_layer(client, api_call['attemptResponses']):
|
| 136 |
+
try:
|
| 137 |
+
client_method(**api_call['params'])
|
| 138 |
+
except EXPECTED_EXCEPTIONS_THROWN:
|
| 139 |
+
pass
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
@contextlib.contextmanager
|
| 143 |
+
def _stubbed_http_layer(client, attempt_responses):
|
| 144 |
+
with ClientHTTPStubber(client) as stubber:
|
| 145 |
+
_add_stubbed_responses(stubber, attempt_responses)
|
| 146 |
+
yield
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
def _add_stubbed_responses(stubber, attempt_responses):
|
| 150 |
+
for attempt_response in attempt_responses:
|
| 151 |
+
if 'sdkException' in attempt_response:
|
| 152 |
+
sdk_exception = attempt_response['sdkException']
|
| 153 |
+
_add_sdk_exception(
|
| 154 |
+
stubber, sdk_exception['message'], sdk_exception['isRetryable']
|
| 155 |
+
)
|
| 156 |
+
else:
|
| 157 |
+
_add_stubbed_response(stubber, attempt_response)
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
def _add_sdk_exception(stubber, message, is_retryable):
|
| 161 |
+
if is_retryable:
|
| 162 |
+
stubber.responses.append(RetryableException(message=message))
|
| 163 |
+
else:
|
| 164 |
+
stubber.responses.append(NonRetryableException(message))
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
def _add_stubbed_response(stubber, attempt_response):
|
| 168 |
+
headers = attempt_response['responseHeaders']
|
| 169 |
+
status_code = attempt_response['httpStatus']
|
| 170 |
+
if 'errorCode' in attempt_response:
|
| 171 |
+
error = {
|
| 172 |
+
'__type': attempt_response['errorCode'],
|
| 173 |
+
'message': attempt_response['errorMessage'],
|
| 174 |
+
}
|
| 175 |
+
content = json.dumps(error).encode('utf-8')
|
| 176 |
+
else:
|
| 177 |
+
content = b'{}'
|
| 178 |
+
stubber.add_response(status=status_code, headers=headers, body=content)
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
class MonitoringListener(threading.Thread):
|
| 182 |
+
_PACKET_SIZE = 1024 * 8
|
| 183 |
+
|
| 184 |
+
def __init__(self, port=0):
|
| 185 |
+
threading.Thread.__init__(self)
|
| 186 |
+
self._socket = None
|
| 187 |
+
self.port = port
|
| 188 |
+
self.received_events = []
|
| 189 |
+
|
| 190 |
+
def __enter__(self):
|
| 191 |
+
self._socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
| 192 |
+
self._socket.bind(('127.0.0.1', self.port))
|
| 193 |
+
# The socket may have been assigned to an unused port so we
|
| 194 |
+
# reset the port member after binding.
|
| 195 |
+
self.port = self._socket.getsockname()[1]
|
| 196 |
+
self.start()
|
| 197 |
+
return self
|
| 198 |
+
|
| 199 |
+
def __exit__(self, *args):
|
| 200 |
+
self._socket.sendto(b'', ('127.0.0.1', self.port))
|
| 201 |
+
self.join()
|
| 202 |
+
self._socket.close()
|
| 203 |
+
|
| 204 |
+
def run(self):
|
| 205 |
+
logger.debug('Started listener')
|
| 206 |
+
while True:
|
| 207 |
+
data = self._socket.recv(self._PACKET_SIZE)
|
| 208 |
+
logger.debug('Received: %s', data.decode('utf-8'))
|
| 209 |
+
if not data:
|
| 210 |
+
return
|
| 211 |
+
self.received_events.append(json.loads(data.decode('utf-8')))
|
testbed/boto__botocore/tests/functional/docs/__init__.py
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
import os
|
| 14 |
+
import re
|
| 15 |
+
import shutil
|
| 16 |
+
import tempfile
|
| 17 |
+
|
| 18 |
+
from botocore.docs.service import ServiceDocumenter
|
| 19 |
+
from botocore.session import get_session
|
| 20 |
+
from tests import unittest
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class BaseDocsFunctionalTest(unittest.TestCase):
|
| 24 |
+
def setUp(self):
|
| 25 |
+
self._session = get_session()
|
| 26 |
+
self.docs_root_dir = tempfile.mkdtemp()
|
| 27 |
+
self.root_services_path = os.path.join(
|
| 28 |
+
self.docs_root_dir, 'reference', 'services'
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
def tearDown(self):
|
| 32 |
+
shutil.rmtree(self.docs_root_dir)
|
| 33 |
+
|
| 34 |
+
def assert_contains_line(self, line, contents):
|
| 35 |
+
contents = contents.decode('utf-8')
|
| 36 |
+
self.assertIn(line, contents)
|
| 37 |
+
|
| 38 |
+
def assert_contains_lines_in_order(self, lines, contents):
|
| 39 |
+
contents = contents.decode('utf-8')
|
| 40 |
+
for line in lines:
|
| 41 |
+
self.assertIn(line, contents)
|
| 42 |
+
beginning = contents.find(line)
|
| 43 |
+
contents = contents[(beginning + len(line)) :]
|
| 44 |
+
|
| 45 |
+
def assert_not_contains_line(self, line, contents):
|
| 46 |
+
contents = contents.decode('utf-8')
|
| 47 |
+
self.assertNotIn(line, contents)
|
| 48 |
+
|
| 49 |
+
def assert_not_contains_lines(self, lines, contents):
|
| 50 |
+
contents = contents.decode('utf-8')
|
| 51 |
+
for line in lines:
|
| 52 |
+
self.assertNotIn(line, contents)
|
| 53 |
+
|
| 54 |
+
def get_client_method_contents(self, service_name, method_name):
|
| 55 |
+
service_file_path = os.path.join(
|
| 56 |
+
self.root_services_path,
|
| 57 |
+
service_name,
|
| 58 |
+
'client',
|
| 59 |
+
f'{method_name}.rst',
|
| 60 |
+
)
|
| 61 |
+
with open(service_file_path, 'rb') as f:
|
| 62 |
+
return f.read()
|
| 63 |
+
|
| 64 |
+
def get_title_section_for(self, service_name):
|
| 65 |
+
contents = (
|
| 66 |
+
ServiceDocumenter(
|
| 67 |
+
service_name, self._session, self.root_services_path
|
| 68 |
+
)
|
| 69 |
+
.document_service()
|
| 70 |
+
.decode('utf-8')
|
| 71 |
+
)
|
| 72 |
+
start_of_table_of_contents = 'Table of Contents'
|
| 73 |
+
start_index = contents.find(start_of_table_of_contents)
|
| 74 |
+
contents = contents[:start_index]
|
| 75 |
+
contents = contents.encode('utf-8')
|
| 76 |
+
return contents
|
| 77 |
+
|
| 78 |
+
def get_method_document_block(self, operation_name, contents):
|
| 79 |
+
contents = contents.decode('utf-8')
|
| 80 |
+
regex = rf'.. py:method:: ([a-zA-Z0-9]*\.)*{operation_name}\('
|
| 81 |
+
match = re.search(regex, contents)
|
| 82 |
+
self.assertIsNotNone(match, 'Method is not found in contents')
|
| 83 |
+
start_method_document = match.group()
|
| 84 |
+
start_index = match.start()
|
| 85 |
+
contents = contents[start_index:]
|
| 86 |
+
end_index = contents.find('.. py:method::', len(start_method_document))
|
| 87 |
+
contents = contents[:end_index]
|
| 88 |
+
return contents.encode('utf-8')
|
| 89 |
+
|
| 90 |
+
def get_parameter_document_block(self, param_name, contents):
|
| 91 |
+
contents = contents.decode('utf-8')
|
| 92 |
+
start_param_document = f' :type {param_name}:'
|
| 93 |
+
start_index = contents.find(start_param_document)
|
| 94 |
+
self.assertNotEqual(start_index, -1, 'Param is not found in contents')
|
| 95 |
+
contents = contents[start_index:]
|
| 96 |
+
end_index = contents.find(' :type', len(start_param_document))
|
| 97 |
+
contents = contents[:end_index]
|
| 98 |
+
return contents.encode('utf-8')
|
| 99 |
+
|
| 100 |
+
def get_parameter_documentation_from_service(
|
| 101 |
+
self, service_name, method_name, param_name
|
| 102 |
+
):
|
| 103 |
+
ServiceDocumenter(
|
| 104 |
+
service_name, self._session, self.root_services_path
|
| 105 |
+
).document_service()
|
| 106 |
+
contents = self.get_client_method_contents(service_name, method_name)
|
| 107 |
+
method_contents = self.get_method_document_block(method_name, contents)
|
| 108 |
+
return self.get_parameter_document_block(param_name, method_contents)
|
| 109 |
+
|
| 110 |
+
def get_docstring_for_method(self, service_name, method_name):
|
| 111 |
+
ServiceDocumenter(
|
| 112 |
+
service_name, self._session, self.root_services_path
|
| 113 |
+
).document_service()
|
| 114 |
+
contents = self.get_client_method_contents(service_name, method_name)
|
| 115 |
+
method_contents = self.get_method_document_block(method_name, contents)
|
| 116 |
+
return method_contents
|
| 117 |
+
|
| 118 |
+
def assert_is_documented_as_autopopulated_param(
|
| 119 |
+
self, service_name, method_name, param_name, doc_string=None
|
| 120 |
+
):
|
| 121 |
+
ServiceDocumenter(
|
| 122 |
+
service_name, self._session, self.root_services_path
|
| 123 |
+
).document_service()
|
| 124 |
+
contents = self.get_client_method_contents(service_name, method_name)
|
| 125 |
+
method_contents = self.get_method_document_block(method_name, contents)
|
| 126 |
+
|
| 127 |
+
# Ensure it is not in the example.
|
| 128 |
+
self.assert_not_contains_line(
|
| 129 |
+
f'{param_name}=\'string\'', method_contents
|
| 130 |
+
)
|
| 131 |
+
|
| 132 |
+
# Ensure it is in the params.
|
| 133 |
+
param_contents = self.get_parameter_document_block(
|
| 134 |
+
param_name, method_contents
|
| 135 |
+
)
|
| 136 |
+
|
| 137 |
+
# Ensure it is not labeled as required.
|
| 138 |
+
self.assert_not_contains_line('REQUIRED', param_contents)
|
| 139 |
+
|
| 140 |
+
# Ensure the note about autopopulation was added.
|
| 141 |
+
if doc_string is None:
|
| 142 |
+
doc_string = 'Please note that this parameter is automatically'
|
| 143 |
+
self.assert_contains_line(doc_string, param_contents)
|
testbed/boto__botocore/tests/functional/docs/test_alias.py
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 14 |
+
from tests.functional.test_alias import ALIAS_CASES
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class TestAliasesDocumented(BaseDocsFunctionalTest):
|
| 18 |
+
def test_all_aliases_are_documented_correctly(self):
|
| 19 |
+
for case in ALIAS_CASES:
|
| 20 |
+
content = self.get_docstring_for_method(
|
| 21 |
+
case['service'], case['operation']
|
| 22 |
+
).decode('utf-8')
|
| 23 |
+
new_name = case['new_name']
|
| 24 |
+
original_name = case['original_name']
|
| 25 |
+
param_name_template = ':param %s:'
|
| 26 |
+
param_type_template = ':type %s:'
|
| 27 |
+
param_example_template = '%s='
|
| 28 |
+
|
| 29 |
+
# Make sure the new parameters are in the documentation
|
| 30 |
+
# but the old names are not.
|
| 31 |
+
self.assertIn(param_name_template % new_name, content)
|
| 32 |
+
self.assertIn(param_type_template % new_name, content)
|
| 33 |
+
self.assertIn(param_example_template % new_name, content)
|
| 34 |
+
|
| 35 |
+
self.assertNotIn(param_name_template % original_name, content)
|
| 36 |
+
self.assertNotIn(param_type_template % original_name, content)
|
| 37 |
+
self.assertNotIn(param_example_template % original_name, content)
|
testbed/boto__botocore/tests/functional/docs/test_autoscaling.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class TestAutoscalingDocs(BaseDocsFunctionalTest):
|
| 17 |
+
def test_documents_encoding_of_user_data(self):
|
| 18 |
+
docs = self.get_parameter_documentation_from_service(
|
| 19 |
+
'autoscaling', 'create_launch_configuration', 'UserData'
|
| 20 |
+
)
|
| 21 |
+
self.assertIn('base64 encoded automatically', docs.decode('utf-8'))
|
testbed/boto__botocore/tests/functional/docs/test_ec2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class TestEc2Docs(BaseDocsFunctionalTest):
|
| 17 |
+
def test_documents_encoding_of_user_data(self):
|
| 18 |
+
docs = self.get_parameter_documentation_from_service(
|
| 19 |
+
'ec2', 'run_instances', 'UserData'
|
| 20 |
+
)
|
| 21 |
+
self.assertIn('base64 encoded automatically', docs.decode('utf-8'))
|
| 22 |
+
|
| 23 |
+
def test_copy_snapshot_presigned_url_is_autopopulated(self):
|
| 24 |
+
self.assert_is_documented_as_autopopulated_param(
|
| 25 |
+
service_name='ec2',
|
| 26 |
+
method_name='copy_snapshot',
|
| 27 |
+
param_name='PresignedUrl',
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
def test_copy_snapshot_destination_region_is_autopopulated(self):
|
| 31 |
+
self.assert_is_documented_as_autopopulated_param(
|
| 32 |
+
service_name='ec2',
|
| 33 |
+
method_name='copy_snapshot',
|
| 34 |
+
param_name='DestinationRegion',
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
def test_idempotency_documented(self):
|
| 38 |
+
content = self.get_docstring_for_method(
|
| 39 |
+
'ec2', 'purchase_scheduled_instances'
|
| 40 |
+
)
|
| 41 |
+
# Client token should have had idempotentcy autopopulated doc appended
|
| 42 |
+
self.assert_contains_line(
|
| 43 |
+
'This field is autopopulated if not provided', content
|
| 44 |
+
)
|
testbed/boto__botocore/tests/functional/docs/test_glacier.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class TestGlacierDocs(BaseDocsFunctionalTest):
|
| 17 |
+
def test_account_id(self):
|
| 18 |
+
self.assert_is_documented_as_autopopulated_param(
|
| 19 |
+
service_name='glacier',
|
| 20 |
+
method_name='abort_multipart_upload',
|
| 21 |
+
param_name='accountId',
|
| 22 |
+
doc_string='Note: this parameter is set to "-"',
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
def test_checksum(self):
|
| 26 |
+
self.assert_is_documented_as_autopopulated_param(
|
| 27 |
+
service_name='glacier',
|
| 28 |
+
method_name='upload_archive',
|
| 29 |
+
param_name='checksum',
|
| 30 |
+
)
|
testbed/boto__botocore/tests/functional/docs/test_lex.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class TestLexDocs(BaseDocsFunctionalTest):
|
| 17 |
+
TYPE_STRING = '{...}|[...]|123|123.4|\'string\'|True|None'
|
| 18 |
+
|
| 19 |
+
def test_jsonheader_docs(self):
|
| 20 |
+
docs = self.get_docstring_for_method('lex-runtime', 'post_content')
|
| 21 |
+
self.assert_contains_lines_in_order(
|
| 22 |
+
[
|
| 23 |
+
'**Request Syntax**',
|
| 24 |
+
f'sessionAttributes={self.TYPE_STRING},',
|
| 25 |
+
':type sessionAttributes: JSON serializable',
|
| 26 |
+
'**Response Syntax**',
|
| 27 |
+
f'\'slots\': {self.TYPE_STRING},',
|
| 28 |
+
f'\'sessionAttributes\': {self.TYPE_STRING}',
|
| 29 |
+
'**slots** (JSON serializable)',
|
| 30 |
+
'**sessionAttributes** (JSON serializable)',
|
| 31 |
+
],
|
| 32 |
+
docs,
|
| 33 |
+
)
|
testbed/boto__botocore/tests/functional/docs/test_s3.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from botocore import xform_name
|
| 14 |
+
from botocore.docs.client import ClientContextParamsDocumenter
|
| 15 |
+
from botocore.docs.service import ServiceDocumenter
|
| 16 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class TestS3Docs(BaseDocsFunctionalTest):
|
| 20 |
+
def test_auto_populates_sse_customer_key_md5(self):
|
| 21 |
+
self.assert_is_documented_as_autopopulated_param(
|
| 22 |
+
service_name='s3',
|
| 23 |
+
method_name='put_object',
|
| 24 |
+
param_name='SSECustomerKeyMD5',
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
def test_auto_populates_copy_source_sse_customer_key_md5(self):
|
| 28 |
+
self.assert_is_documented_as_autopopulated_param(
|
| 29 |
+
service_name='s3',
|
| 30 |
+
method_name='copy_object',
|
| 31 |
+
param_name='CopySourceSSECustomerKeyMD5',
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
def test_hides_content_md5_when_impossible_to_provide(self):
|
| 35 |
+
modified_methods = [
|
| 36 |
+
'delete_objects',
|
| 37 |
+
'put_bucket_acl',
|
| 38 |
+
'put_bucket_cors',
|
| 39 |
+
'put_bucket_lifecycle',
|
| 40 |
+
'put_bucket_logging',
|
| 41 |
+
'put_bucket_policy',
|
| 42 |
+
'put_bucket_notification',
|
| 43 |
+
'put_bucket_tagging',
|
| 44 |
+
'put_bucket_replication',
|
| 45 |
+
'put_bucket_website',
|
| 46 |
+
'put_bucket_request_payment',
|
| 47 |
+
'put_object_acl',
|
| 48 |
+
'put_bucket_versioning',
|
| 49 |
+
]
|
| 50 |
+
ServiceDocumenter(
|
| 51 |
+
's3', self._session, self.root_services_path
|
| 52 |
+
).document_service()
|
| 53 |
+
for method_name in modified_methods:
|
| 54 |
+
contents = self.get_client_method_contents('s3', method_name)
|
| 55 |
+
method_contents = self.get_method_document_block(
|
| 56 |
+
method_name, contents
|
| 57 |
+
)
|
| 58 |
+
self.assertNotIn(
|
| 59 |
+
'ContentMD5=\'string\'', method_contents.decode('utf-8')
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
def test_generate_presigned_url_documented(self):
|
| 63 |
+
content = self.get_docstring_for_method('s3', 'generate_presigned_url')
|
| 64 |
+
self.assert_contains_line('generate_presigned_url', content)
|
| 65 |
+
|
| 66 |
+
def test_copy_source_documented_as_union_type(self):
|
| 67 |
+
content = self.get_docstring_for_method('s3', 'copy_object')
|
| 68 |
+
dict_form = (
|
| 69 |
+
"{'Bucket': 'string', 'Key': 'string', 'VersionId': 'string'}"
|
| 70 |
+
)
|
| 71 |
+
self.assert_contains_line(
|
| 72 |
+
f"CopySource='string' or {dict_form}", content
|
| 73 |
+
)
|
| 74 |
+
|
| 75 |
+
def test_copy_source_param_docs_also_modified(self):
|
| 76 |
+
content = self.get_docstring_for_method('s3', 'copy_object')
|
| 77 |
+
param_docs = self.get_parameter_document_block('CopySource', content)
|
| 78 |
+
# We don't want to overspecify the test, so I've picked
|
| 79 |
+
# an arbitrary line from the customized docs.
|
| 80 |
+
self.assert_contains_line(
|
| 81 |
+
"You can also provide this value as a dictionary", param_docs
|
| 82 |
+
)
|
| 83 |
+
|
| 84 |
+
def test_s3_context_params_omitted(self):
|
| 85 |
+
omitted_params = ClientContextParamsDocumenter.OMITTED_CONTEXT_PARAMS
|
| 86 |
+
s3_omitted_params = omitted_params['s3']
|
| 87 |
+
content = ServiceDocumenter(
|
| 88 |
+
's3', self._session, self.root_services_path
|
| 89 |
+
).document_service()
|
| 90 |
+
for param in s3_omitted_params:
|
| 91 |
+
param_name = f'``{xform_name(param)}``'
|
| 92 |
+
self.assert_not_contains_line(param_name, content)
|
| 93 |
+
|
| 94 |
+
def test_s3control_context_params_omitted(self):
|
| 95 |
+
omitted_params = ClientContextParamsDocumenter.OMITTED_CONTEXT_PARAMS
|
| 96 |
+
s3control_omitted_params = omitted_params['s3control']
|
| 97 |
+
content = ServiceDocumenter(
|
| 98 |
+
's3control', self._session, self.root_services_path
|
| 99 |
+
).document_service()
|
| 100 |
+
for param in s3control_omitted_params:
|
| 101 |
+
param_name = f'``{xform_name(param)}``'
|
| 102 |
+
self.assert_not_contains_line(param_name, content)
|
testbed/boto__botocore/tests/functional/docs/test_secretsmanager.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from botocore.docs.service import ServiceDocumenter
|
| 14 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class TestSecretsManagerDocs(BaseDocsFunctionalTest):
|
| 18 |
+
def test_generate_presigned_url_is_not_documented(self):
|
| 19 |
+
documenter = ServiceDocumenter(
|
| 20 |
+
'secretsmanager', self._session, self.root_services_path
|
| 21 |
+
)
|
| 22 |
+
docs = documenter.document_service()
|
| 23 |
+
self.assert_not_contains_line('generate_presigned_url', docs)
|
testbed/boto__botocore/tests/functional/docs/test_shared_example_config.py
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
import pytest
|
| 14 |
+
|
| 15 |
+
import botocore.session
|
| 16 |
+
from botocore.model import OperationNotFoundError
|
| 17 |
+
from botocore.utils import parse_timestamp
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _shared_example_configs():
|
| 21 |
+
session = botocore.session.Session()
|
| 22 |
+
loader = session.get_component('data_loader')
|
| 23 |
+
services = loader.list_available_services('examples-1')
|
| 24 |
+
for service in services:
|
| 25 |
+
service_model = session.get_service_model(service)
|
| 26 |
+
example_config = loader.load_service_model(
|
| 27 |
+
service, 'examples-1', service_model.api_version
|
| 28 |
+
)
|
| 29 |
+
examples = example_config.get("examples", {})
|
| 30 |
+
for operation, operation_examples in examples.items():
|
| 31 |
+
for example in operation_examples:
|
| 32 |
+
yield operation, example, service_model
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
@pytest.mark.parametrize(
|
| 36 |
+
"operation_name, example_config, service_model", _shared_example_configs()
|
| 37 |
+
)
|
| 38 |
+
def test_lint_shared_example_configs(
|
| 39 |
+
operation_name, example_config, service_model
|
| 40 |
+
):
|
| 41 |
+
# The operation should actually exist
|
| 42 |
+
assert_operation_exists(service_model, operation_name)
|
| 43 |
+
operation_model = service_model.operation_model(operation_name)
|
| 44 |
+
assert_valid_values(
|
| 45 |
+
service_model.service_name, operation_model, example_config
|
| 46 |
+
)
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def assert_valid_values(service_name, operation_model, example_config):
|
| 50 |
+
example_input = example_config.get('input')
|
| 51 |
+
input_shape = operation_model.input_shape
|
| 52 |
+
example_id = example_config['id']
|
| 53 |
+
|
| 54 |
+
if input_shape is None and example_input:
|
| 55 |
+
raise AssertionError(
|
| 56 |
+
f"Input found in example for {operation_model.name} from {service_name} "
|
| 57 |
+
f"with id {example_id}, but no input shape is defined."
|
| 58 |
+
)
|
| 59 |
+
|
| 60 |
+
example_output = example_config.get('output')
|
| 61 |
+
output_shape = operation_model.output_shape
|
| 62 |
+
|
| 63 |
+
if output_shape is None and example_output:
|
| 64 |
+
raise AssertionError(
|
| 65 |
+
f"Output found in example for {operation_model.name} from {service_name} "
|
| 66 |
+
f"with id {example_id}, but no output shape is defined."
|
| 67 |
+
)
|
| 68 |
+
|
| 69 |
+
try:
|
| 70 |
+
if example_input is not None and input_shape is not None:
|
| 71 |
+
_assert_valid_values(
|
| 72 |
+
input_shape, example_input, [input_shape.name]
|
| 73 |
+
)
|
| 74 |
+
|
| 75 |
+
if example_output is not None and output_shape is not None:
|
| 76 |
+
_assert_valid_values(
|
| 77 |
+
output_shape, example_output, [output_shape.name]
|
| 78 |
+
)
|
| 79 |
+
except AssertionError as e:
|
| 80 |
+
raise AssertionError(
|
| 81 |
+
f"Invalid value in example for {operation_model.name} from "
|
| 82 |
+
f"{service_name} with id {example_id}: {e}"
|
| 83 |
+
)
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
def _assert_valid_values(shape, example_value, path):
|
| 87 |
+
if shape.type_name == 'timestamp':
|
| 88 |
+
_assert_valid_timestamp(example_value, path)
|
| 89 |
+
elif shape.type_name == 'structure':
|
| 90 |
+
_assert_valid_structure_values(shape, example_value, path)
|
| 91 |
+
elif shape.type_name == 'list':
|
| 92 |
+
_assert_valid_list_values(shape, example_value, path)
|
| 93 |
+
elif shape.type_name == 'map':
|
| 94 |
+
_assert_valid_map_values(shape, example_value, path)
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
def _assert_valid_structure_values(shape, example_dict, path):
|
| 98 |
+
invalid_members = [
|
| 99 |
+
k for k in example_dict.keys() if k not in shape.members
|
| 100 |
+
]
|
| 101 |
+
if invalid_members:
|
| 102 |
+
dotted_path = '.'.join(path)
|
| 103 |
+
raise AssertionError(
|
| 104 |
+
f"Invalid members found for {dotted_path}: {invalid_members}"
|
| 105 |
+
)
|
| 106 |
+
|
| 107 |
+
for member_name, example_value in example_dict.items():
|
| 108 |
+
member = shape.members[member_name]
|
| 109 |
+
_assert_valid_values(member, example_value, path + [member_name])
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
def _assert_valid_list_values(shape, example_values, path):
|
| 113 |
+
member = shape.member
|
| 114 |
+
for i, value in enumerate(example_values):
|
| 115 |
+
name = f"{path[-1]}[{i}]"
|
| 116 |
+
_assert_valid_values(member, value, path[:-1] + [name])
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def _assert_valid_map_values(shape, example_value, path):
|
| 120 |
+
for key, value in example_value.items():
|
| 121 |
+
name = f'{path[-1]}["{key}"]'
|
| 122 |
+
_assert_valid_values(shape.value, value, path[:-1] + [name])
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
def _assert_valid_timestamp(timestamp, path):
|
| 126 |
+
try:
|
| 127 |
+
parse_timestamp(timestamp).timetuple()
|
| 128 |
+
except Exception as e:
|
| 129 |
+
dotted_path = '.'.join(path)
|
| 130 |
+
raise AssertionError(
|
| 131 |
+
f'Failed to parse timestamp {timestamp} for {dotted_path}: {e}'
|
| 132 |
+
)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def assert_operation_exists(service_model, operation_name):
|
| 136 |
+
try:
|
| 137 |
+
service_model.operation_model(operation_name)
|
| 138 |
+
except OperationNotFoundError:
|
| 139 |
+
raise AssertionError(
|
| 140 |
+
f"Examples found in {service_model.service_name} for operation "
|
| 141 |
+
f"{operation_name} that does not exist."
|
| 142 |
+
)
|
testbed/boto__botocore/tests/functional/docs/test_streaming_body.py
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
| 2 |
+
#
|
| 3 |
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
| 4 |
+
# may not use this file except in compliance with the License. A copy of
|
| 5 |
+
# the License is located at
|
| 6 |
+
#
|
| 7 |
+
# http://aws.amazon.com/apache2.0/
|
| 8 |
+
#
|
| 9 |
+
# or in the "license" file accompanying this file. This file is
|
| 10 |
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
| 11 |
+
# ANY KIND, either express or implied. See the License for the specific
|
| 12 |
+
# language governing permissions and limitations under the License.
|
| 13 |
+
from botocore import xform_name
|
| 14 |
+
from botocore.docs.service import ServiceDocumenter
|
| 15 |
+
from tests.functional.docs import BaseDocsFunctionalTest
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class TestStreamingBodyDocumentation(BaseDocsFunctionalTest):
|
| 19 |
+
def test_all_streaming_body_are_properly_documented(self):
|
| 20 |
+
for service in self._session.get_available_services():
|
| 21 |
+
client = self._session.create_client(
|
| 22 |
+
service,
|
| 23 |
+
region_name='us-east-1',
|
| 24 |
+
aws_access_key_id='foo',
|
| 25 |
+
aws_secret_access_key='bar',
|
| 26 |
+
)
|
| 27 |
+
service_model = client.meta.service_model
|
| 28 |
+
for operation in service_model.operation_names:
|
| 29 |
+
operation_model = service_model.operation_model(operation)
|
| 30 |
+
if operation_model.has_streaming_output:
|
| 31 |
+
self.assert_streaming_body_is_properly_documented(
|
| 32 |
+
service, xform_name(operation)
|
| 33 |
+
)
|
| 34 |
+
|
| 35 |
+
def assert_streaming_body_is_properly_documented(self, service, operation):
|
| 36 |
+
ServiceDocumenter(
|
| 37 |
+
service, self._session, self.root_services_path
|
| 38 |
+
).document_service()
|
| 39 |
+
contents = self.get_client_method_contents(service, operation)
|
| 40 |
+
method_docs = self.get_method_document_block(operation, contents)
|
| 41 |
+
self.assert_contains_line('StreamingBody', method_docs)
|
testbed/boto__botocore/tests/functional/endpoint-rules/accessanalyzer/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,678 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://access-analyzer.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://access-analyzer.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://access-analyzer.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://access-analyzer.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://access-analyzer.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://access-analyzer.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://access-analyzer.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://access-analyzer.ap-southeast-3.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ap-southeast-3",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://access-analyzer.ca-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "ca-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://access-analyzer-fips.ca-central-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "ca-central-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://access-analyzer.eu-central-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-central-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://access-analyzer.eu-north-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-north-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://access-analyzer.eu-south-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-south-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://access-analyzer.eu-west-1.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-1",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://access-analyzer.eu-west-2.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "eu-west-2",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://access-analyzer.eu-west-3.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "eu-west-3",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://access-analyzer.me-south-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "me-south-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://access-analyzer.sa-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "sa-east-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://access-analyzer.us-east-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://access-analyzer-fips.us-east-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-east-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://access-analyzer.us-east-2.amazonaws.com"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-2",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://access-analyzer-fips.us-east-2.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-2",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://access-analyzer.us-west-1.amazonaws.com"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-west-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-west-1 with FIPS enabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://access-analyzer-fips.us-west-1.amazonaws.com"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-west-1",
|
| 324 |
+
"UseFIPS": true,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://access-analyzer.us-west-2.amazonaws.com"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-west-2",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://access-analyzer-fips.us-west-2.amazonaws.com"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-west-2",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://access-analyzer-fips.us-east-1.api.aws"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-east-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": true
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://access-analyzer.us-east-1.api.aws"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "us-east-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://access-analyzer.cn-north-1.amazonaws.com.cn"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "cn-north-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://access-analyzer.cn-northwest-1.amazonaws.com.cn"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "cn-northwest-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://access-analyzer-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "cn-north-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://access-analyzer-fips.cn-north-1.amazonaws.com.cn"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "cn-north-1",
|
| 428 |
+
"UseFIPS": true,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://access-analyzer.cn-north-1.api.amazonwebservices.com.cn"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "cn-north-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://access-analyzer.us-gov-east-1.amazonaws.com"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-gov-east-1",
|
| 454 |
+
"UseFIPS": false,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"endpoint": {
|
| 462 |
+
"url": "https://access-analyzer.us-gov-east-1.amazonaws.com"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"params": {
|
| 466 |
+
"Region": "us-gov-east-1",
|
| 467 |
+
"UseFIPS": true,
|
| 468 |
+
"UseDualStack": false
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 473 |
+
"expect": {
|
| 474 |
+
"endpoint": {
|
| 475 |
+
"url": "https://access-analyzer.us-gov-west-1.amazonaws.com"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"params": {
|
| 479 |
+
"Region": "us-gov-west-1",
|
| 480 |
+
"UseFIPS": false,
|
| 481 |
+
"UseDualStack": false
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
|
| 486 |
+
"expect": {
|
| 487 |
+
"endpoint": {
|
| 488 |
+
"url": "https://access-analyzer.us-gov-west-1.amazonaws.com"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
"params": {
|
| 492 |
+
"Region": "us-gov-west-1",
|
| 493 |
+
"UseFIPS": true,
|
| 494 |
+
"UseDualStack": false
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 499 |
+
"expect": {
|
| 500 |
+
"endpoint": {
|
| 501 |
+
"url": "https://access-analyzer-fips.us-gov-east-1.api.aws"
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
"params": {
|
| 505 |
+
"Region": "us-gov-east-1",
|
| 506 |
+
"UseFIPS": true,
|
| 507 |
+
"UseDualStack": true
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 512 |
+
"expect": {
|
| 513 |
+
"endpoint": {
|
| 514 |
+
"url": "https://access-analyzer.us-gov-east-1.api.aws"
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
"params": {
|
| 518 |
+
"Region": "us-gov-east-1",
|
| 519 |
+
"UseFIPS": false,
|
| 520 |
+
"UseDualStack": true
|
| 521 |
+
}
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 525 |
+
"expect": {
|
| 526 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 527 |
+
},
|
| 528 |
+
"params": {
|
| 529 |
+
"Region": "us-iso-east-1",
|
| 530 |
+
"UseFIPS": true,
|
| 531 |
+
"UseDualStack": true
|
| 532 |
+
}
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 536 |
+
"expect": {
|
| 537 |
+
"endpoint": {
|
| 538 |
+
"url": "https://access-analyzer-fips.us-iso-east-1.c2s.ic.gov"
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
"params": {
|
| 542 |
+
"Region": "us-iso-east-1",
|
| 543 |
+
"UseFIPS": true,
|
| 544 |
+
"UseDualStack": false
|
| 545 |
+
}
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 549 |
+
"expect": {
|
| 550 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 551 |
+
},
|
| 552 |
+
"params": {
|
| 553 |
+
"Region": "us-iso-east-1",
|
| 554 |
+
"UseFIPS": false,
|
| 555 |
+
"UseDualStack": true
|
| 556 |
+
}
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 560 |
+
"expect": {
|
| 561 |
+
"endpoint": {
|
| 562 |
+
"url": "https://access-analyzer.us-iso-east-1.c2s.ic.gov"
|
| 563 |
+
}
|
| 564 |
+
},
|
| 565 |
+
"params": {
|
| 566 |
+
"Region": "us-iso-east-1",
|
| 567 |
+
"UseFIPS": false,
|
| 568 |
+
"UseDualStack": false
|
| 569 |
+
}
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 573 |
+
"expect": {
|
| 574 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 575 |
+
},
|
| 576 |
+
"params": {
|
| 577 |
+
"Region": "us-isob-east-1",
|
| 578 |
+
"UseFIPS": true,
|
| 579 |
+
"UseDualStack": true
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 584 |
+
"expect": {
|
| 585 |
+
"endpoint": {
|
| 586 |
+
"url": "https://access-analyzer-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 587 |
+
}
|
| 588 |
+
},
|
| 589 |
+
"params": {
|
| 590 |
+
"Region": "us-isob-east-1",
|
| 591 |
+
"UseFIPS": true,
|
| 592 |
+
"UseDualStack": false
|
| 593 |
+
}
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 597 |
+
"expect": {
|
| 598 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 599 |
+
},
|
| 600 |
+
"params": {
|
| 601 |
+
"Region": "us-isob-east-1",
|
| 602 |
+
"UseFIPS": false,
|
| 603 |
+
"UseDualStack": true
|
| 604 |
+
}
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 608 |
+
"expect": {
|
| 609 |
+
"endpoint": {
|
| 610 |
+
"url": "https://access-analyzer.us-isob-east-1.sc2s.sgov.gov"
|
| 611 |
+
}
|
| 612 |
+
},
|
| 613 |
+
"params": {
|
| 614 |
+
"Region": "us-isob-east-1",
|
| 615 |
+
"UseFIPS": false,
|
| 616 |
+
"UseDualStack": false
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 621 |
+
"expect": {
|
| 622 |
+
"endpoint": {
|
| 623 |
+
"url": "https://example.com"
|
| 624 |
+
}
|
| 625 |
+
},
|
| 626 |
+
"params": {
|
| 627 |
+
"Region": "us-east-1",
|
| 628 |
+
"UseFIPS": false,
|
| 629 |
+
"UseDualStack": false,
|
| 630 |
+
"Endpoint": "https://example.com"
|
| 631 |
+
}
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 635 |
+
"expect": {
|
| 636 |
+
"endpoint": {
|
| 637 |
+
"url": "https://example.com"
|
| 638 |
+
}
|
| 639 |
+
},
|
| 640 |
+
"params": {
|
| 641 |
+
"UseFIPS": false,
|
| 642 |
+
"UseDualStack": false,
|
| 643 |
+
"Endpoint": "https://example.com"
|
| 644 |
+
}
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 648 |
+
"expect": {
|
| 649 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 650 |
+
},
|
| 651 |
+
"params": {
|
| 652 |
+
"Region": "us-east-1",
|
| 653 |
+
"UseFIPS": true,
|
| 654 |
+
"UseDualStack": false,
|
| 655 |
+
"Endpoint": "https://example.com"
|
| 656 |
+
}
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 660 |
+
"expect": {
|
| 661 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 662 |
+
},
|
| 663 |
+
"params": {
|
| 664 |
+
"Region": "us-east-1",
|
| 665 |
+
"UseFIPS": false,
|
| 666 |
+
"UseDualStack": true,
|
| 667 |
+
"Endpoint": "https://example.com"
|
| 668 |
+
}
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"documentation": "Missing region",
|
| 672 |
+
"expect": {
|
| 673 |
+
"error": "Invalid Configuration: Missing Region"
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
],
|
| 677 |
+
"version": "1.0"
|
| 678 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/account/endpoint-tests-1.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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region aws-global with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"properties": {
|
| 8 |
+
"authSchemes": [
|
| 9 |
+
{
|
| 10 |
+
"name": "sigv4",
|
| 11 |
+
"signingName": "account",
|
| 12 |
+
"signingRegion": "us-east-1"
|
| 13 |
+
}
|
| 14 |
+
]
|
| 15 |
+
},
|
| 16 |
+
"url": "https://account.us-east-1.amazonaws.com"
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"params": {
|
| 20 |
+
"Region": "aws-global",
|
| 21 |
+
"UseFIPS": false,
|
| 22 |
+
"UseDualStack": false
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 27 |
+
"expect": {
|
| 28 |
+
"endpoint": {
|
| 29 |
+
"url": "https://account-fips.us-east-1.api.aws"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"params": {
|
| 33 |
+
"Region": "us-east-1",
|
| 34 |
+
"UseFIPS": true,
|
| 35 |
+
"UseDualStack": true
|
| 36 |
+
}
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 40 |
+
"expect": {
|
| 41 |
+
"endpoint": {
|
| 42 |
+
"url": "https://account-fips.us-east-1.amazonaws.com"
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"params": {
|
| 46 |
+
"Region": "us-east-1",
|
| 47 |
+
"UseFIPS": true,
|
| 48 |
+
"UseDualStack": false
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 53 |
+
"expect": {
|
| 54 |
+
"endpoint": {
|
| 55 |
+
"url": "https://account.us-east-1.api.aws"
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
"params": {
|
| 59 |
+
"Region": "us-east-1",
|
| 60 |
+
"UseFIPS": false,
|
| 61 |
+
"UseDualStack": true
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 66 |
+
"expect": {
|
| 67 |
+
"endpoint": {
|
| 68 |
+
"properties": {
|
| 69 |
+
"authSchemes": [
|
| 70 |
+
{
|
| 71 |
+
"name": "sigv4",
|
| 72 |
+
"signingName": "account",
|
| 73 |
+
"signingRegion": "us-east-1"
|
| 74 |
+
}
|
| 75 |
+
]
|
| 76 |
+
},
|
| 77 |
+
"url": "https://account.us-east-1.amazonaws.com"
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
"params": {
|
| 81 |
+
"Region": "us-east-1",
|
| 82 |
+
"UseFIPS": false,
|
| 83 |
+
"UseDualStack": false
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled",
|
| 88 |
+
"expect": {
|
| 89 |
+
"endpoint": {
|
| 90 |
+
"properties": {
|
| 91 |
+
"authSchemes": [
|
| 92 |
+
{
|
| 93 |
+
"name": "sigv4",
|
| 94 |
+
"signingName": "account",
|
| 95 |
+
"signingRegion": "cn-northwest-1"
|
| 96 |
+
}
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
"url": "https://account.cn-northwest-1.amazonaws.com.cn"
|
| 100 |
+
}
|
| 101 |
+
},
|
| 102 |
+
"params": {
|
| 103 |
+
"Region": "aws-cn-global",
|
| 104 |
+
"UseFIPS": false,
|
| 105 |
+
"UseDualStack": false
|
| 106 |
+
}
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 110 |
+
"expect": {
|
| 111 |
+
"endpoint": {
|
| 112 |
+
"url": "https://account-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 113 |
+
}
|
| 114 |
+
},
|
| 115 |
+
"params": {
|
| 116 |
+
"Region": "cn-north-1",
|
| 117 |
+
"UseFIPS": true,
|
| 118 |
+
"UseDualStack": true
|
| 119 |
+
}
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 123 |
+
"expect": {
|
| 124 |
+
"endpoint": {
|
| 125 |
+
"url": "https://account-fips.cn-north-1.amazonaws.com.cn"
|
| 126 |
+
}
|
| 127 |
+
},
|
| 128 |
+
"params": {
|
| 129 |
+
"Region": "cn-north-1",
|
| 130 |
+
"UseFIPS": true,
|
| 131 |
+
"UseDualStack": false
|
| 132 |
+
}
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 136 |
+
"expect": {
|
| 137 |
+
"endpoint": {
|
| 138 |
+
"url": "https://account.cn-north-1.api.amazonwebservices.com.cn"
|
| 139 |
+
}
|
| 140 |
+
},
|
| 141 |
+
"params": {
|
| 142 |
+
"Region": "cn-north-1",
|
| 143 |
+
"UseFIPS": false,
|
| 144 |
+
"UseDualStack": true
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 149 |
+
"expect": {
|
| 150 |
+
"endpoint": {
|
| 151 |
+
"properties": {
|
| 152 |
+
"authSchemes": [
|
| 153 |
+
{
|
| 154 |
+
"name": "sigv4",
|
| 155 |
+
"signingName": "account",
|
| 156 |
+
"signingRegion": "cn-northwest-1"
|
| 157 |
+
}
|
| 158 |
+
]
|
| 159 |
+
},
|
| 160 |
+
"url": "https://account.cn-northwest-1.amazonaws.com.cn"
|
| 161 |
+
}
|
| 162 |
+
},
|
| 163 |
+
"params": {
|
| 164 |
+
"Region": "cn-north-1",
|
| 165 |
+
"UseFIPS": false,
|
| 166 |
+
"UseDualStack": false
|
| 167 |
+
}
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 171 |
+
"expect": {
|
| 172 |
+
"endpoint": {
|
| 173 |
+
"url": "https://account-fips.us-gov-east-1.api.aws"
|
| 174 |
+
}
|
| 175 |
+
},
|
| 176 |
+
"params": {
|
| 177 |
+
"Region": "us-gov-east-1",
|
| 178 |
+
"UseFIPS": true,
|
| 179 |
+
"UseDualStack": true
|
| 180 |
+
}
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 184 |
+
"expect": {
|
| 185 |
+
"endpoint": {
|
| 186 |
+
"url": "https://account-fips.us-gov-east-1.amazonaws.com"
|
| 187 |
+
}
|
| 188 |
+
},
|
| 189 |
+
"params": {
|
| 190 |
+
"Region": "us-gov-east-1",
|
| 191 |
+
"UseFIPS": true,
|
| 192 |
+
"UseDualStack": false
|
| 193 |
+
}
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 197 |
+
"expect": {
|
| 198 |
+
"endpoint": {
|
| 199 |
+
"url": "https://account.us-gov-east-1.api.aws"
|
| 200 |
+
}
|
| 201 |
+
},
|
| 202 |
+
"params": {
|
| 203 |
+
"Region": "us-gov-east-1",
|
| 204 |
+
"UseFIPS": false,
|
| 205 |
+
"UseDualStack": true
|
| 206 |
+
}
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 210 |
+
"expect": {
|
| 211 |
+
"endpoint": {
|
| 212 |
+
"url": "https://account.us-gov-east-1.amazonaws.com"
|
| 213 |
+
}
|
| 214 |
+
},
|
| 215 |
+
"params": {
|
| 216 |
+
"Region": "us-gov-east-1",
|
| 217 |
+
"UseFIPS": false,
|
| 218 |
+
"UseDualStack": false
|
| 219 |
+
}
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 223 |
+
"expect": {
|
| 224 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 225 |
+
},
|
| 226 |
+
"params": {
|
| 227 |
+
"Region": "us-iso-east-1",
|
| 228 |
+
"UseFIPS": true,
|
| 229 |
+
"UseDualStack": true
|
| 230 |
+
}
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 234 |
+
"expect": {
|
| 235 |
+
"endpoint": {
|
| 236 |
+
"url": "https://account-fips.us-iso-east-1.c2s.ic.gov"
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
"params": {
|
| 240 |
+
"Region": "us-iso-east-1",
|
| 241 |
+
"UseFIPS": true,
|
| 242 |
+
"UseDualStack": false
|
| 243 |
+
}
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 247 |
+
"expect": {
|
| 248 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 249 |
+
},
|
| 250 |
+
"params": {
|
| 251 |
+
"Region": "us-iso-east-1",
|
| 252 |
+
"UseFIPS": false,
|
| 253 |
+
"UseDualStack": true
|
| 254 |
+
}
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 258 |
+
"expect": {
|
| 259 |
+
"endpoint": {
|
| 260 |
+
"url": "https://account.us-iso-east-1.c2s.ic.gov"
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
"params": {
|
| 264 |
+
"Region": "us-iso-east-1",
|
| 265 |
+
"UseFIPS": false,
|
| 266 |
+
"UseDualStack": false
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 271 |
+
"expect": {
|
| 272 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 273 |
+
},
|
| 274 |
+
"params": {
|
| 275 |
+
"Region": "us-isob-east-1",
|
| 276 |
+
"UseFIPS": true,
|
| 277 |
+
"UseDualStack": true
|
| 278 |
+
}
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 282 |
+
"expect": {
|
| 283 |
+
"endpoint": {
|
| 284 |
+
"url": "https://account-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 285 |
+
}
|
| 286 |
+
},
|
| 287 |
+
"params": {
|
| 288 |
+
"Region": "us-isob-east-1",
|
| 289 |
+
"UseFIPS": true,
|
| 290 |
+
"UseDualStack": false
|
| 291 |
+
}
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 295 |
+
"expect": {
|
| 296 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 297 |
+
},
|
| 298 |
+
"params": {
|
| 299 |
+
"Region": "us-isob-east-1",
|
| 300 |
+
"UseFIPS": false,
|
| 301 |
+
"UseDualStack": true
|
| 302 |
+
}
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 306 |
+
"expect": {
|
| 307 |
+
"endpoint": {
|
| 308 |
+
"url": "https://account.us-isob-east-1.sc2s.sgov.gov"
|
| 309 |
+
}
|
| 310 |
+
},
|
| 311 |
+
"params": {
|
| 312 |
+
"Region": "us-isob-east-1",
|
| 313 |
+
"UseFIPS": false,
|
| 314 |
+
"UseDualStack": false
|
| 315 |
+
}
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 319 |
+
"expect": {
|
| 320 |
+
"endpoint": {
|
| 321 |
+
"url": "https://example.com"
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
"params": {
|
| 325 |
+
"Region": "us-east-1",
|
| 326 |
+
"UseFIPS": false,
|
| 327 |
+
"UseDualStack": false,
|
| 328 |
+
"Endpoint": "https://example.com"
|
| 329 |
+
}
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 333 |
+
"expect": {
|
| 334 |
+
"endpoint": {
|
| 335 |
+
"url": "https://example.com"
|
| 336 |
+
}
|
| 337 |
+
},
|
| 338 |
+
"params": {
|
| 339 |
+
"UseFIPS": false,
|
| 340 |
+
"UseDualStack": false,
|
| 341 |
+
"Endpoint": "https://example.com"
|
| 342 |
+
}
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 346 |
+
"expect": {
|
| 347 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 348 |
+
},
|
| 349 |
+
"params": {
|
| 350 |
+
"Region": "us-east-1",
|
| 351 |
+
"UseFIPS": true,
|
| 352 |
+
"UseDualStack": false,
|
| 353 |
+
"Endpoint": "https://example.com"
|
| 354 |
+
}
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 358 |
+
"expect": {
|
| 359 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-east-1",
|
| 363 |
+
"UseFIPS": false,
|
| 364 |
+
"UseDualStack": true,
|
| 365 |
+
"Endpoint": "https://example.com"
|
| 366 |
+
}
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"documentation": "Missing region",
|
| 370 |
+
"expect": {
|
| 371 |
+
"error": "Invalid Configuration: Missing Region"
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"version": "1.0"
|
| 376 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/acm-pca/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,665 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://acm-pca.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://acm-pca.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://acm-pca.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://acm-pca.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://acm-pca.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://acm-pca.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://acm-pca.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://acm-pca.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://acm-pca.ap-southeast-3.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ap-southeast-3",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://acm-pca.ca-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "ca-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://acm-pca-fips.ca-central-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "ca-central-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://acm-pca.eu-central-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-central-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://acm-pca.eu-north-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-north-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://acm-pca.eu-south-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-south-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://acm-pca.eu-west-1.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-1",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://acm-pca.eu-west-2.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "eu-west-2",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://acm-pca.eu-west-3.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "eu-west-3",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://acm-pca.me-south-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "me-south-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://acm-pca.sa-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "sa-east-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://acm-pca.us-east-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://acm-pca-fips.us-east-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-east-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://acm-pca.us-east-2.amazonaws.com"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-2",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://acm-pca-fips.us-east-2.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-2",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://acm-pca.us-west-1.amazonaws.com"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-west-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-west-1 with FIPS enabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://acm-pca-fips.us-west-1.amazonaws.com"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-west-1",
|
| 324 |
+
"UseFIPS": true,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://acm-pca.us-west-2.amazonaws.com"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-west-2",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://acm-pca-fips.us-west-2.amazonaws.com"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-west-2",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://acm-pca-fips.us-east-1.api.aws"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-east-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": true
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://acm-pca.us-east-1.api.aws"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "us-east-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://acm-pca-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "cn-north-1",
|
| 389 |
+
"UseFIPS": true,
|
| 390 |
+
"UseDualStack": true
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://acm-pca-fips.cn-north-1.amazonaws.com.cn"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "cn-north-1",
|
| 402 |
+
"UseFIPS": true,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://acm-pca.cn-north-1.api.amazonwebservices.com.cn"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "cn-north-1",
|
| 415 |
+
"UseFIPS": false,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://acm-pca.cn-north-1.amazonaws.com.cn"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "cn-north-1",
|
| 428 |
+
"UseFIPS": false,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://acm-pca.us-gov-east-1.amazonaws.com"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-east-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": false
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://acm-pca.us-gov-east-1.amazonaws.com"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-gov-east-1",
|
| 454 |
+
"UseFIPS": true,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"endpoint": {
|
| 462 |
+
"url": "https://acm-pca.us-gov-west-1.amazonaws.com"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"params": {
|
| 466 |
+
"Region": "us-gov-west-1",
|
| 467 |
+
"UseFIPS": false,
|
| 468 |
+
"UseDualStack": false
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
|
| 473 |
+
"expect": {
|
| 474 |
+
"endpoint": {
|
| 475 |
+
"url": "https://acm-pca.us-gov-west-1.amazonaws.com"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"params": {
|
| 479 |
+
"Region": "us-gov-west-1",
|
| 480 |
+
"UseFIPS": true,
|
| 481 |
+
"UseDualStack": false
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 486 |
+
"expect": {
|
| 487 |
+
"endpoint": {
|
| 488 |
+
"url": "https://acm-pca-fips.us-gov-east-1.api.aws"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
"params": {
|
| 492 |
+
"Region": "us-gov-east-1",
|
| 493 |
+
"UseFIPS": true,
|
| 494 |
+
"UseDualStack": true
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 499 |
+
"expect": {
|
| 500 |
+
"endpoint": {
|
| 501 |
+
"url": "https://acm-pca.us-gov-east-1.api.aws"
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
"params": {
|
| 505 |
+
"Region": "us-gov-east-1",
|
| 506 |
+
"UseFIPS": false,
|
| 507 |
+
"UseDualStack": true
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 512 |
+
"expect": {
|
| 513 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 514 |
+
},
|
| 515 |
+
"params": {
|
| 516 |
+
"Region": "us-iso-east-1",
|
| 517 |
+
"UseFIPS": true,
|
| 518 |
+
"UseDualStack": true
|
| 519 |
+
}
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 523 |
+
"expect": {
|
| 524 |
+
"endpoint": {
|
| 525 |
+
"url": "https://acm-pca-fips.us-iso-east-1.c2s.ic.gov"
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
"params": {
|
| 529 |
+
"Region": "us-iso-east-1",
|
| 530 |
+
"UseFIPS": true,
|
| 531 |
+
"UseDualStack": false
|
| 532 |
+
}
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 536 |
+
"expect": {
|
| 537 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 538 |
+
},
|
| 539 |
+
"params": {
|
| 540 |
+
"Region": "us-iso-east-1",
|
| 541 |
+
"UseFIPS": false,
|
| 542 |
+
"UseDualStack": true
|
| 543 |
+
}
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 547 |
+
"expect": {
|
| 548 |
+
"endpoint": {
|
| 549 |
+
"url": "https://acm-pca.us-iso-east-1.c2s.ic.gov"
|
| 550 |
+
}
|
| 551 |
+
},
|
| 552 |
+
"params": {
|
| 553 |
+
"Region": "us-iso-east-1",
|
| 554 |
+
"UseFIPS": false,
|
| 555 |
+
"UseDualStack": false
|
| 556 |
+
}
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 560 |
+
"expect": {
|
| 561 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 562 |
+
},
|
| 563 |
+
"params": {
|
| 564 |
+
"Region": "us-isob-east-1",
|
| 565 |
+
"UseFIPS": true,
|
| 566 |
+
"UseDualStack": true
|
| 567 |
+
}
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 571 |
+
"expect": {
|
| 572 |
+
"endpoint": {
|
| 573 |
+
"url": "https://acm-pca-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 574 |
+
}
|
| 575 |
+
},
|
| 576 |
+
"params": {
|
| 577 |
+
"Region": "us-isob-east-1",
|
| 578 |
+
"UseFIPS": true,
|
| 579 |
+
"UseDualStack": false
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 584 |
+
"expect": {
|
| 585 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 586 |
+
},
|
| 587 |
+
"params": {
|
| 588 |
+
"Region": "us-isob-east-1",
|
| 589 |
+
"UseFIPS": false,
|
| 590 |
+
"UseDualStack": true
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 595 |
+
"expect": {
|
| 596 |
+
"endpoint": {
|
| 597 |
+
"url": "https://acm-pca.us-isob-east-1.sc2s.sgov.gov"
|
| 598 |
+
}
|
| 599 |
+
},
|
| 600 |
+
"params": {
|
| 601 |
+
"Region": "us-isob-east-1",
|
| 602 |
+
"UseFIPS": false,
|
| 603 |
+
"UseDualStack": false
|
| 604 |
+
}
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 608 |
+
"expect": {
|
| 609 |
+
"endpoint": {
|
| 610 |
+
"url": "https://example.com"
|
| 611 |
+
}
|
| 612 |
+
},
|
| 613 |
+
"params": {
|
| 614 |
+
"Region": "us-east-1",
|
| 615 |
+
"UseFIPS": false,
|
| 616 |
+
"UseDualStack": false,
|
| 617 |
+
"Endpoint": "https://example.com"
|
| 618 |
+
}
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 622 |
+
"expect": {
|
| 623 |
+
"endpoint": {
|
| 624 |
+
"url": "https://example.com"
|
| 625 |
+
}
|
| 626 |
+
},
|
| 627 |
+
"params": {
|
| 628 |
+
"UseFIPS": false,
|
| 629 |
+
"UseDualStack": false,
|
| 630 |
+
"Endpoint": "https://example.com"
|
| 631 |
+
}
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 635 |
+
"expect": {
|
| 636 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 637 |
+
},
|
| 638 |
+
"params": {
|
| 639 |
+
"Region": "us-east-1",
|
| 640 |
+
"UseFIPS": true,
|
| 641 |
+
"UseDualStack": false,
|
| 642 |
+
"Endpoint": "https://example.com"
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 647 |
+
"expect": {
|
| 648 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 649 |
+
},
|
| 650 |
+
"params": {
|
| 651 |
+
"Region": "us-east-1",
|
| 652 |
+
"UseFIPS": false,
|
| 653 |
+
"UseDualStack": true,
|
| 654 |
+
"Endpoint": "https://example.com"
|
| 655 |
+
}
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"documentation": "Missing region",
|
| 659 |
+
"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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://acm.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://acm.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://acm.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://acm.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://acm.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://acm.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://acm.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://acm.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://acm.ap-southeast-3.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ap-southeast-3",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://acm.ca-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "ca-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://acm-fips.ca-central-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "ca-central-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://acm.eu-central-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-central-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://acm.eu-north-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-north-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://acm.eu-south-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-south-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://acm.eu-west-1.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-1",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://acm.eu-west-2.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "eu-west-2",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://acm.eu-west-3.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "eu-west-3",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://acm.me-south-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "me-south-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://acm.sa-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "sa-east-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://acm.us-east-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://acm-fips.us-east-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-east-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://acm.us-east-2.amazonaws.com"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-2",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://acm-fips.us-east-2.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-2",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://acm.us-west-1.amazonaws.com"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-west-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-west-1 with FIPS enabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://acm-fips.us-west-1.amazonaws.com"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-west-1",
|
| 324 |
+
"UseFIPS": true,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://acm.us-west-2.amazonaws.com"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-west-2",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://acm-fips.us-west-2.amazonaws.com"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-west-2",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://acm-fips.us-east-1.api.aws"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-east-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": true
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://acm.us-east-1.api.aws"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "us-east-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://acm.cn-north-1.amazonaws.com.cn"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "cn-north-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://acm.cn-northwest-1.amazonaws.com.cn"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "cn-northwest-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://acm-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "cn-north-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://acm-fips.cn-north-1.amazonaws.com.cn"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "cn-north-1",
|
| 428 |
+
"UseFIPS": true,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://acm.cn-north-1.api.amazonwebservices.com.cn"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "cn-north-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://acm.us-gov-east-1.amazonaws.com"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-gov-east-1",
|
| 454 |
+
"UseFIPS": false,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"endpoint": {
|
| 462 |
+
"url": "https://acm.us-gov-west-1.amazonaws.com"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"params": {
|
| 466 |
+
"Region": "us-gov-west-1",
|
| 467 |
+
"UseFIPS": false,
|
| 468 |
+
"UseDualStack": false
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 473 |
+
"expect": {
|
| 474 |
+
"endpoint": {
|
| 475 |
+
"url": "https://acm-fips.us-gov-east-1.api.aws"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"params": {
|
| 479 |
+
"Region": "us-gov-east-1",
|
| 480 |
+
"UseFIPS": true,
|
| 481 |
+
"UseDualStack": true
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 486 |
+
"expect": {
|
| 487 |
+
"endpoint": {
|
| 488 |
+
"url": "https://acm.us-gov-east-1.amazonaws.com"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
"params": {
|
| 492 |
+
"Region": "us-gov-east-1",
|
| 493 |
+
"UseFIPS": true,
|
| 494 |
+
"UseDualStack": false
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 499 |
+
"expect": {
|
| 500 |
+
"endpoint": {
|
| 501 |
+
"url": "https://acm.us-gov-east-1.api.aws"
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
"params": {
|
| 505 |
+
"Region": "us-gov-east-1",
|
| 506 |
+
"UseFIPS": false,
|
| 507 |
+
"UseDualStack": true
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 512 |
+
"expect": {
|
| 513 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 514 |
+
},
|
| 515 |
+
"params": {
|
| 516 |
+
"Region": "us-iso-east-1",
|
| 517 |
+
"UseFIPS": true,
|
| 518 |
+
"UseDualStack": true
|
| 519 |
+
}
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 523 |
+
"expect": {
|
| 524 |
+
"endpoint": {
|
| 525 |
+
"url": "https://acm-fips.us-iso-east-1.c2s.ic.gov"
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
"params": {
|
| 529 |
+
"Region": "us-iso-east-1",
|
| 530 |
+
"UseFIPS": true,
|
| 531 |
+
"UseDualStack": false
|
| 532 |
+
}
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 536 |
+
"expect": {
|
| 537 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 538 |
+
},
|
| 539 |
+
"params": {
|
| 540 |
+
"Region": "us-iso-east-1",
|
| 541 |
+
"UseFIPS": false,
|
| 542 |
+
"UseDualStack": true
|
| 543 |
+
}
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 547 |
+
"expect": {
|
| 548 |
+
"endpoint": {
|
| 549 |
+
"url": "https://acm.us-iso-east-1.c2s.ic.gov"
|
| 550 |
+
}
|
| 551 |
+
},
|
| 552 |
+
"params": {
|
| 553 |
+
"Region": "us-iso-east-1",
|
| 554 |
+
"UseFIPS": false,
|
| 555 |
+
"UseDualStack": false
|
| 556 |
+
}
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 560 |
+
"expect": {
|
| 561 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 562 |
+
},
|
| 563 |
+
"params": {
|
| 564 |
+
"Region": "us-isob-east-1",
|
| 565 |
+
"UseFIPS": true,
|
| 566 |
+
"UseDualStack": true
|
| 567 |
+
}
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 571 |
+
"expect": {
|
| 572 |
+
"endpoint": {
|
| 573 |
+
"url": "https://acm-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 574 |
+
}
|
| 575 |
+
},
|
| 576 |
+
"params": {
|
| 577 |
+
"Region": "us-isob-east-1",
|
| 578 |
+
"UseFIPS": true,
|
| 579 |
+
"UseDualStack": false
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
{
|
| 583 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 584 |
+
"expect": {
|
| 585 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 586 |
+
},
|
| 587 |
+
"params": {
|
| 588 |
+
"Region": "us-isob-east-1",
|
| 589 |
+
"UseFIPS": false,
|
| 590 |
+
"UseDualStack": true
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 595 |
+
"expect": {
|
| 596 |
+
"endpoint": {
|
| 597 |
+
"url": "https://acm.us-isob-east-1.sc2s.sgov.gov"
|
| 598 |
+
}
|
| 599 |
+
},
|
| 600 |
+
"params": {
|
| 601 |
+
"Region": "us-isob-east-1",
|
| 602 |
+
"UseFIPS": false,
|
| 603 |
+
"UseDualStack": false
|
| 604 |
+
}
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 608 |
+
"expect": {
|
| 609 |
+
"endpoint": {
|
| 610 |
+
"url": "https://example.com"
|
| 611 |
+
}
|
| 612 |
+
},
|
| 613 |
+
"params": {
|
| 614 |
+
"Region": "us-east-1",
|
| 615 |
+
"UseFIPS": false,
|
| 616 |
+
"UseDualStack": false,
|
| 617 |
+
"Endpoint": "https://example.com"
|
| 618 |
+
}
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 622 |
+
"expect": {
|
| 623 |
+
"endpoint": {
|
| 624 |
+
"url": "https://example.com"
|
| 625 |
+
}
|
| 626 |
+
},
|
| 627 |
+
"params": {
|
| 628 |
+
"UseFIPS": false,
|
| 629 |
+
"UseDualStack": false,
|
| 630 |
+
"Endpoint": "https://example.com"
|
| 631 |
+
}
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 635 |
+
"expect": {
|
| 636 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 637 |
+
},
|
| 638 |
+
"params": {
|
| 639 |
+
"Region": "us-east-1",
|
| 640 |
+
"UseFIPS": true,
|
| 641 |
+
"UseDualStack": false,
|
| 642 |
+
"Endpoint": "https://example.com"
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 647 |
+
"expect": {
|
| 648 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 649 |
+
},
|
| 650 |
+
"params": {
|
| 651 |
+
"Region": "us-east-1",
|
| 652 |
+
"UseFIPS": false,
|
| 653 |
+
"UseDualStack": true,
|
| 654 |
+
"Endpoint": "https://example.com"
|
| 655 |
+
}
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"documentation": "Missing region",
|
| 659 |
+
"expect": {
|
| 660 |
+
"error": "Invalid Configuration: Missing Region"
|
| 661 |
+
}
|
| 662 |
+
}
|
| 663 |
+
],
|
| 664 |
+
"version": "1.0"
|
| 665 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/amp/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://aps.ap-northeast-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "ap-northeast-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://aps.ap-southeast-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-southeast-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://aps.ap-southeast-2.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-southeast-2",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://aps.eu-central-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "eu-central-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://aps.eu-north-1.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "eu-north-1",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://aps.eu-west-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "eu-west-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://aps.eu-west-2.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "eu-west-2",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://aps.us-east-1.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "us-east-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://aps.us-east-2.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "us-east-2",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://aps.us-west-2.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-west-2",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://aps-fips.us-east-1.api.aws"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "us-east-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": true
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://aps-fips.us-east-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "us-east-1",
|
| 155 |
+
"UseFIPS": true,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://aps.us-east-1.api.aws"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "us-east-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": true
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://aps-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "cn-north-1",
|
| 181 |
+
"UseFIPS": true,
|
| 182 |
+
"UseDualStack": true
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://aps-fips.cn-north-1.amazonaws.com.cn"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "cn-north-1",
|
| 194 |
+
"UseFIPS": true,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://aps.cn-north-1.api.amazonwebservices.com.cn"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "cn-north-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": true
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://aps.cn-north-1.amazonaws.com.cn"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "cn-north-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://aps-fips.us-gov-east-1.api.aws"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-gov-east-1",
|
| 233 |
+
"UseFIPS": true,
|
| 234 |
+
"UseDualStack": true
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://aps-fips.us-gov-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-gov-east-1",
|
| 246 |
+
"UseFIPS": true,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://aps.us-gov-east-1.api.aws"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-gov-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://aps.us-gov-east-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-gov-east-1",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 280 |
+
},
|
| 281 |
+
"params": {
|
| 282 |
+
"Region": "us-iso-east-1",
|
| 283 |
+
"UseFIPS": true,
|
| 284 |
+
"UseDualStack": true
|
| 285 |
+
}
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 289 |
+
"expect": {
|
| 290 |
+
"endpoint": {
|
| 291 |
+
"url": "https://aps-fips.us-iso-east-1.c2s.ic.gov"
|
| 292 |
+
}
|
| 293 |
+
},
|
| 294 |
+
"params": {
|
| 295 |
+
"Region": "us-iso-east-1",
|
| 296 |
+
"UseFIPS": true,
|
| 297 |
+
"UseDualStack": false
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 302 |
+
"expect": {
|
| 303 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 304 |
+
},
|
| 305 |
+
"params": {
|
| 306 |
+
"Region": "us-iso-east-1",
|
| 307 |
+
"UseFIPS": false,
|
| 308 |
+
"UseDualStack": true
|
| 309 |
+
}
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 313 |
+
"expect": {
|
| 314 |
+
"endpoint": {
|
| 315 |
+
"url": "https://aps.us-iso-east-1.c2s.ic.gov"
|
| 316 |
+
}
|
| 317 |
+
},
|
| 318 |
+
"params": {
|
| 319 |
+
"Region": "us-iso-east-1",
|
| 320 |
+
"UseFIPS": false,
|
| 321 |
+
"UseDualStack": false
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 326 |
+
"expect": {
|
| 327 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 328 |
+
},
|
| 329 |
+
"params": {
|
| 330 |
+
"Region": "us-isob-east-1",
|
| 331 |
+
"UseFIPS": true,
|
| 332 |
+
"UseDualStack": true
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 337 |
+
"expect": {
|
| 338 |
+
"endpoint": {
|
| 339 |
+
"url": "https://aps-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 340 |
+
}
|
| 341 |
+
},
|
| 342 |
+
"params": {
|
| 343 |
+
"Region": "us-isob-east-1",
|
| 344 |
+
"UseFIPS": true,
|
| 345 |
+
"UseDualStack": false
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 350 |
+
"expect": {
|
| 351 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 352 |
+
},
|
| 353 |
+
"params": {
|
| 354 |
+
"Region": "us-isob-east-1",
|
| 355 |
+
"UseFIPS": false,
|
| 356 |
+
"UseDualStack": true
|
| 357 |
+
}
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 361 |
+
"expect": {
|
| 362 |
+
"endpoint": {
|
| 363 |
+
"url": "https://aps.us-isob-east-1.sc2s.sgov.gov"
|
| 364 |
+
}
|
| 365 |
+
},
|
| 366 |
+
"params": {
|
| 367 |
+
"Region": "us-isob-east-1",
|
| 368 |
+
"UseFIPS": false,
|
| 369 |
+
"UseDualStack": false
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 374 |
+
"expect": {
|
| 375 |
+
"endpoint": {
|
| 376 |
+
"url": "https://example.com"
|
| 377 |
+
}
|
| 378 |
+
},
|
| 379 |
+
"params": {
|
| 380 |
+
"Region": "us-east-1",
|
| 381 |
+
"UseFIPS": false,
|
| 382 |
+
"UseDualStack": false,
|
| 383 |
+
"Endpoint": "https://example.com"
|
| 384 |
+
}
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 388 |
+
"expect": {
|
| 389 |
+
"endpoint": {
|
| 390 |
+
"url": "https://example.com"
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
"params": {
|
| 394 |
+
"UseFIPS": false,
|
| 395 |
+
"UseDualStack": false,
|
| 396 |
+
"Endpoint": "https://example.com"
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 401 |
+
"expect": {
|
| 402 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 403 |
+
},
|
| 404 |
+
"params": {
|
| 405 |
+
"Region": "us-east-1",
|
| 406 |
+
"UseFIPS": true,
|
| 407 |
+
"UseDualStack": false,
|
| 408 |
+
"Endpoint": "https://example.com"
|
| 409 |
+
}
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 413 |
+
"expect": {
|
| 414 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 415 |
+
},
|
| 416 |
+
"params": {
|
| 417 |
+
"Region": "us-east-1",
|
| 418 |
+
"UseFIPS": false,
|
| 419 |
+
"UseDualStack": true,
|
| 420 |
+
"Endpoint": "https://example.com"
|
| 421 |
+
}
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"documentation": "Missing region",
|
| 425 |
+
"expect": {
|
| 426 |
+
"error": "Invalid Configuration: Missing Region"
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
],
|
| 430 |
+
"version": "1.0"
|
| 431 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/amplify/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,548 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
"url": "https://amplify.ap-east-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "ap-east-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://amplify.ap-northeast-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-northeast-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://amplify.ap-northeast-2.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-2",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://amplify.ap-south-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-south-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://amplify.ap-southeast-1.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-southeast-1",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://amplify.ap-southeast-2.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-southeast-2",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://amplify.ca-central-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ca-central-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://amplify.eu-central-1.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "eu-central-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://amplify.eu-north-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "eu-north-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://amplify.eu-south-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-south-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://amplify.eu-west-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-west-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://amplify.eu-west-2.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-west-2",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://amplify.eu-west-3.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-west-3",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://amplify.me-south-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "me-south-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://amplify.sa-east-1.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "sa-east-1",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://amplify.us-east-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "us-east-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://amplify.us-east-2.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "us-east-2",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://amplify.us-west-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-west-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://amplify.us-west-2.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-west-2",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://amplify-fips.us-east-1.api.aws"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-1",
|
| 259 |
+
"UseFIPS": true,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://amplify-fips.us-east-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-east-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://amplify.us-east-1.api.aws"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-1",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://amplify-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "cn-north-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": true
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://amplify-fips.cn-north-1.amazonaws.com.cn"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "cn-north-1",
|
| 311 |
+
"UseFIPS": true,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://amplify.cn-north-1.api.amazonwebservices.com.cn"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "cn-north-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": true
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://amplify.cn-north-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-north-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://amplify-fips.us-gov-east-1.api.aws"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-gov-east-1",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://amplify-fips.us-gov-east-1.amazonaws.com"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-gov-east-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://amplify.us-gov-east-1.api.aws"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "us-gov-east-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://amplify.us-gov-east-1.amazonaws.com"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "us-gov-east-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 397 |
+
},
|
| 398 |
+
"params": {
|
| 399 |
+
"Region": "us-iso-east-1",
|
| 400 |
+
"UseFIPS": true,
|
| 401 |
+
"UseDualStack": true
|
| 402 |
+
}
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 406 |
+
"expect": {
|
| 407 |
+
"endpoint": {
|
| 408 |
+
"url": "https://amplify-fips.us-iso-east-1.c2s.ic.gov"
|
| 409 |
+
}
|
| 410 |
+
},
|
| 411 |
+
"params": {
|
| 412 |
+
"Region": "us-iso-east-1",
|
| 413 |
+
"UseFIPS": true,
|
| 414 |
+
"UseDualStack": false
|
| 415 |
+
}
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 419 |
+
"expect": {
|
| 420 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 421 |
+
},
|
| 422 |
+
"params": {
|
| 423 |
+
"Region": "us-iso-east-1",
|
| 424 |
+
"UseFIPS": false,
|
| 425 |
+
"UseDualStack": true
|
| 426 |
+
}
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 430 |
+
"expect": {
|
| 431 |
+
"endpoint": {
|
| 432 |
+
"url": "https://amplify.us-iso-east-1.c2s.ic.gov"
|
| 433 |
+
}
|
| 434 |
+
},
|
| 435 |
+
"params": {
|
| 436 |
+
"Region": "us-iso-east-1",
|
| 437 |
+
"UseFIPS": false,
|
| 438 |
+
"UseDualStack": false
|
| 439 |
+
}
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 443 |
+
"expect": {
|
| 444 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 445 |
+
},
|
| 446 |
+
"params": {
|
| 447 |
+
"Region": "us-isob-east-1",
|
| 448 |
+
"UseFIPS": true,
|
| 449 |
+
"UseDualStack": true
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 454 |
+
"expect": {
|
| 455 |
+
"endpoint": {
|
| 456 |
+
"url": "https://amplify-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 457 |
+
}
|
| 458 |
+
},
|
| 459 |
+
"params": {
|
| 460 |
+
"Region": "us-isob-east-1",
|
| 461 |
+
"UseFIPS": true,
|
| 462 |
+
"UseDualStack": false
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 467 |
+
"expect": {
|
| 468 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 469 |
+
},
|
| 470 |
+
"params": {
|
| 471 |
+
"Region": "us-isob-east-1",
|
| 472 |
+
"UseFIPS": false,
|
| 473 |
+
"UseDualStack": true
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 478 |
+
"expect": {
|
| 479 |
+
"endpoint": {
|
| 480 |
+
"url": "https://amplify.us-isob-east-1.sc2s.sgov.gov"
|
| 481 |
+
}
|
| 482 |
+
},
|
| 483 |
+
"params": {
|
| 484 |
+
"Region": "us-isob-east-1",
|
| 485 |
+
"UseFIPS": false,
|
| 486 |
+
"UseDualStack": false
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 491 |
+
"expect": {
|
| 492 |
+
"endpoint": {
|
| 493 |
+
"url": "https://example.com"
|
| 494 |
+
}
|
| 495 |
+
},
|
| 496 |
+
"params": {
|
| 497 |
+
"Region": "us-east-1",
|
| 498 |
+
"UseFIPS": false,
|
| 499 |
+
"UseDualStack": false,
|
| 500 |
+
"Endpoint": "https://example.com"
|
| 501 |
+
}
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 505 |
+
"expect": {
|
| 506 |
+
"endpoint": {
|
| 507 |
+
"url": "https://example.com"
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
"params": {
|
| 511 |
+
"UseFIPS": false,
|
| 512 |
+
"UseDualStack": false,
|
| 513 |
+
"Endpoint": "https://example.com"
|
| 514 |
+
}
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 518 |
+
"expect": {
|
| 519 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 520 |
+
},
|
| 521 |
+
"params": {
|
| 522 |
+
"Region": "us-east-1",
|
| 523 |
+
"UseFIPS": true,
|
| 524 |
+
"UseDualStack": false,
|
| 525 |
+
"Endpoint": "https://example.com"
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 530 |
+
"expect": {
|
| 531 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 532 |
+
},
|
| 533 |
+
"params": {
|
| 534 |
+
"Region": "us-east-1",
|
| 535 |
+
"UseFIPS": false,
|
| 536 |
+
"UseDualStack": true,
|
| 537 |
+
"Endpoint": "https://example.com"
|
| 538 |
+
}
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"documentation": "Missing region",
|
| 542 |
+
"expect": {
|
| 543 |
+
"error": "Invalid Configuration: Missing Region"
|
| 544 |
+
}
|
| 545 |
+
}
|
| 546 |
+
],
|
| 547 |
+
"version": "1.0"
|
| 548 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/amplifybackend/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://amplifybackend.ap-northeast-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "ap-northeast-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://amplifybackend.ap-northeast-2.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-northeast-2",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://amplifybackend.ap-south-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-south-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://amplifybackend.ap-southeast-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-southeast-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://amplifybackend.ap-southeast-2.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-southeast-2",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://amplifybackend.ca-central-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ca-central-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://amplifybackend.eu-central-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "eu-central-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://amplifybackend.eu-north-1.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "eu-north-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://amplifybackend.eu-west-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "eu-west-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://amplifybackend.eu-west-2.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-west-2",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://amplifybackend.eu-west-3.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-west-3",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://amplifybackend.me-south-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "me-south-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://amplifybackend.sa-east-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "sa-east-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://amplifybackend.us-east-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "us-east-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://amplifybackend.us-east-2.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "us-east-2",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://amplifybackend.us-west-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "us-west-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://amplifybackend.us-west-2.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "us-west-2",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://amplifybackend-fips.us-east-1.api.aws"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": true,
|
| 234 |
+
"UseDualStack": true
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://amplifybackend-fips.us-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-1",
|
| 246 |
+
"UseFIPS": true,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://amplifybackend.us-east-1.api.aws"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://amplifybackend-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "cn-north-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": true
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://amplifybackend-fips.cn-north-1.amazonaws.com.cn"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "cn-north-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://amplifybackend.cn-north-1.api.amazonwebservices.com.cn"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "cn-north-1",
|
| 298 |
+
"UseFIPS": false,
|
| 299 |
+
"UseDualStack": true
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://amplifybackend.cn-north-1.amazonaws.com.cn"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "cn-north-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://amplifybackend-fips.us-gov-east-1.api.aws"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-gov-east-1",
|
| 324 |
+
"UseFIPS": true,
|
| 325 |
+
"UseDualStack": true
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://amplifybackend-fips.us-gov-east-1.amazonaws.com"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-gov-east-1",
|
| 337 |
+
"UseFIPS": true,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://amplifybackend.us-gov-east-1.api.aws"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-gov-east-1",
|
| 350 |
+
"UseFIPS": false,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://amplifybackend.us-gov-east-1.amazonaws.com"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-gov-east-1",
|
| 363 |
+
"UseFIPS": false,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 371 |
+
},
|
| 372 |
+
"params": {
|
| 373 |
+
"Region": "us-iso-east-1",
|
| 374 |
+
"UseFIPS": true,
|
| 375 |
+
"UseDualStack": true
|
| 376 |
+
}
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 380 |
+
"expect": {
|
| 381 |
+
"endpoint": {
|
| 382 |
+
"url": "https://amplifybackend-fips.us-iso-east-1.c2s.ic.gov"
|
| 383 |
+
}
|
| 384 |
+
},
|
| 385 |
+
"params": {
|
| 386 |
+
"Region": "us-iso-east-1",
|
| 387 |
+
"UseFIPS": true,
|
| 388 |
+
"UseDualStack": false
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 393 |
+
"expect": {
|
| 394 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 395 |
+
},
|
| 396 |
+
"params": {
|
| 397 |
+
"Region": "us-iso-east-1",
|
| 398 |
+
"UseFIPS": false,
|
| 399 |
+
"UseDualStack": true
|
| 400 |
+
}
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 404 |
+
"expect": {
|
| 405 |
+
"endpoint": {
|
| 406 |
+
"url": "https://amplifybackend.us-iso-east-1.c2s.ic.gov"
|
| 407 |
+
}
|
| 408 |
+
},
|
| 409 |
+
"params": {
|
| 410 |
+
"Region": "us-iso-east-1",
|
| 411 |
+
"UseFIPS": false,
|
| 412 |
+
"UseDualStack": false
|
| 413 |
+
}
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 417 |
+
"expect": {
|
| 418 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 419 |
+
},
|
| 420 |
+
"params": {
|
| 421 |
+
"Region": "us-isob-east-1",
|
| 422 |
+
"UseFIPS": true,
|
| 423 |
+
"UseDualStack": true
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 428 |
+
"expect": {
|
| 429 |
+
"endpoint": {
|
| 430 |
+
"url": "https://amplifybackend-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 431 |
+
}
|
| 432 |
+
},
|
| 433 |
+
"params": {
|
| 434 |
+
"Region": "us-isob-east-1",
|
| 435 |
+
"UseFIPS": true,
|
| 436 |
+
"UseDualStack": false
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 441 |
+
"expect": {
|
| 442 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 443 |
+
},
|
| 444 |
+
"params": {
|
| 445 |
+
"Region": "us-isob-east-1",
|
| 446 |
+
"UseFIPS": false,
|
| 447 |
+
"UseDualStack": true
|
| 448 |
+
}
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 452 |
+
"expect": {
|
| 453 |
+
"endpoint": {
|
| 454 |
+
"url": "https://amplifybackend.us-isob-east-1.sc2s.sgov.gov"
|
| 455 |
+
}
|
| 456 |
+
},
|
| 457 |
+
"params": {
|
| 458 |
+
"Region": "us-isob-east-1",
|
| 459 |
+
"UseFIPS": false,
|
| 460 |
+
"UseDualStack": false
|
| 461 |
+
}
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 465 |
+
"expect": {
|
| 466 |
+
"endpoint": {
|
| 467 |
+
"url": "https://example.com"
|
| 468 |
+
}
|
| 469 |
+
},
|
| 470 |
+
"params": {
|
| 471 |
+
"Region": "us-east-1",
|
| 472 |
+
"UseFIPS": false,
|
| 473 |
+
"UseDualStack": false,
|
| 474 |
+
"Endpoint": "https://example.com"
|
| 475 |
+
}
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 479 |
+
"expect": {
|
| 480 |
+
"endpoint": {
|
| 481 |
+
"url": "https://example.com"
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
"params": {
|
| 485 |
+
"UseFIPS": false,
|
| 486 |
+
"UseDualStack": false,
|
| 487 |
+
"Endpoint": "https://example.com"
|
| 488 |
+
}
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 492 |
+
"expect": {
|
| 493 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 494 |
+
},
|
| 495 |
+
"params": {
|
| 496 |
+
"Region": "us-east-1",
|
| 497 |
+
"UseFIPS": true,
|
| 498 |
+
"UseDualStack": false,
|
| 499 |
+
"Endpoint": "https://example.com"
|
| 500 |
+
}
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 504 |
+
"expect": {
|
| 505 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 506 |
+
},
|
| 507 |
+
"params": {
|
| 508 |
+
"Region": "us-east-1",
|
| 509 |
+
"UseFIPS": false,
|
| 510 |
+
"UseDualStack": true,
|
| 511 |
+
"Endpoint": "https://example.com"
|
| 512 |
+
}
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"documentation": "Missing region",
|
| 516 |
+
"expect": {
|
| 517 |
+
"error": "Invalid Configuration: Missing Region"
|
| 518 |
+
}
|
| 519 |
+
}
|
| 520 |
+
],
|
| 521 |
+
"version": "1.0"
|
| 522 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/amplifyuibuilder/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,522 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://amplifyuibuilder.ap-northeast-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "ap-northeast-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://amplifyuibuilder.ap-northeast-2.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-northeast-2",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://amplifyuibuilder.ap-south-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-south-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://amplifyuibuilder.ap-southeast-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-southeast-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://amplifyuibuilder.ap-southeast-2.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-southeast-2",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://amplifyuibuilder.ca-central-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ca-central-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://amplifyuibuilder.eu-central-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "eu-central-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://amplifyuibuilder.eu-north-1.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "eu-north-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://amplifyuibuilder.eu-west-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "eu-west-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://amplifyuibuilder.eu-west-2.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-west-2",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://amplifyuibuilder.eu-west-3.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-west-3",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://amplifyuibuilder.me-south-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "me-south-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://amplifyuibuilder.sa-east-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "sa-east-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://amplifyuibuilder.us-east-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "us-east-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://amplifyuibuilder.us-east-2.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "us-east-2",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://amplifyuibuilder.us-west-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "us-west-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://amplifyuibuilder.us-west-2.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "us-west-2",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://amplifyuibuilder-fips.us-east-1.api.aws"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": true,
|
| 234 |
+
"UseDualStack": true
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://amplifyuibuilder-fips.us-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-1",
|
| 246 |
+
"UseFIPS": true,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://amplifyuibuilder.us-east-1.api.aws"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://amplifyuibuilder-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "cn-north-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": true
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://amplifyuibuilder-fips.cn-north-1.amazonaws.com.cn"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "cn-north-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://amplifyuibuilder.cn-north-1.api.amazonwebservices.com.cn"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "cn-north-1",
|
| 298 |
+
"UseFIPS": false,
|
| 299 |
+
"UseDualStack": true
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://amplifyuibuilder.cn-north-1.amazonaws.com.cn"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "cn-north-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://amplifyuibuilder-fips.us-gov-east-1.api.aws"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-gov-east-1",
|
| 324 |
+
"UseFIPS": true,
|
| 325 |
+
"UseDualStack": true
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://amplifyuibuilder-fips.us-gov-east-1.amazonaws.com"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-gov-east-1",
|
| 337 |
+
"UseFIPS": true,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://amplifyuibuilder.us-gov-east-1.api.aws"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-gov-east-1",
|
| 350 |
+
"UseFIPS": false,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://amplifyuibuilder.us-gov-east-1.amazonaws.com"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "us-gov-east-1",
|
| 363 |
+
"UseFIPS": false,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 371 |
+
},
|
| 372 |
+
"params": {
|
| 373 |
+
"Region": "us-iso-east-1",
|
| 374 |
+
"UseFIPS": true,
|
| 375 |
+
"UseDualStack": true
|
| 376 |
+
}
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 380 |
+
"expect": {
|
| 381 |
+
"endpoint": {
|
| 382 |
+
"url": "https://amplifyuibuilder-fips.us-iso-east-1.c2s.ic.gov"
|
| 383 |
+
}
|
| 384 |
+
},
|
| 385 |
+
"params": {
|
| 386 |
+
"Region": "us-iso-east-1",
|
| 387 |
+
"UseFIPS": true,
|
| 388 |
+
"UseDualStack": false
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 393 |
+
"expect": {
|
| 394 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 395 |
+
},
|
| 396 |
+
"params": {
|
| 397 |
+
"Region": "us-iso-east-1",
|
| 398 |
+
"UseFIPS": false,
|
| 399 |
+
"UseDualStack": true
|
| 400 |
+
}
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 404 |
+
"expect": {
|
| 405 |
+
"endpoint": {
|
| 406 |
+
"url": "https://amplifyuibuilder.us-iso-east-1.c2s.ic.gov"
|
| 407 |
+
}
|
| 408 |
+
},
|
| 409 |
+
"params": {
|
| 410 |
+
"Region": "us-iso-east-1",
|
| 411 |
+
"UseFIPS": false,
|
| 412 |
+
"UseDualStack": false
|
| 413 |
+
}
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 417 |
+
"expect": {
|
| 418 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 419 |
+
},
|
| 420 |
+
"params": {
|
| 421 |
+
"Region": "us-isob-east-1",
|
| 422 |
+
"UseFIPS": true,
|
| 423 |
+
"UseDualStack": true
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 428 |
+
"expect": {
|
| 429 |
+
"endpoint": {
|
| 430 |
+
"url": "https://amplifyuibuilder-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 431 |
+
}
|
| 432 |
+
},
|
| 433 |
+
"params": {
|
| 434 |
+
"Region": "us-isob-east-1",
|
| 435 |
+
"UseFIPS": true,
|
| 436 |
+
"UseDualStack": false
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 441 |
+
"expect": {
|
| 442 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 443 |
+
},
|
| 444 |
+
"params": {
|
| 445 |
+
"Region": "us-isob-east-1",
|
| 446 |
+
"UseFIPS": false,
|
| 447 |
+
"UseDualStack": true
|
| 448 |
+
}
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 452 |
+
"expect": {
|
| 453 |
+
"endpoint": {
|
| 454 |
+
"url": "https://amplifyuibuilder.us-isob-east-1.sc2s.sgov.gov"
|
| 455 |
+
}
|
| 456 |
+
},
|
| 457 |
+
"params": {
|
| 458 |
+
"Region": "us-isob-east-1",
|
| 459 |
+
"UseFIPS": false,
|
| 460 |
+
"UseDualStack": false
|
| 461 |
+
}
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 465 |
+
"expect": {
|
| 466 |
+
"endpoint": {
|
| 467 |
+
"url": "https://example.com"
|
| 468 |
+
}
|
| 469 |
+
},
|
| 470 |
+
"params": {
|
| 471 |
+
"Region": "us-east-1",
|
| 472 |
+
"UseFIPS": false,
|
| 473 |
+
"UseDualStack": false,
|
| 474 |
+
"Endpoint": "https://example.com"
|
| 475 |
+
}
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 479 |
+
"expect": {
|
| 480 |
+
"endpoint": {
|
| 481 |
+
"url": "https://example.com"
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
"params": {
|
| 485 |
+
"UseFIPS": false,
|
| 486 |
+
"UseDualStack": false,
|
| 487 |
+
"Endpoint": "https://example.com"
|
| 488 |
+
}
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 492 |
+
"expect": {
|
| 493 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 494 |
+
},
|
| 495 |
+
"params": {
|
| 496 |
+
"Region": "us-east-1",
|
| 497 |
+
"UseFIPS": true,
|
| 498 |
+
"UseDualStack": false,
|
| 499 |
+
"Endpoint": "https://example.com"
|
| 500 |
+
}
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 504 |
+
"expect": {
|
| 505 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 506 |
+
},
|
| 507 |
+
"params": {
|
| 508 |
+
"Region": "us-east-1",
|
| 509 |
+
"UseFIPS": false,
|
| 510 |
+
"UseDualStack": true,
|
| 511 |
+
"Endpoint": "https://example.com"
|
| 512 |
+
}
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
"documentation": "Missing region",
|
| 516 |
+
"expect": {
|
| 517 |
+
"error": "Invalid Configuration: Missing Region"
|
| 518 |
+
}
|
| 519 |
+
}
|
| 520 |
+
],
|
| 521 |
+
"version": "1.0"
|
| 522 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/apigateway/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,600 @@
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://apigateway.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://apigateway.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://apigateway.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://apigateway.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://apigateway.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://apigateway.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://apigateway.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://apigateway.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://apigateway.ca-central-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ca-central-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://apigateway.eu-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://apigateway.eu-north-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-north-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://apigateway.eu-south-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-south-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://apigateway.eu-west-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-west-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://apigateway.eu-west-2.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-west-2",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://apigateway.eu-west-3.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-3",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://apigateway.me-south-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "me-south-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://apigateway.sa-east-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "sa-east-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://apigateway.us-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://apigateway.us-east-2.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-2",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://apigateway.us-west-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-west-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://apigateway.us-west-2.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-west-2",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://apigateway-fips.us-east-1.api.aws"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://apigateway-fips.us-east-1.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://apigateway.us-east-1.api.aws"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-east-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": true
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://apigateway.cn-north-1.amazonaws.com.cn"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "cn-north-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://apigateway.cn-northwest-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-northwest-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://apigateway-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "cn-north-1",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://apigateway-fips.cn-north-1.amazonaws.com.cn"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "cn-north-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://apigateway.cn-north-1.api.amazonwebservices.com.cn"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "cn-north-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://apigateway.us-gov-east-1.amazonaws.com"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "us-gov-east-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://apigateway.us-gov-west-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "us-gov-west-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://apigateway-fips.us-gov-east-1.api.aws"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "us-gov-east-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://apigateway-fips.us-gov-east-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-gov-east-1",
|
| 428 |
+
"UseFIPS": true,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://apigateway.us-gov-east-1.api.aws"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-east-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://apigateway.us-iso-east-1.c2s.ic.gov"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-iso-east-1",
|
| 454 |
+
"UseFIPS": false,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 462 |
+
},
|
| 463 |
+
"params": {
|
| 464 |
+
"Region": "us-iso-east-1",
|
| 465 |
+
"UseFIPS": true,
|
| 466 |
+
"UseDualStack": true
|
| 467 |
+
}
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 471 |
+
"expect": {
|
| 472 |
+
"endpoint": {
|
| 473 |
+
"url": "https://apigateway-fips.us-iso-east-1.c2s.ic.gov"
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
"params": {
|
| 477 |
+
"Region": "us-iso-east-1",
|
| 478 |
+
"UseFIPS": true,
|
| 479 |
+
"UseDualStack": false
|
| 480 |
+
}
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 484 |
+
"expect": {
|
| 485 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 486 |
+
},
|
| 487 |
+
"params": {
|
| 488 |
+
"Region": "us-iso-east-1",
|
| 489 |
+
"UseFIPS": false,
|
| 490 |
+
"UseDualStack": true
|
| 491 |
+
}
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 495 |
+
"expect": {
|
| 496 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 497 |
+
},
|
| 498 |
+
"params": {
|
| 499 |
+
"Region": "us-isob-east-1",
|
| 500 |
+
"UseFIPS": true,
|
| 501 |
+
"UseDualStack": true
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 506 |
+
"expect": {
|
| 507 |
+
"endpoint": {
|
| 508 |
+
"url": "https://apigateway-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 509 |
+
}
|
| 510 |
+
},
|
| 511 |
+
"params": {
|
| 512 |
+
"Region": "us-isob-east-1",
|
| 513 |
+
"UseFIPS": true,
|
| 514 |
+
"UseDualStack": false
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 519 |
+
"expect": {
|
| 520 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 521 |
+
},
|
| 522 |
+
"params": {
|
| 523 |
+
"Region": "us-isob-east-1",
|
| 524 |
+
"UseFIPS": false,
|
| 525 |
+
"UseDualStack": true
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 530 |
+
"expect": {
|
| 531 |
+
"endpoint": {
|
| 532 |
+
"url": "https://apigateway.us-isob-east-1.sc2s.sgov.gov"
|
| 533 |
+
}
|
| 534 |
+
},
|
| 535 |
+
"params": {
|
| 536 |
+
"Region": "us-isob-east-1",
|
| 537 |
+
"UseFIPS": false,
|
| 538 |
+
"UseDualStack": false
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 543 |
+
"expect": {
|
| 544 |
+
"endpoint": {
|
| 545 |
+
"url": "https://example.com"
|
| 546 |
+
}
|
| 547 |
+
},
|
| 548 |
+
"params": {
|
| 549 |
+
"Region": "us-east-1",
|
| 550 |
+
"UseFIPS": false,
|
| 551 |
+
"UseDualStack": false,
|
| 552 |
+
"Endpoint": "https://example.com"
|
| 553 |
+
}
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 557 |
+
"expect": {
|
| 558 |
+
"endpoint": {
|
| 559 |
+
"url": "https://example.com"
|
| 560 |
+
}
|
| 561 |
+
},
|
| 562 |
+
"params": {
|
| 563 |
+
"UseFIPS": false,
|
| 564 |
+
"UseDualStack": false,
|
| 565 |
+
"Endpoint": "https://example.com"
|
| 566 |
+
}
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 570 |
+
"expect": {
|
| 571 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 572 |
+
},
|
| 573 |
+
"params": {
|
| 574 |
+
"Region": "us-east-1",
|
| 575 |
+
"UseFIPS": true,
|
| 576 |
+
"UseDualStack": false,
|
| 577 |
+
"Endpoint": "https://example.com"
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 582 |
+
"expect": {
|
| 583 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 584 |
+
},
|
| 585 |
+
"params": {
|
| 586 |
+
"Region": "us-east-1",
|
| 587 |
+
"UseFIPS": false,
|
| 588 |
+
"UseDualStack": true,
|
| 589 |
+
"Endpoint": "https://example.com"
|
| 590 |
+
}
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"documentation": "Missing region",
|
| 594 |
+
"expect": {
|
| 595 |
+
"error": "Invalid Configuration: Missing Region"
|
| 596 |
+
}
|
| 597 |
+
}
|
| 598 |
+
],
|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ation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://execute-api-fips.us-east-1.api.aws"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "us-east-1",
|
| 12 |
+
"UseFIPS": true,
|
| 13 |
+
"UseDualStack": true
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://execute-api-fips.us-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "us-east-1",
|
| 25 |
+
"UseFIPS": true,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://execute-api.us-east-1.api.aws"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "us-east-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": true
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://execute-api.us-east-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "us-east-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://execute-api-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "cn-north-1",
|
| 64 |
+
"UseFIPS": true,
|
| 65 |
+
"UseDualStack": true
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://execute-api-fips.cn-north-1.amazonaws.com.cn"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "cn-north-1",
|
| 77 |
+
"UseFIPS": true,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://execute-api.cn-north-1.api.amazonwebservices.com.cn"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "cn-north-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": true
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://execute-api.cn-north-1.amazonaws.com.cn"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "cn-north-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://execute-api-fips.us-gov-east-1.api.aws"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "us-gov-east-1",
|
| 116 |
+
"UseFIPS": true,
|
| 117 |
+
"UseDualStack": true
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://execute-api-fips.us-gov-east-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-gov-east-1",
|
| 129 |
+
"UseFIPS": true,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://execute-api.us-gov-east-1.api.aws"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "us-gov-east-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": true
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://execute-api.us-gov-east-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "us-gov-east-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 163 |
+
},
|
| 164 |
+
"params": {
|
| 165 |
+
"Region": "us-iso-east-1",
|
| 166 |
+
"UseFIPS": true,
|
| 167 |
+
"UseDualStack": true
|
| 168 |
+
}
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 172 |
+
"expect": {
|
| 173 |
+
"endpoint": {
|
| 174 |
+
"url": "https://execute-api-fips.us-iso-east-1.c2s.ic.gov"
|
| 175 |
+
}
|
| 176 |
+
},
|
| 177 |
+
"params": {
|
| 178 |
+
"Region": "us-iso-east-1",
|
| 179 |
+
"UseFIPS": true,
|
| 180 |
+
"UseDualStack": false
|
| 181 |
+
}
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 185 |
+
"expect": {
|
| 186 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 187 |
+
},
|
| 188 |
+
"params": {
|
| 189 |
+
"Region": "us-iso-east-1",
|
| 190 |
+
"UseFIPS": false,
|
| 191 |
+
"UseDualStack": true
|
| 192 |
+
}
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 196 |
+
"expect": {
|
| 197 |
+
"endpoint": {
|
| 198 |
+
"url": "https://execute-api.us-iso-east-1.c2s.ic.gov"
|
| 199 |
+
}
|
| 200 |
+
},
|
| 201 |
+
"params": {
|
| 202 |
+
"Region": "us-iso-east-1",
|
| 203 |
+
"UseFIPS": false,
|
| 204 |
+
"UseDualStack": false
|
| 205 |
+
}
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 209 |
+
"expect": {
|
| 210 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 211 |
+
},
|
| 212 |
+
"params": {
|
| 213 |
+
"Region": "us-isob-east-1",
|
| 214 |
+
"UseFIPS": true,
|
| 215 |
+
"UseDualStack": true
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 220 |
+
"expect": {
|
| 221 |
+
"endpoint": {
|
| 222 |
+
"url": "https://execute-api-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 223 |
+
}
|
| 224 |
+
},
|
| 225 |
+
"params": {
|
| 226 |
+
"Region": "us-isob-east-1",
|
| 227 |
+
"UseFIPS": true,
|
| 228 |
+
"UseDualStack": false
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 233 |
+
"expect": {
|
| 234 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 235 |
+
},
|
| 236 |
+
"params": {
|
| 237 |
+
"Region": "us-isob-east-1",
|
| 238 |
+
"UseFIPS": false,
|
| 239 |
+
"UseDualStack": true
|
| 240 |
+
}
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 244 |
+
"expect": {
|
| 245 |
+
"endpoint": {
|
| 246 |
+
"url": "https://execute-api.us-isob-east-1.sc2s.sgov.gov"
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
"params": {
|
| 250 |
+
"Region": "us-isob-east-1",
|
| 251 |
+
"UseFIPS": false,
|
| 252 |
+
"UseDualStack": false
|
| 253 |
+
}
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 257 |
+
"expect": {
|
| 258 |
+
"endpoint": {
|
| 259 |
+
"url": "https://example.com"
|
| 260 |
+
}
|
| 261 |
+
},
|
| 262 |
+
"params": {
|
| 263 |
+
"Region": "us-east-1",
|
| 264 |
+
"UseFIPS": false,
|
| 265 |
+
"UseDualStack": false,
|
| 266 |
+
"Endpoint": "https://example.com"
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 271 |
+
"expect": {
|
| 272 |
+
"endpoint": {
|
| 273 |
+
"url": "https://example.com"
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"params": {
|
| 277 |
+
"UseFIPS": false,
|
| 278 |
+
"UseDualStack": false,
|
| 279 |
+
"Endpoint": "https://example.com"
|
| 280 |
+
}
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 284 |
+
"expect": {
|
| 285 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 286 |
+
},
|
| 287 |
+
"params": {
|
| 288 |
+
"Region": "us-east-1",
|
| 289 |
+
"UseFIPS": true,
|
| 290 |
+
"UseDualStack": false,
|
| 291 |
+
"Endpoint": "https://example.com"
|
| 292 |
+
}
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 296 |
+
"expect": {
|
| 297 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 298 |
+
},
|
| 299 |
+
"params": {
|
| 300 |
+
"Region": "us-east-1",
|
| 301 |
+
"UseFIPS": false,
|
| 302 |
+
"UseDualStack": true,
|
| 303 |
+
"Endpoint": "https://example.com"
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"documentation": "Missing region",
|
| 308 |
+
"expect": {
|
| 309 |
+
"error": "Invalid Configuration: Missing Region"
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
],
|
| 313 |
+
"version": "1.0"
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://apigateway.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://apigateway.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://apigateway.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://apigateway.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://apigateway.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://apigateway.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://apigateway.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://apigateway.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://apigateway.ca-central-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ca-central-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://apigateway.eu-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://apigateway.eu-north-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-north-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://apigateway.eu-south-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-south-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://apigateway.eu-west-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-west-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://apigateway.eu-west-2.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-west-2",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://apigateway.eu-west-3.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-3",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://apigateway.me-south-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "me-south-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://apigateway.sa-east-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "sa-east-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://apigateway.us-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://apigateway.us-east-2.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-2",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://apigateway.us-west-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-west-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://apigateway.us-west-2.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-west-2",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://apigateway-fips.us-east-1.api.aws"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://apigateway-fips.us-east-1.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://apigateway.us-east-1.api.aws"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-east-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": true
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://apigateway.cn-north-1.amazonaws.com.cn"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "cn-north-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://apigateway.cn-northwest-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-northwest-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://apigateway-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "cn-north-1",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://apigateway-fips.cn-north-1.amazonaws.com.cn"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "cn-north-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://apigateway.cn-north-1.api.amazonwebservices.com.cn"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "cn-north-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://apigateway.us-gov-east-1.amazonaws.com"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "us-gov-east-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://apigateway.us-gov-west-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "us-gov-west-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://apigateway-fips.us-gov-east-1.api.aws"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "us-gov-east-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://apigateway-fips.us-gov-east-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-gov-east-1",
|
| 428 |
+
"UseFIPS": true,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://apigateway.us-gov-east-1.api.aws"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-east-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://apigateway.us-iso-east-1.c2s.ic.gov"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-iso-east-1",
|
| 454 |
+
"UseFIPS": false,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 462 |
+
},
|
| 463 |
+
"params": {
|
| 464 |
+
"Region": "us-iso-east-1",
|
| 465 |
+
"UseFIPS": true,
|
| 466 |
+
"UseDualStack": true
|
| 467 |
+
}
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 471 |
+
"expect": {
|
| 472 |
+
"endpoint": {
|
| 473 |
+
"url": "https://apigateway-fips.us-iso-east-1.c2s.ic.gov"
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
"params": {
|
| 477 |
+
"Region": "us-iso-east-1",
|
| 478 |
+
"UseFIPS": true,
|
| 479 |
+
"UseDualStack": false
|
| 480 |
+
}
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 484 |
+
"expect": {
|
| 485 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 486 |
+
},
|
| 487 |
+
"params": {
|
| 488 |
+
"Region": "us-iso-east-1",
|
| 489 |
+
"UseFIPS": false,
|
| 490 |
+
"UseDualStack": true
|
| 491 |
+
}
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 495 |
+
"expect": {
|
| 496 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 497 |
+
},
|
| 498 |
+
"params": {
|
| 499 |
+
"Region": "us-isob-east-1",
|
| 500 |
+
"UseFIPS": true,
|
| 501 |
+
"UseDualStack": true
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 506 |
+
"expect": {
|
| 507 |
+
"endpoint": {
|
| 508 |
+
"url": "https://apigateway-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 509 |
+
}
|
| 510 |
+
},
|
| 511 |
+
"params": {
|
| 512 |
+
"Region": "us-isob-east-1",
|
| 513 |
+
"UseFIPS": true,
|
| 514 |
+
"UseDualStack": false
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 519 |
+
"expect": {
|
| 520 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 521 |
+
},
|
| 522 |
+
"params": {
|
| 523 |
+
"Region": "us-isob-east-1",
|
| 524 |
+
"UseFIPS": false,
|
| 525 |
+
"UseDualStack": true
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 530 |
+
"expect": {
|
| 531 |
+
"endpoint": {
|
| 532 |
+
"url": "https://apigateway.us-isob-east-1.sc2s.sgov.gov"
|
| 533 |
+
}
|
| 534 |
+
},
|
| 535 |
+
"params": {
|
| 536 |
+
"Region": "us-isob-east-1",
|
| 537 |
+
"UseFIPS": false,
|
| 538 |
+
"UseDualStack": false
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 543 |
+
"expect": {
|
| 544 |
+
"endpoint": {
|
| 545 |
+
"url": "https://example.com"
|
| 546 |
+
}
|
| 547 |
+
},
|
| 548 |
+
"params": {
|
| 549 |
+
"Region": "us-east-1",
|
| 550 |
+
"UseFIPS": false,
|
| 551 |
+
"UseDualStack": false,
|
| 552 |
+
"Endpoint": "https://example.com"
|
| 553 |
+
}
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 557 |
+
"expect": {
|
| 558 |
+
"endpoint": {
|
| 559 |
+
"url": "https://example.com"
|
| 560 |
+
}
|
| 561 |
+
},
|
| 562 |
+
"params": {
|
| 563 |
+
"UseFIPS": false,
|
| 564 |
+
"UseDualStack": false,
|
| 565 |
+
"Endpoint": "https://example.com"
|
| 566 |
+
}
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 570 |
+
"expect": {
|
| 571 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 572 |
+
},
|
| 573 |
+
"params": {
|
| 574 |
+
"Region": "us-east-1",
|
| 575 |
+
"UseFIPS": true,
|
| 576 |
+
"UseDualStack": false,
|
| 577 |
+
"Endpoint": "https://example.com"
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 582 |
+
"expect": {
|
| 583 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 584 |
+
},
|
| 585 |
+
"params": {
|
| 586 |
+
"Region": "us-east-1",
|
| 587 |
+
"UseFIPS": false,
|
| 588 |
+
"UseDualStack": true,
|
| 589 |
+
"Endpoint": "https://example.com"
|
| 590 |
+
}
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"documentation": "Missing region",
|
| 594 |
+
"expect": {
|
| 595 |
+
"error": "Invalid Configuration: Missing Region"
|
| 596 |
+
}
|
| 597 |
+
}
|
| 598 |
+
],
|
| 599 |
+
"version": "1.0"
|
| 600 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appconfig/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,639 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://appconfig.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://appconfig.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://appconfig.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://appconfig.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://appconfig.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://appconfig.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://appconfig.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://appconfig.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://appconfig.ap-southeast-3.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ap-southeast-3",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://appconfig.ca-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "ca-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://appconfig.eu-central-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-central-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://appconfig.eu-north-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-north-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://appconfig.eu-south-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-south-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://appconfig.eu-west-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-west-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://appconfig.eu-west-2.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-2",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://appconfig.eu-west-3.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "eu-west-3",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://appconfig.me-south-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "me-south-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://appconfig.sa-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "sa-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://appconfig.us-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://appconfig.us-east-2.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-2",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://appconfig.us-west-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-west-1",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://appconfig.us-west-2.amazonaws.com"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-west-2",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://appconfig-fips.us-east-1.api.aws"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": true
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://appconfig-fips.us-east-1.amazonaws.com"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-east-1",
|
| 311 |
+
"UseFIPS": true,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://appconfig.us-east-1.api.aws"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-east-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": true
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://appconfig.cn-north-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-north-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://appconfig.cn-northwest-1.amazonaws.com.cn"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "cn-northwest-1",
|
| 350 |
+
"UseFIPS": false,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://appconfig-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "cn-north-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": true
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://appconfig-fips.cn-north-1.amazonaws.com.cn"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "cn-north-1",
|
| 376 |
+
"UseFIPS": true,
|
| 377 |
+
"UseDualStack": false
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://appconfig.cn-north-1.api.amazonwebservices.com.cn"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "cn-north-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": true
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://appconfig.us-gov-east-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "us-gov-east-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://appconfig.us-gov-east-1.amazonaws.com"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "us-gov-east-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": false
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://appconfig.us-gov-west-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-gov-west-1",
|
| 428 |
+
"UseFIPS": false,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://appconfig.us-gov-west-1.amazonaws.com"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-west-1",
|
| 441 |
+
"UseFIPS": true,
|
| 442 |
+
"UseDualStack": false
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://appconfig-fips.us-gov-east-1.api.aws"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-gov-east-1",
|
| 454 |
+
"UseFIPS": true,
|
| 455 |
+
"UseDualStack": true
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"endpoint": {
|
| 462 |
+
"url": "https://appconfig.us-gov-east-1.api.aws"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"params": {
|
| 466 |
+
"Region": "us-gov-east-1",
|
| 467 |
+
"UseFIPS": false,
|
| 468 |
+
"UseDualStack": true
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 473 |
+
"expect": {
|
| 474 |
+
"endpoint": {
|
| 475 |
+
"url": "https://appconfig.us-iso-east-1.c2s.ic.gov"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"params": {
|
| 479 |
+
"Region": "us-iso-east-1",
|
| 480 |
+
"UseFIPS": false,
|
| 481 |
+
"UseDualStack": false
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled",
|
| 486 |
+
"expect": {
|
| 487 |
+
"endpoint": {
|
| 488 |
+
"url": "https://appconfig.us-iso-west-1.c2s.ic.gov"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
"params": {
|
| 492 |
+
"Region": "us-iso-west-1",
|
| 493 |
+
"UseFIPS": false,
|
| 494 |
+
"UseDualStack": false
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 499 |
+
"expect": {
|
| 500 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 501 |
+
},
|
| 502 |
+
"params": {
|
| 503 |
+
"Region": "us-iso-east-1",
|
| 504 |
+
"UseFIPS": true,
|
| 505 |
+
"UseDualStack": true
|
| 506 |
+
}
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 510 |
+
"expect": {
|
| 511 |
+
"endpoint": {
|
| 512 |
+
"url": "https://appconfig-fips.us-iso-east-1.c2s.ic.gov"
|
| 513 |
+
}
|
| 514 |
+
},
|
| 515 |
+
"params": {
|
| 516 |
+
"Region": "us-iso-east-1",
|
| 517 |
+
"UseFIPS": true,
|
| 518 |
+
"UseDualStack": false
|
| 519 |
+
}
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 523 |
+
"expect": {
|
| 524 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 525 |
+
},
|
| 526 |
+
"params": {
|
| 527 |
+
"Region": "us-iso-east-1",
|
| 528 |
+
"UseFIPS": false,
|
| 529 |
+
"UseDualStack": true
|
| 530 |
+
}
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 534 |
+
"expect": {
|
| 535 |
+
"endpoint": {
|
| 536 |
+
"url": "https://appconfig.us-isob-east-1.sc2s.sgov.gov"
|
| 537 |
+
}
|
| 538 |
+
},
|
| 539 |
+
"params": {
|
| 540 |
+
"Region": "us-isob-east-1",
|
| 541 |
+
"UseFIPS": false,
|
| 542 |
+
"UseDualStack": false
|
| 543 |
+
}
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 547 |
+
"expect": {
|
| 548 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 549 |
+
},
|
| 550 |
+
"params": {
|
| 551 |
+
"Region": "us-isob-east-1",
|
| 552 |
+
"UseFIPS": true,
|
| 553 |
+
"UseDualStack": true
|
| 554 |
+
}
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 558 |
+
"expect": {
|
| 559 |
+
"endpoint": {
|
| 560 |
+
"url": "https://appconfig-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 561 |
+
}
|
| 562 |
+
},
|
| 563 |
+
"params": {
|
| 564 |
+
"Region": "us-isob-east-1",
|
| 565 |
+
"UseFIPS": true,
|
| 566 |
+
"UseDualStack": false
|
| 567 |
+
}
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 571 |
+
"expect": {
|
| 572 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 573 |
+
},
|
| 574 |
+
"params": {
|
| 575 |
+
"Region": "us-isob-east-1",
|
| 576 |
+
"UseFIPS": false,
|
| 577 |
+
"UseDualStack": true
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 582 |
+
"expect": {
|
| 583 |
+
"endpoint": {
|
| 584 |
+
"url": "https://example.com"
|
| 585 |
+
}
|
| 586 |
+
},
|
| 587 |
+
"params": {
|
| 588 |
+
"Region": "us-east-1",
|
| 589 |
+
"UseFIPS": false,
|
| 590 |
+
"UseDualStack": false,
|
| 591 |
+
"Endpoint": "https://example.com"
|
| 592 |
+
}
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 596 |
+
"expect": {
|
| 597 |
+
"endpoint": {
|
| 598 |
+
"url": "https://example.com"
|
| 599 |
+
}
|
| 600 |
+
},
|
| 601 |
+
"params": {
|
| 602 |
+
"UseFIPS": false,
|
| 603 |
+
"UseDualStack": false,
|
| 604 |
+
"Endpoint": "https://example.com"
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 609 |
+
"expect": {
|
| 610 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 611 |
+
},
|
| 612 |
+
"params": {
|
| 613 |
+
"Region": "us-east-1",
|
| 614 |
+
"UseFIPS": true,
|
| 615 |
+
"UseDualStack": false,
|
| 616 |
+
"Endpoint": "https://example.com"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 621 |
+
"expect": {
|
| 622 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 623 |
+
},
|
| 624 |
+
"params": {
|
| 625 |
+
"Region": "us-east-1",
|
| 626 |
+
"UseFIPS": false,
|
| 627 |
+
"UseDualStack": true,
|
| 628 |
+
"Endpoint": "https://example.com"
|
| 629 |
+
}
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"documentation": "Missing region",
|
| 633 |
+
"expect": {
|
| 634 |
+
"error": "Invalid Configuration: Missing Region"
|
| 635 |
+
}
|
| 636 |
+
}
|
| 637 |
+
],
|
| 638 |
+
"version": "1.0"
|
| 639 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appconfigdata/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,613 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"endpoint": {
|
| 7 |
+
"url": "https://appconfigdata.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://appconfigdata.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://appconfigdata.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://appconfigdata.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://appconfigdata.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://appconfigdata.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://appconfigdata.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://appconfigdata.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://appconfigdata.ca-central-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ca-central-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://appconfigdata.eu-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://appconfigdata.eu-north-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-north-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://appconfigdata.eu-south-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-south-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://appconfigdata.eu-west-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-west-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://appconfigdata.eu-west-2.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-west-2",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://appconfigdata.eu-west-3.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-3",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://appconfigdata.me-south-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "me-south-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://appconfigdata.sa-east-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "sa-east-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://appconfigdata.us-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://appconfigdata.us-east-2.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-2",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://appconfigdata.us-west-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-west-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://appconfigdata.us-west-2.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-west-2",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://appconfigdata-fips.us-east-1.api.aws"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://appconfigdata-fips.us-east-1.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://appconfigdata.us-east-1.api.aws"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-east-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": true
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://appconfigdata.cn-north-1.amazonaws.com.cn"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "cn-north-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://appconfigdata.cn-northwest-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-northwest-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://appconfigdata-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "cn-north-1",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://appconfigdata-fips.cn-north-1.amazonaws.com.cn"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "cn-north-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://appconfigdata.cn-north-1.api.amazonwebservices.com.cn"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "cn-north-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://appconfigdata.us-gov-east-1.amazonaws.com"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "us-gov-east-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://appconfigdata.us-gov-west-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "us-gov-west-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://appconfigdata-fips.us-gov-east-1.api.aws"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "us-gov-east-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://appconfigdata.us-gov-east-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-gov-east-1",
|
| 428 |
+
"UseFIPS": true,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://appconfigdata.us-gov-east-1.api.aws"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-east-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://appconfigdata.us-iso-west-1.c2s.ic.gov"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-iso-west-1",
|
| 454 |
+
"UseFIPS": false,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 462 |
+
},
|
| 463 |
+
"params": {
|
| 464 |
+
"Region": "us-iso-east-1",
|
| 465 |
+
"UseFIPS": true,
|
| 466 |
+
"UseDualStack": true
|
| 467 |
+
}
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 471 |
+
"expect": {
|
| 472 |
+
"endpoint": {
|
| 473 |
+
"url": "https://appconfigdata-fips.us-iso-east-1.c2s.ic.gov"
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
"params": {
|
| 477 |
+
"Region": "us-iso-east-1",
|
| 478 |
+
"UseFIPS": true,
|
| 479 |
+
"UseDualStack": false
|
| 480 |
+
}
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 484 |
+
"expect": {
|
| 485 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 486 |
+
},
|
| 487 |
+
"params": {
|
| 488 |
+
"Region": "us-iso-east-1",
|
| 489 |
+
"UseFIPS": false,
|
| 490 |
+
"UseDualStack": true
|
| 491 |
+
}
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 495 |
+
"expect": {
|
| 496 |
+
"endpoint": {
|
| 497 |
+
"url": "https://appconfigdata.us-iso-east-1.c2s.ic.gov"
|
| 498 |
+
}
|
| 499 |
+
},
|
| 500 |
+
"params": {
|
| 501 |
+
"Region": "us-iso-east-1",
|
| 502 |
+
"UseFIPS": false,
|
| 503 |
+
"UseDualStack": false
|
| 504 |
+
}
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 508 |
+
"expect": {
|
| 509 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 510 |
+
},
|
| 511 |
+
"params": {
|
| 512 |
+
"Region": "us-isob-east-1",
|
| 513 |
+
"UseFIPS": true,
|
| 514 |
+
"UseDualStack": true
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 519 |
+
"expect": {
|
| 520 |
+
"endpoint": {
|
| 521 |
+
"url": "https://appconfigdata-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 522 |
+
}
|
| 523 |
+
},
|
| 524 |
+
"params": {
|
| 525 |
+
"Region": "us-isob-east-1",
|
| 526 |
+
"UseFIPS": true,
|
| 527 |
+
"UseDualStack": false
|
| 528 |
+
}
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 532 |
+
"expect": {
|
| 533 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 534 |
+
},
|
| 535 |
+
"params": {
|
| 536 |
+
"Region": "us-isob-east-1",
|
| 537 |
+
"UseFIPS": false,
|
| 538 |
+
"UseDualStack": true
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 543 |
+
"expect": {
|
| 544 |
+
"endpoint": {
|
| 545 |
+
"url": "https://appconfigdata.us-isob-east-1.sc2s.sgov.gov"
|
| 546 |
+
}
|
| 547 |
+
},
|
| 548 |
+
"params": {
|
| 549 |
+
"Region": "us-isob-east-1",
|
| 550 |
+
"UseFIPS": false,
|
| 551 |
+
"UseDualStack": false
|
| 552 |
+
}
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 556 |
+
"expect": {
|
| 557 |
+
"endpoint": {
|
| 558 |
+
"url": "https://example.com"
|
| 559 |
+
}
|
| 560 |
+
},
|
| 561 |
+
"params": {
|
| 562 |
+
"Region": "us-east-1",
|
| 563 |
+
"UseFIPS": false,
|
| 564 |
+
"UseDualStack": false,
|
| 565 |
+
"Endpoint": "https://example.com"
|
| 566 |
+
}
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 570 |
+
"expect": {
|
| 571 |
+
"endpoint": {
|
| 572 |
+
"url": "https://example.com"
|
| 573 |
+
}
|
| 574 |
+
},
|
| 575 |
+
"params": {
|
| 576 |
+
"UseFIPS": false,
|
| 577 |
+
"UseDualStack": false,
|
| 578 |
+
"Endpoint": "https://example.com"
|
| 579 |
+
}
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 583 |
+
"expect": {
|
| 584 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 585 |
+
},
|
| 586 |
+
"params": {
|
| 587 |
+
"Region": "us-east-1",
|
| 588 |
+
"UseFIPS": true,
|
| 589 |
+
"UseDualStack": false,
|
| 590 |
+
"Endpoint": "https://example.com"
|
| 591 |
+
}
|
| 592 |
+
},
|
| 593 |
+
{
|
| 594 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 595 |
+
"expect": {
|
| 596 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 597 |
+
},
|
| 598 |
+
"params": {
|
| 599 |
+
"Region": "us-east-1",
|
| 600 |
+
"UseFIPS": false,
|
| 601 |
+
"UseDualStack": true,
|
| 602 |
+
"Endpoint": "https://example.com"
|
| 603 |
+
}
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"documentation": "Missing region",
|
| 607 |
+
"expect": {
|
| 608 |
+
"error": "Invalid Configuration: Missing Region"
|
| 609 |
+
}
|
| 610 |
+
}
|
| 611 |
+
],
|
| 612 |
+
"version": "1.0"
|
| 613 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appfabric/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://appfabric-fips.us-east-1.api.aws"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "us-east-1",
|
| 12 |
+
"UseFIPS": true,
|
| 13 |
+
"UseDualStack": true
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://appfabric-fips.us-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "us-east-1",
|
| 25 |
+
"UseFIPS": true,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://appfabric.us-east-1.api.aws"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "us-east-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": true
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://appfabric.us-east-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "us-east-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://appfabric-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "cn-north-1",
|
| 64 |
+
"UseFIPS": true,
|
| 65 |
+
"UseDualStack": true
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://appfabric-fips.cn-north-1.amazonaws.com.cn"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "cn-north-1",
|
| 77 |
+
"UseFIPS": true,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://appfabric.cn-north-1.api.amazonwebservices.com.cn"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "cn-north-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": true
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://appfabric.cn-north-1.amazonaws.com.cn"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "cn-north-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://appfabric-fips.us-gov-east-1.api.aws"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "us-gov-east-1",
|
| 116 |
+
"UseFIPS": true,
|
| 117 |
+
"UseDualStack": true
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://appfabric-fips.us-gov-east-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-gov-east-1",
|
| 129 |
+
"UseFIPS": true,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://appfabric.us-gov-east-1.api.aws"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "us-gov-east-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": true
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://appfabric.us-gov-east-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "us-gov-east-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 163 |
+
},
|
| 164 |
+
"params": {
|
| 165 |
+
"Region": "us-iso-east-1",
|
| 166 |
+
"UseFIPS": true,
|
| 167 |
+
"UseDualStack": true
|
| 168 |
+
}
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 172 |
+
"expect": {
|
| 173 |
+
"endpoint": {
|
| 174 |
+
"url": "https://appfabric-fips.us-iso-east-1.c2s.ic.gov"
|
| 175 |
+
}
|
| 176 |
+
},
|
| 177 |
+
"params": {
|
| 178 |
+
"Region": "us-iso-east-1",
|
| 179 |
+
"UseFIPS": true,
|
| 180 |
+
"UseDualStack": false
|
| 181 |
+
}
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 185 |
+
"expect": {
|
| 186 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 187 |
+
},
|
| 188 |
+
"params": {
|
| 189 |
+
"Region": "us-iso-east-1",
|
| 190 |
+
"UseFIPS": false,
|
| 191 |
+
"UseDualStack": true
|
| 192 |
+
}
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 196 |
+
"expect": {
|
| 197 |
+
"endpoint": {
|
| 198 |
+
"url": "https://appfabric.us-iso-east-1.c2s.ic.gov"
|
| 199 |
+
}
|
| 200 |
+
},
|
| 201 |
+
"params": {
|
| 202 |
+
"Region": "us-iso-east-1",
|
| 203 |
+
"UseFIPS": false,
|
| 204 |
+
"UseDualStack": false
|
| 205 |
+
}
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 209 |
+
"expect": {
|
| 210 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 211 |
+
},
|
| 212 |
+
"params": {
|
| 213 |
+
"Region": "us-isob-east-1",
|
| 214 |
+
"UseFIPS": true,
|
| 215 |
+
"UseDualStack": true
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 220 |
+
"expect": {
|
| 221 |
+
"endpoint": {
|
| 222 |
+
"url": "https://appfabric-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 223 |
+
}
|
| 224 |
+
},
|
| 225 |
+
"params": {
|
| 226 |
+
"Region": "us-isob-east-1",
|
| 227 |
+
"UseFIPS": true,
|
| 228 |
+
"UseDualStack": false
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 233 |
+
"expect": {
|
| 234 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 235 |
+
},
|
| 236 |
+
"params": {
|
| 237 |
+
"Region": "us-isob-east-1",
|
| 238 |
+
"UseFIPS": false,
|
| 239 |
+
"UseDualStack": true
|
| 240 |
+
}
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 244 |
+
"expect": {
|
| 245 |
+
"endpoint": {
|
| 246 |
+
"url": "https://appfabric.us-isob-east-1.sc2s.sgov.gov"
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
"params": {
|
| 250 |
+
"Region": "us-isob-east-1",
|
| 251 |
+
"UseFIPS": false,
|
| 252 |
+
"UseDualStack": false
|
| 253 |
+
}
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 257 |
+
"expect": {
|
| 258 |
+
"endpoint": {
|
| 259 |
+
"url": "https://example.com"
|
| 260 |
+
}
|
| 261 |
+
},
|
| 262 |
+
"params": {
|
| 263 |
+
"Region": "us-east-1",
|
| 264 |
+
"UseFIPS": false,
|
| 265 |
+
"UseDualStack": false,
|
| 266 |
+
"Endpoint": "https://example.com"
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 271 |
+
"expect": {
|
| 272 |
+
"endpoint": {
|
| 273 |
+
"url": "https://example.com"
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"params": {
|
| 277 |
+
"UseFIPS": false,
|
| 278 |
+
"UseDualStack": false,
|
| 279 |
+
"Endpoint": "https://example.com"
|
| 280 |
+
}
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 284 |
+
"expect": {
|
| 285 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 286 |
+
},
|
| 287 |
+
"params": {
|
| 288 |
+
"Region": "us-east-1",
|
| 289 |
+
"UseFIPS": true,
|
| 290 |
+
"UseDualStack": false,
|
| 291 |
+
"Endpoint": "https://example.com"
|
| 292 |
+
}
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 296 |
+
"expect": {
|
| 297 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 298 |
+
},
|
| 299 |
+
"params": {
|
| 300 |
+
"Region": "us-east-1",
|
| 301 |
+
"UseFIPS": false,
|
| 302 |
+
"UseDualStack": true,
|
| 303 |
+
"Endpoint": "https://example.com"
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"documentation": "Missing region",
|
| 308 |
+
"expect": {
|
| 309 |
+
"error": "Invalid Configuration: Missing Region"
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
],
|
| 313 |
+
"version": "1.0"
|
| 314 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appflow/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,509 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://appflow.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://appflow.ap-northeast-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-northeast-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://appflow.ap-northeast-2.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-2",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://appflow.ap-south-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-south-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://appflow.ap-southeast-1.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-southeast-1",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://appflow.ap-southeast-2.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-southeast-2",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://appflow.ca-central-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ca-central-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://appflow.eu-central-1.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "eu-central-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://appflow.eu-west-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "eu-west-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://appflow.eu-west-2.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-west-2",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://appflow.eu-west-3.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-west-3",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://appflow.sa-east-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "sa-east-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://appflow.us-east-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "us-east-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://appflow.us-east-2.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "us-east-2",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://appflow.us-west-1.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "us-west-1",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://appflow.us-west-2.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "us-west-2",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://appflow-fips.us-east-1.api.aws"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "us-east-1",
|
| 220 |
+
"UseFIPS": true,
|
| 221 |
+
"UseDualStack": true
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://appflow-fips.us-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": true,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://appflow.us-east-1.api.aws"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": true
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://appflow-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "cn-north-1",
|
| 259 |
+
"UseFIPS": true,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://appflow-fips.cn-north-1.amazonaws.com.cn"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "cn-north-1",
|
| 272 |
+
"UseFIPS": true,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://appflow.cn-north-1.api.amazonwebservices.com.cn"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "cn-north-1",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://appflow.cn-north-1.amazonaws.com.cn"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "cn-north-1",
|
| 298 |
+
"UseFIPS": false,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://appflow-fips.us-gov-east-1.api.aws"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-gov-east-1",
|
| 311 |
+
"UseFIPS": true,
|
| 312 |
+
"UseDualStack": true
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://appflow-fips.us-gov-east-1.amazonaws.com"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-gov-east-1",
|
| 324 |
+
"UseFIPS": true,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://appflow.us-gov-east-1.api.aws"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-gov-east-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": true
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://appflow.us-gov-east-1.amazonaws.com"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "us-gov-east-1",
|
| 350 |
+
"UseFIPS": false,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 358 |
+
},
|
| 359 |
+
"params": {
|
| 360 |
+
"Region": "us-iso-east-1",
|
| 361 |
+
"UseFIPS": true,
|
| 362 |
+
"UseDualStack": true
|
| 363 |
+
}
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 367 |
+
"expect": {
|
| 368 |
+
"endpoint": {
|
| 369 |
+
"url": "https://appflow-fips.us-iso-east-1.c2s.ic.gov"
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
"params": {
|
| 373 |
+
"Region": "us-iso-east-1",
|
| 374 |
+
"UseFIPS": true,
|
| 375 |
+
"UseDualStack": false
|
| 376 |
+
}
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 380 |
+
"expect": {
|
| 381 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 382 |
+
},
|
| 383 |
+
"params": {
|
| 384 |
+
"Region": "us-iso-east-1",
|
| 385 |
+
"UseFIPS": false,
|
| 386 |
+
"UseDualStack": true
|
| 387 |
+
}
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 391 |
+
"expect": {
|
| 392 |
+
"endpoint": {
|
| 393 |
+
"url": "https://appflow.us-iso-east-1.c2s.ic.gov"
|
| 394 |
+
}
|
| 395 |
+
},
|
| 396 |
+
"params": {
|
| 397 |
+
"Region": "us-iso-east-1",
|
| 398 |
+
"UseFIPS": false,
|
| 399 |
+
"UseDualStack": false
|
| 400 |
+
}
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 404 |
+
"expect": {
|
| 405 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 406 |
+
},
|
| 407 |
+
"params": {
|
| 408 |
+
"Region": "us-isob-east-1",
|
| 409 |
+
"UseFIPS": true,
|
| 410 |
+
"UseDualStack": true
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 415 |
+
"expect": {
|
| 416 |
+
"endpoint": {
|
| 417 |
+
"url": "https://appflow-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 418 |
+
}
|
| 419 |
+
},
|
| 420 |
+
"params": {
|
| 421 |
+
"Region": "us-isob-east-1",
|
| 422 |
+
"UseFIPS": true,
|
| 423 |
+
"UseDualStack": false
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 428 |
+
"expect": {
|
| 429 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 430 |
+
},
|
| 431 |
+
"params": {
|
| 432 |
+
"Region": "us-isob-east-1",
|
| 433 |
+
"UseFIPS": false,
|
| 434 |
+
"UseDualStack": true
|
| 435 |
+
}
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 439 |
+
"expect": {
|
| 440 |
+
"endpoint": {
|
| 441 |
+
"url": "https://appflow.us-isob-east-1.sc2s.sgov.gov"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"params": {
|
| 445 |
+
"Region": "us-isob-east-1",
|
| 446 |
+
"UseFIPS": false,
|
| 447 |
+
"UseDualStack": false
|
| 448 |
+
}
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 452 |
+
"expect": {
|
| 453 |
+
"endpoint": {
|
| 454 |
+
"url": "https://example.com"
|
| 455 |
+
}
|
| 456 |
+
},
|
| 457 |
+
"params": {
|
| 458 |
+
"Region": "us-east-1",
|
| 459 |
+
"UseFIPS": false,
|
| 460 |
+
"UseDualStack": false,
|
| 461 |
+
"Endpoint": "https://example.com"
|
| 462 |
+
}
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 466 |
+
"expect": {
|
| 467 |
+
"endpoint": {
|
| 468 |
+
"url": "https://example.com"
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
"params": {
|
| 472 |
+
"UseFIPS": false,
|
| 473 |
+
"UseDualStack": false,
|
| 474 |
+
"Endpoint": "https://example.com"
|
| 475 |
+
}
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 479 |
+
"expect": {
|
| 480 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 481 |
+
},
|
| 482 |
+
"params": {
|
| 483 |
+
"Region": "us-east-1",
|
| 484 |
+
"UseFIPS": true,
|
| 485 |
+
"UseDualStack": false,
|
| 486 |
+
"Endpoint": "https://example.com"
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 491 |
+
"expect": {
|
| 492 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 493 |
+
},
|
| 494 |
+
"params": {
|
| 495 |
+
"Region": "us-east-1",
|
| 496 |
+
"UseFIPS": false,
|
| 497 |
+
"UseDualStack": true,
|
| 498 |
+
"Endpoint": "https://example.com"
|
| 499 |
+
}
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"documentation": "Missing region",
|
| 503 |
+
"expect": {
|
| 504 |
+
"error": "Invalid Configuration: Missing Region"
|
| 505 |
+
}
|
| 506 |
+
}
|
| 507 |
+
],
|
| 508 |
+
"version": "1.0"
|
| 509 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appintegrations/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://app-integrations.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://app-integrations.ap-northeast-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-northeast-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://app-integrations.ap-northeast-2.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-2",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://app-integrations.ap-southeast-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-southeast-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://app-integrations.ap-southeast-2.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-southeast-2",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://app-integrations.ca-central-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ca-central-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://app-integrations.eu-central-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "eu-central-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://app-integrations.eu-west-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "eu-west-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://app-integrations.us-east-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "us-east-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://app-integrations.us-west-2.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-west-2",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://app-integrations-fips.us-east-1.api.aws"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "us-east-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": true
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://app-integrations-fips.us-east-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "us-east-1",
|
| 155 |
+
"UseFIPS": true,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://app-integrations.us-east-1.api.aws"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "us-east-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": true
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://app-integrations-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "cn-north-1",
|
| 181 |
+
"UseFIPS": true,
|
| 182 |
+
"UseDualStack": true
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://app-integrations-fips.cn-north-1.amazonaws.com.cn"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "cn-north-1",
|
| 194 |
+
"UseFIPS": true,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://app-integrations.cn-north-1.api.amazonwebservices.com.cn"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "cn-north-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": true
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://app-integrations.cn-north-1.amazonaws.com.cn"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "cn-north-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://app-integrations-fips.us-gov-east-1.api.aws"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-gov-east-1",
|
| 233 |
+
"UseFIPS": true,
|
| 234 |
+
"UseDualStack": true
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://app-integrations-fips.us-gov-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-gov-east-1",
|
| 246 |
+
"UseFIPS": true,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://app-integrations.us-gov-east-1.api.aws"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-gov-east-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://app-integrations.us-gov-east-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-gov-east-1",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 280 |
+
},
|
| 281 |
+
"params": {
|
| 282 |
+
"Region": "us-iso-east-1",
|
| 283 |
+
"UseFIPS": true,
|
| 284 |
+
"UseDualStack": true
|
| 285 |
+
}
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 289 |
+
"expect": {
|
| 290 |
+
"endpoint": {
|
| 291 |
+
"url": "https://app-integrations-fips.us-iso-east-1.c2s.ic.gov"
|
| 292 |
+
}
|
| 293 |
+
},
|
| 294 |
+
"params": {
|
| 295 |
+
"Region": "us-iso-east-1",
|
| 296 |
+
"UseFIPS": true,
|
| 297 |
+
"UseDualStack": false
|
| 298 |
+
}
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 302 |
+
"expect": {
|
| 303 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 304 |
+
},
|
| 305 |
+
"params": {
|
| 306 |
+
"Region": "us-iso-east-1",
|
| 307 |
+
"UseFIPS": false,
|
| 308 |
+
"UseDualStack": true
|
| 309 |
+
}
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 313 |
+
"expect": {
|
| 314 |
+
"endpoint": {
|
| 315 |
+
"url": "https://app-integrations.us-iso-east-1.c2s.ic.gov"
|
| 316 |
+
}
|
| 317 |
+
},
|
| 318 |
+
"params": {
|
| 319 |
+
"Region": "us-iso-east-1",
|
| 320 |
+
"UseFIPS": false,
|
| 321 |
+
"UseDualStack": false
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 326 |
+
"expect": {
|
| 327 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 328 |
+
},
|
| 329 |
+
"params": {
|
| 330 |
+
"Region": "us-isob-east-1",
|
| 331 |
+
"UseFIPS": true,
|
| 332 |
+
"UseDualStack": true
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 337 |
+
"expect": {
|
| 338 |
+
"endpoint": {
|
| 339 |
+
"url": "https://app-integrations-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 340 |
+
}
|
| 341 |
+
},
|
| 342 |
+
"params": {
|
| 343 |
+
"Region": "us-isob-east-1",
|
| 344 |
+
"UseFIPS": true,
|
| 345 |
+
"UseDualStack": false
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 350 |
+
"expect": {
|
| 351 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 352 |
+
},
|
| 353 |
+
"params": {
|
| 354 |
+
"Region": "us-isob-east-1",
|
| 355 |
+
"UseFIPS": false,
|
| 356 |
+
"UseDualStack": true
|
| 357 |
+
}
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 361 |
+
"expect": {
|
| 362 |
+
"endpoint": {
|
| 363 |
+
"url": "https://app-integrations.us-isob-east-1.sc2s.sgov.gov"
|
| 364 |
+
}
|
| 365 |
+
},
|
| 366 |
+
"params": {
|
| 367 |
+
"Region": "us-isob-east-1",
|
| 368 |
+
"UseFIPS": false,
|
| 369 |
+
"UseDualStack": false
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 374 |
+
"expect": {
|
| 375 |
+
"endpoint": {
|
| 376 |
+
"url": "https://example.com"
|
| 377 |
+
}
|
| 378 |
+
},
|
| 379 |
+
"params": {
|
| 380 |
+
"Region": "us-east-1",
|
| 381 |
+
"UseFIPS": false,
|
| 382 |
+
"UseDualStack": false,
|
| 383 |
+
"Endpoint": "https://example.com"
|
| 384 |
+
}
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 388 |
+
"expect": {
|
| 389 |
+
"endpoint": {
|
| 390 |
+
"url": "https://example.com"
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
"params": {
|
| 394 |
+
"UseFIPS": false,
|
| 395 |
+
"UseDualStack": false,
|
| 396 |
+
"Endpoint": "https://example.com"
|
| 397 |
+
}
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 401 |
+
"expect": {
|
| 402 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 403 |
+
},
|
| 404 |
+
"params": {
|
| 405 |
+
"Region": "us-east-1",
|
| 406 |
+
"UseFIPS": true,
|
| 407 |
+
"UseDualStack": false,
|
| 408 |
+
"Endpoint": "https://example.com"
|
| 409 |
+
}
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 413 |
+
"expect": {
|
| 414 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 415 |
+
},
|
| 416 |
+
"params": {
|
| 417 |
+
"Region": "us-east-1",
|
| 418 |
+
"UseFIPS": false,
|
| 419 |
+
"UseDualStack": true,
|
| 420 |
+
"Endpoint": "https://example.com"
|
| 421 |
+
}
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"documentation": "Missing region",
|
| 425 |
+
"expect": {
|
| 426 |
+
"error": "Invalid Configuration: Missing Region"
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
],
|
| 430 |
+
"version": "1.0"
|
| 431 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/application-autoscaling/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,639 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://application-autoscaling.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://application-autoscaling.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://application-autoscaling.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://application-autoscaling.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://application-autoscaling.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://application-autoscaling.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://application-autoscaling.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://application-autoscaling.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://application-autoscaling.ap-southeast-3.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ap-southeast-3",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://application-autoscaling.ca-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "ca-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://application-autoscaling.eu-central-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-central-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://application-autoscaling.eu-north-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-north-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://application-autoscaling.eu-south-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-south-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://application-autoscaling.eu-west-1.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-west-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://application-autoscaling.eu-west-2.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-2",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://application-autoscaling.eu-west-3.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "eu-west-3",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://application-autoscaling.me-south-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "me-south-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://application-autoscaling.sa-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "sa-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://application-autoscaling.us-east-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://application-autoscaling.us-east-2.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-east-2",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://application-autoscaling.us-west-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-west-1",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://application-autoscaling.us-west-2.amazonaws.com"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-west-2",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://application-autoscaling-fips.us-east-1.api.aws"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": true
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://application-autoscaling-fips.us-east-1.amazonaws.com"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-east-1",
|
| 311 |
+
"UseFIPS": true,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://application-autoscaling.us-east-1.api.aws"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-east-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": true
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://application-autoscaling.cn-north-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-north-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://application-autoscaling.cn-northwest-1.amazonaws.com.cn"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "cn-northwest-1",
|
| 350 |
+
"UseFIPS": false,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://application-autoscaling-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "cn-north-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": true
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://application-autoscaling-fips.cn-north-1.amazonaws.com.cn"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "cn-north-1",
|
| 376 |
+
"UseFIPS": true,
|
| 377 |
+
"UseDualStack": false
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://application-autoscaling.cn-north-1.api.amazonwebservices.com.cn"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "cn-north-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": true
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://application-autoscaling.us-gov-east-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "us-gov-east-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://application-autoscaling.us-gov-east-1.amazonaws.com"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "us-gov-east-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": false
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://application-autoscaling.us-gov-west-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-gov-west-1",
|
| 428 |
+
"UseFIPS": false,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://application-autoscaling.us-gov-west-1.amazonaws.com"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-west-1",
|
| 441 |
+
"UseFIPS": true,
|
| 442 |
+
"UseDualStack": false
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://application-autoscaling-fips.us-gov-east-1.api.aws"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-gov-east-1",
|
| 454 |
+
"UseFIPS": true,
|
| 455 |
+
"UseDualStack": true
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"endpoint": {
|
| 462 |
+
"url": "https://application-autoscaling.us-gov-east-1.api.aws"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"params": {
|
| 466 |
+
"Region": "us-gov-east-1",
|
| 467 |
+
"UseFIPS": false,
|
| 468 |
+
"UseDualStack": true
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 473 |
+
"expect": {
|
| 474 |
+
"endpoint": {
|
| 475 |
+
"url": "https://application-autoscaling.us-iso-east-1.c2s.ic.gov"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"params": {
|
| 479 |
+
"Region": "us-iso-east-1",
|
| 480 |
+
"UseFIPS": false,
|
| 481 |
+
"UseDualStack": false
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled",
|
| 486 |
+
"expect": {
|
| 487 |
+
"endpoint": {
|
| 488 |
+
"url": "https://application-autoscaling.us-iso-west-1.c2s.ic.gov"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
"params": {
|
| 492 |
+
"Region": "us-iso-west-1",
|
| 493 |
+
"UseFIPS": false,
|
| 494 |
+
"UseDualStack": false
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 499 |
+
"expect": {
|
| 500 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 501 |
+
},
|
| 502 |
+
"params": {
|
| 503 |
+
"Region": "us-iso-east-1",
|
| 504 |
+
"UseFIPS": true,
|
| 505 |
+
"UseDualStack": true
|
| 506 |
+
}
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 510 |
+
"expect": {
|
| 511 |
+
"endpoint": {
|
| 512 |
+
"url": "https://application-autoscaling-fips.us-iso-east-1.c2s.ic.gov"
|
| 513 |
+
}
|
| 514 |
+
},
|
| 515 |
+
"params": {
|
| 516 |
+
"Region": "us-iso-east-1",
|
| 517 |
+
"UseFIPS": true,
|
| 518 |
+
"UseDualStack": false
|
| 519 |
+
}
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 523 |
+
"expect": {
|
| 524 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 525 |
+
},
|
| 526 |
+
"params": {
|
| 527 |
+
"Region": "us-iso-east-1",
|
| 528 |
+
"UseFIPS": false,
|
| 529 |
+
"UseDualStack": true
|
| 530 |
+
}
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 534 |
+
"expect": {
|
| 535 |
+
"endpoint": {
|
| 536 |
+
"url": "https://application-autoscaling.us-isob-east-1.sc2s.sgov.gov"
|
| 537 |
+
}
|
| 538 |
+
},
|
| 539 |
+
"params": {
|
| 540 |
+
"Region": "us-isob-east-1",
|
| 541 |
+
"UseFIPS": false,
|
| 542 |
+
"UseDualStack": false
|
| 543 |
+
}
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 547 |
+
"expect": {
|
| 548 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 549 |
+
},
|
| 550 |
+
"params": {
|
| 551 |
+
"Region": "us-isob-east-1",
|
| 552 |
+
"UseFIPS": true,
|
| 553 |
+
"UseDualStack": true
|
| 554 |
+
}
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 558 |
+
"expect": {
|
| 559 |
+
"endpoint": {
|
| 560 |
+
"url": "https://application-autoscaling-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 561 |
+
}
|
| 562 |
+
},
|
| 563 |
+
"params": {
|
| 564 |
+
"Region": "us-isob-east-1",
|
| 565 |
+
"UseFIPS": true,
|
| 566 |
+
"UseDualStack": false
|
| 567 |
+
}
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 571 |
+
"expect": {
|
| 572 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 573 |
+
},
|
| 574 |
+
"params": {
|
| 575 |
+
"Region": "us-isob-east-1",
|
| 576 |
+
"UseFIPS": false,
|
| 577 |
+
"UseDualStack": true
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 582 |
+
"expect": {
|
| 583 |
+
"endpoint": {
|
| 584 |
+
"url": "https://example.com"
|
| 585 |
+
}
|
| 586 |
+
},
|
| 587 |
+
"params": {
|
| 588 |
+
"Region": "us-east-1",
|
| 589 |
+
"UseFIPS": false,
|
| 590 |
+
"UseDualStack": false,
|
| 591 |
+
"Endpoint": "https://example.com"
|
| 592 |
+
}
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 596 |
+
"expect": {
|
| 597 |
+
"endpoint": {
|
| 598 |
+
"url": "https://example.com"
|
| 599 |
+
}
|
| 600 |
+
},
|
| 601 |
+
"params": {
|
| 602 |
+
"UseFIPS": false,
|
| 603 |
+
"UseDualStack": false,
|
| 604 |
+
"Endpoint": "https://example.com"
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 609 |
+
"expect": {
|
| 610 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 611 |
+
},
|
| 612 |
+
"params": {
|
| 613 |
+
"Region": "us-east-1",
|
| 614 |
+
"UseFIPS": true,
|
| 615 |
+
"UseDualStack": false,
|
| 616 |
+
"Endpoint": "https://example.com"
|
| 617 |
+
}
|
| 618 |
+
},
|
| 619 |
+
{
|
| 620 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 621 |
+
"expect": {
|
| 622 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 623 |
+
},
|
| 624 |
+
"params": {
|
| 625 |
+
"Region": "us-east-1",
|
| 626 |
+
"UseFIPS": false,
|
| 627 |
+
"UseDualStack": true,
|
| 628 |
+
"Endpoint": "https://example.com"
|
| 629 |
+
}
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"documentation": "Missing region",
|
| 633 |
+
"expect": {
|
| 634 |
+
"error": "Invalid Configuration: Missing Region"
|
| 635 |
+
}
|
| 636 |
+
}
|
| 637 |
+
],
|
| 638 |
+
"version": "1.0"
|
| 639 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/application-insights/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,600 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://applicationinsights.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://applicationinsights.ap-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-east-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://applicationinsights.ap-northeast-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-northeast-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://applicationinsights.ap-northeast-2.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-northeast-2",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://applicationinsights.ap-northeast-3.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-3",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://applicationinsights.ap-south-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-south-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://applicationinsights.ap-southeast-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-southeast-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://applicationinsights.ap-southeast-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-southeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://applicationinsights.ca-central-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ca-central-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://applicationinsights.eu-central-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "eu-central-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://applicationinsights.eu-north-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "eu-north-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://applicationinsights.eu-south-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "eu-south-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://applicationinsights.eu-west-1.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "eu-west-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://applicationinsights.eu-west-2.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "eu-west-2",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://applicationinsights.eu-west-3.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "eu-west-3",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://applicationinsights.me-south-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "me-south-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://applicationinsights.sa-east-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "sa-east-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://applicationinsights.us-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://applicationinsights.us-east-2.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "us-east-2",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://applicationinsights.us-west-1.amazonaws.com"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "us-west-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://applicationinsights.us-west-2.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-west-2",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://applicationinsights-fips.us-east-1.api.aws"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-east-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://applicationinsights-fips.us-east-1.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://applicationinsights.us-east-1.api.aws"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-east-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": true
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://applicationinsights.cn-north-1.amazonaws.com.cn"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "cn-north-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://applicationinsights.cn-northwest-1.amazonaws.com.cn"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "cn-northwest-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://applicationinsights-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "cn-north-1",
|
| 350 |
+
"UseFIPS": true,
|
| 351 |
+
"UseDualStack": true
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://applicationinsights-fips.cn-north-1.amazonaws.com.cn"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "cn-north-1",
|
| 363 |
+
"UseFIPS": true,
|
| 364 |
+
"UseDualStack": false
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://applicationinsights.cn-north-1.api.amazonwebservices.com.cn"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "cn-north-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": true
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://applicationinsights.us-gov-east-1.amazonaws.com"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "us-gov-east-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": false
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://applicationinsights.us-gov-west-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "us-gov-west-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://applicationinsights-fips.us-gov-east-1.api.aws"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "us-gov-east-1",
|
| 415 |
+
"UseFIPS": true,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://applicationinsights-fips.us-gov-east-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-gov-east-1",
|
| 428 |
+
"UseFIPS": true,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://applicationinsights.us-gov-east-1.api.aws"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-gov-east-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 449 |
+
},
|
| 450 |
+
"params": {
|
| 451 |
+
"Region": "us-iso-east-1",
|
| 452 |
+
"UseFIPS": true,
|
| 453 |
+
"UseDualStack": true
|
| 454 |
+
}
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 458 |
+
"expect": {
|
| 459 |
+
"endpoint": {
|
| 460 |
+
"url": "https://applicationinsights-fips.us-iso-east-1.c2s.ic.gov"
|
| 461 |
+
}
|
| 462 |
+
},
|
| 463 |
+
"params": {
|
| 464 |
+
"Region": "us-iso-east-1",
|
| 465 |
+
"UseFIPS": true,
|
| 466 |
+
"UseDualStack": false
|
| 467 |
+
}
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 471 |
+
"expect": {
|
| 472 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 473 |
+
},
|
| 474 |
+
"params": {
|
| 475 |
+
"Region": "us-iso-east-1",
|
| 476 |
+
"UseFIPS": false,
|
| 477 |
+
"UseDualStack": true
|
| 478 |
+
}
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 482 |
+
"expect": {
|
| 483 |
+
"endpoint": {
|
| 484 |
+
"url": "https://applicationinsights.us-iso-east-1.c2s.ic.gov"
|
| 485 |
+
}
|
| 486 |
+
},
|
| 487 |
+
"params": {
|
| 488 |
+
"Region": "us-iso-east-1",
|
| 489 |
+
"UseFIPS": false,
|
| 490 |
+
"UseDualStack": false
|
| 491 |
+
}
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 495 |
+
"expect": {
|
| 496 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 497 |
+
},
|
| 498 |
+
"params": {
|
| 499 |
+
"Region": "us-isob-east-1",
|
| 500 |
+
"UseFIPS": true,
|
| 501 |
+
"UseDualStack": true
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 506 |
+
"expect": {
|
| 507 |
+
"endpoint": {
|
| 508 |
+
"url": "https://applicationinsights-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 509 |
+
}
|
| 510 |
+
},
|
| 511 |
+
"params": {
|
| 512 |
+
"Region": "us-isob-east-1",
|
| 513 |
+
"UseFIPS": true,
|
| 514 |
+
"UseDualStack": false
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 519 |
+
"expect": {
|
| 520 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 521 |
+
},
|
| 522 |
+
"params": {
|
| 523 |
+
"Region": "us-isob-east-1",
|
| 524 |
+
"UseFIPS": false,
|
| 525 |
+
"UseDualStack": true
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 530 |
+
"expect": {
|
| 531 |
+
"endpoint": {
|
| 532 |
+
"url": "https://applicationinsights.us-isob-east-1.sc2s.sgov.gov"
|
| 533 |
+
}
|
| 534 |
+
},
|
| 535 |
+
"params": {
|
| 536 |
+
"Region": "us-isob-east-1",
|
| 537 |
+
"UseFIPS": false,
|
| 538 |
+
"UseDualStack": false
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 543 |
+
"expect": {
|
| 544 |
+
"endpoint": {
|
| 545 |
+
"url": "https://example.com"
|
| 546 |
+
}
|
| 547 |
+
},
|
| 548 |
+
"params": {
|
| 549 |
+
"Region": "us-east-1",
|
| 550 |
+
"UseFIPS": false,
|
| 551 |
+
"UseDualStack": false,
|
| 552 |
+
"Endpoint": "https://example.com"
|
| 553 |
+
}
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 557 |
+
"expect": {
|
| 558 |
+
"endpoint": {
|
| 559 |
+
"url": "https://example.com"
|
| 560 |
+
}
|
| 561 |
+
},
|
| 562 |
+
"params": {
|
| 563 |
+
"UseFIPS": false,
|
| 564 |
+
"UseDualStack": false,
|
| 565 |
+
"Endpoint": "https://example.com"
|
| 566 |
+
}
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 570 |
+
"expect": {
|
| 571 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 572 |
+
},
|
| 573 |
+
"params": {
|
| 574 |
+
"Region": "us-east-1",
|
| 575 |
+
"UseFIPS": true,
|
| 576 |
+
"UseDualStack": false,
|
| 577 |
+
"Endpoint": "https://example.com"
|
| 578 |
+
}
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 582 |
+
"expect": {
|
| 583 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 584 |
+
},
|
| 585 |
+
"params": {
|
| 586 |
+
"Region": "us-east-1",
|
| 587 |
+
"UseFIPS": false,
|
| 588 |
+
"UseDualStack": true,
|
| 589 |
+
"Endpoint": "https://example.com"
|
| 590 |
+
}
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"documentation": "Missing region",
|
| 594 |
+
"expect": {
|
| 595 |
+
"error": "Invalid Configuration: Missing Region"
|
| 596 |
+
}
|
| 597 |
+
}
|
| 598 |
+
],
|
| 599 |
+
"version": "1.0"
|
| 600 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/applicationcostprofiler/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://application-cost-profiler-fips.us-east-1.api.aws"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "us-east-1",
|
| 12 |
+
"UseFIPS": true,
|
| 13 |
+
"UseDualStack": true
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://application-cost-profiler-fips.us-east-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "us-east-1",
|
| 25 |
+
"UseFIPS": true,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://application-cost-profiler.us-east-1.api.aws"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "us-east-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": true
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://application-cost-profiler.us-east-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "us-east-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://application-cost-profiler-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "cn-north-1",
|
| 64 |
+
"UseFIPS": true,
|
| 65 |
+
"UseDualStack": true
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://application-cost-profiler-fips.cn-north-1.amazonaws.com.cn"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "cn-north-1",
|
| 77 |
+
"UseFIPS": true,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://application-cost-profiler.cn-north-1.api.amazonwebservices.com.cn"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "cn-north-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": true
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://application-cost-profiler.cn-north-1.amazonaws.com.cn"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "cn-north-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://application-cost-profiler-fips.us-gov-east-1.api.aws"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "us-gov-east-1",
|
| 116 |
+
"UseFIPS": true,
|
| 117 |
+
"UseDualStack": true
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://application-cost-profiler-fips.us-gov-east-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-gov-east-1",
|
| 129 |
+
"UseFIPS": true,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://application-cost-profiler.us-gov-east-1.api.aws"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "us-gov-east-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": true
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://application-cost-profiler.us-gov-east-1.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "us-gov-east-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 163 |
+
},
|
| 164 |
+
"params": {
|
| 165 |
+
"Region": "us-iso-east-1",
|
| 166 |
+
"UseFIPS": true,
|
| 167 |
+
"UseDualStack": true
|
| 168 |
+
}
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 172 |
+
"expect": {
|
| 173 |
+
"endpoint": {
|
| 174 |
+
"url": "https://application-cost-profiler-fips.us-iso-east-1.c2s.ic.gov"
|
| 175 |
+
}
|
| 176 |
+
},
|
| 177 |
+
"params": {
|
| 178 |
+
"Region": "us-iso-east-1",
|
| 179 |
+
"UseFIPS": true,
|
| 180 |
+
"UseDualStack": false
|
| 181 |
+
}
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 185 |
+
"expect": {
|
| 186 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 187 |
+
},
|
| 188 |
+
"params": {
|
| 189 |
+
"Region": "us-iso-east-1",
|
| 190 |
+
"UseFIPS": false,
|
| 191 |
+
"UseDualStack": true
|
| 192 |
+
}
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 196 |
+
"expect": {
|
| 197 |
+
"endpoint": {
|
| 198 |
+
"url": "https://application-cost-profiler.us-iso-east-1.c2s.ic.gov"
|
| 199 |
+
}
|
| 200 |
+
},
|
| 201 |
+
"params": {
|
| 202 |
+
"Region": "us-iso-east-1",
|
| 203 |
+
"UseFIPS": false,
|
| 204 |
+
"UseDualStack": false
|
| 205 |
+
}
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 209 |
+
"expect": {
|
| 210 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 211 |
+
},
|
| 212 |
+
"params": {
|
| 213 |
+
"Region": "us-isob-east-1",
|
| 214 |
+
"UseFIPS": true,
|
| 215 |
+
"UseDualStack": true
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 220 |
+
"expect": {
|
| 221 |
+
"endpoint": {
|
| 222 |
+
"url": "https://application-cost-profiler-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 223 |
+
}
|
| 224 |
+
},
|
| 225 |
+
"params": {
|
| 226 |
+
"Region": "us-isob-east-1",
|
| 227 |
+
"UseFIPS": true,
|
| 228 |
+
"UseDualStack": false
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 233 |
+
"expect": {
|
| 234 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 235 |
+
},
|
| 236 |
+
"params": {
|
| 237 |
+
"Region": "us-isob-east-1",
|
| 238 |
+
"UseFIPS": false,
|
| 239 |
+
"UseDualStack": true
|
| 240 |
+
}
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 244 |
+
"expect": {
|
| 245 |
+
"endpoint": {
|
| 246 |
+
"url": "https://application-cost-profiler.us-isob-east-1.sc2s.sgov.gov"
|
| 247 |
+
}
|
| 248 |
+
},
|
| 249 |
+
"params": {
|
| 250 |
+
"Region": "us-isob-east-1",
|
| 251 |
+
"UseFIPS": false,
|
| 252 |
+
"UseDualStack": false
|
| 253 |
+
}
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 257 |
+
"expect": {
|
| 258 |
+
"endpoint": {
|
| 259 |
+
"url": "https://example.com"
|
| 260 |
+
}
|
| 261 |
+
},
|
| 262 |
+
"params": {
|
| 263 |
+
"Region": "us-east-1",
|
| 264 |
+
"UseFIPS": false,
|
| 265 |
+
"UseDualStack": false,
|
| 266 |
+
"Endpoint": "https://example.com"
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 271 |
+
"expect": {
|
| 272 |
+
"endpoint": {
|
| 273 |
+
"url": "https://example.com"
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
"params": {
|
| 277 |
+
"UseFIPS": false,
|
| 278 |
+
"UseDualStack": false,
|
| 279 |
+
"Endpoint": "https://example.com"
|
| 280 |
+
}
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 284 |
+
"expect": {
|
| 285 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 286 |
+
},
|
| 287 |
+
"params": {
|
| 288 |
+
"Region": "us-east-1",
|
| 289 |
+
"UseFIPS": true,
|
| 290 |
+
"UseDualStack": false,
|
| 291 |
+
"Endpoint": "https://example.com"
|
| 292 |
+
}
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 296 |
+
"expect": {
|
| 297 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 298 |
+
},
|
| 299 |
+
"params": {
|
| 300 |
+
"Region": "us-east-1",
|
| 301 |
+
"UseFIPS": false,
|
| 302 |
+
"UseDualStack": true,
|
| 303 |
+
"Endpoint": "https://example.com"
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"documentation": "Missing region",
|
| 308 |
+
"expect": {
|
| 309 |
+
"error": "Invalid Configuration: Missing Region"
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
],
|
| 313 |
+
"version": "1.0"
|
| 314 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appmesh/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,834 @@
|
|
|
|
|
|
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 |
+
"url": "https://appmesh.af-south-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "af-south-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region af-south-1 with FIPS disabled and DualStack enabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://appmesh.af-south-1.api.aws"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "af-south-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": true
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://appmesh.ap-east-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-east-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://appmesh.ap-east-1.api.aws"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-east-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": true
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://appmesh.ap-northeast-1.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-northeast-1",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://appmesh.ap-northeast-1.api.aws"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ap-northeast-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": true
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://appmesh.ap-northeast-2.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "ap-northeast-2",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://appmesh.ap-northeast-2.api.aws"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "ap-northeast-2",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": true
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://appmesh.ap-south-1.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "ap-south-1",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://appmesh.ap-south-1.api.aws"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "ap-south-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": true
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://appmesh.ap-southeast-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "ap-southeast-1",
|
| 142 |
+
"UseFIPS": false,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://appmesh.ap-southeast-1.api.aws"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "ap-southeast-1",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": true
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://appmesh.ap-southeast-2.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "ap-southeast-2",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://appmesh.ap-southeast-2.api.aws"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "ap-southeast-2",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": true
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://appmesh.ca-central-1.amazonaws.com"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "ca-central-1",
|
| 194 |
+
"UseFIPS": false,
|
| 195 |
+
"UseDualStack": false
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://appmesh.ca-central-1.api.aws"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "ca-central-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": true
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://appmesh.eu-central-1.amazonaws.com"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "eu-central-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": false
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://appmesh.eu-central-1.api.aws"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "eu-central-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": true
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://appmesh.eu-north-1.amazonaws.com"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "eu-north-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": false
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://appmesh.eu-north-1.api.aws"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "eu-north-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": true
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://appmesh.eu-south-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "eu-south-1",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://appmesh.eu-south-1.api.aws"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "eu-south-1",
|
| 285 |
+
"UseFIPS": false,
|
| 286 |
+
"UseDualStack": true
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://appmesh.eu-west-1.amazonaws.com"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "eu-west-1",
|
| 298 |
+
"UseFIPS": false,
|
| 299 |
+
"UseDualStack": false
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://appmesh.eu-west-1.api.aws"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "eu-west-1",
|
| 311 |
+
"UseFIPS": false,
|
| 312 |
+
"UseDualStack": true
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://appmesh.eu-west-2.amazonaws.com"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "eu-west-2",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": false
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://appmesh.eu-west-2.api.aws"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "eu-west-2",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": true
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"endpoint": {
|
| 345 |
+
"url": "https://appmesh.eu-west-3.amazonaws.com"
|
| 346 |
+
}
|
| 347 |
+
},
|
| 348 |
+
"params": {
|
| 349 |
+
"Region": "eu-west-3",
|
| 350 |
+
"UseFIPS": false,
|
| 351 |
+
"UseDualStack": false
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled",
|
| 356 |
+
"expect": {
|
| 357 |
+
"endpoint": {
|
| 358 |
+
"url": "https://appmesh.eu-west-3.api.aws"
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
"params": {
|
| 362 |
+
"Region": "eu-west-3",
|
| 363 |
+
"UseFIPS": false,
|
| 364 |
+
"UseDualStack": true
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
|
| 369 |
+
"expect": {
|
| 370 |
+
"endpoint": {
|
| 371 |
+
"url": "https://appmesh.me-south-1.amazonaws.com"
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"params": {
|
| 375 |
+
"Region": "me-south-1",
|
| 376 |
+
"UseFIPS": false,
|
| 377 |
+
"UseDualStack": false
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"documentation": "For region me-south-1 with FIPS disabled and DualStack enabled",
|
| 382 |
+
"expect": {
|
| 383 |
+
"endpoint": {
|
| 384 |
+
"url": "https://appmesh.me-south-1.api.aws"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
"params": {
|
| 388 |
+
"Region": "me-south-1",
|
| 389 |
+
"UseFIPS": false,
|
| 390 |
+
"UseDualStack": true
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
|
| 395 |
+
"expect": {
|
| 396 |
+
"endpoint": {
|
| 397 |
+
"url": "https://appmesh.sa-east-1.amazonaws.com"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"params": {
|
| 401 |
+
"Region": "sa-east-1",
|
| 402 |
+
"UseFIPS": false,
|
| 403 |
+
"UseDualStack": false
|
| 404 |
+
}
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled",
|
| 408 |
+
"expect": {
|
| 409 |
+
"endpoint": {
|
| 410 |
+
"url": "https://appmesh.sa-east-1.api.aws"
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
"params": {
|
| 414 |
+
"Region": "sa-east-1",
|
| 415 |
+
"UseFIPS": false,
|
| 416 |
+
"UseDualStack": true
|
| 417 |
+
}
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 421 |
+
"expect": {
|
| 422 |
+
"endpoint": {
|
| 423 |
+
"url": "https://appmesh.us-east-1.amazonaws.com"
|
| 424 |
+
}
|
| 425 |
+
},
|
| 426 |
+
"params": {
|
| 427 |
+
"Region": "us-east-1",
|
| 428 |
+
"UseFIPS": false,
|
| 429 |
+
"UseDualStack": false
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 434 |
+
"expect": {
|
| 435 |
+
"endpoint": {
|
| 436 |
+
"url": "https://appmesh.us-east-1.api.aws"
|
| 437 |
+
}
|
| 438 |
+
},
|
| 439 |
+
"params": {
|
| 440 |
+
"Region": "us-east-1",
|
| 441 |
+
"UseFIPS": false,
|
| 442 |
+
"UseDualStack": true
|
| 443 |
+
}
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 447 |
+
"expect": {
|
| 448 |
+
"endpoint": {
|
| 449 |
+
"url": "https://appmesh.us-east-2.amazonaws.com"
|
| 450 |
+
}
|
| 451 |
+
},
|
| 452 |
+
"params": {
|
| 453 |
+
"Region": "us-east-2",
|
| 454 |
+
"UseFIPS": false,
|
| 455 |
+
"UseDualStack": false
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
{
|
| 459 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack enabled",
|
| 460 |
+
"expect": {
|
| 461 |
+
"endpoint": {
|
| 462 |
+
"url": "https://appmesh.us-east-2.api.aws"
|
| 463 |
+
}
|
| 464 |
+
},
|
| 465 |
+
"params": {
|
| 466 |
+
"Region": "us-east-2",
|
| 467 |
+
"UseFIPS": false,
|
| 468 |
+
"UseDualStack": true
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
|
| 473 |
+
"expect": {
|
| 474 |
+
"endpoint": {
|
| 475 |
+
"url": "https://appmesh.us-west-1.amazonaws.com"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
"params": {
|
| 479 |
+
"Region": "us-west-1",
|
| 480 |
+
"UseFIPS": false,
|
| 481 |
+
"UseDualStack": false
|
| 482 |
+
}
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"documentation": "For region us-west-1 with FIPS disabled and DualStack enabled",
|
| 486 |
+
"expect": {
|
| 487 |
+
"endpoint": {
|
| 488 |
+
"url": "https://appmesh.us-west-1.api.aws"
|
| 489 |
+
}
|
| 490 |
+
},
|
| 491 |
+
"params": {
|
| 492 |
+
"Region": "us-west-1",
|
| 493 |
+
"UseFIPS": false,
|
| 494 |
+
"UseDualStack": true
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 499 |
+
"expect": {
|
| 500 |
+
"endpoint": {
|
| 501 |
+
"url": "https://appmesh.us-west-2.amazonaws.com"
|
| 502 |
+
}
|
| 503 |
+
},
|
| 504 |
+
"params": {
|
| 505 |
+
"Region": "us-west-2",
|
| 506 |
+
"UseFIPS": false,
|
| 507 |
+
"UseDualStack": false
|
| 508 |
+
}
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack enabled",
|
| 512 |
+
"expect": {
|
| 513 |
+
"endpoint": {
|
| 514 |
+
"url": "https://appmesh.us-west-2.api.aws"
|
| 515 |
+
}
|
| 516 |
+
},
|
| 517 |
+
"params": {
|
| 518 |
+
"Region": "us-west-2",
|
| 519 |
+
"UseFIPS": false,
|
| 520 |
+
"UseDualStack": true
|
| 521 |
+
}
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 525 |
+
"expect": {
|
| 526 |
+
"endpoint": {
|
| 527 |
+
"url": "https://appmesh-fips.us-east-1.api.aws"
|
| 528 |
+
}
|
| 529 |
+
},
|
| 530 |
+
"params": {
|
| 531 |
+
"Region": "us-east-1",
|
| 532 |
+
"UseFIPS": true,
|
| 533 |
+
"UseDualStack": true
|
| 534 |
+
}
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 538 |
+
"expect": {
|
| 539 |
+
"endpoint": {
|
| 540 |
+
"url": "https://appmesh-fips.us-east-1.amazonaws.com"
|
| 541 |
+
}
|
| 542 |
+
},
|
| 543 |
+
"params": {
|
| 544 |
+
"Region": "us-east-1",
|
| 545 |
+
"UseFIPS": true,
|
| 546 |
+
"UseDualStack": false
|
| 547 |
+
}
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 551 |
+
"expect": {
|
| 552 |
+
"endpoint": {
|
| 553 |
+
"url": "https://appmesh.cn-north-1.amazonaws.com.cn"
|
| 554 |
+
}
|
| 555 |
+
},
|
| 556 |
+
"params": {
|
| 557 |
+
"Region": "cn-north-1",
|
| 558 |
+
"UseFIPS": false,
|
| 559 |
+
"UseDualStack": false
|
| 560 |
+
}
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 564 |
+
"expect": {
|
| 565 |
+
"endpoint": {
|
| 566 |
+
"url": "https://appmesh.cn-north-1.api.amazonwebservices.com.cn"
|
| 567 |
+
}
|
| 568 |
+
},
|
| 569 |
+
"params": {
|
| 570 |
+
"Region": "cn-north-1",
|
| 571 |
+
"UseFIPS": false,
|
| 572 |
+
"UseDualStack": true
|
| 573 |
+
}
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
|
| 577 |
+
"expect": {
|
| 578 |
+
"endpoint": {
|
| 579 |
+
"url": "https://appmesh.cn-northwest-1.amazonaws.com.cn"
|
| 580 |
+
}
|
| 581 |
+
},
|
| 582 |
+
"params": {
|
| 583 |
+
"Region": "cn-northwest-1",
|
| 584 |
+
"UseFIPS": false,
|
| 585 |
+
"UseDualStack": false
|
| 586 |
+
}
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled",
|
| 590 |
+
"expect": {
|
| 591 |
+
"endpoint": {
|
| 592 |
+
"url": "https://appmesh.cn-northwest-1.api.amazonwebservices.com.cn"
|
| 593 |
+
}
|
| 594 |
+
},
|
| 595 |
+
"params": {
|
| 596 |
+
"Region": "cn-northwest-1",
|
| 597 |
+
"UseFIPS": false,
|
| 598 |
+
"UseDualStack": true
|
| 599 |
+
}
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 603 |
+
"expect": {
|
| 604 |
+
"endpoint": {
|
| 605 |
+
"url": "https://appmesh-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 606 |
+
}
|
| 607 |
+
},
|
| 608 |
+
"params": {
|
| 609 |
+
"Region": "cn-north-1",
|
| 610 |
+
"UseFIPS": true,
|
| 611 |
+
"UseDualStack": true
|
| 612 |
+
}
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 616 |
+
"expect": {
|
| 617 |
+
"endpoint": {
|
| 618 |
+
"url": "https://appmesh-fips.cn-north-1.amazonaws.com.cn"
|
| 619 |
+
}
|
| 620 |
+
},
|
| 621 |
+
"params": {
|
| 622 |
+
"Region": "cn-north-1",
|
| 623 |
+
"UseFIPS": true,
|
| 624 |
+
"UseDualStack": false
|
| 625 |
+
}
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 629 |
+
"expect": {
|
| 630 |
+
"endpoint": {
|
| 631 |
+
"url": "https://appmesh-fips.us-gov-east-1.api.aws"
|
| 632 |
+
}
|
| 633 |
+
},
|
| 634 |
+
"params": {
|
| 635 |
+
"Region": "us-gov-east-1",
|
| 636 |
+
"UseFIPS": true,
|
| 637 |
+
"UseDualStack": true
|
| 638 |
+
}
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 642 |
+
"expect": {
|
| 643 |
+
"endpoint": {
|
| 644 |
+
"url": "https://appmesh-fips.us-gov-east-1.amazonaws.com"
|
| 645 |
+
}
|
| 646 |
+
},
|
| 647 |
+
"params": {
|
| 648 |
+
"Region": "us-gov-east-1",
|
| 649 |
+
"UseFIPS": true,
|
| 650 |
+
"UseDualStack": false
|
| 651 |
+
}
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 655 |
+
"expect": {
|
| 656 |
+
"endpoint": {
|
| 657 |
+
"url": "https://appmesh.us-gov-east-1.api.aws"
|
| 658 |
+
}
|
| 659 |
+
},
|
| 660 |
+
"params": {
|
| 661 |
+
"Region": "us-gov-east-1",
|
| 662 |
+
"UseFIPS": false,
|
| 663 |
+
"UseDualStack": true
|
| 664 |
+
}
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 668 |
+
"expect": {
|
| 669 |
+
"endpoint": {
|
| 670 |
+
"url": "https://appmesh.us-gov-east-1.amazonaws.com"
|
| 671 |
+
}
|
| 672 |
+
},
|
| 673 |
+
"params": {
|
| 674 |
+
"Region": "us-gov-east-1",
|
| 675 |
+
"UseFIPS": false,
|
| 676 |
+
"UseDualStack": false
|
| 677 |
+
}
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 681 |
+
"expect": {
|
| 682 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 683 |
+
},
|
| 684 |
+
"params": {
|
| 685 |
+
"Region": "us-iso-east-1",
|
| 686 |
+
"UseFIPS": true,
|
| 687 |
+
"UseDualStack": true
|
| 688 |
+
}
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 692 |
+
"expect": {
|
| 693 |
+
"endpoint": {
|
| 694 |
+
"url": "https://appmesh-fips.us-iso-east-1.c2s.ic.gov"
|
| 695 |
+
}
|
| 696 |
+
},
|
| 697 |
+
"params": {
|
| 698 |
+
"Region": "us-iso-east-1",
|
| 699 |
+
"UseFIPS": true,
|
| 700 |
+
"UseDualStack": false
|
| 701 |
+
}
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 705 |
+
"expect": {
|
| 706 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 707 |
+
},
|
| 708 |
+
"params": {
|
| 709 |
+
"Region": "us-iso-east-1",
|
| 710 |
+
"UseFIPS": false,
|
| 711 |
+
"UseDualStack": true
|
| 712 |
+
}
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 716 |
+
"expect": {
|
| 717 |
+
"endpoint": {
|
| 718 |
+
"url": "https://appmesh.us-iso-east-1.c2s.ic.gov"
|
| 719 |
+
}
|
| 720 |
+
},
|
| 721 |
+
"params": {
|
| 722 |
+
"Region": "us-iso-east-1",
|
| 723 |
+
"UseFIPS": false,
|
| 724 |
+
"UseDualStack": false
|
| 725 |
+
}
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 729 |
+
"expect": {
|
| 730 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 731 |
+
},
|
| 732 |
+
"params": {
|
| 733 |
+
"Region": "us-isob-east-1",
|
| 734 |
+
"UseFIPS": true,
|
| 735 |
+
"UseDualStack": true
|
| 736 |
+
}
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 740 |
+
"expect": {
|
| 741 |
+
"endpoint": {
|
| 742 |
+
"url": "https://appmesh-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 743 |
+
}
|
| 744 |
+
},
|
| 745 |
+
"params": {
|
| 746 |
+
"Region": "us-isob-east-1",
|
| 747 |
+
"UseFIPS": true,
|
| 748 |
+
"UseDualStack": false
|
| 749 |
+
}
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 753 |
+
"expect": {
|
| 754 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 755 |
+
},
|
| 756 |
+
"params": {
|
| 757 |
+
"Region": "us-isob-east-1",
|
| 758 |
+
"UseFIPS": false,
|
| 759 |
+
"UseDualStack": true
|
| 760 |
+
}
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 764 |
+
"expect": {
|
| 765 |
+
"endpoint": {
|
| 766 |
+
"url": "https://appmesh.us-isob-east-1.sc2s.sgov.gov"
|
| 767 |
+
}
|
| 768 |
+
},
|
| 769 |
+
"params": {
|
| 770 |
+
"Region": "us-isob-east-1",
|
| 771 |
+
"UseFIPS": false,
|
| 772 |
+
"UseDualStack": false
|
| 773 |
+
}
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 777 |
+
"expect": {
|
| 778 |
+
"endpoint": {
|
| 779 |
+
"url": "https://example.com"
|
| 780 |
+
}
|
| 781 |
+
},
|
| 782 |
+
"params": {
|
| 783 |
+
"Region": "us-east-1",
|
| 784 |
+
"UseFIPS": false,
|
| 785 |
+
"UseDualStack": false,
|
| 786 |
+
"Endpoint": "https://example.com"
|
| 787 |
+
}
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 791 |
+
"expect": {
|
| 792 |
+
"endpoint": {
|
| 793 |
+
"url": "https://example.com"
|
| 794 |
+
}
|
| 795 |
+
},
|
| 796 |
+
"params": {
|
| 797 |
+
"UseFIPS": false,
|
| 798 |
+
"UseDualStack": false,
|
| 799 |
+
"Endpoint": "https://example.com"
|
| 800 |
+
}
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 804 |
+
"expect": {
|
| 805 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 806 |
+
},
|
| 807 |
+
"params": {
|
| 808 |
+
"Region": "us-east-1",
|
| 809 |
+
"UseFIPS": true,
|
| 810 |
+
"UseDualStack": false,
|
| 811 |
+
"Endpoint": "https://example.com"
|
| 812 |
+
}
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 816 |
+
"expect": {
|
| 817 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 818 |
+
},
|
| 819 |
+
"params": {
|
| 820 |
+
"Region": "us-east-1",
|
| 821 |
+
"UseFIPS": false,
|
| 822 |
+
"UseDualStack": true,
|
| 823 |
+
"Endpoint": "https://example.com"
|
| 824 |
+
}
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"documentation": "Missing region",
|
| 828 |
+
"expect": {
|
| 829 |
+
"error": "Invalid Configuration: Missing Region"
|
| 830 |
+
}
|
| 831 |
+
}
|
| 832 |
+
],
|
| 833 |
+
"version": "1.0"
|
| 834 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/apprunner/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,392 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://apprunner.ap-northeast-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "ap-northeast-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://apprunner.eu-west-1.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "eu-west-1",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://apprunner.us-east-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "us-east-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://apprunner-fips.us-east-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "us-east-1",
|
| 51 |
+
"UseFIPS": true,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://apprunner.us-east-2.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "us-east-2",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://apprunner-fips.us-east-2.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "us-east-2",
|
| 77 |
+
"UseFIPS": true,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://apprunner.us-west-2.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "us-west-2",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://apprunner-fips.us-west-2.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "us-west-2",
|
| 103 |
+
"UseFIPS": true,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://apprunner-fips.us-east-1.api.aws"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "us-east-1",
|
| 116 |
+
"UseFIPS": true,
|
| 117 |
+
"UseDualStack": true
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://apprunner.us-east-1.api.aws"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-east-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": true
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://apprunner-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "cn-north-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": true
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://apprunner-fips.cn-north-1.amazonaws.com.cn"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "cn-north-1",
|
| 155 |
+
"UseFIPS": true,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://apprunner.cn-north-1.api.amazonwebservices.com.cn"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "cn-north-1",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": true
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://apprunner.cn-north-1.amazonaws.com.cn"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "cn-north-1",
|
| 181 |
+
"UseFIPS": false,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://apprunner-fips.us-gov-east-1.api.aws"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "us-gov-east-1",
|
| 194 |
+
"UseFIPS": true,
|
| 195 |
+
"UseDualStack": true
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://apprunner-fips.us-gov-east-1.amazonaws.com"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "us-gov-east-1",
|
| 207 |
+
"UseFIPS": true,
|
| 208 |
+
"UseDualStack": false
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://apprunner.us-gov-east-1.api.aws"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "us-gov-east-1",
|
| 220 |
+
"UseFIPS": false,
|
| 221 |
+
"UseDualStack": true
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://apprunner.us-gov-east-1.amazonaws.com"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "us-gov-east-1",
|
| 233 |
+
"UseFIPS": false,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 241 |
+
},
|
| 242 |
+
"params": {
|
| 243 |
+
"Region": "us-iso-east-1",
|
| 244 |
+
"UseFIPS": true,
|
| 245 |
+
"UseDualStack": true
|
| 246 |
+
}
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 250 |
+
"expect": {
|
| 251 |
+
"endpoint": {
|
| 252 |
+
"url": "https://apprunner-fips.us-iso-east-1.c2s.ic.gov"
|
| 253 |
+
}
|
| 254 |
+
},
|
| 255 |
+
"params": {
|
| 256 |
+
"Region": "us-iso-east-1",
|
| 257 |
+
"UseFIPS": true,
|
| 258 |
+
"UseDualStack": false
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 263 |
+
"expect": {
|
| 264 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 265 |
+
},
|
| 266 |
+
"params": {
|
| 267 |
+
"Region": "us-iso-east-1",
|
| 268 |
+
"UseFIPS": false,
|
| 269 |
+
"UseDualStack": true
|
| 270 |
+
}
|
| 271 |
+
},
|
| 272 |
+
{
|
| 273 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 274 |
+
"expect": {
|
| 275 |
+
"endpoint": {
|
| 276 |
+
"url": "https://apprunner.us-iso-east-1.c2s.ic.gov"
|
| 277 |
+
}
|
| 278 |
+
},
|
| 279 |
+
"params": {
|
| 280 |
+
"Region": "us-iso-east-1",
|
| 281 |
+
"UseFIPS": false,
|
| 282 |
+
"UseDualStack": false
|
| 283 |
+
}
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 287 |
+
"expect": {
|
| 288 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 289 |
+
},
|
| 290 |
+
"params": {
|
| 291 |
+
"Region": "us-isob-east-1",
|
| 292 |
+
"UseFIPS": true,
|
| 293 |
+
"UseDualStack": true
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 298 |
+
"expect": {
|
| 299 |
+
"endpoint": {
|
| 300 |
+
"url": "https://apprunner-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 301 |
+
}
|
| 302 |
+
},
|
| 303 |
+
"params": {
|
| 304 |
+
"Region": "us-isob-east-1",
|
| 305 |
+
"UseFIPS": true,
|
| 306 |
+
"UseDualStack": false
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 311 |
+
"expect": {
|
| 312 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 313 |
+
},
|
| 314 |
+
"params": {
|
| 315 |
+
"Region": "us-isob-east-1",
|
| 316 |
+
"UseFIPS": false,
|
| 317 |
+
"UseDualStack": true
|
| 318 |
+
}
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 322 |
+
"expect": {
|
| 323 |
+
"endpoint": {
|
| 324 |
+
"url": "https://apprunner.us-isob-east-1.sc2s.sgov.gov"
|
| 325 |
+
}
|
| 326 |
+
},
|
| 327 |
+
"params": {
|
| 328 |
+
"Region": "us-isob-east-1",
|
| 329 |
+
"UseFIPS": false,
|
| 330 |
+
"UseDualStack": false
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 335 |
+
"expect": {
|
| 336 |
+
"endpoint": {
|
| 337 |
+
"url": "https://example.com"
|
| 338 |
+
}
|
| 339 |
+
},
|
| 340 |
+
"params": {
|
| 341 |
+
"Region": "us-east-1",
|
| 342 |
+
"UseFIPS": false,
|
| 343 |
+
"UseDualStack": false,
|
| 344 |
+
"Endpoint": "https://example.com"
|
| 345 |
+
}
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 349 |
+
"expect": {
|
| 350 |
+
"endpoint": {
|
| 351 |
+
"url": "https://example.com"
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
"params": {
|
| 355 |
+
"UseFIPS": false,
|
| 356 |
+
"UseDualStack": false,
|
| 357 |
+
"Endpoint": "https://example.com"
|
| 358 |
+
}
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 362 |
+
"expect": {
|
| 363 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 364 |
+
},
|
| 365 |
+
"params": {
|
| 366 |
+
"Region": "us-east-1",
|
| 367 |
+
"UseFIPS": true,
|
| 368 |
+
"UseDualStack": false,
|
| 369 |
+
"Endpoint": "https://example.com"
|
| 370 |
+
}
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 374 |
+
"expect": {
|
| 375 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 376 |
+
},
|
| 377 |
+
"params": {
|
| 378 |
+
"Region": "us-east-1",
|
| 379 |
+
"UseFIPS": false,
|
| 380 |
+
"UseDualStack": true,
|
| 381 |
+
"Endpoint": "https://example.com"
|
| 382 |
+
}
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"documentation": "Missing region",
|
| 386 |
+
"expect": {
|
| 387 |
+
"error": "Invalid Configuration: Missing Region"
|
| 388 |
+
}
|
| 389 |
+
}
|
| 390 |
+
],
|
| 391 |
+
"version": "1.0"
|
| 392 |
+
}
|
testbed/boto__botocore/tests/functional/endpoint-rules/appstream/endpoint-tests-1.json
ADDED
|
@@ -0,0 +1,496 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"testCases": [
|
| 3 |
+
{
|
| 4 |
+
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
|
| 5 |
+
"expect": {
|
| 6 |
+
"endpoint": {
|
| 7 |
+
"url": "https://appstream2.ap-northeast-1.amazonaws.com"
|
| 8 |
+
}
|
| 9 |
+
},
|
| 10 |
+
"params": {
|
| 11 |
+
"Region": "ap-northeast-1",
|
| 12 |
+
"UseFIPS": false,
|
| 13 |
+
"UseDualStack": false
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
|
| 18 |
+
"expect": {
|
| 19 |
+
"endpoint": {
|
| 20 |
+
"url": "https://appstream2.ap-northeast-2.amazonaws.com"
|
| 21 |
+
}
|
| 22 |
+
},
|
| 23 |
+
"params": {
|
| 24 |
+
"Region": "ap-northeast-2",
|
| 25 |
+
"UseFIPS": false,
|
| 26 |
+
"UseDualStack": false
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
|
| 31 |
+
"expect": {
|
| 32 |
+
"endpoint": {
|
| 33 |
+
"url": "https://appstream2.ap-south-1.amazonaws.com"
|
| 34 |
+
}
|
| 35 |
+
},
|
| 36 |
+
"params": {
|
| 37 |
+
"Region": "ap-south-1",
|
| 38 |
+
"UseFIPS": false,
|
| 39 |
+
"UseDualStack": false
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
|
| 44 |
+
"expect": {
|
| 45 |
+
"endpoint": {
|
| 46 |
+
"url": "https://appstream2.ap-southeast-1.amazonaws.com"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"params": {
|
| 50 |
+
"Region": "ap-southeast-1",
|
| 51 |
+
"UseFIPS": false,
|
| 52 |
+
"UseDualStack": false
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
|
| 57 |
+
"expect": {
|
| 58 |
+
"endpoint": {
|
| 59 |
+
"url": "https://appstream2.ap-southeast-2.amazonaws.com"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"params": {
|
| 63 |
+
"Region": "ap-southeast-2",
|
| 64 |
+
"UseFIPS": false,
|
| 65 |
+
"UseDualStack": false
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
|
| 70 |
+
"expect": {
|
| 71 |
+
"endpoint": {
|
| 72 |
+
"url": "https://appstream2.ca-central-1.amazonaws.com"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"params": {
|
| 76 |
+
"Region": "ca-central-1",
|
| 77 |
+
"UseFIPS": false,
|
| 78 |
+
"UseDualStack": false
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
|
| 83 |
+
"expect": {
|
| 84 |
+
"endpoint": {
|
| 85 |
+
"url": "https://appstream2.eu-central-1.amazonaws.com"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
"params": {
|
| 89 |
+
"Region": "eu-central-1",
|
| 90 |
+
"UseFIPS": false,
|
| 91 |
+
"UseDualStack": false
|
| 92 |
+
}
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
|
| 96 |
+
"expect": {
|
| 97 |
+
"endpoint": {
|
| 98 |
+
"url": "https://appstream2.eu-west-1.amazonaws.com"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"params": {
|
| 102 |
+
"Region": "eu-west-1",
|
| 103 |
+
"UseFIPS": false,
|
| 104 |
+
"UseDualStack": false
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
|
| 109 |
+
"expect": {
|
| 110 |
+
"endpoint": {
|
| 111 |
+
"url": "https://appstream2.eu-west-2.amazonaws.com"
|
| 112 |
+
}
|
| 113 |
+
},
|
| 114 |
+
"params": {
|
| 115 |
+
"Region": "eu-west-2",
|
| 116 |
+
"UseFIPS": false,
|
| 117 |
+
"UseDualStack": false
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
|
| 122 |
+
"expect": {
|
| 123 |
+
"endpoint": {
|
| 124 |
+
"url": "https://appstream2.us-east-1.amazonaws.com"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"params": {
|
| 128 |
+
"Region": "us-east-1",
|
| 129 |
+
"UseFIPS": false,
|
| 130 |
+
"UseDualStack": false
|
| 131 |
+
}
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
|
| 135 |
+
"expect": {
|
| 136 |
+
"endpoint": {
|
| 137 |
+
"url": "https://appstream2-fips.us-east-1.amazonaws.com"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"params": {
|
| 141 |
+
"Region": "us-east-1",
|
| 142 |
+
"UseFIPS": true,
|
| 143 |
+
"UseDualStack": false
|
| 144 |
+
}
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
|
| 148 |
+
"expect": {
|
| 149 |
+
"endpoint": {
|
| 150 |
+
"url": "https://appstream2.us-east-2.amazonaws.com"
|
| 151 |
+
}
|
| 152 |
+
},
|
| 153 |
+
"params": {
|
| 154 |
+
"Region": "us-east-2",
|
| 155 |
+
"UseFIPS": false,
|
| 156 |
+
"UseDualStack": false
|
| 157 |
+
}
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
|
| 161 |
+
"expect": {
|
| 162 |
+
"endpoint": {
|
| 163 |
+
"url": "https://appstream2.us-west-2.amazonaws.com"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"params": {
|
| 167 |
+
"Region": "us-west-2",
|
| 168 |
+
"UseFIPS": false,
|
| 169 |
+
"UseDualStack": false
|
| 170 |
+
}
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
|
| 174 |
+
"expect": {
|
| 175 |
+
"endpoint": {
|
| 176 |
+
"url": "https://appstream2-fips.us-west-2.amazonaws.com"
|
| 177 |
+
}
|
| 178 |
+
},
|
| 179 |
+
"params": {
|
| 180 |
+
"Region": "us-west-2",
|
| 181 |
+
"UseFIPS": true,
|
| 182 |
+
"UseDualStack": false
|
| 183 |
+
}
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
|
| 187 |
+
"expect": {
|
| 188 |
+
"endpoint": {
|
| 189 |
+
"url": "https://appstream2-fips.us-east-1.api.aws"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
"params": {
|
| 193 |
+
"Region": "us-east-1",
|
| 194 |
+
"UseFIPS": true,
|
| 195 |
+
"UseDualStack": true
|
| 196 |
+
}
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
|
| 200 |
+
"expect": {
|
| 201 |
+
"endpoint": {
|
| 202 |
+
"url": "https://appstream2.us-east-1.api.aws"
|
| 203 |
+
}
|
| 204 |
+
},
|
| 205 |
+
"params": {
|
| 206 |
+
"Region": "us-east-1",
|
| 207 |
+
"UseFIPS": false,
|
| 208 |
+
"UseDualStack": true
|
| 209 |
+
}
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
|
| 213 |
+
"expect": {
|
| 214 |
+
"endpoint": {
|
| 215 |
+
"url": "https://appstream2-fips.cn-north-1.api.amazonwebservices.com.cn"
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
"params": {
|
| 219 |
+
"Region": "cn-north-1",
|
| 220 |
+
"UseFIPS": true,
|
| 221 |
+
"UseDualStack": true
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
|
| 226 |
+
"expect": {
|
| 227 |
+
"endpoint": {
|
| 228 |
+
"url": "https://appstream2-fips.cn-north-1.amazonaws.com.cn"
|
| 229 |
+
}
|
| 230 |
+
},
|
| 231 |
+
"params": {
|
| 232 |
+
"Region": "cn-north-1",
|
| 233 |
+
"UseFIPS": true,
|
| 234 |
+
"UseDualStack": false
|
| 235 |
+
}
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
|
| 239 |
+
"expect": {
|
| 240 |
+
"endpoint": {
|
| 241 |
+
"url": "https://appstream2.cn-north-1.api.amazonwebservices.com.cn"
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"params": {
|
| 245 |
+
"Region": "cn-north-1",
|
| 246 |
+
"UseFIPS": false,
|
| 247 |
+
"UseDualStack": true
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
|
| 252 |
+
"expect": {
|
| 253 |
+
"endpoint": {
|
| 254 |
+
"url": "https://appstream2.cn-north-1.amazonaws.com.cn"
|
| 255 |
+
}
|
| 256 |
+
},
|
| 257 |
+
"params": {
|
| 258 |
+
"Region": "cn-north-1",
|
| 259 |
+
"UseFIPS": false,
|
| 260 |
+
"UseDualStack": false
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
|
| 265 |
+
"expect": {
|
| 266 |
+
"endpoint": {
|
| 267 |
+
"url": "https://appstream2.us-gov-west-1.amazonaws.com"
|
| 268 |
+
}
|
| 269 |
+
},
|
| 270 |
+
"params": {
|
| 271 |
+
"Region": "us-gov-west-1",
|
| 272 |
+
"UseFIPS": false,
|
| 273 |
+
"UseDualStack": false
|
| 274 |
+
}
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
|
| 278 |
+
"expect": {
|
| 279 |
+
"endpoint": {
|
| 280 |
+
"url": "https://appstream2-fips.us-gov-west-1.amazonaws.com"
|
| 281 |
+
}
|
| 282 |
+
},
|
| 283 |
+
"params": {
|
| 284 |
+
"Region": "us-gov-west-1",
|
| 285 |
+
"UseFIPS": true,
|
| 286 |
+
"UseDualStack": false
|
| 287 |
+
}
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
|
| 291 |
+
"expect": {
|
| 292 |
+
"endpoint": {
|
| 293 |
+
"url": "https://appstream2-fips.us-gov-east-1.api.aws"
|
| 294 |
+
}
|
| 295 |
+
},
|
| 296 |
+
"params": {
|
| 297 |
+
"Region": "us-gov-east-1",
|
| 298 |
+
"UseFIPS": true,
|
| 299 |
+
"UseDualStack": true
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
|
| 304 |
+
"expect": {
|
| 305 |
+
"endpoint": {
|
| 306 |
+
"url": "https://appstream2-fips.us-gov-east-1.amazonaws.com"
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"params": {
|
| 310 |
+
"Region": "us-gov-east-1",
|
| 311 |
+
"UseFIPS": true,
|
| 312 |
+
"UseDualStack": false
|
| 313 |
+
}
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
|
| 317 |
+
"expect": {
|
| 318 |
+
"endpoint": {
|
| 319 |
+
"url": "https://appstream2.us-gov-east-1.api.aws"
|
| 320 |
+
}
|
| 321 |
+
},
|
| 322 |
+
"params": {
|
| 323 |
+
"Region": "us-gov-east-1",
|
| 324 |
+
"UseFIPS": false,
|
| 325 |
+
"UseDualStack": true
|
| 326 |
+
}
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
|
| 330 |
+
"expect": {
|
| 331 |
+
"endpoint": {
|
| 332 |
+
"url": "https://appstream2.us-gov-east-1.amazonaws.com"
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"params": {
|
| 336 |
+
"Region": "us-gov-east-1",
|
| 337 |
+
"UseFIPS": false,
|
| 338 |
+
"UseDualStack": false
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled",
|
| 343 |
+
"expect": {
|
| 344 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 345 |
+
},
|
| 346 |
+
"params": {
|
| 347 |
+
"Region": "us-iso-east-1",
|
| 348 |
+
"UseFIPS": true,
|
| 349 |
+
"UseDualStack": true
|
| 350 |
+
}
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
|
| 354 |
+
"expect": {
|
| 355 |
+
"endpoint": {
|
| 356 |
+
"url": "https://appstream2-fips.us-iso-east-1.c2s.ic.gov"
|
| 357 |
+
}
|
| 358 |
+
},
|
| 359 |
+
"params": {
|
| 360 |
+
"Region": "us-iso-east-1",
|
| 361 |
+
"UseFIPS": true,
|
| 362 |
+
"UseDualStack": false
|
| 363 |
+
}
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled",
|
| 367 |
+
"expect": {
|
| 368 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 369 |
+
},
|
| 370 |
+
"params": {
|
| 371 |
+
"Region": "us-iso-east-1",
|
| 372 |
+
"UseFIPS": false,
|
| 373 |
+
"UseDualStack": true
|
| 374 |
+
}
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
|
| 378 |
+
"expect": {
|
| 379 |
+
"endpoint": {
|
| 380 |
+
"url": "https://appstream2.us-iso-east-1.c2s.ic.gov"
|
| 381 |
+
}
|
| 382 |
+
},
|
| 383 |
+
"params": {
|
| 384 |
+
"Region": "us-iso-east-1",
|
| 385 |
+
"UseFIPS": false,
|
| 386 |
+
"UseDualStack": false
|
| 387 |
+
}
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled",
|
| 391 |
+
"expect": {
|
| 392 |
+
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
|
| 393 |
+
},
|
| 394 |
+
"params": {
|
| 395 |
+
"Region": "us-isob-east-1",
|
| 396 |
+
"UseFIPS": true,
|
| 397 |
+
"UseDualStack": true
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
|
| 402 |
+
"expect": {
|
| 403 |
+
"endpoint": {
|
| 404 |
+
"url": "https://appstream2-fips.us-isob-east-1.sc2s.sgov.gov"
|
| 405 |
+
}
|
| 406 |
+
},
|
| 407 |
+
"params": {
|
| 408 |
+
"Region": "us-isob-east-1",
|
| 409 |
+
"UseFIPS": true,
|
| 410 |
+
"UseDualStack": false
|
| 411 |
+
}
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled",
|
| 415 |
+
"expect": {
|
| 416 |
+
"error": "DualStack is enabled but this partition does not support DualStack"
|
| 417 |
+
},
|
| 418 |
+
"params": {
|
| 419 |
+
"Region": "us-isob-east-1",
|
| 420 |
+
"UseFIPS": false,
|
| 421 |
+
"UseDualStack": true
|
| 422 |
+
}
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
|
| 426 |
+
"expect": {
|
| 427 |
+
"endpoint": {
|
| 428 |
+
"url": "https://appstream2.us-isob-east-1.sc2s.sgov.gov"
|
| 429 |
+
}
|
| 430 |
+
},
|
| 431 |
+
"params": {
|
| 432 |
+
"Region": "us-isob-east-1",
|
| 433 |
+
"UseFIPS": false,
|
| 434 |
+
"UseDualStack": false
|
| 435 |
+
}
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"documentation": "For custom endpoint with region set and fips disabled and dualstack disabled",
|
| 439 |
+
"expect": {
|
| 440 |
+
"endpoint": {
|
| 441 |
+
"url": "https://example.com"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"params": {
|
| 445 |
+
"Region": "us-east-1",
|
| 446 |
+
"UseFIPS": false,
|
| 447 |
+
"UseDualStack": false,
|
| 448 |
+
"Endpoint": "https://example.com"
|
| 449 |
+
}
|
| 450 |
+
},
|
| 451 |
+
{
|
| 452 |
+
"documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled",
|
| 453 |
+
"expect": {
|
| 454 |
+
"endpoint": {
|
| 455 |
+
"url": "https://example.com"
|
| 456 |
+
}
|
| 457 |
+
},
|
| 458 |
+
"params": {
|
| 459 |
+
"UseFIPS": false,
|
| 460 |
+
"UseDualStack": false,
|
| 461 |
+
"Endpoint": "https://example.com"
|
| 462 |
+
}
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"documentation": "For custom endpoint with fips enabled and dualstack disabled",
|
| 466 |
+
"expect": {
|
| 467 |
+
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
|
| 468 |
+
},
|
| 469 |
+
"params": {
|
| 470 |
+
"Region": "us-east-1",
|
| 471 |
+
"UseFIPS": true,
|
| 472 |
+
"UseDualStack": false,
|
| 473 |
+
"Endpoint": "https://example.com"
|
| 474 |
+
}
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"documentation": "For custom endpoint with fips disabled and dualstack enabled",
|
| 478 |
+
"expect": {
|
| 479 |
+
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
| 480 |
+
},
|
| 481 |
+
"params": {
|
| 482 |
+
"Region": "us-east-1",
|
| 483 |
+
"UseFIPS": false,
|
| 484 |
+
"UseDualStack": true,
|
| 485 |
+
"Endpoint": "https://example.com"
|
| 486 |
+
}
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"documentation": "Missing region",
|
| 490 |
+
"expect": {
|
| 491 |
+
"error": "Invalid Configuration: Missing Region"
|
| 492 |
+
}
|
| 493 |
+
}
|
| 494 |
+
],
|
| 495 |
+
"version": "1.0"
|
| 496 |
+
}
|