From 527fa417892997880190f6856a2596a24b2e711b Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Tue, 15 Nov 2022 19:24:55 +0000 Subject: [PATCH] Release v1.44.138 (2022-11-15) === ### Service Client Updates * `service/connect`: Updates service API * `service/greengrassv2`: Updates service API and documentation * `service/route53`: Updates service API * Amazon Route 53 now supports the Europe (Spain) Region (eu-south-2) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. * `service/ssmsap`: Updates service API, documentation, paginators, and examples * `service/workspaces`: Updates service API and documentation * This release introduces ModifyCertificateBasedAuthProperties, a new API that allows control of certificate-based auth properties associated with a WorkSpaces directory. The DescribeWorkspaceDirectories API will now additionally return certificate-based auth properties in its responses. --- CHANGELOG.md | 12 + aws/endpoints/defaults.go | 6 + aws/version.go | 2 +- models/apis/connect/2017-08-08/api-2.json | 3 +- .../apis/greengrassv2/2020-11-30/api-2.json | 10 +- .../apis/greengrassv2/2020-11-30/docs-2.json | 10 +- .../2020-11-30/endpoint-rule-set-1.json | 359 ++ .../2020-11-30/endpoint-tests-1.json | 971 ++++ models/apis/route53/2013-04-01/api-2.json | 7 +- .../2013-04-01/endpoint-rule-set-1.json | 92 +- .../route53/2013-04-01/endpoint-tests-1.json | 32 +- models/apis/ssmsap/2018-05-10/api-2.json | 889 ++++ models/apis/ssmsap/2018-05-10/docs-2.json | 608 +++ .../2018-05-10/endpoint-rule-set-1.json | 309 ++ .../ssmsap/2018-05-10/endpoint-tests-1.json | 295 ++ models/apis/ssmsap/2018-05-10/examples-1.json | 5 + .../apis/ssmsap/2018-05-10/paginators-1.json | 22 + models/apis/workspaces/2015-04-08/api-2.json | 60 +- models/apis/workspaces/2015-04-08/docs-2.json | 43 + .../2015-04-08/endpoint-tests-1.json | 294 +- models/endpoints/endpoints.json | 2 + service/connect/api.go | 4 + service/greengrassv2/api.go | 46 +- service/route53/api.go | 12 + service/ssmsap/api.go | 4075 +++++++++++++++++ service/ssmsap/doc.go | 26 + service/ssmsap/errors.go | 33 + service/ssmsap/service.go | 106 + service/ssmsap/ssmsapiface/interface.go | 137 + service/workspaces/api.go | 279 ++ .../workspaces/workspacesiface/interface.go | 4 + 31 files changed, 8533 insertions(+), 220 deletions(-) create mode 100644 models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json create mode 100644 models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json create mode 100644 models/apis/ssmsap/2018-05-10/api-2.json create mode 100644 models/apis/ssmsap/2018-05-10/docs-2.json create mode 100644 models/apis/ssmsap/2018-05-10/endpoint-rule-set-1.json create mode 100644 models/apis/ssmsap/2018-05-10/endpoint-tests-1.json create mode 100644 models/apis/ssmsap/2018-05-10/examples-1.json create mode 100644 models/apis/ssmsap/2018-05-10/paginators-1.json create mode 100644 service/ssmsap/api.go create mode 100644 service/ssmsap/doc.go create mode 100644 service/ssmsap/errors.go create mode 100644 service/ssmsap/service.go create mode 100644 service/ssmsap/ssmsapiface/interface.go diff --git a/CHANGELOG.md b/CHANGELOG.md index b52c6acead..75b8d610aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +Release v1.44.138 (2022-11-15) +=== + +### Service Client Updates +* `service/connect`: Updates service API +* `service/greengrassv2`: Updates service API and documentation +* `service/route53`: Updates service API + * Amazon Route 53 now supports the Europe (Spain) Region (eu-south-2) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. +* `service/ssmsap`: Updates service API, documentation, paginators, and examples +* `service/workspaces`: Updates service API and documentation + * This release introduces ModifyCertificateBasedAuthProperties, a new API that allows control of certificate-based auth properties associated with a WorkSpaces directory. The DescribeWorkspaceDirectories API will now additionally return certificate-based auth properties in its responses. + Release v1.44.137 (2022-11-14) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 186a466ae5..fc1d2a1035 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -16039,12 +16039,18 @@ var awsPartition = partition{ endpointKey{ Region: "eu-north-1", }: endpoint{}, + endpointKey{ + Region: "eu-south-1", + }: endpoint{}, endpointKey{ Region: "eu-west-1", }: endpoint{}, endpointKey{ Region: "eu-west-2", }: endpoint{}, + endpointKey{ + Region: "eu-west-3", + }: endpoint{}, endpointKey{ Region: "fips", }: endpoint{ diff --git a/aws/version.go b/aws/version.go index e1b23bd711..7d6573d51a 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.137" +const SDKVersion = "1.44.138" diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 016649b939..cd3ee69a1b 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -5418,7 +5418,8 @@ "USE_CUSTOM_TTS_VOICES", "EARLY_MEDIA", "MULTI_PARTY_CONFERENCE", - "HIGH_VOLUME_OUTBOUND" + "HIGH_VOLUME_OUTBOUND", + "ENHANCED_CONTACT_MONITORING" ] }, "InstanceAttributeValue":{ diff --git a/models/apis/greengrassv2/2020-11-30/api-2.json b/models/apis/greengrassv2/2020-11-30/api-2.json index b296a2b040..30ba78befa 100644 --- a/models/apis/greengrassv2/2020-11-30/api-2.json +++ b/models/apis/greengrassv2/2020-11-30/api-2.json @@ -877,6 +877,7 @@ "components":{"shape":"ComponentDeploymentSpecifications"}, "iotJobConfiguration":{"shape":"DeploymentIoTJobConfiguration"}, "deploymentPolicies":{"shape":"DeploymentPolicies"}, + "parentTargetArn":{"shape":"ThingGroupARN"}, "tags":{"shape":"TagMap"}, "clientToken":{ "shape":"ClientTokenString", @@ -939,7 +940,8 @@ "deploymentName":{"shape":"NonEmptyString"}, "creationTimestamp":{"shape":"Timestamp"}, "deploymentStatus":{"shape":"DeploymentStatus"}, - "isLatestForTarget":{"shape":"IsLatestForTarget"} + "isLatestForTarget":{"shape":"IsLatestForTarget"}, + "parentTargetArn":{"shape":"ThingGroupARN"} } }, "DeploymentComponentUpdatePolicy":{ @@ -1292,6 +1294,7 @@ "iotJobConfiguration":{"shape":"DeploymentIoTJobConfiguration"}, "creationTimestamp":{"shape":"Timestamp"}, "isLatestForTarget":{"shape":"IsLatestForTarget"}, + "parentTargetArn":{"shape":"ThingGroupARN"}, "tags":{"shape":"TagMap"} } }, @@ -1805,6 +1808,11 @@ "location":"querystring", "locationName":"historyFilter" }, + "parentTargetArn":{ + "shape":"ThingGroupARN", + "location":"querystring", + "locationName":"parentTargetArn" + }, "maxResults":{ "shape":"DefaultMaxResults", "box":true, diff --git a/models/apis/greengrassv2/2020-11-30/docs-2.json b/models/apis/greengrassv2/2020-11-30/docs-2.json index 3ae3832002..28afb64c9c 100644 --- a/models/apis/greengrassv2/2020-11-30/docs-2.json +++ b/models/apis/greengrassv2/2020-11-30/docs-2.json @@ -1328,8 +1328,8 @@ "TargetARN": { "base": null, "refs": { - "CreateDeploymentRequest$targetArn": "

The ARN of the target IoT thing or thing group.

", - "Deployment$targetArn": "

The ARN of the target IoT thing or thing group.

", + "CreateDeploymentRequest$targetArn": "

The ARN of the target IoT thing or thing group. When creating a subdeployment, the targetARN can only be a thing group.

", + "Deployment$targetArn": "

The ARN of the target IoT thing or thing group. When creating a subdeployment, the targetARN can only be a thing group.

", "EffectiveDeployment$targetArn": "

The ARN of the target IoT thing or thing group.

", "GetDeploymentResponse$targetArn": "

The ARN of the target IoT thing or thing group.

", "ListDeploymentsRequest$targetArn": "

The ARN of the target IoT thing or thing group.

" @@ -1338,7 +1338,11 @@ "ThingGroupARN": { "base": null, "refs": { - "ListCoreDevicesRequest$thingGroupArn": "

The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that have successfully deployed a deployment that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device.

" + "CreateDeploymentRequest$parentTargetArn": "

The parent deployment's target ARN within a subdeployment.

", + "Deployment$parentTargetArn": "

The parent deployment's target ARN within a subdeployment.

", + "GetDeploymentResponse$parentTargetArn": "

The parent deployment's target ARN within a subdeployment.

", + "ListCoreDevicesRequest$thingGroupArn": "

The ARN of the IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that have successfully deployed a deployment that targets the thing group. When you remove a core device from a thing group, the list continues to include that core device.

", + "ListDeploymentsRequest$parentTargetArn": "

The parent deployment's target ARN within a subdeployment.

" } }, "ThrottlingException": { diff --git a/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json b/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json new file mode 100644 index 0000000000..3ce56d533c --- /dev/null +++ b/models/apis/greengrassv2/2020-11-30/endpoint-rule-set-1.json @@ -0,0 +1,359 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + }, + { + "fn": "parseURL", + "argv": [ + { + "ref": "Endpoint" + } + ], + "assign": "url" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://greengrass-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "dataplane-us-gov-east-1" + ] + } + ], + "endpoint": { + "url": "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + { + "ref": "Region" + }, + "dataplane-us-gov-west-1" + ] + } + ], + "endpoint": { + "url": "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + }, + { + "conditions": [], + "endpoint": { + "url": "https://greengrass.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json b/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json new file mode 100644 index 0000000000..9ed8f2ad96 --- /dev/null +++ b/models/apis/greengrassv2/2020-11-30/endpoint-tests-1.json @@ -0,0 +1,971 @@ +{ + "testCases": [ + { + "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-south-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "ap-south-1" + } + }, + { + "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-south-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "ap-south-1" + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-south-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "ap-south-1" + } + }, + { + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-south-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-south-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ca-central-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "ca-central-1" + } + }, + { + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ca-central-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "ca-central-1" + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ca-central-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "ca-central-1" + } + }, + { + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ca-central-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "ca-central-1" + } + }, + { + "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-central-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "eu-central-1" + } + }, + { + "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "eu-central-1" + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-central-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "eu-central-1" + } + }, + { + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-central-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-central-1" + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-west-1" + } + }, + { + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-west-1" + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-west-1" + } + }, + { + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-west-1" + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-west-2" + } + }, + { + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-west-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-west-2" + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-west-2" + } + }, + { + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-west-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-west-2" + } + }, + { + "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "eu-west-2" + } + }, + { + "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "eu-west-2" + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "eu-west-2" + } + }, + { + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-west-2" + } + }, + { + "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "eu-west-1" + } + }, + { + "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.eu-west-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "eu-west-1" + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "eu-west-1" + } + }, + { + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.eu-west-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "eu-west-1" + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "ap-northeast-2" + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "ap-northeast-2" + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "ap-northeast-2" + } + }, + { + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-northeast-2" + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "ap-northeast-1" + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "ap-northeast-1" + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "ap-northeast-1" + } + }, + { + "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-northeast-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-northeast-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-west-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-west-1" + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-gov-west-1" + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-west-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-gov-west-1" + } + }, + { + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-gov-west-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-gov-west-1" + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "ap-southeast-1" + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "ap-southeast-1" + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "ap-southeast-1" + } + }, + { + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-southeast-1" + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "ap-southeast-2" + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "ap-southeast-2" + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "ap-southeast-2" + } + }, + { + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.ap-southeast-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "ap-southeast-2" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-east-2" + } + }, + { + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-east-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-2" + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-2.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-2" + } + }, + { + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-east-2.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-2" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://greengrass.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/route53/2013-04-01/api-2.json b/models/apis/route53/2013-04-01/api-2.json index e9cdf5010a..29b12e2f9f 100644 --- a/models/apis/route53/2013-04-01/api-2.json +++ b/models/apis/route53/2013-04-01/api-2.json @@ -1544,6 +1544,7 @@ "cn-north-1", "af-south-1", "eu-south-1", + "eu-south-2", "us-gov-west-1", "us-gov-east-1", "us-iso-east-1", @@ -4143,7 +4144,8 @@ "me-central-1", "ap-south-1", "af-south-1", - "eu-south-1" + "eu-south-1", + "eu-south-2" ], "max":64, "min":1 @@ -4759,7 +4761,8 @@ "ca-central-1", "cn-north-1", "af-south-1", - "eu-south-1" + "eu-south-1", + "eu-south-2" ], "max":64, "min":1 diff --git a/models/apis/route53/2013-04-01/endpoint-rule-set-1.json b/models/apis/route53/2013-04-01/endpoint-rule-set-1.json index 507385e972..f404792dc4 100644 --- a/models/apis/route53/2013-04-01/endpoint-rule-set-1.json +++ b/models/apis/route53/2013-04-01/endpoint-rule-set-1.json @@ -200,8 +200,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-east-1" + "signingRegion": "us-east-1", + "signingName": "route53" } ] }, @@ -260,8 +260,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-east-1" + "signingRegion": "us-east-1", + "signingName": "route53" } ] }, @@ -320,8 +320,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-east-1" + "signingRegion": "us-east-1", + "signingName": "route53" } ] }, @@ -346,8 +346,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-east-1" + "signingRegion": "us-east-1", + "signingName": "route53" } ] }, @@ -443,8 +443,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "cn-northwest-1" + "signingRegion": "cn-northwest-1", + "signingName": "route53" } ] }, @@ -503,8 +503,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "cn-northwest-1" + "signingRegion": "cn-northwest-1", + "signingName": "route53" } ] }, @@ -563,8 +563,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "cn-northwest-1" + "signingRegion": "cn-northwest-1", + "signingName": "route53" } ] }, @@ -589,8 +589,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "cn-northwest-1" + "signingRegion": "cn-northwest-1", + "signingName": "route53" } ] }, @@ -686,8 +686,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-gov-west-1" + "signingRegion": "us-gov-west-1", + "signingName": "route53" } ] }, @@ -746,8 +746,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-gov-west-1" + "signingRegion": "us-gov-west-1", + "signingName": "route53" } ] }, @@ -806,8 +806,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-gov-west-1" + "signingRegion": "us-gov-west-1", + "signingName": "route53" } ] }, @@ -832,8 +832,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-gov-west-1" + "signingRegion": "us-gov-west-1", + "signingName": "route53" } ] }, @@ -905,8 +905,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-iso-east-1" + "signingRegion": "us-iso-east-1", + "signingName": "route53" } ] }, @@ -931,8 +931,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-iso-east-1" + "signingRegion": "us-iso-east-1", + "signingName": "route53" } ] }, @@ -1004,8 +1004,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-isob-east-1" + "signingRegion": "us-isob-east-1", + "signingName": "route53" } ] }, @@ -1030,8 +1030,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-isob-east-1" + "signingRegion": "us-isob-east-1", + "signingName": "route53" } ] }, @@ -1173,8 +1173,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-east-1" + "signingRegion": "us-east-1", + "signingName": "route53" } ] }, @@ -1200,8 +1200,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-gov-west-1" + "signingRegion": "us-gov-west-1", + "signingName": "route53" } ] }, @@ -1303,8 +1303,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-east-1" + "signingRegion": "us-east-1", + "signingName": "route53" } ] }, @@ -1330,8 +1330,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "cn-northwest-1" + "signingRegion": "cn-northwest-1", + "signingName": "route53" } ] }, @@ -1357,8 +1357,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-gov-west-1" + "signingRegion": "us-gov-west-1", + "signingName": "route53" } ] }, @@ -1384,8 +1384,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-iso-east-1" + "signingRegion": "us-iso-east-1", + "signingName": "route53" } ] }, @@ -1411,8 +1411,8 @@ "authSchemes": [ { "name": "sigv4", - "signingName": "route53", - "signingRegion": "us-isob-east-1" + "signingRegion": "us-isob-east-1", + "signingName": "route53" } ] }, diff --git a/models/apis/route53/2013-04-01/endpoint-tests-1.json b/models/apis/route53/2013-04-01/endpoint-tests-1.json index 80d84f0529..b5c63bf822 100644 --- a/models/apis/route53/2013-04-01/endpoint-tests-1.json +++ b/models/apis/route53/2013-04-01/endpoint-tests-1.json @@ -17,9 +17,9 @@ } }, "params": { - "Region": "aws-cn-global", + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": false + "Region": "aws-cn-global" } }, { @@ -39,9 +39,9 @@ } }, "params": { - "Region": "aws-global", + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": false + "Region": "aws-global" } }, { @@ -61,9 +61,9 @@ } }, "params": { - "Region": "aws-iso-global", + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": false + "Region": "aws-iso-global" } }, { @@ -83,9 +83,9 @@ } }, "params": { - "Region": "aws-iso-b-global", + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": false + "Region": "aws-iso-b-global" } }, { @@ -105,9 +105,9 @@ } }, "params": { - "Region": "aws-us-gov-global", + "UseDualStack": false, "UseFIPS": false, - "UseDualStack": false + "Region": "aws-us-gov-global" } }, { @@ -118,9 +118,9 @@ } }, "params": { - "Region": "us-east-1", - "UseFIPS": false, "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -130,9 +130,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseFIPS": true, "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -142,9 +142,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseFIPS": false, "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/models/apis/ssmsap/2018-05-10/api-2.json b/models/apis/ssmsap/2018-05-10/api-2.json new file mode 100644 index 0000000000..49297068c5 --- /dev/null +++ b/models/apis/ssmsap/2018-05-10/api-2.json @@ -0,0 +1,889 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-05-10", + "endpointPrefix":"ssm-sap", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"SsmSap", + "serviceFullName":"AWS Systems Manager for SAP", + "serviceId":"SsmSap", + "signatureVersion":"v4", + "signingName":"ssm-sap", + "uid":"ssmsap-2018-05-10" + }, + "operations":{ + "DeleteResourcePermission":{ + "name":"DeleteResourcePermission", + "http":{ + "method":"POST", + "requestUri":"/delete-resource-permission", + "responseCode":200 + }, + "input":{"shape":"DeleteResourcePermissionInput"}, + "output":{"shape":"DeleteResourcePermissionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "DeregisterApplication":{ + "name":"DeregisterApplication", + "http":{ + "method":"POST", + "requestUri":"/deregister-application", + "responseCode":200 + }, + "input":{"shape":"DeregisterApplicationInput"}, + "output":{"shape":"DeregisterApplicationOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "GetApplication":{ + "name":"GetApplication", + "http":{ + "method":"POST", + "requestUri":"/get-application", + "responseCode":200 + }, + "input":{"shape":"GetApplicationInput"}, + "output":{"shape":"GetApplicationOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "GetComponent":{ + "name":"GetComponent", + "http":{ + "method":"POST", + "requestUri":"/get-component", + "responseCode":200 + }, + "input":{"shape":"GetComponentInput"}, + "output":{"shape":"GetComponentOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "GetDatabase":{ + "name":"GetDatabase", + "http":{ + "method":"POST", + "requestUri":"/get-database", + "responseCode":200 + }, + "input":{"shape":"GetDatabaseInput"}, + "output":{"shape":"GetDatabaseOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "GetOperation":{ + "name":"GetOperation", + "http":{ + "method":"POST", + "requestUri":"/get-operation", + "responseCode":200 + }, + "input":{"shape":"GetOperationInput"}, + "output":{"shape":"GetOperationOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "GetResourcePermission":{ + "name":"GetResourcePermission", + "http":{ + "method":"POST", + "requestUri":"/get-resource-permission", + "responseCode":200 + }, + "input":{"shape":"GetResourcePermissionInput"}, + "output":{"shape":"GetResourcePermissionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "ListApplications":{ + "name":"ListApplications", + "http":{ + "method":"POST", + "requestUri":"/list-applications", + "responseCode":200 + }, + "input":{"shape":"ListApplicationsInput"}, + "output":{"shape":"ListApplicationsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "ListComponents":{ + "name":"ListComponents", + "http":{ + "method":"POST", + "requestUri":"/list-components", + "responseCode":200 + }, + "input":{"shape":"ListComponentsInput"}, + "output":{"shape":"ListComponentsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "ListDatabases":{ + "name":"ListDatabases", + "http":{ + "method":"POST", + "requestUri":"/list-databases", + "responseCode":200 + }, + "input":{"shape":"ListDatabasesInput"}, + "output":{"shape":"ListDatabasesOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ] + }, + "PutResourcePermission":{ + "name":"PutResourcePermission", + "http":{ + "method":"POST", + "requestUri":"/put-resource-permission", + "responseCode":200 + }, + "input":{"shape":"PutResourcePermissionInput"}, + "output":{"shape":"PutResourcePermissionOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + }, + "RegisterApplication":{ + "name":"RegisterApplication", + "http":{ + "method":"POST", + "requestUri":"/register-application", + "responseCode":200 + }, + "input":{"shape":"RegisterApplicationInput"}, + "output":{"shape":"RegisterApplicationOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"ConflictException"} + ], + "idempotent":true + }, + "UpdateApplicationSettings":{ + "name":"UpdateApplicationSettings", + "http":{ + "method":"POST", + "requestUri":"/update-application-settings", + "responseCode":200 + }, + "input":{"shape":"UpdateApplicationSettingsInput"}, + "output":{"shape":"UpdateApplicationSettingsOutput"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"}, + {"shape":"InternalServerException"} + ] + } + }, + "shapes":{ + "AppRegistryArn":{ + "type":"string", + "pattern":"arn:aws:servicecatalog:[a-z0-9:\\/-]+" + }, + "Application":{ + "type":"structure", + "members":{ + "Id":{"shape":"ApplicationId"}, + "Type":{"shape":"ApplicationType"}, + "Arn":{"shape":"SsmSapArn"}, + "AppRegistryArn":{"shape":"AppRegistryArn"}, + "Status":{"shape":"ApplicationStatus"}, + "Components":{"shape":"ComponentIdList"}, + "LastUpdated":{"shape":"Timestamp"}, + "StatusMessage":{"shape":"String"} + } + }, + "ApplicationCredential":{ + "type":"structure", + "required":[ + "DatabaseName", + "CredentialType", + "SecretId" + ], + "members":{ + "DatabaseName":{"shape":"DatabaseName"}, + "CredentialType":{"shape":"CredentialType"}, + "SecretId":{"shape":"SecretId"} + } + }, + "ApplicationCredentialList":{ + "type":"list", + "member":{"shape":"ApplicationCredential"}, + "max":20, + "min":1 + }, + "ApplicationId":{ + "type":"string", + "pattern":"[\\w\\d]{1,50}" + }, + "ApplicationStatus":{ + "type":"string", + "enum":[ + "ACTIVATED", + "STARTING", + "STOPPED", + "STOPPING", + "FAILED", + "REGISTERING", + "DELETING", + "UNKNOWN" + ] + }, + "ApplicationSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"ApplicationId"}, + "Type":{"shape":"ApplicationType"}, + "Arn":{"shape":"SsmSapArn"}, + "Tags":{"shape":"TagMap"} + } + }, + "ApplicationSummaryList":{ + "type":"list", + "member":{"shape":"ApplicationSummary"} + }, + "ApplicationType":{ + "type":"string", + "enum":["HANA"] + }, + "Arn":{ + "type":"string", + "pattern":"arn:(.+:){2,4}.+$|^arn:(.+:){1,3}.+\\/.+" + }, + "Component":{ + "type":"structure", + "members":{ + "ComponentId":{"shape":"ComponentId"}, + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentType":{"shape":"ComponentType"}, + "Status":{"shape":"ComponentStatus"}, + "Databases":{"shape":"DatabaseIdList"}, + "Hosts":{"shape":"HostList"}, + "PrimaryHost":{"shape":"String"}, + "LastUpdated":{"shape":"Timestamp"} + } + }, + "ComponentId":{ + "type":"string", + "pattern":"[\\w\\d-]+" + }, + "ComponentIdList":{ + "type":"list", + "member":{"shape":"ComponentId"} + }, + "ComponentStatus":{ + "type":"string", + "enum":["ACTIVATED"] + }, + "ComponentSummary":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentId":{"shape":"ComponentId"}, + "ComponentType":{"shape":"ComponentType"}, + "Tags":{"shape":"TagMap"} + } + }, + "ComponentSummaryList":{ + "type":"list", + "member":{"shape":"ComponentSummary"} + }, + "ComponentType":{ + "type":"string", + "enum":["HANA"] + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CredentialType":{ + "type":"string", + "enum":["ADMIN"] + }, + "Database":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentId":{"shape":"ComponentId"}, + "Credentials":{"shape":"ApplicationCredentialList"}, + "DatabaseId":{"shape":"DatabaseId"}, + "DatabaseName":{"shape":"String"}, + "DatabaseType":{"shape":"DatabaseType"}, + "Arn":{"shape":"SsmSapArn"}, + "Status":{"shape":"DatabaseStatus"}, + "PrimaryHost":{"shape":"String"}, + "SQLPort":{"shape":"Integer"}, + "LastUpdated":{"shape":"Timestamp"} + } + }, + "DatabaseId":{ + "type":"string", + "pattern":".*[\\w\\d]+" + }, + "DatabaseIdList":{ + "type":"list", + "member":{"shape":"DatabaseId"} + }, + "DatabaseName":{ + "type":"string", + "max":100, + "min":1 + }, + "DatabaseStatus":{ + "type":"string", + "enum":[ + "RUNNING", + "STARTING", + "STOPPED", + "WARNING", + "UNKNOWN" + ] + }, + "DatabaseSummary":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentId":{"shape":"ComponentId"}, + "DatabaseId":{"shape":"DatabaseId"}, + "DatabaseType":{"shape":"DatabaseType"}, + "Arn":{"shape":"SsmSapArn"}, + "Tags":{"shape":"TagMap"} + } + }, + "DatabaseSummaryList":{ + "type":"list", + "member":{"shape":"DatabaseSummary"} + }, + "DatabaseType":{ + "type":"string", + "enum":[ + "SYSTEM", + "TENANT" + ] + }, + "DeleteResourcePermissionInput":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ActionType":{"shape":"PermissionActionType"}, + "SourceResourceArn":{"shape":"Arn"}, + "ResourceArn":{"shape":"Arn"} + } + }, + "DeleteResourcePermissionOutput":{ + "type":"structure", + "members":{ + "Policy":{"shape":"String"} + } + }, + "DeregisterApplicationInput":{ + "type":"structure", + "required":["ApplicationId"], + "members":{ + "ApplicationId":{"shape":"ApplicationId"} + } + }, + "DeregisterApplicationOutput":{ + "type":"structure", + "members":{ + } + }, + "GetApplicationInput":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ApplicationArn":{"shape":"SsmSapArn"} + } + }, + "GetApplicationOutput":{ + "type":"structure", + "members":{ + "Application":{"shape":"Application"}, + "Tags":{"shape":"TagMap"} + } + }, + "GetComponentInput":{ + "type":"structure", + "required":[ + "ApplicationId", + "ComponentId" + ], + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentId":{"shape":"ComponentId"} + } + }, + "GetComponentOutput":{ + "type":"structure", + "members":{ + "Component":{"shape":"Component"} + } + }, + "GetDatabaseInput":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentId":{"shape":"ComponentId"}, + "DatabaseId":{"shape":"DatabaseId"}, + "DatabaseArn":{"shape":"SsmSapArn"} + } + }, + "GetDatabaseOutput":{ + "type":"structure", + "members":{ + "Database":{"shape":"Database"}, + "Tags":{"shape":"TagMap"} + } + }, + "GetOperationInput":{ + "type":"structure", + "required":["OperationId"], + "members":{ + "OperationId":{"shape":"OperationId"} + } + }, + "GetOperationOutput":{ + "type":"structure", + "members":{ + "Operation":{"shape":"Operation"} + } + }, + "GetResourcePermissionInput":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ActionType":{"shape":"PermissionActionType"}, + "ResourceArn":{"shape":"Arn"} + } + }, + "GetResourcePermissionOutput":{ + "type":"structure", + "members":{ + "Policy":{"shape":"String"} + } + }, + "Host":{ + "type":"structure", + "members":{ + "HostName":{"shape":"String"}, + "HostRole":{"shape":"HostRole"}, + "HostIp":{"shape":"String"}, + "InstanceId":{"shape":"String"} + } + }, + "HostList":{ + "type":"list", + "member":{"shape":"Host"} + }, + "HostRole":{ + "type":"string", + "enum":[ + "LEADER", + "WORKER", + "STANDBY", + "UNKNOWN" + ] + }, + "InstanceId":{ + "type":"string", + "pattern":"i-[\\w\\d]{8}$|^i-[\\w\\d]{17}" + }, + "InstanceList":{ + "type":"list", + "member":{"shape":"InstanceId"}, + "max":1, + "min":1 + }, + "Integer":{ + "type":"integer", + "box":true + }, + "InternalServerException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "ListApplicationsInput":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + } + } + }, + "ListApplicationsOutput":{ + "type":"structure", + "members":{ + "Applications":{"shape":"ApplicationSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListComponentsInput":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + } + } + }, + "ListComponentsOutput":{ + "type":"structure", + "members":{ + "Components":{"shape":"ComponentSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListDatabasesInput":{ + "type":"structure", + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ComponentId":{"shape":"ComponentId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{ + "shape":"MaxResults", + "box":true + } + } + }, + "ListDatabasesOutput":{ + "type":"structure", + "members":{ + "Databases":{"shape":"DatabaseSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"SsmSapArn", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "tags":{"shape":"TagMap"} + } + }, + "MaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "NextToken":{ + "type":"string", + "pattern":".{16,1024}" + }, + "Operation":{ + "type":"structure", + "members":{ + "Id":{"shape":"OperationId"}, + "Type":{"shape":"OperationType"}, + "Status":{"shape":"OperationStatus"}, + "StatusMessage":{"shape":"String"}, + "Properties":{"shape":"OperationProperties"}, + "ResourceType":{"shape":"ResourceType"}, + "ResourceId":{"shape":"ResourceId"}, + "ResourceArn":{"shape":"Arn"}, + "StartTime":{"shape":"Timestamp"}, + "EndTime":{"shape":"Timestamp"}, + "LastUpdatedTime":{"shape":"Timestamp"} + } + }, + "OperationId":{ + "type":"string", + "pattern":"[{]?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?" + }, + "OperationIdList":{ + "type":"list", + "member":{"shape":"OperationId"} + }, + "OperationProperties":{ + "type":"map", + "key":{"shape":"String"}, + "value":{"shape":"String"} + }, + "OperationStatus":{ + "type":"string", + "enum":[ + "INPROGRESS", + "SUCCESS", + "ERROR" + ] + }, + "OperationType":{"type":"string"}, + "PermissionActionType":{ + "type":"string", + "enum":["RESTORE"] + }, + "PutResourcePermissionInput":{ + "type":"structure", + "required":[ + "ActionType", + "SourceResourceArn", + "ResourceArn" + ], + "members":{ + "ActionType":{"shape":"PermissionActionType"}, + "SourceResourceArn":{"shape":"Arn"}, + "ResourceArn":{"shape":"Arn"} + } + }, + "PutResourcePermissionOutput":{ + "type":"structure", + "members":{ + "Policy":{"shape":"String"} + } + }, + "RegisterApplicationInput":{ + "type":"structure", + "required":[ + "ApplicationId", + "ApplicationType", + "Instances", + "Credentials" + ], + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "ApplicationType":{"shape":"ApplicationType"}, + "Instances":{"shape":"InstanceList"}, + "SapInstanceNumber":{"shape":"SAPInstanceNumber"}, + "Sid":{"shape":"SID"}, + "Tags":{"shape":"TagMap"}, + "Credentials":{"shape":"ApplicationCredentialList"} + } + }, + "RegisterApplicationOutput":{ + "type":"structure", + "members":{ + "Application":{"shape":"Application"}, + "OperationId":{"shape":"OperationId"} + } + }, + "ResourceId":{ + "type":"string", + "max":64, + "min":1 + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "ResourceType":{ + "type":"string", + "max":64, + "min":1 + }, + "SAPInstanceNumber":{ + "type":"string", + "pattern":"[0-9]{2}" + }, + "SID":{ + "type":"string", + "pattern":"[A-Z][A-Z0-9]{2}" + }, + "SecretId":{ + "type":"string", + "max":100, + "min":1, + "sensitive":true + }, + "SsmSapArn":{ + "type":"string", + "pattern":"arn:(.+:){2,4}.+$|^arn:(.+:){1,3}.+\\/.+" + }, + "String":{"type":"string"}, + "TagKey":{ + "type":"string", + "pattern":"(?!aws:)[a-zA-Z+-=._:/]+" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"SsmSapArn", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{"shape":"TagMap"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":1 + }, + "Timestamp":{"type":"timestamp"}, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"SsmSapArn", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateApplicationSettingsInput":{ + "type":"structure", + "required":["ApplicationId"], + "members":{ + "ApplicationId":{"shape":"ApplicationId"}, + "CredentialsToAddOrUpdate":{"shape":"ApplicationCredentialList"}, + "CredentialsToRemove":{"shape":"ApplicationCredentialList"} + } + }, + "UpdateApplicationSettingsOutput":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"}, + "OperationIds":{"shape":"OperationIdList"} + } + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + }, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + } +} diff --git a/models/apis/ssmsap/2018-05-10/docs-2.json b/models/apis/ssmsap/2018-05-10/docs-2.json new file mode 100644 index 0000000000..0195dea80b --- /dev/null +++ b/models/apis/ssmsap/2018-05-10/docs-2.json @@ -0,0 +1,608 @@ +{ + "version": "2.0", + "service": "

", + "operations": { + "DeleteResourcePermission": "

", + "DeregisterApplication": "

", + "GetApplication": "

", + "GetComponent": "

", + "GetDatabase": "

", + "GetOperation": "

", + "GetResourcePermission": "

", + "ListApplications": "

", + "ListComponents": "

", + "ListDatabases": "

", + "ListTagsForResource": "

", + "PutResourcePermission": "

", + "RegisterApplication": "

", + "TagResource": "

", + "UntagResource": "

", + "UpdateApplicationSettings": "

" + }, + "shapes": { + "AppRegistryArn": { + "base": null, + "refs": { + "Application$AppRegistryArn": "

" + } + }, + "Application": { + "base": "

", + "refs": { + "GetApplicationOutput$Application": "

", + "RegisterApplicationOutput$Application": "

" + } + }, + "ApplicationCredential": { + "base": "

", + "refs": { + "ApplicationCredentialList$member": null + } + }, + "ApplicationCredentialList": { + "base": null, + "refs": { + "Database$Credentials": "

", + "RegisterApplicationInput$Credentials": "

", + "UpdateApplicationSettingsInput$CredentialsToAddOrUpdate": "

", + "UpdateApplicationSettingsInput$CredentialsToRemove": "

" + } + }, + "ApplicationId": { + "base": null, + "refs": { + "Application$Id": "

", + "ApplicationSummary$Id": "

", + "Component$ApplicationId": "

", + "ComponentSummary$ApplicationId": "

", + "Database$ApplicationId": "

", + "DatabaseSummary$ApplicationId": "

", + "DeregisterApplicationInput$ApplicationId": "

", + "GetApplicationInput$ApplicationId": "

", + "GetComponentInput$ApplicationId": "

", + "GetDatabaseInput$ApplicationId": "

", + "ListComponentsInput$ApplicationId": "

", + "ListDatabasesInput$ApplicationId": "

", + "RegisterApplicationInput$ApplicationId": "

", + "UpdateApplicationSettingsInput$ApplicationId": "

" + } + }, + "ApplicationStatus": { + "base": null, + "refs": { + "Application$Status": "

" + } + }, + "ApplicationSummary": { + "base": "

", + "refs": { + "ApplicationSummaryList$member": null + } + }, + "ApplicationSummaryList": { + "base": null, + "refs": { + "ListApplicationsOutput$Applications": "

" + } + }, + "ApplicationType": { + "base": null, + "refs": { + "Application$Type": "

", + "ApplicationSummary$Type": "

", + "RegisterApplicationInput$ApplicationType": "

" + } + }, + "Arn": { + "base": null, + "refs": { + "DeleteResourcePermissionInput$SourceResourceArn": "

", + "DeleteResourcePermissionInput$ResourceArn": "

", + "GetResourcePermissionInput$ResourceArn": "

", + "Operation$ResourceArn": "

", + "PutResourcePermissionInput$SourceResourceArn": "

", + "PutResourcePermissionInput$ResourceArn": "

" + } + }, + "Component": { + "base": "

", + "refs": { + "GetComponentOutput$Component": "

" + } + }, + "ComponentId": { + "base": null, + "refs": { + "Component$ComponentId": "

", + "ComponentIdList$member": null, + "ComponentSummary$ComponentId": "

", + "Database$ComponentId": "

", + "DatabaseSummary$ComponentId": "

", + "GetComponentInput$ComponentId": "

", + "GetDatabaseInput$ComponentId": "

", + "ListDatabasesInput$ComponentId": "

" + } + }, + "ComponentIdList": { + "base": null, + "refs": { + "Application$Components": "

" + } + }, + "ComponentStatus": { + "base": null, + "refs": { + "Component$Status": "

" + } + }, + "ComponentSummary": { + "base": "

", + "refs": { + "ComponentSummaryList$member": null + } + }, + "ComponentSummaryList": { + "base": null, + "refs": { + "ListComponentsOutput$Components": "

" + } + }, + "ComponentType": { + "base": null, + "refs": { + "Component$ComponentType": "

", + "ComponentSummary$ComponentType": "

" + } + }, + "ConflictException": { + "base": "

", + "refs": { + } + }, + "CredentialType": { + "base": null, + "refs": { + "ApplicationCredential$CredentialType": "

" + } + }, + "Database": { + "base": "

", + "refs": { + "GetDatabaseOutput$Database": "

" + } + }, + "DatabaseId": { + "base": null, + "refs": { + "Database$DatabaseId": "

", + "DatabaseIdList$member": null, + "DatabaseSummary$DatabaseId": "

", + "GetDatabaseInput$DatabaseId": "

" + } + }, + "DatabaseIdList": { + "base": null, + "refs": { + "Component$Databases": "

" + } + }, + "DatabaseName": { + "base": null, + "refs": { + "ApplicationCredential$DatabaseName": "

" + } + }, + "DatabaseStatus": { + "base": null, + "refs": { + "Database$Status": "

" + } + }, + "DatabaseSummary": { + "base": "

", + "refs": { + "DatabaseSummaryList$member": null + } + }, + "DatabaseSummaryList": { + "base": null, + "refs": { + "ListDatabasesOutput$Databases": "

" + } + }, + "DatabaseType": { + "base": null, + "refs": { + "Database$DatabaseType": "

", + "DatabaseSummary$DatabaseType": "

" + } + }, + "DeleteResourcePermissionInput": { + "base": null, + "refs": { + } + }, + "DeleteResourcePermissionOutput": { + "base": null, + "refs": { + } + }, + "DeregisterApplicationInput": { + "base": null, + "refs": { + } + }, + "DeregisterApplicationOutput": { + "base": null, + "refs": { + } + }, + "GetApplicationInput": { + "base": null, + "refs": { + } + }, + "GetApplicationOutput": { + "base": null, + "refs": { + } + }, + "GetComponentInput": { + "base": null, + "refs": { + } + }, + "GetComponentOutput": { + "base": null, + "refs": { + } + }, + "GetDatabaseInput": { + "base": null, + "refs": { + } + }, + "GetDatabaseOutput": { + "base": null, + "refs": { + } + }, + "GetOperationInput": { + "base": null, + "refs": { + } + }, + "GetOperationOutput": { + "base": null, + "refs": { + } + }, + "GetResourcePermissionInput": { + "base": null, + "refs": { + } + }, + "GetResourcePermissionOutput": { + "base": null, + "refs": { + } + }, + "Host": { + "base": "

", + "refs": { + "HostList$member": null + } + }, + "HostList": { + "base": null, + "refs": { + "Component$Hosts": "

" + } + }, + "HostRole": { + "base": null, + "refs": { + "Host$HostRole": "

" + } + }, + "InstanceId": { + "base": null, + "refs": { + "InstanceList$member": null + } + }, + "InstanceList": { + "base": null, + "refs": { + "RegisterApplicationInput$Instances": "

" + } + }, + "Integer": { + "base": null, + "refs": { + "Database$SQLPort": "

" + } + }, + "InternalServerException": { + "base": "

", + "refs": { + } + }, + "ListApplicationsInput": { + "base": null, + "refs": { + } + }, + "ListApplicationsOutput": { + "base": null, + "refs": { + } + }, + "ListComponentsInput": { + "base": null, + "refs": { + } + }, + "ListComponentsOutput": { + "base": null, + "refs": { + } + }, + "ListDatabasesInput": { + "base": null, + "refs": { + } + }, + "ListDatabasesOutput": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListApplicationsInput$MaxResults": "

", + "ListComponentsInput$MaxResults": "

", + "ListDatabasesInput$MaxResults": "

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListApplicationsInput$NextToken": "

", + "ListApplicationsOutput$NextToken": "

", + "ListComponentsInput$NextToken": "

", + "ListComponentsOutput$NextToken": "

", + "ListDatabasesInput$NextToken": "

", + "ListDatabasesOutput$NextToken": "

" + } + }, + "Operation": { + "base": "

", + "refs": { + "GetOperationOutput$Operation": "

" + } + }, + "OperationId": { + "base": null, + "refs": { + "GetOperationInput$OperationId": "

", + "Operation$Id": "

", + "OperationIdList$member": null, + "RegisterApplicationOutput$OperationId": "

" + } + }, + "OperationIdList": { + "base": null, + "refs": { + "UpdateApplicationSettingsOutput$OperationIds": "

" + } + }, + "OperationProperties": { + "base": null, + "refs": { + "Operation$Properties": "

" + } + }, + "OperationStatus": { + "base": null, + "refs": { + "Operation$Status": "

" + } + }, + "OperationType": { + "base": null, + "refs": { + "Operation$Type": "

" + } + }, + "PermissionActionType": { + "base": null, + "refs": { + "DeleteResourcePermissionInput$ActionType": "

", + "GetResourcePermissionInput$ActionType": "

", + "PutResourcePermissionInput$ActionType": "

" + } + }, + "PutResourcePermissionInput": { + "base": null, + "refs": { + } + }, + "PutResourcePermissionOutput": { + "base": null, + "refs": { + } + }, + "RegisterApplicationInput": { + "base": null, + "refs": { + } + }, + "RegisterApplicationOutput": { + "base": null, + "refs": { + } + }, + "ResourceId": { + "base": null, + "refs": { + "Operation$ResourceId": "

" + } + }, + "ResourceNotFoundException": { + "base": "

", + "refs": { + } + }, + "ResourceType": { + "base": null, + "refs": { + "Operation$ResourceType": "

" + } + }, + "SAPInstanceNumber": { + "base": null, + "refs": { + "RegisterApplicationInput$SapInstanceNumber": "

" + } + }, + "SID": { + "base": null, + "refs": { + "RegisterApplicationInput$Sid": "

" + } + }, + "SecretId": { + "base": null, + "refs": { + "ApplicationCredential$SecretId": "

" + } + }, + "SsmSapArn": { + "base": null, + "refs": { + "Application$Arn": "

", + "ApplicationSummary$Arn": "

", + "Database$Arn": "

", + "DatabaseSummary$Arn": "

", + "GetApplicationInput$ApplicationArn": "

", + "GetDatabaseInput$DatabaseArn": "

", + "ListTagsForResourceRequest$resourceArn": "

", + "TagResourceRequest$resourceArn": "

", + "UntagResourceRequest$resourceArn": "

" + } + }, + "String": { + "base": null, + "refs": { + "Application$StatusMessage": "

", + "Component$PrimaryHost": "

", + "ConflictException$Message": null, + "Database$DatabaseName": "

", + "Database$PrimaryHost": "

", + "DeleteResourcePermissionOutput$Policy": "

", + "GetResourcePermissionOutput$Policy": "

", + "Host$HostName": "

", + "Host$HostIp": "

", + "Host$InstanceId": "

", + "InternalServerException$Message": null, + "Operation$StatusMessage": "

", + "OperationProperties$key": null, + "OperationProperties$value": null, + "PutResourcePermissionOutput$Policy": "

", + "ResourceNotFoundException$Message": null, + "UpdateApplicationSettingsOutput$Message": "

", + "ValidationException$Message": null + } + }, + "TagKey": { + "base": null, + "refs": { + "TagKeyList$member": null, + "TagMap$key": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$tagKeys": "

" + } + }, + "TagMap": { + "base": null, + "refs": { + "ApplicationSummary$Tags": "

", + "ComponentSummary$Tags": "

", + "DatabaseSummary$Tags": "

", + "GetApplicationOutput$Tags": "

", + "GetDatabaseOutput$Tags": "

", + "ListTagsForResourceResponse$tags": "

", + "RegisterApplicationInput$Tags": "

", + "TagResourceRequest$tags": "

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "TagMap$value": null + } + }, + "Timestamp": { + "base": null, + "refs": { + "Application$LastUpdated": "

", + "Component$LastUpdated": "

", + "Database$LastUpdated": "

", + "Operation$StartTime": "

", + "Operation$EndTime": "

", + "Operation$LastUpdatedTime": "

" + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateApplicationSettingsInput": { + "base": null, + "refs": { + } + }, + "UpdateApplicationSettingsOutput": { + "base": null, + "refs": { + } + }, + "ValidationException": { + "base": "

", + "refs": { + } + } + } +} diff --git a/models/apis/ssmsap/2018-05-10/endpoint-rule-set-1.json b/models/apis/ssmsap/2018-05-10/endpoint-rule-set-1.json new file mode 100644 index 0000000000..e6726f5c6d --- /dev/null +++ b/models/apis/ssmsap/2018-05-10/endpoint-rule-set-1.json @@ -0,0 +1,309 @@ +{ + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + }, + { + "fn": "parseURL", + "argv": [ + { + "ref": "Endpoint" + } + ], + "assign": "url" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ssm-sap-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ssm-sap-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://ssm-sap.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "endpoint": { + "url": "https://ssm-sap.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] +} \ No newline at end of file diff --git a/models/apis/ssmsap/2018-05-10/endpoint-tests-1.json b/models/apis/ssmsap/2018-05-10/endpoint-tests-1.json new file mode 100644 index 0000000000..a52e1be783 --- /dev/null +++ b/models/apis/ssmsap/2018-05-10/endpoint-tests-1.json @@ -0,0 +1,295 @@ +{ + "testCases": [ + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.us-gov-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-gov-east-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "cn-north-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-iso-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.us-east-1.api.aws" + } + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.us-east-1.amazonaws.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "UseDualStack": true, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://ssm-sap.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-isob-east-1" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseDualStack": false, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "UseDualStack": false, + "UseFIPS": true, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "UseDualStack": true, + "UseFIPS": false, + "Region": "us-east-1", + "Endpoint": "https://example.com" + } + } + ], + "version": "1.0" +} \ No newline at end of file diff --git a/models/apis/ssmsap/2018-05-10/examples-1.json b/models/apis/ssmsap/2018-05-10/examples-1.json new file mode 100644 index 0000000000..0ea7e3b0bb --- /dev/null +++ b/models/apis/ssmsap/2018-05-10/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/ssmsap/2018-05-10/paginators-1.json b/models/apis/ssmsap/2018-05-10/paginators-1.json new file mode 100644 index 0000000000..eee580c956 --- /dev/null +++ b/models/apis/ssmsap/2018-05-10/paginators-1.json @@ -0,0 +1,22 @@ +{ + "pagination": { + "ListApplications": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Applications" + }, + "ListComponents": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Components" + }, + "ListDatabases": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Databases" + } + } +} diff --git a/models/apis/workspaces/2015-04-08/api-2.json b/models/apis/workspaces/2015-04-08/api-2.json index b10b4831be..9e11c58238 100644 --- a/models/apis/workspaces/2015-04-08/api-2.json +++ b/models/apis/workspaces/2015-04-08/api-2.json @@ -645,6 +645,21 @@ {"shape":"ResourceNotFoundException"} ] }, + "ModifyCertificateBasedAuthProperties":{ + "name":"ModifyCertificateBasedAuthProperties", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyCertificateBasedAuthPropertiesRequest"}, + "output":{"shape":"ModifyCertificateBasedAuthPropertiesResult"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InvalidParameterValuesException"}, + {"shape":"OperationNotSupportedException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ModifyClientProperties":{ "name":"ModifyClientProperties", "http":{ @@ -1066,6 +1081,26 @@ "member":{"shape":"WorkspaceBundle"} }, "BundleOwner":{"type":"string"}, + "CertificateAuthorityArn":{ + "type":"string", + "max":200, + "min":5, + "pattern":"arn:[\\w+=/,.@-]+:[\\w+=/,.@-]+:[\\w+=/,.@-]*:[0-9]*:[\\w+=,.@-]+(/[\\w+=,.@-]+)*" + }, + "CertificateBasedAuthProperties":{ + "type":"structure", + "members":{ + "Status":{"shape":"CertificateBasedAuthStatusEnum"}, + "CertificateAuthorityArn":{"shape":"CertificateAuthorityArn"} + } + }, + "CertificateBasedAuthStatusEnum":{ + "type":"string", + "enum":[ + "DISABLED", + "ENABLED" + ] + }, "ClientDeviceType":{ "type":"string", "enum":[ @@ -1483,6 +1518,14 @@ "EnableMaintenanceMode":{"shape":"BooleanObject"} } }, + "DeletableCertificateBasedAuthPropertiesList":{ + "type":"list", + "member":{"shape":"DeletableCertificateBasedAuthProperty"} + }, + "DeletableCertificateBasedAuthProperty":{ + "type":"string", + "enum":["CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN"] + }, "DeletableSamlPropertiesList":{ "type":"list", "member":{"shape":"DeletableSamlProperty"} @@ -2183,6 +2226,20 @@ "members":{ } }, + "ModifyCertificateBasedAuthPropertiesRequest":{ + "type":"structure", + "required":["ResourceId"], + "members":{ + "ResourceId":{"shape":"DirectoryId"}, + "CertificateBasedAuthProperties":{"shape":"CertificateBasedAuthProperties"}, + "PropertiesToDelete":{"shape":"DeletableCertificateBasedAuthPropertiesList"} + } + }, + "ModifyCertificateBasedAuthPropertiesResult":{ + "type":"structure", + "members":{ + } + }, "ModifyClientPropertiesRequest":{ "type":"structure", "required":[ @@ -2923,7 +2980,8 @@ "WorkspaceAccessProperties":{"shape":"WorkspaceAccessProperties"}, "Tenancy":{"shape":"Tenancy"}, "SelfservicePermissions":{"shape":"SelfservicePermissions"}, - "SamlProperties":{"shape":"SamlProperties"} + "SamlProperties":{"shape":"SamlProperties"}, + "CertificateBasedAuthProperties":{"shape":"CertificateBasedAuthProperties"} } }, "WorkspaceDirectoryState":{ diff --git a/models/apis/workspaces/2015-04-08/docs-2.json b/models/apis/workspaces/2015-04-08/docs-2.json index 25c1b5797e..0e5d96f8f4 100644 --- a/models/apis/workspaces/2015-04-08/docs-2.json +++ b/models/apis/workspaces/2015-04-08/docs-2.json @@ -45,6 +45,7 @@ "ListAvailableManagementCidrRanges": "

Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL).

This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL, you'll receive an AccessDeniedException error.

The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.

", "MigrateWorkspace": "

Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume.

The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. During migration, the original D:\\Users\\%USERNAME% user profile folder is renamed to D:\\Users\\%USERNAME%MMddyyTHHmmss%.NotMigrated. A new D:\\Users\\%USERNAME%\\ folder is generated by the new OS. Certain files in the old user profile are moved to the new user profile.

For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace.

", "ModifyAccount": "

Modifies the configuration of Bring Your Own License (BYOL) for the specified account.

", + "ModifyCertificateBasedAuthProperties": "

Modifies the properties of the certificate-based authentication you want to use with your WorkSpaces.

", "ModifyClientProperties": "

Modifies the properties of the specified Amazon WorkSpaces clients.

", "ModifySamlProperties": "

Modifies multiple properties related to SAML 2.0 authentication, including the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider.

", "ModifySelfservicePermissions": "

Modifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users.

", @@ -248,6 +249,25 @@ "WorkspaceBundle$Owner": "

The owner of the bundle. This is the account identifier of the owner, or AMAZON if the bundle is provided by Amazon Web Services.

" } }, + "CertificateAuthorityArn": { + "base": null, + "refs": { + "CertificateBasedAuthProperties$CertificateAuthorityArn": "

The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager Private CA resource.

" + } + }, + "CertificateBasedAuthProperties": { + "base": "

Describes the properties of the certificate-based authentication you want to use with your WorkSpaces.

", + "refs": { + "ModifyCertificateBasedAuthPropertiesRequest$CertificateBasedAuthProperties": "

The properties of the certificate-based authentication.

", + "WorkspaceDirectory$CertificateBasedAuthProperties": "

The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory for WorkSpaces login.

" + } + }, + "CertificateBasedAuthStatusEnum": { + "base": null, + "refs": { + "CertificateBasedAuthProperties$Status": "

The status of the certificate-based authentication properties.

" + } + }, "ClientDeviceType": { "base": null, "refs": { @@ -600,6 +620,18 @@ "WorkspaceDirectory$WorkspaceCreationProperties": "

The default creation properties for all WorkSpaces in the directory.

" } }, + "DeletableCertificateBasedAuthPropertiesList": { + "base": null, + "refs": { + "ModifyCertificateBasedAuthPropertiesRequest$PropertiesToDelete": "

The properties of the certificate-based authentication you want to delete.

" + } + }, + "DeletableCertificateBasedAuthProperty": { + "base": null, + "refs": { + "DeletableCertificateBasedAuthPropertiesList$member": null + } + }, "DeletableSamlPropertiesList": { "base": null, "refs": { @@ -878,6 +910,7 @@ "DirectoryIdList$member": null, "DisassociateIpGroupsRequest$DirectoryId": "

The identifier of the directory.

", "ImportClientBrandingRequest$ResourceId": "

The directory identifier of the WorkSpace for which you want to import client branding.

", + "ModifyCertificateBasedAuthPropertiesRequest$ResourceId": "

The resource identifiers, in the form of directory IDs.

", "ModifySamlPropertiesRequest$ResourceId": "

The directory identifier for which you want to configure SAML properties.

", "ModifySelfservicePermissionsRequest$ResourceId": "

The identifier of the directory.

", "ModifyWorkspaceAccessPropertiesRequest$ResourceId": "

The identifier of the directory.

", @@ -1272,6 +1305,16 @@ "refs": { } }, + "ModifyCertificateBasedAuthPropertiesRequest": { + "base": null, + "refs": { + } + }, + "ModifyCertificateBasedAuthPropertiesResult": { + "base": null, + "refs": { + } + }, "ModifyClientPropertiesRequest": { "base": null, "refs": { diff --git a/models/apis/workspaces/2015-04-08/endpoint-tests-1.json b/models/apis/workspaces/2015-04-08/endpoint-tests-1.json index 9294f178dc..bef7be04d6 100644 --- a/models/apis/workspaces/2015-04-08/endpoint-tests-1.json +++ b/models/apis/workspaces/2015-04-08/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": true + "Region": "ap-south-1" } }, { @@ -21,9 +21,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": false + "Region": "ap-south-1" } }, { @@ -34,9 +34,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": true + "Region": "ap-south-1" } }, { @@ -47,9 +47,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": false + "Region": "ap-south-1" } }, { @@ -60,9 +60,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": true + "Region": "ca-central-1" } }, { @@ -73,9 +73,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": false + "Region": "ca-central-1" } }, { @@ -86,9 +86,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": true + "Region": "ca-central-1" } }, { @@ -99,9 +99,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": false + "Region": "ca-central-1" } }, { @@ -112,9 +112,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": true + "Region": "eu-central-1" } }, { @@ -125,9 +125,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": false + "Region": "eu-central-1" } }, { @@ -138,9 +138,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": true + "Region": "eu-central-1" } }, { @@ -151,9 +151,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": false + "Region": "eu-central-1" } }, { @@ -162,9 +162,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "us-iso-west-1", - "UseDualStack": true + "Region": "us-iso-west-1" } }, { @@ -175,9 +175,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-iso-west-1", - "UseDualStack": false + "Region": "us-iso-west-1" } }, { @@ -186,9 +186,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-iso-west-1", - "UseDualStack": true + "Region": "us-iso-west-1" } }, { @@ -199,9 +199,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-iso-west-1", - "UseDualStack": false + "Region": "us-iso-west-1" } }, { @@ -212,9 +212,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": true + "Region": "us-west-2" } }, { @@ -225,9 +225,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": false + "Region": "us-west-2" } }, { @@ -238,9 +238,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": true + "Region": "us-west-2" } }, { @@ -251,9 +251,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": false + "Region": "us-west-2" } }, { @@ -264,9 +264,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": true + "Region": "af-south-1" } }, { @@ -277,9 +277,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": false + "Region": "af-south-1" } }, { @@ -290,9 +290,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": true + "Region": "af-south-1" } }, { @@ -303,9 +303,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": false + "Region": "af-south-1" } }, { @@ -316,9 +316,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": true + "Region": "eu-west-2" } }, { @@ -329,9 +329,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": false + "Region": "eu-west-2" } }, { @@ -342,9 +342,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": true + "Region": "eu-west-2" } }, { @@ -355,9 +355,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": false + "Region": "eu-west-2" } }, { @@ -368,9 +368,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": true + "Region": "eu-west-1" } }, { @@ -381,9 +381,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": false + "Region": "eu-west-1" } }, { @@ -394,9 +394,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": true + "Region": "eu-west-1" } }, { @@ -407,9 +407,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": false + "Region": "eu-west-1" } }, { @@ -420,9 +420,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": true + "Region": "ap-northeast-2" } }, { @@ -433,9 +433,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": false + "Region": "ap-northeast-2" } }, { @@ -446,9 +446,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": true + "Region": "ap-northeast-2" } }, { @@ -459,9 +459,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": false + "Region": "ap-northeast-2" } }, { @@ -472,9 +472,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": true + "Region": "ap-northeast-1" } }, { @@ -485,9 +485,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": false + "Region": "ap-northeast-1" } }, { @@ -498,9 +498,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": true + "Region": "ap-northeast-1" } }, { @@ -511,9 +511,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": false + "Region": "ap-northeast-1" } }, { @@ -524,9 +524,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": true + "Region": "sa-east-1" } }, { @@ -537,9 +537,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": false + "Region": "sa-east-1" } }, { @@ -550,9 +550,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": true + "Region": "sa-east-1" } }, { @@ -563,9 +563,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": false + "Region": "sa-east-1" } }, { @@ -576,9 +576,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": true + "Region": "us-gov-west-1" } }, { @@ -589,9 +589,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": false + "Region": "us-gov-west-1" } }, { @@ -602,9 +602,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": true + "Region": "us-gov-west-1" } }, { @@ -615,9 +615,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": false + "Region": "us-gov-west-1" } }, { @@ -628,9 +628,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": true + "Region": "ap-southeast-1" } }, { @@ -641,9 +641,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": false + "Region": "ap-southeast-1" } }, { @@ -654,9 +654,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": true + "Region": "ap-southeast-1" } }, { @@ -667,9 +667,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": false + "Region": "ap-southeast-1" } }, { @@ -680,9 +680,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": true + "Region": "ap-southeast-2" } }, { @@ -693,9 +693,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": false + "Region": "ap-southeast-2" } }, { @@ -706,9 +706,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": true + "Region": "ap-southeast-2" } }, { @@ -719,9 +719,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": false + "Region": "ap-southeast-2" } }, { @@ -730,9 +730,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "us-iso-east-1", - "UseDualStack": true + "Region": "us-iso-east-1" } }, { @@ -743,9 +743,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-iso-east-1", - "UseDualStack": false + "Region": "us-iso-east-1" } }, { @@ -754,9 +754,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-iso-east-1", - "UseDualStack": true + "Region": "us-iso-east-1" } }, { @@ -767,9 +767,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-iso-east-1", - "UseDualStack": false + "Region": "us-iso-east-1" } }, { @@ -780,9 +780,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "us-east-1", - "UseDualStack": true + "Region": "us-east-1" } }, { @@ -793,9 +793,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-east-1", - "UseDualStack": false + "Region": "us-east-1" } }, { @@ -806,9 +806,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-east-1", - "UseDualStack": true + "Region": "us-east-1" } }, { @@ -819,9 +819,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-1", - "UseDualStack": false + "Region": "us-east-1" } }, { @@ -832,9 +832,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": true + "Region": "cn-northwest-1" } }, { @@ -845,9 +845,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": false + "Region": "cn-northwest-1" } }, { @@ -858,9 +858,9 @@ } }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": true + "Region": "cn-northwest-1" } }, { @@ -871,9 +871,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": false + "Region": "cn-northwest-1" } }, { @@ -882,9 +882,9 @@ "error": "FIPS and DualStack are enabled, but this partition does not support one or both" }, "params": { + "UseDualStack": true, "UseFIPS": true, - "Region": "us-isob-east-1", - "UseDualStack": true + "Region": "us-isob-east-1" } }, { @@ -895,9 +895,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": true, - "Region": "us-isob-east-1", - "UseDualStack": false + "Region": "us-isob-east-1" } }, { @@ -906,9 +906,9 @@ "error": "DualStack is enabled but this partition does not support DualStack" }, "params": { + "UseDualStack": true, "UseFIPS": false, - "Region": "us-isob-east-1", - "UseDualStack": true + "Region": "us-isob-east-1" } }, { @@ -919,9 +919,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, - "Region": "us-isob-east-1", - "UseDualStack": false + "Region": "us-isob-east-1" } }, { @@ -932,9 +932,9 @@ } }, "params": { + "UseDualStack": false, "UseFIPS": false, "Region": "us-east-1", - "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -944,9 +944,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { + "UseDualStack": false, "UseFIPS": true, "Region": "us-east-1", - "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -956,9 +956,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { + "UseDualStack": true, "UseFIPS": false, "Region": "us-east-1", - "UseDualStack": true, "Endpoint": "https://example.com" } } diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index a971baf16d..0ef53eb9aa 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -9393,8 +9393,10 @@ "ca-central-1" : { }, "eu-central-1" : { }, "eu-north-1" : { }, + "eu-south-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, + "eu-west-3" : { }, "fips" : { "credentialScope" : { "region" : "us-west-1" diff --git a/service/connect/api.go b/service/connect/api.go index 462ef74b65..d0b40d940e 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -47416,6 +47416,9 @@ const ( // InstanceAttributeTypeHighVolumeOutbound is a InstanceAttributeType enum value InstanceAttributeTypeHighVolumeOutbound = "HIGH_VOLUME_OUTBOUND" + + // InstanceAttributeTypeEnhancedContactMonitoring is a InstanceAttributeType enum value + InstanceAttributeTypeEnhancedContactMonitoring = "ENHANCED_CONTACT_MONITORING" ) // InstanceAttributeType_Values returns all elements of the InstanceAttributeType enum @@ -47430,6 +47433,7 @@ func InstanceAttributeType_Values() []string { InstanceAttributeTypeEarlyMedia, InstanceAttributeTypeMultiPartyConference, InstanceAttributeTypeHighVolumeOutbound, + InstanceAttributeTypeEnhancedContactMonitoring, } } diff --git a/service/greengrassv2/api.go b/service/greengrassv2/api.go index e83d726ddf..11182f386d 100644 --- a/service/greengrassv2/api.go +++ b/service/greengrassv2/api.go @@ -4959,13 +4959,18 @@ type CreateDeploymentInput struct { // configuration. IotJobConfiguration *DeploymentIoTJobConfiguration `locationName:"iotJobConfiguration" type:"structure"` + // The parent deployment's target ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // within a subdeployment. + ParentTargetArn *string `locationName:"parentTargetArn" type:"string"` + // A list of key-value pairs that contain metadata for the resource. For more // information, see Tag your resources (https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html) // in the IoT Greengrass V2 Developer Guide. Tags map[string]*string `locationName:"tags" min:"1" type:"map"` // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the target IoT thing or thing group. + // of the target IoT thing or thing group. When creating a subdeployment, the + // targetARN can only be a thing group. // // TargetArn is a required field TargetArn *string `locationName:"targetArn" type:"string" required:"true"` @@ -5056,6 +5061,12 @@ func (s *CreateDeploymentInput) SetIotJobConfiguration(v *DeploymentIoTJobConfig return s } +// SetParentTargetArn sets the ParentTargetArn field's value. +func (s *CreateDeploymentInput) SetParentTargetArn(v string) *CreateDeploymentInput { + s.ParentTargetArn = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateDeploymentInput) SetTags(v map[string]*string) *CreateDeploymentInput { s.Tags = v @@ -5351,11 +5362,16 @@ type Deployment struct { // Whether or not the deployment is the latest revision for its target. IsLatestForTarget *bool `locationName:"isLatestForTarget" type:"boolean"` + // The parent deployment's target ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // within a subdeployment. + ParentTargetArn *string `locationName:"parentTargetArn" type:"string"` + // The revision number of the deployment. RevisionId *string `locationName:"revisionId" min:"1" type:"string"` // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) - // of the target IoT thing or thing group. + // of the target IoT thing or thing group. When creating a subdeployment, the + // targetARN can only be a thing group. TargetArn *string `locationName:"targetArn" type:"string"` } @@ -5407,6 +5423,12 @@ func (s *Deployment) SetIsLatestForTarget(v bool) *Deployment { return s } +// SetParentTargetArn sets the ParentTargetArn field's value. +func (s *Deployment) SetParentTargetArn(v string) *Deployment { + s.ParentTargetArn = &v + return s +} + // SetRevisionId sets the RevisionId field's value. func (s *Deployment) SetRevisionId(v string) *Deployment { s.RevisionId = &v @@ -6708,6 +6730,10 @@ type GetDeploymentOutput struct { // Whether or not the deployment is the latest revision for its target. IsLatestForTarget *bool `locationName:"isLatestForTarget" type:"boolean"` + // The parent deployment's target ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // within a subdeployment. + ParentTargetArn *string `locationName:"parentTargetArn" type:"string"` + // The revision number of the deployment. RevisionId *string `locationName:"revisionId" min:"1" type:"string"` @@ -6799,6 +6825,12 @@ func (s *GetDeploymentOutput) SetIsLatestForTarget(v bool) *GetDeploymentOutput return s } +// SetParentTargetArn sets the ParentTargetArn field's value. +func (s *GetDeploymentOutput) SetParentTargetArn(v string) *GetDeploymentOutput { + s.ParentTargetArn = &v + return s +} + // SetRevisionId sets the RevisionId field's value. func (s *GetDeploymentOutput) SetRevisionId(v string) *GetDeploymentOutput { s.RevisionId = &v @@ -8639,6 +8671,10 @@ type ListDeploymentsInput struct { // The token to be used for the next set of paginated results. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The parent deployment's target ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) + // within a subdeployment. + ParentTargetArn *string `location:"querystring" locationName:"parentTargetArn" type:"string"` + // The ARN (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) // of the target IoT thing or thing group. TargetArn *string `location:"querystring" locationName:"targetArn" type:"string"` @@ -8693,6 +8729,12 @@ func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { return s } +// SetParentTargetArn sets the ParentTargetArn field's value. +func (s *ListDeploymentsInput) SetParentTargetArn(v string) *ListDeploymentsInput { + s.ParentTargetArn = &v + return s +} + // SetTargetArn sets the TargetArn field's value. func (s *ListDeploymentsInput) SetTargetArn(v string) *ListDeploymentsInput { s.TargetArn = &v diff --git a/service/route53/api.go b/service/route53/api.go index 3c08d2b6b7..322afb893b 100644 --- a/service/route53/api.go +++ b/service/route53/api.go @@ -20404,6 +20404,9 @@ const ( // CloudWatchRegionEuSouth1 is a CloudWatchRegion enum value CloudWatchRegionEuSouth1 = "eu-south-1" + // CloudWatchRegionEuSouth2 is a CloudWatchRegion enum value + CloudWatchRegionEuSouth2 = "eu-south-2" + // CloudWatchRegionUsGovWest1 is a CloudWatchRegion enum value CloudWatchRegionUsGovWest1 = "us-gov-west-1" @@ -20449,6 +20452,7 @@ func CloudWatchRegion_Values() []string { CloudWatchRegionCnNorth1, CloudWatchRegionAfSouth1, CloudWatchRegionEuSouth1, + CloudWatchRegionEuSouth2, CloudWatchRegionUsGovWest1, CloudWatchRegionUsGovEast1, CloudWatchRegionUsIsoEast1, @@ -20775,6 +20779,9 @@ const ( // ResourceRecordSetRegionEuSouth1 is a ResourceRecordSetRegion enum value ResourceRecordSetRegionEuSouth1 = "eu-south-1" + + // ResourceRecordSetRegionEuSouth2 is a ResourceRecordSetRegion enum value + ResourceRecordSetRegionEuSouth2 = "eu-south-2" ) // ResourceRecordSetRegion_Values returns all elements of the ResourceRecordSetRegion enum @@ -20806,6 +20813,7 @@ func ResourceRecordSetRegion_Values() []string { ResourceRecordSetRegionApSouth1, ResourceRecordSetRegionAfSouth1, ResourceRecordSetRegionEuSouth1, + ResourceRecordSetRegionEuSouth2, } } @@ -20955,6 +20963,9 @@ const ( // VPCRegionEuSouth1 is a VPCRegion enum value VPCRegionEuSouth1 = "eu-south-1" + + // VPCRegionEuSouth2 is a VPCRegion enum value + VPCRegionEuSouth2 = "eu-south-2" ) // VPCRegion_Values returns all elements of the VPCRegion enum @@ -20990,5 +21001,6 @@ func VPCRegion_Values() []string { VPCRegionCnNorth1, VPCRegionAfSouth1, VPCRegionEuSouth1, + VPCRegionEuSouth2, } } diff --git a/service/ssmsap/api.go b/service/ssmsap/api.go new file mode 100644 index 0000000000..d6426a47b3 --- /dev/null +++ b/service/ssmsap/api.go @@ -0,0 +1,4075 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ssmsap + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opDeleteResourcePermission = "DeleteResourcePermission" + +// DeleteResourcePermissionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteResourcePermission operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteResourcePermission for more information on using the DeleteResourcePermission +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeleteResourcePermissionRequest method. +// req, resp := client.DeleteResourcePermissionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/DeleteResourcePermission +func (c *SsmSap) DeleteResourcePermissionRequest(input *DeleteResourcePermissionInput) (req *request.Request, output *DeleteResourcePermissionOutput) { + op := &request.Operation{ + Name: opDeleteResourcePermission, + HTTPMethod: "POST", + HTTPPath: "/delete-resource-permission", + } + + if input == nil { + input = &DeleteResourcePermissionInput{} + } + + output = &DeleteResourcePermissionOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteResourcePermission API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation DeleteResourcePermission for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/DeleteResourcePermission +func (c *SsmSap) DeleteResourcePermission(input *DeleteResourcePermissionInput) (*DeleteResourcePermissionOutput, error) { + req, out := c.DeleteResourcePermissionRequest(input) + return out, req.Send() +} + +// DeleteResourcePermissionWithContext is the same as DeleteResourcePermission with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteResourcePermission for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) DeleteResourcePermissionWithContext(ctx aws.Context, input *DeleteResourcePermissionInput, opts ...request.Option) (*DeleteResourcePermissionOutput, error) { + req, out := c.DeleteResourcePermissionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeregisterApplication = "DeregisterApplication" + +// DeregisterApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeregisterApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeregisterApplication for more information on using the DeregisterApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the DeregisterApplicationRequest method. +// req, resp := client.DeregisterApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/DeregisterApplication +func (c *SsmSap) DeregisterApplicationRequest(input *DeregisterApplicationInput) (req *request.Request, output *DeregisterApplicationOutput) { + op := &request.Operation{ + Name: opDeregisterApplication, + HTTPMethod: "POST", + HTTPPath: "/deregister-application", + } + + if input == nil { + input = &DeregisterApplicationInput{} + } + + output = &DeregisterApplicationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeregisterApplication API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation DeregisterApplication for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/DeregisterApplication +func (c *SsmSap) DeregisterApplication(input *DeregisterApplicationInput) (*DeregisterApplicationOutput, error) { + req, out := c.DeregisterApplicationRequest(input) + return out, req.Send() +} + +// DeregisterApplicationWithContext is the same as DeregisterApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DeregisterApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) DeregisterApplicationWithContext(ctx aws.Context, input *DeregisterApplicationInput, opts ...request.Option) (*DeregisterApplicationOutput, error) { + req, out := c.DeregisterApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetApplication = "GetApplication" + +// GetApplicationRequest generates a "aws/request.Request" representing the +// client's request for the GetApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetApplication for more information on using the GetApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetApplicationRequest method. +// req, resp := client.GetApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetApplication +func (c *SsmSap) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) { + op := &request.Operation{ + Name: opGetApplication, + HTTPMethod: "POST", + HTTPPath: "/get-application", + } + + if input == nil { + input = &GetApplicationInput{} + } + + output = &GetApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetApplication API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation GetApplication for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetApplication +func (c *SsmSap) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { + req, out := c.GetApplicationRequest(input) + return out, req.Send() +} + +// GetApplicationWithContext is the same as GetApplication with the addition of +// the ability to pass a context and additional request options. +// +// See GetApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) { + req, out := c.GetApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetComponent = "GetComponent" + +// GetComponentRequest generates a "aws/request.Request" representing the +// client's request for the GetComponent operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetComponent for more information on using the GetComponent +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetComponentRequest method. +// req, resp := client.GetComponentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetComponent +func (c *SsmSap) GetComponentRequest(input *GetComponentInput) (req *request.Request, output *GetComponentOutput) { + op := &request.Operation{ + Name: opGetComponent, + HTTPMethod: "POST", + HTTPPath: "/get-component", + } + + if input == nil { + input = &GetComponentInput{} + } + + output = &GetComponentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetComponent API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation GetComponent for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetComponent +func (c *SsmSap) GetComponent(input *GetComponentInput) (*GetComponentOutput, error) { + req, out := c.GetComponentRequest(input) + return out, req.Send() +} + +// GetComponentWithContext is the same as GetComponent with the addition of +// the ability to pass a context and additional request options. +// +// See GetComponent for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) GetComponentWithContext(ctx aws.Context, input *GetComponentInput, opts ...request.Option) (*GetComponentOutput, error) { + req, out := c.GetComponentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDatabase = "GetDatabase" + +// GetDatabaseRequest generates a "aws/request.Request" representing the +// client's request for the GetDatabase operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDatabase for more information on using the GetDatabase +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetDatabaseRequest method. +// req, resp := client.GetDatabaseRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetDatabase +func (c *SsmSap) GetDatabaseRequest(input *GetDatabaseInput) (req *request.Request, output *GetDatabaseOutput) { + op := &request.Operation{ + Name: opGetDatabase, + HTTPMethod: "POST", + HTTPPath: "/get-database", + } + + if input == nil { + input = &GetDatabaseInput{} + } + + output = &GetDatabaseOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDatabase API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation GetDatabase for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetDatabase +func (c *SsmSap) GetDatabase(input *GetDatabaseInput) (*GetDatabaseOutput, error) { + req, out := c.GetDatabaseRequest(input) + return out, req.Send() +} + +// GetDatabaseWithContext is the same as GetDatabase with the addition of +// the ability to pass a context and additional request options. +// +// See GetDatabase for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) GetDatabaseWithContext(ctx aws.Context, input *GetDatabaseInput, opts ...request.Option) (*GetDatabaseOutput, error) { + req, out := c.GetDatabaseRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetOperation = "GetOperation" + +// GetOperationRequest generates a "aws/request.Request" representing the +// client's request for the GetOperation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetOperation for more information on using the GetOperation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetOperationRequest method. +// req, resp := client.GetOperationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetOperation +func (c *SsmSap) GetOperationRequest(input *GetOperationInput) (req *request.Request, output *GetOperationOutput) { + op := &request.Operation{ + Name: opGetOperation, + HTTPMethod: "POST", + HTTPPath: "/get-operation", + } + + if input == nil { + input = &GetOperationInput{} + } + + output = &GetOperationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetOperation API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation GetOperation for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetOperation +func (c *SsmSap) GetOperation(input *GetOperationInput) (*GetOperationOutput, error) { + req, out := c.GetOperationRequest(input) + return out, req.Send() +} + +// GetOperationWithContext is the same as GetOperation with the addition of +// the ability to pass a context and additional request options. +// +// See GetOperation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) GetOperationWithContext(ctx aws.Context, input *GetOperationInput, opts ...request.Option) (*GetOperationOutput, error) { + req, out := c.GetOperationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetResourcePermission = "GetResourcePermission" + +// GetResourcePermissionRequest generates a "aws/request.Request" representing the +// client's request for the GetResourcePermission operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetResourcePermission for more information on using the GetResourcePermission +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the GetResourcePermissionRequest method. +// req, resp := client.GetResourcePermissionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetResourcePermission +func (c *SsmSap) GetResourcePermissionRequest(input *GetResourcePermissionInput) (req *request.Request, output *GetResourcePermissionOutput) { + op := &request.Operation{ + Name: opGetResourcePermission, + HTTPMethod: "POST", + HTTPPath: "/get-resource-permission", + } + + if input == nil { + input = &GetResourcePermissionInput{} + } + + output = &GetResourcePermissionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetResourcePermission API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation GetResourcePermission for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/GetResourcePermission +func (c *SsmSap) GetResourcePermission(input *GetResourcePermissionInput) (*GetResourcePermissionOutput, error) { + req, out := c.GetResourcePermissionRequest(input) + return out, req.Send() +} + +// GetResourcePermissionWithContext is the same as GetResourcePermission with the addition of +// the ability to pass a context and additional request options. +// +// See GetResourcePermission for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) GetResourcePermissionWithContext(ctx aws.Context, input *GetResourcePermissionInput, opts ...request.Option) (*GetResourcePermissionOutput, error) { + req, out := c.GetResourcePermissionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListApplications = "ListApplications" + +// ListApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApplications for more information on using the ListApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListApplicationsRequest method. +// req, resp := client.ListApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListApplications +func (c *SsmSap) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { + op := &request.Operation{ + Name: opListApplications, + HTTPMethod: "POST", + HTTPPath: "/list-applications", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListApplicationsInput{} + } + + output = &ListApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApplications API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation ListApplications for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListApplications +func (c *SsmSap) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + return out, req.Send() +} + +// ListApplicationsWithContext is the same as ListApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListApplicationsPages iterates over the pages of a ListApplications operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApplications method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListApplications operation. +// pageNum := 0 +// err := client.ListApplicationsPages(params, +// func(page *ssmsap.ListApplicationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *SsmSap) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error { + return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListApplicationsPagesWithContext same as ListApplicationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApplicationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApplicationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListComponents = "ListComponents" + +// ListComponentsRequest generates a "aws/request.Request" representing the +// client's request for the ListComponents operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListComponents for more information on using the ListComponents +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListComponentsRequest method. +// req, resp := client.ListComponentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListComponents +func (c *SsmSap) ListComponentsRequest(input *ListComponentsInput) (req *request.Request, output *ListComponentsOutput) { + op := &request.Operation{ + Name: opListComponents, + HTTPMethod: "POST", + HTTPPath: "/list-components", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListComponentsInput{} + } + + output = &ListComponentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListComponents API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation ListComponents for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListComponents +func (c *SsmSap) ListComponents(input *ListComponentsInput) (*ListComponentsOutput, error) { + req, out := c.ListComponentsRequest(input) + return out, req.Send() +} + +// ListComponentsWithContext is the same as ListComponents with the addition of +// the ability to pass a context and additional request options. +// +// See ListComponents for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListComponentsWithContext(ctx aws.Context, input *ListComponentsInput, opts ...request.Option) (*ListComponentsOutput, error) { + req, out := c.ListComponentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListComponentsPages iterates over the pages of a ListComponents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListComponents method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListComponents operation. +// pageNum := 0 +// err := client.ListComponentsPages(params, +// func(page *ssmsap.ListComponentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *SsmSap) ListComponentsPages(input *ListComponentsInput, fn func(*ListComponentsOutput, bool) bool) error { + return c.ListComponentsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListComponentsPagesWithContext same as ListComponentsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListComponentsPagesWithContext(ctx aws.Context, input *ListComponentsInput, fn func(*ListComponentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListComponentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListComponentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListComponentsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListDatabases = "ListDatabases" + +// ListDatabasesRequest generates a "aws/request.Request" representing the +// client's request for the ListDatabases operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListDatabases for more information on using the ListDatabases +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListDatabasesRequest method. +// req, resp := client.ListDatabasesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListDatabases +func (c *SsmSap) ListDatabasesRequest(input *ListDatabasesInput) (req *request.Request, output *ListDatabasesOutput) { + op := &request.Operation{ + Name: opListDatabases, + HTTPMethod: "POST", + HTTPPath: "/list-databases", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDatabasesInput{} + } + + output = &ListDatabasesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDatabases API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation ListDatabases for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListDatabases +func (c *SsmSap) ListDatabases(input *ListDatabasesInput) (*ListDatabasesOutput, error) { + req, out := c.ListDatabasesRequest(input) + return out, req.Send() +} + +// ListDatabasesWithContext is the same as ListDatabases with the addition of +// the ability to pass a context and additional request options. +// +// See ListDatabases for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListDatabasesWithContext(ctx aws.Context, input *ListDatabasesInput, opts ...request.Option) (*ListDatabasesOutput, error) { + req, out := c.ListDatabasesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDatabasesPages iterates over the pages of a ListDatabases operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDatabases method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListDatabases operation. +// pageNum := 0 +// err := client.ListDatabasesPages(params, +// func(page *ssmsap.ListDatabasesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *SsmSap) ListDatabasesPages(input *ListDatabasesInput, fn func(*ListDatabasesOutput, bool) bool) error { + return c.ListDatabasesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDatabasesPagesWithContext same as ListDatabasesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListDatabasesPagesWithContext(ctx aws.Context, input *ListDatabasesInput, fn func(*ListDatabasesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDatabasesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDatabasesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDatabasesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListTagsForResource +func (c *SsmSap) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - ConflictException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/ListTagsForResource +func (c *SsmSap) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutResourcePermission = "PutResourcePermission" + +// PutResourcePermissionRequest generates a "aws/request.Request" representing the +// client's request for the PutResourcePermission operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutResourcePermission for more information on using the PutResourcePermission +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the PutResourcePermissionRequest method. +// req, resp := client.PutResourcePermissionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/PutResourcePermission +func (c *SsmSap) PutResourcePermissionRequest(input *PutResourcePermissionInput) (req *request.Request, output *PutResourcePermissionOutput) { + op := &request.Operation{ + Name: opPutResourcePermission, + HTTPMethod: "POST", + HTTPPath: "/put-resource-permission", + } + + if input == nil { + input = &PutResourcePermissionInput{} + } + + output = &PutResourcePermissionOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutResourcePermission API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation PutResourcePermission for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/PutResourcePermission +func (c *SsmSap) PutResourcePermission(input *PutResourcePermissionInput) (*PutResourcePermissionOutput, error) { + req, out := c.PutResourcePermissionRequest(input) + return out, req.Send() +} + +// PutResourcePermissionWithContext is the same as PutResourcePermission with the addition of +// the ability to pass a context and additional request options. +// +// See PutResourcePermission for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) PutResourcePermissionWithContext(ctx aws.Context, input *PutResourcePermissionInput, opts ...request.Option) (*PutResourcePermissionOutput, error) { + req, out := c.PutResourcePermissionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRegisterApplication = "RegisterApplication" + +// RegisterApplicationRequest generates a "aws/request.Request" representing the +// client's request for the RegisterApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See RegisterApplication for more information on using the RegisterApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the RegisterApplicationRequest method. +// req, resp := client.RegisterApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/RegisterApplication +func (c *SsmSap) RegisterApplicationRequest(input *RegisterApplicationInput) (req *request.Request, output *RegisterApplicationOutput) { + op := &request.Operation{ + Name: opRegisterApplication, + HTTPMethod: "POST", + HTTPPath: "/register-application", + } + + if input == nil { + input = &RegisterApplicationInput{} + } + + output = &RegisterApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegisterApplication API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation RegisterApplication for usage and error information. +// +// Returned Error Types: +// +// - ValidationException +// +// - ConflictException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/RegisterApplication +func (c *SsmSap) RegisterApplication(input *RegisterApplicationInput) (*RegisterApplicationOutput, error) { + req, out := c.RegisterApplicationRequest(input) + return out, req.Send() +} + +// RegisterApplicationWithContext is the same as RegisterApplication with the addition of +// the ability to pass a context and additional request options. +// +// See RegisterApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) RegisterApplicationWithContext(ctx aws.Context, input *RegisterApplicationInput, opts ...request.Option) (*RegisterApplicationOutput, error) { + req, out := c.RegisterApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/TagResource +func (c *SsmSap) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - ConflictException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/TagResource +func (c *SsmSap) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/UntagResource +func (c *SsmSap) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - ConflictException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/UntagResource +func (c *SsmSap) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateApplicationSettings = "UpdateApplicationSettings" + +// UpdateApplicationSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplicationSettings operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateApplicationSettings for more information on using the UpdateApplicationSettings +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UpdateApplicationSettingsRequest method. +// req, resp := client.UpdateApplicationSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/UpdateApplicationSettings +func (c *SsmSap) UpdateApplicationSettingsRequest(input *UpdateApplicationSettingsInput) (req *request.Request, output *UpdateApplicationSettingsOutput) { + op := &request.Operation{ + Name: opUpdateApplicationSettings, + HTTPMethod: "POST", + HTTPPath: "/update-application-settings", + } + + if input == nil { + input = &UpdateApplicationSettingsInput{} + } + + output = &UpdateApplicationSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApplicationSettings API operation for AWS Systems Manager for SAP. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Systems Manager for SAP's +// API operation UpdateApplicationSettings for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// +// - ValidationException +// +// - InternalServerException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10/UpdateApplicationSettings +func (c *SsmSap) UpdateApplicationSettings(input *UpdateApplicationSettingsInput) (*UpdateApplicationSettingsOutput, error) { + req, out := c.UpdateApplicationSettingsRequest(input) + return out, req.Send() +} + +// UpdateApplicationSettingsWithContext is the same as UpdateApplicationSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateApplicationSettings for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *SsmSap) UpdateApplicationSettingsWithContext(ctx aws.Context, input *UpdateApplicationSettingsInput, opts ...request.Option) (*UpdateApplicationSettingsOutput, error) { + req, out := c.UpdateApplicationSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type Application struct { + _ struct{} `type:"structure"` + + AppRegistryArn *string `type:"string"` + + Arn *string `type:"string"` + + Components []*string `type:"list"` + + Id *string `type:"string"` + + LastUpdated *time.Time `type:"timestamp"` + + Status *string `type:"string" enum:"ApplicationStatus"` + + StatusMessage *string `type:"string"` + + Type *string `type:"string" enum:"ApplicationType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Application) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Application) GoString() string { + return s.String() +} + +// SetAppRegistryArn sets the AppRegistryArn field's value. +func (s *Application) SetAppRegistryArn(v string) *Application { + s.AppRegistryArn = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Application) SetArn(v string) *Application { + s.Arn = &v + return s +} + +// SetComponents sets the Components field's value. +func (s *Application) SetComponents(v []*string) *Application { + s.Components = v + return s +} + +// SetId sets the Id field's value. +func (s *Application) SetId(v string) *Application { + s.Id = &v + return s +} + +// SetLastUpdated sets the LastUpdated field's value. +func (s *Application) SetLastUpdated(v time.Time) *Application { + s.LastUpdated = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Application) SetStatus(v string) *Application { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *Application) SetStatusMessage(v string) *Application { + s.StatusMessage = &v + return s +} + +// SetType sets the Type field's value. +func (s *Application) SetType(v string) *Application { + s.Type = &v + return s +} + +type ApplicationCredential struct { + _ struct{} `type:"structure"` + + // CredentialType is a required field + CredentialType *string `type:"string" required:"true" enum:"CredentialType"` + + // DatabaseName is a required field + DatabaseName *string `min:"1" type:"string" required:"true"` + + // SecretId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ApplicationCredential's + // String and GoString methods. + // SecretId is a required field + SecretId *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplicationCredential) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplicationCredential) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplicationCredential) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplicationCredential"} + if s.CredentialType == nil { + invalidParams.Add(request.NewErrParamRequired("CredentialType")) + } + if s.DatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("DatabaseName")) + } + if s.DatabaseName != nil && len(*s.DatabaseName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 1)) + } + if s.SecretId == nil { + invalidParams.Add(request.NewErrParamRequired("SecretId")) + } + if s.SecretId != nil && len(*s.SecretId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecretId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCredentialType sets the CredentialType field's value. +func (s *ApplicationCredential) SetCredentialType(v string) *ApplicationCredential { + s.CredentialType = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *ApplicationCredential) SetDatabaseName(v string) *ApplicationCredential { + s.DatabaseName = &v + return s +} + +// SetSecretId sets the SecretId field's value. +func (s *ApplicationCredential) SetSecretId(v string) *ApplicationCredential { + s.SecretId = &v + return s +} + +type ApplicationSummary struct { + _ struct{} `type:"structure"` + + Arn *string `type:"string"` + + Id *string `type:"string"` + + Tags map[string]*string `type:"map"` + + Type *string `type:"string" enum:"ApplicationType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplicationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplicationSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ApplicationSummary) SetArn(v string) *ApplicationSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *ApplicationSummary) SetId(v string) *ApplicationSummary { + s.Id = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ApplicationSummary) SetTags(v map[string]*string) *ApplicationSummary { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *ApplicationSummary) SetType(v string) *ApplicationSummary { + s.Type = &v + return s +} + +type Component struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + ComponentId *string `type:"string"` + + ComponentType *string `type:"string" enum:"ComponentType"` + + Databases []*string `type:"list"` + + Hosts []*Host `type:"list"` + + LastUpdated *time.Time `type:"timestamp"` + + PrimaryHost *string `type:"string"` + + Status *string `type:"string" enum:"ComponentStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Component) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Component) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *Component) SetApplicationId(v string) *Component { + s.ApplicationId = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *Component) SetComponentId(v string) *Component { + s.ComponentId = &v + return s +} + +// SetComponentType sets the ComponentType field's value. +func (s *Component) SetComponentType(v string) *Component { + s.ComponentType = &v + return s +} + +// SetDatabases sets the Databases field's value. +func (s *Component) SetDatabases(v []*string) *Component { + s.Databases = v + return s +} + +// SetHosts sets the Hosts field's value. +func (s *Component) SetHosts(v []*Host) *Component { + s.Hosts = v + return s +} + +// SetLastUpdated sets the LastUpdated field's value. +func (s *Component) SetLastUpdated(v time.Time) *Component { + s.LastUpdated = &v + return s +} + +// SetPrimaryHost sets the PrimaryHost field's value. +func (s *Component) SetPrimaryHost(v string) *Component { + s.PrimaryHost = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Component) SetStatus(v string) *Component { + s.Status = &v + return s +} + +type ComponentSummary struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + ComponentId *string `type:"string"` + + ComponentType *string `type:"string" enum:"ComponentType"` + + Tags map[string]*string `type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ComponentSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ComponentSummary) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ComponentSummary) SetApplicationId(v string) *ComponentSummary { + s.ApplicationId = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *ComponentSummary) SetComponentId(v string) *ComponentSummary { + s.ComponentId = &v + return s +} + +// SetComponentType sets the ComponentType field's value. +func (s *ComponentSummary) SetComponentType(v string) *ComponentSummary { + s.ComponentType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ComponentSummary) SetTags(v map[string]*string) *ComponentSummary { + s.Tags = v + return s +} + +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type Database struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + Arn *string `type:"string"` + + ComponentId *string `type:"string"` + + Credentials []*ApplicationCredential `min:"1" type:"list"` + + DatabaseId *string `type:"string"` + + DatabaseName *string `type:"string"` + + DatabaseType *string `type:"string" enum:"DatabaseType"` + + LastUpdated *time.Time `type:"timestamp"` + + PrimaryHost *string `type:"string"` + + SQLPort *int64 `type:"integer"` + + Status *string `type:"string" enum:"DatabaseStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Database) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Database) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *Database) SetApplicationId(v string) *Database { + s.ApplicationId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *Database) SetArn(v string) *Database { + s.Arn = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *Database) SetComponentId(v string) *Database { + s.ComponentId = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *Database) SetCredentials(v []*ApplicationCredential) *Database { + s.Credentials = v + return s +} + +// SetDatabaseId sets the DatabaseId field's value. +func (s *Database) SetDatabaseId(v string) *Database { + s.DatabaseId = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *Database) SetDatabaseName(v string) *Database { + s.DatabaseName = &v + return s +} + +// SetDatabaseType sets the DatabaseType field's value. +func (s *Database) SetDatabaseType(v string) *Database { + s.DatabaseType = &v + return s +} + +// SetLastUpdated sets the LastUpdated field's value. +func (s *Database) SetLastUpdated(v time.Time) *Database { + s.LastUpdated = &v + return s +} + +// SetPrimaryHost sets the PrimaryHost field's value. +func (s *Database) SetPrimaryHost(v string) *Database { + s.PrimaryHost = &v + return s +} + +// SetSQLPort sets the SQLPort field's value. +func (s *Database) SetSQLPort(v int64) *Database { + s.SQLPort = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Database) SetStatus(v string) *Database { + s.Status = &v + return s +} + +type DatabaseSummary struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + Arn *string `type:"string"` + + ComponentId *string `type:"string"` + + DatabaseId *string `type:"string"` + + DatabaseType *string `type:"string" enum:"DatabaseType"` + + Tags map[string]*string `type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatabaseSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatabaseSummary) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DatabaseSummary) SetApplicationId(v string) *DatabaseSummary { + s.ApplicationId = &v + return s +} + +// SetArn sets the Arn field's value. +func (s *DatabaseSummary) SetArn(v string) *DatabaseSummary { + s.Arn = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *DatabaseSummary) SetComponentId(v string) *DatabaseSummary { + s.ComponentId = &v + return s +} + +// SetDatabaseId sets the DatabaseId field's value. +func (s *DatabaseSummary) SetDatabaseId(v string) *DatabaseSummary { + s.DatabaseId = &v + return s +} + +// SetDatabaseType sets the DatabaseType field's value. +func (s *DatabaseSummary) SetDatabaseType(v string) *DatabaseSummary { + s.DatabaseType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *DatabaseSummary) SetTags(v map[string]*string) *DatabaseSummary { + s.Tags = v + return s +} + +type DeleteResourcePermissionInput struct { + _ struct{} `type:"structure"` + + ActionType *string `type:"string" enum:"PermissionActionType"` + + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + SourceResourceArn *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteResourcePermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteResourcePermissionInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActionType sets the ActionType field's value. +func (s *DeleteResourcePermissionInput) SetActionType(v string) *DeleteResourcePermissionInput { + s.ActionType = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *DeleteResourcePermissionInput) SetResourceArn(v string) *DeleteResourcePermissionInput { + s.ResourceArn = &v + return s +} + +// SetSourceResourceArn sets the SourceResourceArn field's value. +func (s *DeleteResourcePermissionInput) SetSourceResourceArn(v string) *DeleteResourcePermissionInput { + s.SourceResourceArn = &v + return s +} + +type DeleteResourcePermissionOutput struct { + _ struct{} `type:"structure"` + + Policy *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteResourcePermissionOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *DeleteResourcePermissionOutput) SetPolicy(v string) *DeleteResourcePermissionOutput { + s.Policy = &v + return s +} + +type DeregisterApplicationInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeregisterApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeregisterApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeregisterApplicationInput) SetApplicationId(v string) *DeregisterApplicationInput { + s.ApplicationId = &v + return s +} + +type DeregisterApplicationOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeregisterApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeregisterApplicationOutput) GoString() string { + return s.String() +} + +type GetApplicationInput struct { + _ struct{} `type:"structure"` + + ApplicationArn *string `type:"string"` + + ApplicationId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetApplicationInput) GoString() string { + return s.String() +} + +// SetApplicationArn sets the ApplicationArn field's value. +func (s *GetApplicationInput) SetApplicationArn(v string) *GetApplicationInput { + s.ApplicationArn = &v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationInput) SetApplicationId(v string) *GetApplicationInput { + s.ApplicationId = &v + return s +} + +type GetApplicationOutput struct { + _ struct{} `type:"structure"` + + Application *Application `type:"structure"` + + Tags map[string]*string `type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetApplicationOutput) GoString() string { + return s.String() +} + +// SetApplication sets the Application field's value. +func (s *GetApplicationOutput) SetApplication(v *Application) *GetApplicationOutput { + s.Application = v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetApplicationOutput) SetTags(v map[string]*string) *GetApplicationOutput { + s.Tags = v + return s +} + +type GetComponentInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `type:"string" required:"true"` + + // ComponentId is a required field + ComponentId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetComponentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetComponentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetComponentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetComponentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ComponentId == nil { + invalidParams.Add(request.NewErrParamRequired("ComponentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetComponentInput) SetApplicationId(v string) *GetComponentInput { + s.ApplicationId = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *GetComponentInput) SetComponentId(v string) *GetComponentInput { + s.ComponentId = &v + return s +} + +type GetComponentOutput struct { + _ struct{} `type:"structure"` + + Component *Component `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetComponentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetComponentOutput) GoString() string { + return s.String() +} + +// SetComponent sets the Component field's value. +func (s *GetComponentOutput) SetComponent(v *Component) *GetComponentOutput { + s.Component = v + return s +} + +type GetDatabaseInput struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + ComponentId *string `type:"string"` + + DatabaseArn *string `type:"string"` + + DatabaseId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDatabaseInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDatabaseInput) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetDatabaseInput) SetApplicationId(v string) *GetDatabaseInput { + s.ApplicationId = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *GetDatabaseInput) SetComponentId(v string) *GetDatabaseInput { + s.ComponentId = &v + return s +} + +// SetDatabaseArn sets the DatabaseArn field's value. +func (s *GetDatabaseInput) SetDatabaseArn(v string) *GetDatabaseInput { + s.DatabaseArn = &v + return s +} + +// SetDatabaseId sets the DatabaseId field's value. +func (s *GetDatabaseInput) SetDatabaseId(v string) *GetDatabaseInput { + s.DatabaseId = &v + return s +} + +type GetDatabaseOutput struct { + _ struct{} `type:"structure"` + + Database *Database `type:"structure"` + + Tags map[string]*string `type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDatabaseOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDatabaseOutput) GoString() string { + return s.String() +} + +// SetDatabase sets the Database field's value. +func (s *GetDatabaseOutput) SetDatabase(v *Database) *GetDatabaseOutput { + s.Database = v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetDatabaseOutput) SetTags(v map[string]*string) *GetDatabaseOutput { + s.Tags = v + return s +} + +type GetOperationInput struct { + _ struct{} `type:"structure"` + + // OperationId is a required field + OperationId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOperationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOperationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOperationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOperationInput"} + if s.OperationId == nil { + invalidParams.Add(request.NewErrParamRequired("OperationId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetOperationId sets the OperationId field's value. +func (s *GetOperationInput) SetOperationId(v string) *GetOperationInput { + s.OperationId = &v + return s +} + +type GetOperationOutput struct { + _ struct{} `type:"structure"` + + Operation *Operation `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOperationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetOperationOutput) GoString() string { + return s.String() +} + +// SetOperation sets the Operation field's value. +func (s *GetOperationOutput) SetOperation(v *Operation) *GetOperationOutput { + s.Operation = v + return s +} + +type GetResourcePermissionInput struct { + _ struct{} `type:"structure"` + + ActionType *string `type:"string" enum:"PermissionActionType"` + + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetResourcePermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourcePermissionInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActionType sets the ActionType field's value. +func (s *GetResourcePermissionInput) SetActionType(v string) *GetResourcePermissionInput { + s.ActionType = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *GetResourcePermissionInput) SetResourceArn(v string) *GetResourcePermissionInput { + s.ResourceArn = &v + return s +} + +type GetResourcePermissionOutput struct { + _ struct{} `type:"structure"` + + Policy *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetResourcePermissionOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *GetResourcePermissionOutput) SetPolicy(v string) *GetResourcePermissionOutput { + s.Policy = &v + return s +} + +type Host struct { + _ struct{} `type:"structure"` + + HostIp *string `type:"string"` + + HostName *string `type:"string"` + + HostRole *string `type:"string" enum:"HostRole"` + + InstanceId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Host) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Host) GoString() string { + return s.String() +} + +// SetHostIp sets the HostIp field's value. +func (s *Host) SetHostIp(v string) *Host { + s.HostIp = &v + return s +} + +// SetHostName sets the HostName field's value. +func (s *Host) SetHostName(v string) *Host { + s.HostName = &v + return s +} + +// SetHostRole sets the HostRole field's value. +func (s *Host) SetHostRole(v string) *Host { + s.HostRole = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *Host) SetInstanceId(v string) *Host { + s.InstanceId = &v + return s +} + +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListApplicationsInput struct { + _ struct{} `type:"structure"` + + MaxResults *int64 `min:"1" type:"integer"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListApplicationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListApplicationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListApplicationsInput) SetMaxResults(v int64) *ListApplicationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { + s.NextToken = &v + return s +} + +type ListApplicationsOutput struct { + _ struct{} `type:"structure"` + + Applications []*ApplicationSummary `type:"list"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListApplicationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListApplicationsOutput) GoString() string { + return s.String() +} + +// SetApplications sets the Applications field's value. +func (s *ListApplicationsOutput) SetApplications(v []*ApplicationSummary) *ListApplicationsOutput { + s.Applications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { + s.NextToken = &v + return s +} + +type ListComponentsInput struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + MaxResults *int64 `min:"1" type:"integer"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListComponentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListComponentsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListComponentsInput) SetApplicationId(v string) *ListComponentsInput { + s.ApplicationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListComponentsInput) SetMaxResults(v int64) *ListComponentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListComponentsInput) SetNextToken(v string) *ListComponentsInput { + s.NextToken = &v + return s +} + +type ListComponentsOutput struct { + _ struct{} `type:"structure"` + + Components []*ComponentSummary `type:"list"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListComponentsOutput) GoString() string { + return s.String() +} + +// SetComponents sets the Components field's value. +func (s *ListComponentsOutput) SetComponents(v []*ComponentSummary) *ListComponentsOutput { + s.Components = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListComponentsOutput) SetNextToken(v string) *ListComponentsOutput { + s.NextToken = &v + return s +} + +type ListDatabasesInput struct { + _ struct{} `type:"structure"` + + ApplicationId *string `type:"string"` + + ComponentId *string `type:"string"` + + MaxResults *int64 `min:"1" type:"integer"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDatabasesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDatabasesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDatabasesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDatabasesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListDatabasesInput) SetApplicationId(v string) *ListDatabasesInput { + s.ApplicationId = &v + return s +} + +// SetComponentId sets the ComponentId field's value. +func (s *ListDatabasesInput) SetComponentId(v string) *ListDatabasesInput { + s.ComponentId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDatabasesInput) SetMaxResults(v int64) *ListDatabasesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDatabasesInput) SetNextToken(v string) *ListDatabasesInput { + s.NextToken = &v + return s +} + +type ListDatabasesOutput struct { + _ struct{} `type:"structure"` + + Databases []*DatabaseSummary `type:"list"` + + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDatabasesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListDatabasesOutput) GoString() string { + return s.String() +} + +// SetDatabases sets the Databases field's value. +func (s *ListDatabasesOutput) SetDatabases(v []*DatabaseSummary) *ListDatabasesOutput { + s.Databases = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDatabasesOutput) SetNextToken(v string) *ListDatabasesOutput { + s.NextToken = &v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +type Operation struct { + _ struct{} `type:"structure"` + + EndTime *time.Time `type:"timestamp"` + + Id *string `type:"string"` + + LastUpdatedTime *time.Time `type:"timestamp"` + + Properties map[string]*string `type:"map"` + + ResourceArn *string `type:"string"` + + ResourceId *string `min:"1" type:"string"` + + ResourceType *string `min:"1" type:"string"` + + StartTime *time.Time `type:"timestamp"` + + Status *string `type:"string" enum:"OperationStatus"` + + StatusMessage *string `type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Operation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Operation) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *Operation) SetEndTime(v time.Time) *Operation { + s.EndTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *Operation) SetId(v string) *Operation { + s.Id = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Operation) SetLastUpdatedTime(v time.Time) *Operation { + s.LastUpdatedTime = &v + return s +} + +// SetProperties sets the Properties field's value. +func (s *Operation) SetProperties(v map[string]*string) *Operation { + s.Properties = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *Operation) SetResourceArn(v string) *Operation { + s.ResourceArn = &v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *Operation) SetResourceId(v string) *Operation { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *Operation) SetResourceType(v string) *Operation { + s.ResourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *Operation) SetStartTime(v time.Time) *Operation { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Operation) SetStatus(v string) *Operation { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *Operation) SetStatusMessage(v string) *Operation { + s.StatusMessage = &v + return s +} + +// SetType sets the Type field's value. +func (s *Operation) SetType(v string) *Operation { + s.Type = &v + return s +} + +type PutResourcePermissionInput struct { + _ struct{} `type:"structure"` + + // ActionType is a required field + ActionType *string `type:"string" required:"true" enum:"PermissionActionType"` + + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // SourceResourceArn is a required field + SourceResourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutResourcePermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourcePermissionInput"} + if s.ActionType == nil { + invalidParams.Add(request.NewErrParamRequired("ActionType")) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.SourceResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActionType sets the ActionType field's value. +func (s *PutResourcePermissionInput) SetActionType(v string) *PutResourcePermissionInput { + s.ActionType = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *PutResourcePermissionInput) SetResourceArn(v string) *PutResourcePermissionInput { + s.ResourceArn = &v + return s +} + +// SetSourceResourceArn sets the SourceResourceArn field's value. +func (s *PutResourcePermissionInput) SetSourceResourceArn(v string) *PutResourcePermissionInput { + s.SourceResourceArn = &v + return s +} + +type PutResourcePermissionOutput struct { + _ struct{} `type:"structure"` + + Policy *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PutResourcePermissionOutput) GoString() string { + return s.String() +} + +// SetPolicy sets the Policy field's value. +func (s *PutResourcePermissionOutput) SetPolicy(v string) *PutResourcePermissionOutput { + s.Policy = &v + return s +} + +type RegisterApplicationInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `type:"string" required:"true"` + + // ApplicationType is a required field + ApplicationType *string `type:"string" required:"true" enum:"ApplicationType"` + + // Credentials is a required field + Credentials []*ApplicationCredential `min:"1" type:"list" required:"true"` + + // Instances is a required field + Instances []*string `min:"1" type:"list" required:"true"` + + SapInstanceNumber *string `type:"string"` + + Sid *string `type:"string"` + + Tags map[string]*string `type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RegisterApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RegisterApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RegisterApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationType == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationType")) + } + if s.Credentials == nil { + invalidParams.Add(request.NewErrParamRequired("Credentials")) + } + if s.Credentials != nil && len(s.Credentials) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Credentials", 1)) + } + if s.Instances == nil { + invalidParams.Add(request.NewErrParamRequired("Instances")) + } + if s.Instances != nil && len(s.Instances) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Instances", 1)) + } + if s.Credentials != nil { + for i, v := range s.Credentials { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Credentials", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *RegisterApplicationInput) SetApplicationId(v string) *RegisterApplicationInput { + s.ApplicationId = &v + return s +} + +// SetApplicationType sets the ApplicationType field's value. +func (s *RegisterApplicationInput) SetApplicationType(v string) *RegisterApplicationInput { + s.ApplicationType = &v + return s +} + +// SetCredentials sets the Credentials field's value. +func (s *RegisterApplicationInput) SetCredentials(v []*ApplicationCredential) *RegisterApplicationInput { + s.Credentials = v + return s +} + +// SetInstances sets the Instances field's value. +func (s *RegisterApplicationInput) SetInstances(v []*string) *RegisterApplicationInput { + s.Instances = v + return s +} + +// SetSapInstanceNumber sets the SapInstanceNumber field's value. +func (s *RegisterApplicationInput) SetSapInstanceNumber(v string) *RegisterApplicationInput { + s.SapInstanceNumber = &v + return s +} + +// SetSid sets the Sid field's value. +func (s *RegisterApplicationInput) SetSid(v string) *RegisterApplicationInput { + s.Sid = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *RegisterApplicationInput) SetTags(v map[string]*string) *RegisterApplicationInput { + s.Tags = v + return s +} + +type RegisterApplicationOutput struct { + _ struct{} `type:"structure"` + + Application *Application `type:"structure"` + + OperationId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RegisterApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RegisterApplicationOutput) GoString() string { + return s.String() +} + +// SetApplication sets the Application field's value. +func (s *RegisterApplicationOutput) SetApplication(v *Application) *RegisterApplicationOutput { + s.Application = v + return s +} + +// SetOperationId sets the OperationId field's value. +func (s *RegisterApplicationOutput) SetOperationId(v string) *RegisterApplicationOutput { + s.OperationId = &v + return s +} + +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +type UpdateApplicationSettingsInput struct { + _ struct{} `type:"structure"` + + // ApplicationId is a required field + ApplicationId *string `type:"string" required:"true"` + + CredentialsToAddOrUpdate []*ApplicationCredential `min:"1" type:"list"` + + CredentialsToRemove []*ApplicationCredential `min:"1" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateApplicationSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateApplicationSettingsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateApplicationSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationSettingsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.CredentialsToAddOrUpdate != nil && len(s.CredentialsToAddOrUpdate) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CredentialsToAddOrUpdate", 1)) + } + if s.CredentialsToRemove != nil && len(s.CredentialsToRemove) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CredentialsToRemove", 1)) + } + if s.CredentialsToAddOrUpdate != nil { + for i, v := range s.CredentialsToAddOrUpdate { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CredentialsToAddOrUpdate", i), err.(request.ErrInvalidParams)) + } + } + } + if s.CredentialsToRemove != nil { + for i, v := range s.CredentialsToRemove { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CredentialsToRemove", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateApplicationSettingsInput) SetApplicationId(v string) *UpdateApplicationSettingsInput { + s.ApplicationId = &v + return s +} + +// SetCredentialsToAddOrUpdate sets the CredentialsToAddOrUpdate field's value. +func (s *UpdateApplicationSettingsInput) SetCredentialsToAddOrUpdate(v []*ApplicationCredential) *UpdateApplicationSettingsInput { + s.CredentialsToAddOrUpdate = v + return s +} + +// SetCredentialsToRemove sets the CredentialsToRemove field's value. +func (s *UpdateApplicationSettingsInput) SetCredentialsToRemove(v []*ApplicationCredential) *UpdateApplicationSettingsInput { + s.CredentialsToRemove = v + return s +} + +type UpdateApplicationSettingsOutput struct { + _ struct{} `type:"structure"` + + Message *string `type:"string"` + + OperationIds []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateApplicationSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateApplicationSettingsOutput) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *UpdateApplicationSettingsOutput) SetMessage(v string) *UpdateApplicationSettingsOutput { + s.Message = &v + return s +} + +// SetOperationIds sets the OperationIds field's value. +func (s *UpdateApplicationSettingsOutput) SetOperationIds(v []*string) *UpdateApplicationSettingsOutput { + s.OperationIds = v + return s +} + +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +const ( + // ApplicationStatusActivated is a ApplicationStatus enum value + ApplicationStatusActivated = "ACTIVATED" + + // ApplicationStatusStarting is a ApplicationStatus enum value + ApplicationStatusStarting = "STARTING" + + // ApplicationStatusStopped is a ApplicationStatus enum value + ApplicationStatusStopped = "STOPPED" + + // ApplicationStatusStopping is a ApplicationStatus enum value + ApplicationStatusStopping = "STOPPING" + + // ApplicationStatusFailed is a ApplicationStatus enum value + ApplicationStatusFailed = "FAILED" + + // ApplicationStatusRegistering is a ApplicationStatus enum value + ApplicationStatusRegistering = "REGISTERING" + + // ApplicationStatusDeleting is a ApplicationStatus enum value + ApplicationStatusDeleting = "DELETING" + + // ApplicationStatusUnknown is a ApplicationStatus enum value + ApplicationStatusUnknown = "UNKNOWN" +) + +// ApplicationStatus_Values returns all elements of the ApplicationStatus enum +func ApplicationStatus_Values() []string { + return []string{ + ApplicationStatusActivated, + ApplicationStatusStarting, + ApplicationStatusStopped, + ApplicationStatusStopping, + ApplicationStatusFailed, + ApplicationStatusRegistering, + ApplicationStatusDeleting, + ApplicationStatusUnknown, + } +} + +const ( + // ApplicationTypeHana is a ApplicationType enum value + ApplicationTypeHana = "HANA" +) + +// ApplicationType_Values returns all elements of the ApplicationType enum +func ApplicationType_Values() []string { + return []string{ + ApplicationTypeHana, + } +} + +const ( + // ComponentStatusActivated is a ComponentStatus enum value + ComponentStatusActivated = "ACTIVATED" +) + +// ComponentStatus_Values returns all elements of the ComponentStatus enum +func ComponentStatus_Values() []string { + return []string{ + ComponentStatusActivated, + } +} + +const ( + // ComponentTypeHana is a ComponentType enum value + ComponentTypeHana = "HANA" +) + +// ComponentType_Values returns all elements of the ComponentType enum +func ComponentType_Values() []string { + return []string{ + ComponentTypeHana, + } +} + +const ( + // CredentialTypeAdmin is a CredentialType enum value + CredentialTypeAdmin = "ADMIN" +) + +// CredentialType_Values returns all elements of the CredentialType enum +func CredentialType_Values() []string { + return []string{ + CredentialTypeAdmin, + } +} + +const ( + // DatabaseStatusRunning is a DatabaseStatus enum value + DatabaseStatusRunning = "RUNNING" + + // DatabaseStatusStarting is a DatabaseStatus enum value + DatabaseStatusStarting = "STARTING" + + // DatabaseStatusStopped is a DatabaseStatus enum value + DatabaseStatusStopped = "STOPPED" + + // DatabaseStatusWarning is a DatabaseStatus enum value + DatabaseStatusWarning = "WARNING" + + // DatabaseStatusUnknown is a DatabaseStatus enum value + DatabaseStatusUnknown = "UNKNOWN" +) + +// DatabaseStatus_Values returns all elements of the DatabaseStatus enum +func DatabaseStatus_Values() []string { + return []string{ + DatabaseStatusRunning, + DatabaseStatusStarting, + DatabaseStatusStopped, + DatabaseStatusWarning, + DatabaseStatusUnknown, + } +} + +const ( + // DatabaseTypeSystem is a DatabaseType enum value + DatabaseTypeSystem = "SYSTEM" + + // DatabaseTypeTenant is a DatabaseType enum value + DatabaseTypeTenant = "TENANT" +) + +// DatabaseType_Values returns all elements of the DatabaseType enum +func DatabaseType_Values() []string { + return []string{ + DatabaseTypeSystem, + DatabaseTypeTenant, + } +} + +const ( + // HostRoleLeader is a HostRole enum value + HostRoleLeader = "LEADER" + + // HostRoleWorker is a HostRole enum value + HostRoleWorker = "WORKER" + + // HostRoleStandby is a HostRole enum value + HostRoleStandby = "STANDBY" + + // HostRoleUnknown is a HostRole enum value + HostRoleUnknown = "UNKNOWN" +) + +// HostRole_Values returns all elements of the HostRole enum +func HostRole_Values() []string { + return []string{ + HostRoleLeader, + HostRoleWorker, + HostRoleStandby, + HostRoleUnknown, + } +} + +const ( + // OperationStatusInprogress is a OperationStatus enum value + OperationStatusInprogress = "INPROGRESS" + + // OperationStatusSuccess is a OperationStatus enum value + OperationStatusSuccess = "SUCCESS" + + // OperationStatusError is a OperationStatus enum value + OperationStatusError = "ERROR" +) + +// OperationStatus_Values returns all elements of the OperationStatus enum +func OperationStatus_Values() []string { + return []string{ + OperationStatusInprogress, + OperationStatusSuccess, + OperationStatusError, + } +} + +const ( + // PermissionActionTypeRestore is a PermissionActionType enum value + PermissionActionTypeRestore = "RESTORE" +) + +// PermissionActionType_Values returns all elements of the PermissionActionType enum +func PermissionActionType_Values() []string { + return []string{ + PermissionActionTypeRestore, + } +} diff --git a/service/ssmsap/doc.go b/service/ssmsap/doc.go new file mode 100644 index 0000000000..45f564c6cc --- /dev/null +++ b/service/ssmsap/doc.go @@ -0,0 +1,26 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package ssmsap provides the client and types for making API +// requests to AWS Systems Manager for SAP. +// +// See https://docs.aws.amazon.com/goto/WebAPI/ssmsap-2018-05-10 for more information on this service. +// +// See ssmsap package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/ssmsap/ +// +// # Using the Client +// +// To contact AWS Systems Manager for SAP with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the AWS Systems Manager for SAP client SsmSap for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/ssmsap/#New +package ssmsap diff --git a/service/ssmsap/errors.go b/service/ssmsap/errors.go new file mode 100644 index 0000000000..68634ce89c --- /dev/null +++ b/service/ssmsap/errors.go @@ -0,0 +1,33 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ssmsap + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeConflictException for service response error code + // "ConflictException". + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/ssmsap/service.go b/service/ssmsap/service.go new file mode 100644 index 0000000000..ee12458e93 --- /dev/null +++ b/service/ssmsap/service.go @@ -0,0 +1,106 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package ssmsap + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// SsmSap provides the API operation methods for making requests to +// AWS Systems Manager for SAP. See this package's package overview docs +// for details on the service. +// +// SsmSap methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type SsmSap struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "SsmSap" // Name of service. + EndpointsID = "ssm-sap" // ID to lookup a service endpoint with. + ServiceID = "SsmSap" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the SsmSap client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// +// mySession := session.Must(session.NewSession()) +// +// // Create a SsmSap client from just a session. +// svc := ssmsap.New(mySession) +// +// // Create a SsmSap client with additional configuration +// svc := ssmsap.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *SsmSap { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "ssm-sap" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *SsmSap { + svc := &SsmSap{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2018-05-10", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a SsmSap operation and runs any +// custom request initialization. +func (c *SsmSap) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/ssmsap/ssmsapiface/interface.go b/service/ssmsap/ssmsapiface/interface.go new file mode 100644 index 0000000000..d0649ddcab --- /dev/null +++ b/service/ssmsap/ssmsapiface/interface.go @@ -0,0 +1,137 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package ssmsapiface provides an interface to enable mocking the AWS Systems Manager for SAP service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package ssmsapiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/ssmsap" +) + +// SsmSapAPI provides an interface to enable mocking the +// ssmsap.SsmSap service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // AWS Systems Manager for SAP. +// func myFunc(svc ssmsapiface.SsmSapAPI) bool { +// // Make svc.DeleteResourcePermission request +// } +// +// func main() { +// sess := session.New() +// svc := ssmsap.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockSsmSapClient struct { +// ssmsapiface.SsmSapAPI +// } +// func (m *mockSsmSapClient) DeleteResourcePermission(input *ssmsap.DeleteResourcePermissionInput) (*ssmsap.DeleteResourcePermissionOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockSsmSapClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type SsmSapAPI interface { + DeleteResourcePermission(*ssmsap.DeleteResourcePermissionInput) (*ssmsap.DeleteResourcePermissionOutput, error) + DeleteResourcePermissionWithContext(aws.Context, *ssmsap.DeleteResourcePermissionInput, ...request.Option) (*ssmsap.DeleteResourcePermissionOutput, error) + DeleteResourcePermissionRequest(*ssmsap.DeleteResourcePermissionInput) (*request.Request, *ssmsap.DeleteResourcePermissionOutput) + + DeregisterApplication(*ssmsap.DeregisterApplicationInput) (*ssmsap.DeregisterApplicationOutput, error) + DeregisterApplicationWithContext(aws.Context, *ssmsap.DeregisterApplicationInput, ...request.Option) (*ssmsap.DeregisterApplicationOutput, error) + DeregisterApplicationRequest(*ssmsap.DeregisterApplicationInput) (*request.Request, *ssmsap.DeregisterApplicationOutput) + + GetApplication(*ssmsap.GetApplicationInput) (*ssmsap.GetApplicationOutput, error) + GetApplicationWithContext(aws.Context, *ssmsap.GetApplicationInput, ...request.Option) (*ssmsap.GetApplicationOutput, error) + GetApplicationRequest(*ssmsap.GetApplicationInput) (*request.Request, *ssmsap.GetApplicationOutput) + + GetComponent(*ssmsap.GetComponentInput) (*ssmsap.GetComponentOutput, error) + GetComponentWithContext(aws.Context, *ssmsap.GetComponentInput, ...request.Option) (*ssmsap.GetComponentOutput, error) + GetComponentRequest(*ssmsap.GetComponentInput) (*request.Request, *ssmsap.GetComponentOutput) + + GetDatabase(*ssmsap.GetDatabaseInput) (*ssmsap.GetDatabaseOutput, error) + GetDatabaseWithContext(aws.Context, *ssmsap.GetDatabaseInput, ...request.Option) (*ssmsap.GetDatabaseOutput, error) + GetDatabaseRequest(*ssmsap.GetDatabaseInput) (*request.Request, *ssmsap.GetDatabaseOutput) + + GetOperation(*ssmsap.GetOperationInput) (*ssmsap.GetOperationOutput, error) + GetOperationWithContext(aws.Context, *ssmsap.GetOperationInput, ...request.Option) (*ssmsap.GetOperationOutput, error) + GetOperationRequest(*ssmsap.GetOperationInput) (*request.Request, *ssmsap.GetOperationOutput) + + GetResourcePermission(*ssmsap.GetResourcePermissionInput) (*ssmsap.GetResourcePermissionOutput, error) + GetResourcePermissionWithContext(aws.Context, *ssmsap.GetResourcePermissionInput, ...request.Option) (*ssmsap.GetResourcePermissionOutput, error) + GetResourcePermissionRequest(*ssmsap.GetResourcePermissionInput) (*request.Request, *ssmsap.GetResourcePermissionOutput) + + ListApplications(*ssmsap.ListApplicationsInput) (*ssmsap.ListApplicationsOutput, error) + ListApplicationsWithContext(aws.Context, *ssmsap.ListApplicationsInput, ...request.Option) (*ssmsap.ListApplicationsOutput, error) + ListApplicationsRequest(*ssmsap.ListApplicationsInput) (*request.Request, *ssmsap.ListApplicationsOutput) + + ListApplicationsPages(*ssmsap.ListApplicationsInput, func(*ssmsap.ListApplicationsOutput, bool) bool) error + ListApplicationsPagesWithContext(aws.Context, *ssmsap.ListApplicationsInput, func(*ssmsap.ListApplicationsOutput, bool) bool, ...request.Option) error + + ListComponents(*ssmsap.ListComponentsInput) (*ssmsap.ListComponentsOutput, error) + ListComponentsWithContext(aws.Context, *ssmsap.ListComponentsInput, ...request.Option) (*ssmsap.ListComponentsOutput, error) + ListComponentsRequest(*ssmsap.ListComponentsInput) (*request.Request, *ssmsap.ListComponentsOutput) + + ListComponentsPages(*ssmsap.ListComponentsInput, func(*ssmsap.ListComponentsOutput, bool) bool) error + ListComponentsPagesWithContext(aws.Context, *ssmsap.ListComponentsInput, func(*ssmsap.ListComponentsOutput, bool) bool, ...request.Option) error + + ListDatabases(*ssmsap.ListDatabasesInput) (*ssmsap.ListDatabasesOutput, error) + ListDatabasesWithContext(aws.Context, *ssmsap.ListDatabasesInput, ...request.Option) (*ssmsap.ListDatabasesOutput, error) + ListDatabasesRequest(*ssmsap.ListDatabasesInput) (*request.Request, *ssmsap.ListDatabasesOutput) + + ListDatabasesPages(*ssmsap.ListDatabasesInput, func(*ssmsap.ListDatabasesOutput, bool) bool) error + ListDatabasesPagesWithContext(aws.Context, *ssmsap.ListDatabasesInput, func(*ssmsap.ListDatabasesOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*ssmsap.ListTagsForResourceInput) (*ssmsap.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *ssmsap.ListTagsForResourceInput, ...request.Option) (*ssmsap.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*ssmsap.ListTagsForResourceInput) (*request.Request, *ssmsap.ListTagsForResourceOutput) + + PutResourcePermission(*ssmsap.PutResourcePermissionInput) (*ssmsap.PutResourcePermissionOutput, error) + PutResourcePermissionWithContext(aws.Context, *ssmsap.PutResourcePermissionInput, ...request.Option) (*ssmsap.PutResourcePermissionOutput, error) + PutResourcePermissionRequest(*ssmsap.PutResourcePermissionInput) (*request.Request, *ssmsap.PutResourcePermissionOutput) + + RegisterApplication(*ssmsap.RegisterApplicationInput) (*ssmsap.RegisterApplicationOutput, error) + RegisterApplicationWithContext(aws.Context, *ssmsap.RegisterApplicationInput, ...request.Option) (*ssmsap.RegisterApplicationOutput, error) + RegisterApplicationRequest(*ssmsap.RegisterApplicationInput) (*request.Request, *ssmsap.RegisterApplicationOutput) + + TagResource(*ssmsap.TagResourceInput) (*ssmsap.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *ssmsap.TagResourceInput, ...request.Option) (*ssmsap.TagResourceOutput, error) + TagResourceRequest(*ssmsap.TagResourceInput) (*request.Request, *ssmsap.TagResourceOutput) + + UntagResource(*ssmsap.UntagResourceInput) (*ssmsap.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *ssmsap.UntagResourceInput, ...request.Option) (*ssmsap.UntagResourceOutput, error) + UntagResourceRequest(*ssmsap.UntagResourceInput) (*request.Request, *ssmsap.UntagResourceOutput) + + UpdateApplicationSettings(*ssmsap.UpdateApplicationSettingsInput) (*ssmsap.UpdateApplicationSettingsOutput, error) + UpdateApplicationSettingsWithContext(aws.Context, *ssmsap.UpdateApplicationSettingsInput, ...request.Option) (*ssmsap.UpdateApplicationSettingsOutput, error) + UpdateApplicationSettingsRequest(*ssmsap.UpdateApplicationSettingsInput) (*request.Request, *ssmsap.UpdateApplicationSettingsOutput) +} + +var _ SsmSapAPI = (*ssmsap.SsmSap)(nil) diff --git a/service/workspaces/api.go b/service/workspaces/api.go index 9e05daf1a0..a9047f5919 100644 --- a/service/workspaces/api.go +++ b/service/workspaces/api.go @@ -4108,6 +4108,96 @@ func (c *WorkSpaces) ModifyAccountWithContext(ctx aws.Context, input *ModifyAcco return out, req.Send() } +const opModifyCertificateBasedAuthProperties = "ModifyCertificateBasedAuthProperties" + +// ModifyCertificateBasedAuthPropertiesRequest generates a "aws/request.Request" representing the +// client's request for the ModifyCertificateBasedAuthProperties operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ModifyCertificateBasedAuthProperties for more information on using the ModifyCertificateBasedAuthProperties +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ModifyCertificateBasedAuthPropertiesRequest method. +// req, resp := client.ModifyCertificateBasedAuthPropertiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyCertificateBasedAuthProperties +func (c *WorkSpaces) ModifyCertificateBasedAuthPropertiesRequest(input *ModifyCertificateBasedAuthPropertiesInput) (req *request.Request, output *ModifyCertificateBasedAuthPropertiesOutput) { + op := &request.Operation{ + Name: opModifyCertificateBasedAuthProperties, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyCertificateBasedAuthPropertiesInput{} + } + + output = &ModifyCertificateBasedAuthPropertiesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// ModifyCertificateBasedAuthProperties API operation for Amazon WorkSpaces. +// +// Modifies the properties of the certificate-based authentication you want +// to use with your WorkSpaces. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon WorkSpaces's +// API operation ModifyCertificateBasedAuthProperties for usage and error information. +// +// Returned Error Types: +// +// - AccessDeniedException +// The user is not authorized to access a resource. +// +// - InvalidParameterValuesException +// One or more parameter values are not valid. +// +// - OperationNotSupportedException +// This operation is not supported. +// +// - ResourceNotFoundException +// The resource could not be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyCertificateBasedAuthProperties +func (c *WorkSpaces) ModifyCertificateBasedAuthProperties(input *ModifyCertificateBasedAuthPropertiesInput) (*ModifyCertificateBasedAuthPropertiesOutput, error) { + req, out := c.ModifyCertificateBasedAuthPropertiesRequest(input) + return out, req.Send() +} + +// ModifyCertificateBasedAuthPropertiesWithContext is the same as ModifyCertificateBasedAuthProperties with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyCertificateBasedAuthProperties for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkSpaces) ModifyCertificateBasedAuthPropertiesWithContext(ctx aws.Context, input *ModifyCertificateBasedAuthPropertiesInput, opts ...request.Option) (*ModifyCertificateBasedAuthPropertiesOutput, error) { + req, out := c.ModifyCertificateBasedAuthPropertiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opModifyClientProperties = "ModifyClientProperties" // ModifyClientPropertiesRequest generates a "aws/request.Request" representing the @@ -6361,6 +6451,62 @@ func (s AuthorizeIpRulesOutput) GoString() string { return s.String() } +// Describes the properties of the certificate-based authentication you want +// to use with your WorkSpaces. +type CertificateBasedAuthProperties struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager + // Private CA resource. + CertificateAuthorityArn *string `min:"5" type:"string"` + + // The status of the certificate-based authentication properties. + Status *string `type:"string" enum:"CertificateBasedAuthStatusEnum"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CertificateBasedAuthProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CertificateBasedAuthProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CertificateBasedAuthProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CertificateBasedAuthProperties"} + if s.CertificateAuthorityArn != nil && len(*s.CertificateAuthorityArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("CertificateAuthorityArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateAuthorityArn sets the CertificateAuthorityArn field's value. +func (s *CertificateBasedAuthProperties) SetCertificateAuthorityArn(v string) *CertificateBasedAuthProperties { + s.CertificateAuthorityArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *CertificateBasedAuthProperties) SetStatus(v string) *CertificateBasedAuthProperties { + s.Status = &v + return s +} + // Describes an Amazon WorkSpaces client. type ClientProperties struct { _ struct{} `type:"structure"` @@ -12038,6 +12184,100 @@ func (s ModifyAccountOutput) GoString() string { return s.String() } +type ModifyCertificateBasedAuthPropertiesInput struct { + _ struct{} `type:"structure"` + + // The properties of the certificate-based authentication. + CertificateBasedAuthProperties *CertificateBasedAuthProperties `type:"structure"` + + // The properties of the certificate-based authentication you want to delete. + PropertiesToDelete []*string `type:"list" enum:"DeletableCertificateBasedAuthProperty"` + + // The resource identifiers, in the form of directory IDs. + // + // ResourceId is a required field + ResourceId *string `min:"10" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ModifyCertificateBasedAuthPropertiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ModifyCertificateBasedAuthPropertiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyCertificateBasedAuthPropertiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyCertificateBasedAuthPropertiesInput"} + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 10 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 10)) + } + if s.CertificateBasedAuthProperties != nil { + if err := s.CertificateBasedAuthProperties.Validate(); err != nil { + invalidParams.AddNested("CertificateBasedAuthProperties", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateBasedAuthProperties sets the CertificateBasedAuthProperties field's value. +func (s *ModifyCertificateBasedAuthPropertiesInput) SetCertificateBasedAuthProperties(v *CertificateBasedAuthProperties) *ModifyCertificateBasedAuthPropertiesInput { + s.CertificateBasedAuthProperties = v + return s +} + +// SetPropertiesToDelete sets the PropertiesToDelete field's value. +func (s *ModifyCertificateBasedAuthPropertiesInput) SetPropertiesToDelete(v []*string) *ModifyCertificateBasedAuthPropertiesInput { + s.PropertiesToDelete = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ModifyCertificateBasedAuthPropertiesInput) SetResourceId(v string) *ModifyCertificateBasedAuthPropertiesInput { + s.ResourceId = &v + return s +} + +type ModifyCertificateBasedAuthPropertiesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ModifyCertificateBasedAuthPropertiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ModifyCertificateBasedAuthPropertiesOutput) GoString() string { + return s.String() +} + type ModifyClientPropertiesInput struct { _ struct{} `type:"structure"` @@ -15672,6 +15912,11 @@ type WorkspaceDirectory struct { // The directory alias. Alias *string `type:"string"` + // The certificate-based authentication properties used to authenticate SAML + // 2.0 Identity Provider (IdP) user identities to Active Directory for WorkSpaces + // login. + CertificateBasedAuthProperties *CertificateBasedAuthProperties `type:"structure"` + // The user name for the service account. CustomerUserName *string `min:"1" type:"string"` @@ -15756,6 +16001,12 @@ func (s *WorkspaceDirectory) SetAlias(v string) *WorkspaceDirectory { return s } +// SetCertificateBasedAuthProperties sets the CertificateBasedAuthProperties field's value. +func (s *WorkspaceDirectory) SetCertificateBasedAuthProperties(v *CertificateBasedAuthProperties) *WorkspaceDirectory { + s.CertificateBasedAuthProperties = v + return s +} + // SetCustomerUserName sets the CustomerUserName field's value. func (s *WorkspaceDirectory) SetCustomerUserName(v string) *WorkspaceDirectory { s.CustomerUserName = &v @@ -16337,6 +16588,22 @@ func AssociationStatus_Values() []string { } } +const ( + // CertificateBasedAuthStatusEnumDisabled is a CertificateBasedAuthStatusEnum enum value + CertificateBasedAuthStatusEnumDisabled = "DISABLED" + + // CertificateBasedAuthStatusEnumEnabled is a CertificateBasedAuthStatusEnum enum value + CertificateBasedAuthStatusEnumEnabled = "ENABLED" +) + +// CertificateBasedAuthStatusEnum_Values returns all elements of the CertificateBasedAuthStatusEnum enum +func CertificateBasedAuthStatusEnum_Values() []string { + return []string{ + CertificateBasedAuthStatusEnumDisabled, + CertificateBasedAuthStatusEnumEnabled, + } +} + const ( // ClientDeviceTypeDeviceTypeWindows is a ClientDeviceType enum value ClientDeviceTypeDeviceTypeWindows = "DeviceTypeWindows" @@ -16501,6 +16768,18 @@ func DedicatedTenancySupportResultEnum_Values() []string { } } +const ( + // DeletableCertificateBasedAuthPropertyCertificateBasedAuthPropertiesCertificateAuthorityArn is a DeletableCertificateBasedAuthProperty enum value + DeletableCertificateBasedAuthPropertyCertificateBasedAuthPropertiesCertificateAuthorityArn = "CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN" +) + +// DeletableCertificateBasedAuthProperty_Values returns all elements of the DeletableCertificateBasedAuthProperty enum +func DeletableCertificateBasedAuthProperty_Values() []string { + return []string{ + DeletableCertificateBasedAuthPropertyCertificateBasedAuthPropertiesCertificateAuthorityArn, + } +} + const ( // DeletableSamlPropertySamlPropertiesUserAccessUrl is a DeletableSamlProperty enum value DeletableSamlPropertySamlPropertiesUserAccessUrl = "SAML_PROPERTIES_USER_ACCESS_URL" diff --git a/service/workspaces/workspacesiface/interface.go b/service/workspaces/workspacesiface/interface.go index e2bfff1d76..03295fd47d 100644 --- a/service/workspaces/workspacesiface/interface.go +++ b/service/workspaces/workspacesiface/interface.go @@ -241,6 +241,10 @@ type WorkSpacesAPI interface { ModifyAccountWithContext(aws.Context, *workspaces.ModifyAccountInput, ...request.Option) (*workspaces.ModifyAccountOutput, error) ModifyAccountRequest(*workspaces.ModifyAccountInput) (*request.Request, *workspaces.ModifyAccountOutput) + ModifyCertificateBasedAuthProperties(*workspaces.ModifyCertificateBasedAuthPropertiesInput) (*workspaces.ModifyCertificateBasedAuthPropertiesOutput, error) + ModifyCertificateBasedAuthPropertiesWithContext(aws.Context, *workspaces.ModifyCertificateBasedAuthPropertiesInput, ...request.Option) (*workspaces.ModifyCertificateBasedAuthPropertiesOutput, error) + ModifyCertificateBasedAuthPropertiesRequest(*workspaces.ModifyCertificateBasedAuthPropertiesInput) (*request.Request, *workspaces.ModifyCertificateBasedAuthPropertiesOutput) + ModifyClientProperties(*workspaces.ModifyClientPropertiesInput) (*workspaces.ModifyClientPropertiesOutput, error) ModifyClientPropertiesWithContext(aws.Context, *workspaces.ModifyClientPropertiesInput, ...request.Option) (*workspaces.ModifyClientPropertiesOutput, error) ModifyClientPropertiesRequest(*workspaces.ModifyClientPropertiesInput) (*request.Request, *workspaces.ModifyClientPropertiesOutput)