From 87cd864d7e585c10c71d544e6f46e2f0153d83b6 Mon Sep 17 00:00:00 2001 From: aws-sdk-dotnet-automation Date: Wed, 30 Sep 2020 13:28:38 -0700 Subject: [PATCH] Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features. --- README.md | 2 + .../ServiceModels/s3outposts/metadata.json | 5 + .../s3outposts/s3outposts-2017-07-25.api.json | 250 ++++++++ .../s3outposts-2017-07-25.docs.json | 165 +++++ .../s3outposts-2017-07-25.examples.json | 5 + .../s3outposts-2017-07-25.normal.json | 304 +++++++++ .../s3outposts-2017-07-25.paginators.json | 10 + sdk/AWSSDK.CodeAnalysis.sln | 8 + sdk/AWSSDK.Net35.Travis.sln | 10 + sdk/AWSSDK.Net35.sln | 10 + sdk/AWSSDK.Net45.Travis.sln | 10 + sdk/AWSSDK.Net45.sln | 10 + sdk/AWSSDK.NetStandard.sln | 10 + .../AWSCodeAnalysisTestExtension.Vsix.csproj | 4 + .../source.extension.vsixmanifest | 2 + .../AWSSDK.S3Outposts.CodeAnalysis.csproj | 97 +++ .../PropertyValueAssignmentAnalyzer.cs | 25 + .../Generated/PropertyValueRules.xml | 78 +++ .../S3Outposts/Properties/AssemblyInfo.cs | 32 + .../S3Outposts/packages.config | 12 + .../S3Outposts/AWSSDK.S3Outposts.Net35.csproj | 78 +++ .../S3Outposts/AWSSDK.S3Outposts.Net45.csproj | 71 +++ .../AWSSDK.S3Outposts.NetStandard.csproj | 82 +++ .../Generated/AmazonS3OutpostsConfig.cs | 80 +++ .../Generated/AmazonS3OutpostsException.cs | 105 ++++ .../Internal/AmazonS3OutpostsMetadata.cs | 55 ++ .../Generated/Model/AccessDeniedException.cs | 124 ++++ .../Model/AmazonS3OutpostsRequest.cs | 30 + .../Generated/Model/ConflictException.cs | 124 ++++ .../Generated/Model/CreateEndpointRequest.cs | 121 ++++ .../Generated/Model/CreateEndpointResponse.cs | 58 ++ .../Generated/Model/DeleteEndpointRequest.cs | 101 +++ .../Generated/Model/DeleteEndpointResponse.cs | 38 ++ .../S3Outposts/Generated/Model/Endpoint.cs | 157 +++++ .../AccessDeniedExceptionUnmarshaller.cs | 85 +++ .../ConflictExceptionUnmarshaller.cs | 85 +++ .../CreateEndpointRequestMarshaller.cs | 115 ++++ .../CreateEndpointResponseUnmarshaller.cs | 126 ++++ .../DeleteEndpointRequestMarshaller.cs | 92 +++ .../DeleteEndpointResponseUnmarshaller.cs | 111 ++++ .../EndpointUnmarshaller.cs | 122 ++++ .../InternalServerExceptionUnmarshaller.cs | 85 +++ .../ListEndpointsRequestMarshaller.cs | 92 +++ .../ListEndpointsResponseUnmarshaller.cs | 128 ++++ .../NetworkInterfaceUnmarshaller.cs | 92 +++ .../ResourceNotFoundExceptionUnmarshaller.cs | 85 +++ .../ValidationExceptionUnmarshaller.cs | 85 +++ .../Model/InternalServerException.cs | 124 ++++ .../Generated/Model/ListEndpointsRequest.cs | 101 +++ .../Generated/Model/ListEndpointsResponse.cs | 77 +++ .../Generated/Model/NetworkInterface.cs | 58 ++ .../Model/ResourceNotFoundException.cs | 124 ++++ .../Generated/Model/ValidationException.cs | 124 ++++ .../IListEndpointsPaginator.cs | 40 ++ .../IS3OutpostsPaginatorFactory.cs | 35 ++ .../ListEndpointsPaginator.cs | 99 +++ .../S3OutpostsPaginatorFactory.cs | 48 ++ .../Generated/ServiceEnumerations.cs | 76 +++ .../_bcl35/AmazonS3OutpostsClient.cs | 508 +++++++++++++++ .../Generated/_bcl35/IAmazonS3Outposts.cs | 273 ++++++++ .../_bcl45/AmazonS3OutpostsClient.cs | 591 ++++++++++++++++++ .../Generated/_bcl45/IAmazonS3Outposts.cs | 340 ++++++++++ .../_netstandard/AmazonS3OutpostsClient.cs | 469 ++++++++++++++ .../_netstandard/IAmazonS3Outposts.cs | 205 ++++++ .../S3Outposts/Properties/AssemblyInfo.cs | 53 ++ sdk/src/Services/S3Outposts/S3Outposts.sln | 153 +++++ .../AWSSDK.UnitTests.S3Outposts.Net35.csproj | 53 ++ .../AWSSDK.UnitTests.S3Outposts.Net45.csproj | 49 ++ .../Marshalling/S3OutpostsMarshallingTests.cs | 538 ++++++++++++++++ .../Paginators/S3OutpostsPaginatorTests.cs | 83 +++ 70 files changed, 7797 insertions(+) create mode 100644 generator/ServiceModels/s3outposts/metadata.json create mode 100644 generator/ServiceModels/s3outposts/s3outposts-2017-07-25.api.json create mode 100644 generator/ServiceModels/s3outposts/s3outposts-2017-07-25.docs.json create mode 100644 generator/ServiceModels/s3outposts/s3outposts-2017-07-25.examples.json create mode 100644 generator/ServiceModels/s3outposts/s3outposts-2017-07-25.normal.json create mode 100644 generator/ServiceModels/s3outposts/s3outposts-2017-07-25.paginators.json create mode 100644 sdk/code-analysis/ServiceAnalysis/S3Outposts/AWSSDK.S3Outposts.CodeAnalysis.csproj create mode 100644 sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueAssignmentAnalyzer.cs create mode 100644 sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueRules.xml create mode 100644 sdk/code-analysis/ServiceAnalysis/S3Outposts/Properties/AssemblyInfo.cs create mode 100644 sdk/code-analysis/ServiceAnalysis/S3Outposts/packages.config create mode 100644 sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net35.csproj create mode 100644 sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net45.csproj create mode 100644 sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.NetStandard.csproj create mode 100644 sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsConfig.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsException.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Internal/AmazonS3OutpostsMetadata.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/AccessDeniedException.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/AmazonS3OutpostsRequest.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/ConflictException.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointRequest.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointResponse.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointRequest.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointResponse.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Endpoint.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointRequestMarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointResponseUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointRequestMarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsRequestMarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsResponseUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/InternalServerException.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsRequest.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsResponse.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/NetworkInterface.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/ResourceNotFoundException.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/ValidationException.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IListEndpointsPaginator.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IS3OutpostsPaginatorFactory.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/ListEndpointsPaginator.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/S3OutpostsPaginatorFactory.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/ServiceEnumerations.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/_bcl35/AmazonS3OutpostsClient.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/_bcl35/IAmazonS3Outposts.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/_bcl45/AmazonS3OutpostsClient.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/_bcl45/IAmazonS3Outposts.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/_netstandard/AmazonS3OutpostsClient.cs create mode 100644 sdk/src/Services/S3Outposts/Generated/_netstandard/IAmazonS3Outposts.cs create mode 100644 sdk/src/Services/S3Outposts/Properties/AssemblyInfo.cs create mode 100644 sdk/src/Services/S3Outposts/S3Outposts.sln create mode 100644 sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net35.csproj create mode 100644 sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net45.csproj create mode 100644 sdk/test/Services/S3Outposts/UnitTests/Generated/Marshalling/S3OutpostsMarshallingTests.cs create mode 100644 sdk/test/Services/S3Outposts/UnitTests/Generated/_bcl45+netstandard/Paginators/S3OutpostsPaginatorTests.cs diff --git a/README.md b/README.md index f6395375e287..2d0925ddd9fb 100644 --- a/README.md +++ b/README.md @@ -453,6 +453,8 @@ Unit tests can be found in the **AWSSDK.UnitTests** project. * Amazon Simple Storage Service (Amazon S3), provides developers and IT teams with secure, durable, highly-scalable object storage. * [AWSSDK.S3Control](https://www.nuget.org/packages/AWSSDK.S3Control/) * Add support for new S3 Block Public Access account-level APIs. The Block Public Access settings allow account owners to prevent public access to S3 data via bucket/object ACLs or bucket policies. +* [AWSSDK.S3Outposts](https://www.nuget.org/packages/AWSSDK.S3Outposts/) + * Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features. * [AWSSDK.SageMaker](https://www.nuget.org/packages/AWSSDK.SageMaker/) * Amazon SageMaker is a fully-managed service that enables data scientists and developers to quickly and easily build, train, and deploy machine learning models, at scale. * [AWSSDK.SageMakerRuntime](https://www.nuget.org/packages/AWSSDK.SageMakerRuntime/) diff --git a/generator/ServiceModels/s3outposts/metadata.json b/generator/ServiceModels/s3outposts/metadata.json new file mode 100644 index 000000000000..0b0591809569 --- /dev/null +++ b/generator/ServiceModels/s3outposts/metadata.json @@ -0,0 +1,5 @@ +{ + "active": true, + "synopsis": "Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.", + "generate-client-constructors": true +} \ No newline at end of file diff --git a/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.api.json b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.api.json new file mode 100644 index 000000000000..d85e100851c3 --- /dev/null +++ b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.api.json @@ -0,0 +1,250 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2017-07-25", + "endpointPrefix":"s3-outposts", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"Amazon S3 Outposts", + "serviceFullName":"Amazon S3 on Outposts", + "serviceId":"S3Outposts", + "signatureVersion":"v4", + "signingName":"s3-outposts", + "uid":"s3outposts-2017-07-25" + }, + "operations":{ + "CreateEndpoint":{ + "name":"CreateEndpoint", + "http":{ + "method":"POST", + "requestUri":"/S3Outposts/CreateEndpoint" + }, + "input":{"shape":"CreateEndpointRequest"}, + "output":{"shape":"CreateEndpointResult"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"} + ] + }, + "DeleteEndpoint":{ + "name":"DeleteEndpoint", + "http":{ + "method":"DELETE", + "requestUri":"/S3Outposts/DeleteEndpoint" + }, + "input":{"shape":"DeleteEndpointRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] + }, + "ListEndpoints":{ + "name":"ListEndpoints", + "http":{ + "method":"GET", + "requestUri":"/S3Outposts/ListEndpoints" + }, + "input":{"shape":"ListEndpointsRequest"}, + "output":{"shape":"ListEndpointsResult"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "CidrBlock":{ + "type":"string", + "max":20, + "min":1 + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CreateEndpointRequest":{ + "type":"structure", + "required":[ + "OutpostId", + "SubnetId", + "SecurityGroupId" + ], + "members":{ + "OutpostId":{"shape":"OutpostId"}, + "SubnetId":{"shape":"SubnetId"}, + "SecurityGroupId":{"shape":"SecurityGroupId"} + } + }, + "CreateEndpointResult":{ + "type":"structure", + "members":{ + "EndpointArn":{"shape":"EndpointArn"} + } + }, + "CreationTime":{"type":"timestamp"}, + "DeleteEndpointRequest":{ + "type":"structure", + "required":[ + "EndpointId", + "OutpostId" + ], + "members":{ + "EndpointId":{ + "shape":"EndpointId", + "location":"querystring", + "locationName":"endpointId" + }, + "OutpostId":{ + "shape":"OutpostId", + "location":"querystring", + "locationName":"outpostId" + } + } + }, + "Endpoint":{ + "type":"structure", + "members":{ + "EndpointArn":{"shape":"EndpointArn"}, + "OutpostsId":{"shape":"OutpostId"}, + "CidrBlock":{"shape":"CidrBlock"}, + "Status":{"shape":"EndpointStatus"}, + "CreationTime":{"shape":"CreationTime"}, + "NetworkInterfaces":{"shape":"NetworkInterfaces"} + } + }, + "EndpointArn":{ + "type":"string", + "max":500, + "min":5, + "pattern":"^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z\\-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$" + }, + "EndpointId":{ + "type":"string", + "max":500, + "min":5, + "pattern":"^[a-zA-Z0-9]{19}$" + }, + "EndpointStatus":{ + "type":"string", + "enum":[ + "PENDING", + "AVAILABLE" + ] + }, + "Endpoints":{ + "type":"list", + "member":{"shape":"Endpoint"} + }, + "ErrorMessage":{"type":"string"}, + "InternalServerException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "ListEndpointsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListEndpointsResult":{ + "type":"structure", + "members":{ + "Endpoints":{"shape":"Endpoints"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":0 + }, + "NetworkInterface":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{"shape":"NetworkInterfaceId"} + } + }, + "NetworkInterfaceId":{ + "type":"string", + "max":100, + "min":1 + }, + "NetworkInterfaces":{ + "type":"list", + "member":{"shape":"NetworkInterface"} + }, + "NextToken":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^[A-Za-z0-9\\+\\:\\/\\=\\?\\#-_]+$" + }, + "OutpostId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^(op-[a-f0-9]{17}|\\d{12}|ec2)$" + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "SecurityGroupId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^sg-([0-9a-f]{8}|[0-9a-f]{17})$" + }, + "SubnetId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^subnet-([0-9a-f]{8}|[0-9a-f]{17})$" + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + } + } +} diff --git a/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.docs.json b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.docs.json new file mode 100644 index 000000000000..c5d69ef23ce9 --- /dev/null +++ b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.docs.json @@ -0,0 +1,165 @@ +{ + "version": "2.0", + "service": "

Amazon S3 on Outposts provides access to S3 on Outposts operations.

", + "operations": { + "CreateEndpoint": "

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

This action creates an endpoint and associates it with the specified Outpost.

Related actions include:

", + "DeleteEndpoint": "

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

This action deletes an endpoint.

Related actions include:

", + "ListEndpoints": "

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

This action lists endpoints associated with the Outpost.

Related actions include:

" + }, + "shapes": { + "AccessDeniedException": { + "base": "

Access was denied for this action.

", + "refs": { + } + }, + "CidrBlock": { + "base": null, + "refs": { + "Endpoint$CidrBlock": "

The VPC CIDR committed by this endpoint.

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

There was a conflict with this action, and it could not be completed.

", + "refs": { + } + }, + "CreateEndpointRequest": { + "base": null, + "refs": { + } + }, + "CreateEndpointResult": { + "base": null, + "refs": { + } + }, + "CreationTime": { + "base": null, + "refs": { + "Endpoint$CreationTime": "

The time the endpoint was created.

" + } + }, + "DeleteEndpointRequest": { + "base": null, + "refs": { + } + }, + "Endpoint": { + "base": "

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

", + "refs": { + "Endpoints$member": null + } + }, + "EndpointArn": { + "base": null, + "refs": { + "CreateEndpointResult$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

", + "Endpoint$EndpointArn": "

The Amazon Resource Name (ARN) of the endpoint.

" + } + }, + "EndpointId": { + "base": null, + "refs": { + "DeleteEndpointRequest$EndpointId": "

The ID of the end point.

" + } + }, + "EndpointStatus": { + "base": null, + "refs": { + "Endpoint$Status": "

The status of the endpoint.

" + } + }, + "Endpoints": { + "base": null, + "refs": { + "ListEndpointsResult$Endpoints": "

Returns an array of endpoints associated with AWS Outpost.

" + } + }, + "ErrorMessage": { + "base": null, + "refs": { + "AccessDeniedException$Message": null, + "ConflictException$Message": null, + "InternalServerException$Message": null, + "ResourceNotFoundException$Message": null, + "ValidationException$Message": null + } + }, + "InternalServerException": { + "base": "

There was an exception with the internal server.

", + "refs": { + } + }, + "ListEndpointsRequest": { + "base": null, + "refs": { + } + }, + "ListEndpointsResult": { + "base": null, + "refs": { + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListEndpointsRequest$MaxResults": "

The max number of endpoints that can be returned on the request.

" + } + }, + "NetworkInterface": { + "base": "

The container for the network interface.

", + "refs": { + "NetworkInterfaces$member": null + } + }, + "NetworkInterfaceId": { + "base": null, + "refs": { + "NetworkInterface$NetworkInterfaceId": "

The ID for the network interface.

" + } + }, + "NetworkInterfaces": { + "base": null, + "refs": { + "Endpoint$NetworkInterfaces": "

The network interface of the endpoint.

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

The next endpoint requested in the list.

", + "ListEndpointsResult$NextToken": "

The next endpoint returned in the list.

" + } + }, + "OutpostId": { + "base": null, + "refs": { + "CreateEndpointRequest$OutpostId": "

The ID of the AWS Outpost.

", + "DeleteEndpointRequest$OutpostId": "

The ID of the AWS Outpost.

", + "Endpoint$OutpostsId": "

The ID of the AWS Outpost.

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

The requested resource was not found.

", + "refs": { + } + }, + "SecurityGroupId": { + "base": null, + "refs": { + "CreateEndpointRequest$SecurityGroupId": "

The ID of the security group to use with the endpoint.

" + } + }, + "SubnetId": { + "base": null, + "refs": { + "CreateEndpointRequest$SubnetId": "

The ID of the subnet in the selected VPC.

" + } + }, + "ValidationException": { + "base": "

There was an exception validating this data.

", + "refs": { + } + } + } +} diff --git a/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.examples.json b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.examples.json new file mode 100644 index 000000000000..0ea7e3b0bbe9 --- /dev/null +++ b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.examples.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.normal.json b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.normal.json new file mode 100644 index 000000000000..a344e3715111 --- /dev/null +++ b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.normal.json @@ -0,0 +1,304 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2017-07-25", + "endpointPrefix":"s3-outposts", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"Amazon S3 Outposts", + "serviceFullName":"Amazon S3 on Outposts", + "serviceId":"S3Outposts", + "signatureVersion":"v4", + "signingName":"s3-outposts", + "uid":"s3outposts-2017-07-25" + }, + "operations":{ + "CreateEndpoint":{ + "name":"CreateEndpoint", + "http":{ + "method":"POST", + "requestUri":"/S3Outposts/CreateEndpoint" + }, + "input":{"shape":"CreateEndpointRequest"}, + "output":{"shape":"CreateEndpointResult"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"} + ], + "documentation":"

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

This action creates an endpoint and associates it with the specified Outpost.

Related actions include:

" + }, + "DeleteEndpoint":{ + "name":"DeleteEndpoint", + "http":{ + "method":"DELETE", + "requestUri":"/S3Outposts/DeleteEndpoint" + }, + "input":{"shape":"DeleteEndpointRequest"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ], + "documentation":"

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

This action deletes an endpoint.

Related actions include:

" + }, + "ListEndpoints":{ + "name":"ListEndpoints", + "http":{ + "method":"GET", + "requestUri":"/S3Outposts/ListEndpoints" + }, + "input":{"shape":"ListEndpointsRequest"}, + "output":{"shape":"ListEndpointsResult"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"} + ], + "documentation":"

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

This action lists endpoints associated with the Outpost.

Related actions include:

" + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

Access was denied for this action.

", + "error":{"httpStatusCode":403}, + "exception":true + }, + "CidrBlock":{ + "type":"string", + "max":20, + "min":1 + }, + "ConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

There was a conflict with this action, and it could not be completed.

", + "error":{"httpStatusCode":409}, + "exception":true + }, + "CreateEndpointRequest":{ + "type":"structure", + "required":[ + "OutpostId", + "SubnetId", + "SecurityGroupId" + ], + "members":{ + "OutpostId":{ + "shape":"OutpostId", + "documentation":"

The ID of the AWS Outpost.

" + }, + "SubnetId":{ + "shape":"SubnetId", + "documentation":"

The ID of the subnet in the selected VPC.

" + }, + "SecurityGroupId":{ + "shape":"SecurityGroupId", + "documentation":"

The ID of the security group to use with the endpoint.

" + } + } + }, + "CreateEndpointResult":{ + "type":"structure", + "members":{ + "EndpointArn":{ + "shape":"EndpointArn", + "documentation":"

The Amazon Resource Name (ARN) of the endpoint.

" + } + } + }, + "CreationTime":{"type":"timestamp"}, + "DeleteEndpointRequest":{ + "type":"structure", + "required":[ + "EndpointId", + "OutpostId" + ], + "members":{ + "EndpointId":{ + "shape":"EndpointId", + "documentation":"

The ID of the end point.

", + "location":"querystring", + "locationName":"endpointId" + }, + "OutpostId":{ + "shape":"OutpostId", + "documentation":"

The ID of the AWS Outpost.

", + "location":"querystring", + "locationName":"outpostId" + } + } + }, + "Endpoint":{ + "type":"structure", + "members":{ + "EndpointArn":{ + "shape":"EndpointArn", + "documentation":"

The Amazon Resource Name (ARN) of the endpoint.

" + }, + "OutpostsId":{ + "shape":"OutpostId", + "documentation":"

The ID of the AWS Outpost.

" + }, + "CidrBlock":{ + "shape":"CidrBlock", + "documentation":"

The VPC CIDR committed by this endpoint.

" + }, + "Status":{ + "shape":"EndpointStatus", + "documentation":"

The status of the endpoint.

" + }, + "CreationTime":{ + "shape":"CreationTime", + "documentation":"

The time the endpoint was created.

" + }, + "NetworkInterfaces":{ + "shape":"NetworkInterfaces", + "documentation":"

The network interface of the endpoint.

" + } + }, + "documentation":"

S3 on Outposts access points simplify managing data access at scale for shared datasets in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets so that you can perform actions within your virtual private cloud (VPC).

" + }, + "EndpointArn":{ + "type":"string", + "max":500, + "min":5, + "pattern":"^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z\\-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$" + }, + "EndpointId":{ + "type":"string", + "max":500, + "min":5, + "pattern":"^[a-zA-Z0-9]{19}$" + }, + "EndpointStatus":{ + "type":"string", + "enum":[ + "PENDING", + "AVAILABLE" + ] + }, + "Endpoints":{ + "type":"list", + "member":{"shape":"Endpoint"} + }, + "ErrorMessage":{"type":"string"}, + "InternalServerException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

There was an exception with the internal server.

", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "ListEndpointsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "documentation":"

The next endpoint requested in the list.

", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "documentation":"

The max number of endpoints that can be returned on the request.

", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListEndpointsResult":{ + "type":"structure", + "members":{ + "Endpoints":{ + "shape":"Endpoints", + "documentation":"

Returns an array of endpoints associated with AWS Outpost.

" + }, + "NextToken":{ + "shape":"NextToken", + "documentation":"

The next endpoint returned in the list.

" + } + } + }, + "MaxResults":{ + "type":"integer", + "max":100, + "min":0 + }, + "NetworkInterface":{ + "type":"structure", + "members":{ + "NetworkInterfaceId":{ + "shape":"NetworkInterfaceId", + "documentation":"

The ID for the network interface.

" + } + }, + "documentation":"

The container for the network interface.

" + }, + "NetworkInterfaceId":{ + "type":"string", + "max":100, + "min":1 + }, + "NetworkInterfaces":{ + "type":"list", + "member":{"shape":"NetworkInterface"} + }, + "NextToken":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^[A-Za-z0-9\\+\\:\\/\\=\\?\\#-_]+$" + }, + "OutpostId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^(op-[a-f0-9]{17}|\\d{12}|ec2)$" + }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

The requested resource was not found.

", + "error":{"httpStatusCode":404}, + "exception":true + }, + "SecurityGroupId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^sg-([0-9a-f]{8}|[0-9a-f]{17})$" + }, + "SubnetId":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^subnet-([0-9a-f]{8}|[0-9a-f]{17})$" + }, + "ValidationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "documentation":"

There was an exception validating this data.

", + "error":{"httpStatusCode":400}, + "exception":true + } + }, + "documentation":"

Amazon S3 on Outposts provides access to S3 on Outposts operations.

" +} diff --git a/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.paginators.json b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.paginators.json new file mode 100644 index 000000000000..ad678fe468b7 --- /dev/null +++ b/generator/ServiceModels/s3outposts/s3outposts-2017-07-25.paginators.json @@ -0,0 +1,10 @@ +{ + "pagination": { + "ListEndpoints": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Endpoints" + } + } +} \ No newline at end of file diff --git a/sdk/AWSSDK.CodeAnalysis.sln b/sdk/AWSSDK.CodeAnalysis.sln index 8c7041f74357..6b1f3637e88a 100644 --- a/sdk/AWSSDK.CodeAnalysis.sln +++ b/sdk/AWSSDK.CodeAnalysis.sln @@ -383,6 +383,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.S3.CodeAnalysis", "c EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.S3Control.CodeAnalysis", "code-analysis\ServiceAnalysis\S3Control\AWSSDK.S3Control.CodeAnalysis.csproj", "{D8DE315A-EC9C-41D5-87F9-5C40FBB56FCD}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.S3Outposts.CodeAnalysis", "code-analysis\ServiceAnalysis\S3Outposts\AWSSDK.S3Outposts.CodeAnalysis.csproj", "{9252CDC4-069F-4025-AE2C-18EE00A73F47}" +EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.SageMaker.CodeAnalysis", "code-analysis\ServiceAnalysis\SageMaker\AWSSDK.SageMaker.CodeAnalysis.csproj", "{3314BA0F-1C6A-4E4A-80F8-EB858D20D048}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.SageMakerRuntime.CodeAnalysis", "code-analysis\ServiceAnalysis\SageMakerRuntime\AWSSDK.SageMakerRuntime.CodeAnalysis.csproj", "{D706F3A1-9553-4B25-8BEC-7B68DE5360FD}" @@ -670,6 +672,7 @@ Global code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{b90ce7e1-24c8-4371-902e-d68b13913a47}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{fb33e054-70b8-4b2b-b9ce-61c2ac920259}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{d8de315a-ec9c-41d5-87f9-5c40fbb56fcd}*SharedItemsImports = 4 + code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{9252cdc4-069f-4025-ae2c-18ee00a73f47}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{3314ba0f-1c6a-4e4a-80f8-eb858d20d048}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{d706f3a1-9553-4b25-8bec-7b68de5360fd}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{33b3ceb0-7c8f-442c-bc89-cdcef81341b3}*SharedItemsImports = 4 @@ -1477,6 +1480,10 @@ Global {D8DE315A-EC9C-41D5-87F9-5C40FBB56FCD}.Debug|Any CPU.Build.0 = Debug|Any CPU {D8DE315A-EC9C-41D5-87F9-5C40FBB56FCD}.Release|Any CPU.ActiveCfg = Release|Any CPU {D8DE315A-EC9C-41D5-87F9-5C40FBB56FCD}.Release|Any CPU.Build.0 = Release|Any CPU + {9252CDC4-069F-4025-AE2C-18EE00A73F47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9252CDC4-069F-4025-AE2C-18EE00A73F47}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9252CDC4-069F-4025-AE2C-18EE00A73F47}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9252CDC4-069F-4025-AE2C-18EE00A73F47}.Release|Any CPU.Build.0 = Release|Any CPU {3314BA0F-1C6A-4E4A-80F8-EB858D20D048}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3314BA0F-1C6A-4E4A-80F8-EB858D20D048}.Debug|Any CPU.Build.0 = Debug|Any CPU {3314BA0F-1C6A-4E4A-80F8-EB858D20D048}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -1855,6 +1862,7 @@ Global {B90CE7E1-24C8-4371-902E-D68B13913A47} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {FB33E054-70B8-4B2B-B9CE-61C2AC920259} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {D8DE315A-EC9C-41D5-87F9-5C40FBB56FCD} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} + {9252CDC4-069F-4025-AE2C-18EE00A73F47} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {3314BA0F-1C6A-4E4A-80F8-EB858D20D048} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {D706F3A1-9553-4B25-8BEC-7B68DE5360FD} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {33B3CEB0-7C8F-442C-BC89-CDCEF81341B3} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} diff --git a/sdk/AWSSDK.Net35.Travis.sln b/sdk/AWSSDK.Net35.Travis.sln index ccc97078d262..fe76b79a956b 100644 --- a/sdk/AWSSDK.Net35.Travis.sln +++ b/sdk/AWSSDK.Net35.Travis.sln @@ -760,6 +760,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Control", "S3Control", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Control.Net35", "src\Services\S3Control\AWSSDK.S3Control.Net35.csproj", "{27DA2270-6F6B-4AB2-B6FB-28ECE7DAC63B}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Outposts", "S3Outposts", "{64F89AA8-B7B9-5D64-5B1C-20A4481EC353}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.Net35", "src\Services\S3Outposts\AWSSDK.S3Outposts.Net35.csproj", "{D53E09D3-C389-421C-B045-329C26BF9DE3}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SageMaker", "SageMaker", "{0524B252-811C-AA05-EAC7-6F666678BB91}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SageMaker.Net35", "src\Services\SageMaker\AWSSDK.SageMaker.Net35.csproj", "{B7C1248B-7033-4B8A-B9C3-6273E4DFBA8E}" @@ -1696,6 +1700,10 @@ Global {27DA2270-6F6B-4AB2-B6FB-28ECE7DAC63B}.Debug|Any CPU.Build.0 = Debug|Any CPU {27DA2270-6F6B-4AB2-B6FB-28ECE7DAC63B}.Release|Any CPU.ActiveCfg = Release|Any CPU {27DA2270-6F6B-4AB2-B6FB-28ECE7DAC63B}.Release|Any CPU.Build.0 = Release|Any CPU + {D53E09D3-C389-421C-B045-329C26BF9DE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D53E09D3-C389-421C-B045-329C26BF9DE3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D53E09D3-C389-421C-B045-329C26BF9DE3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D53E09D3-C389-421C-B045-329C26BF9DE3}.Release|Any CPU.Build.0 = Release|Any CPU {B7C1248B-7033-4B8A-B9C3-6273E4DFBA8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B7C1248B-7033-4B8A-B9C3-6273E4DFBA8E}.Debug|Any CPU.Build.0 = Debug|Any CPU {B7C1248B-7033-4B8A-B9C3-6273E4DFBA8E}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2250,6 +2258,8 @@ Global {BD5C9470-FDAD-4E04-A635-0291AC5EFF0F} = {34EC168F-E902-91E1-F81D-DCA3C52135BD} {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {27DA2270-6F6B-4AB2-B6FB-28ECE7DAC63B} = {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} + {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {D53E09D3-C389-421C-B045-329C26BF9DE3} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} {0524B252-811C-AA05-EAC7-6F666678BB91} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {B7C1248B-7033-4B8A-B9C3-6273E4DFBA8E} = {0524B252-811C-AA05-EAC7-6F666678BB91} {DE195420-A61F-A757-EFB5-F9D95A25E1B2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net35.sln b/sdk/AWSSDK.Net35.sln index 84374de3e3bc..b51eae51c08b 100644 --- a/sdk/AWSSDK.Net35.sln +++ b/sdk/AWSSDK.Net35.sln @@ -764,6 +764,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Control", "S3Control", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Control.Net35", "src\Services\S3Control\AWSSDK.S3Control.Net35.csproj", "{972162A1-A264-4077-A1DE-A496ACF58A25}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Outposts", "S3Outposts", "{64F89AA8-B7B9-5D64-5B1C-20A4481EC353}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.Net35", "src\Services\S3Outposts\AWSSDK.S3Outposts.Net35.csproj", "{37377FC4-8BC6-4C1E-B5AF-46D158BD0A11}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SageMaker", "SageMaker", "{0524B252-811C-AA05-EAC7-6F666678BB91}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SageMaker.Net35", "src\Services\SageMaker\AWSSDK.SageMaker.Net35.csproj", "{33FB64E3-7BEC-42E7-AA27-BD4DB206A1DD}" @@ -1714,6 +1718,10 @@ Global {972162A1-A264-4077-A1DE-A496ACF58A25}.Debug|Any CPU.Build.0 = Debug|Any CPU {972162A1-A264-4077-A1DE-A496ACF58A25}.Release|Any CPU.ActiveCfg = Release|Any CPU {972162A1-A264-4077-A1DE-A496ACF58A25}.Release|Any CPU.Build.0 = Release|Any CPU + {37377FC4-8BC6-4C1E-B5AF-46D158BD0A11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {37377FC4-8BC6-4C1E-B5AF-46D158BD0A11}.Debug|Any CPU.Build.0 = Debug|Any CPU + {37377FC4-8BC6-4C1E-B5AF-46D158BD0A11}.Release|Any CPU.ActiveCfg = Release|Any CPU + {37377FC4-8BC6-4C1E-B5AF-46D158BD0A11}.Release|Any CPU.Build.0 = Release|Any CPU {33FB64E3-7BEC-42E7-AA27-BD4DB206A1DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {33FB64E3-7BEC-42E7-AA27-BD4DB206A1DD}.Debug|Any CPU.Build.0 = Debug|Any CPU {33FB64E3-7BEC-42E7-AA27-BD4DB206A1DD}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2290,6 +2298,8 @@ Global {163C3FCF-5737-403C-8D97-FA3F5BE6D49C} = {34EC168F-E902-91E1-F81D-DCA3C52135BD} {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {972162A1-A264-4077-A1DE-A496ACF58A25} = {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} + {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {37377FC4-8BC6-4C1E-B5AF-46D158BD0A11} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} {0524B252-811C-AA05-EAC7-6F666678BB91} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {33FB64E3-7BEC-42E7-AA27-BD4DB206A1DD} = {0524B252-811C-AA05-EAC7-6F666678BB91} {DE195420-A61F-A757-EFB5-F9D95A25E1B2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net45.Travis.sln b/sdk/AWSSDK.Net45.Travis.sln index 5f5a6f0a4fb2..3d52414c65a2 100644 --- a/sdk/AWSSDK.Net45.Travis.sln +++ b/sdk/AWSSDK.Net45.Travis.sln @@ -760,6 +760,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Control", "S3Control", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Control.Net45", "src\Services\S3Control\AWSSDK.S3Control.Net45.csproj", "{AF53BECF-D8D0-4856-868F-F6B32B14D883}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Outposts", "S3Outposts", "{64F89AA8-B7B9-5D64-5B1C-20A4481EC353}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.Net45", "src\Services\S3Outposts\AWSSDK.S3Outposts.Net45.csproj", "{DC4E7A11-FBFB-4EF8-8146-EBB001427CEC}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SageMaker", "SageMaker", "{0524B252-811C-AA05-EAC7-6F666678BB91}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SageMaker.Net45", "src\Services\SageMaker\AWSSDK.SageMaker.Net45.csproj", "{BAB3BEB3-D913-4D3A-A795-9ACC2A877A66}" @@ -1696,6 +1700,10 @@ Global {AF53BECF-D8D0-4856-868F-F6B32B14D883}.Debug|Any CPU.Build.0 = Debug|Any CPU {AF53BECF-D8D0-4856-868F-F6B32B14D883}.Release|Any CPU.ActiveCfg = Release|Any CPU {AF53BECF-D8D0-4856-868F-F6B32B14D883}.Release|Any CPU.Build.0 = Release|Any CPU + {DC4E7A11-FBFB-4EF8-8146-EBB001427CEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DC4E7A11-FBFB-4EF8-8146-EBB001427CEC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DC4E7A11-FBFB-4EF8-8146-EBB001427CEC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DC4E7A11-FBFB-4EF8-8146-EBB001427CEC}.Release|Any CPU.Build.0 = Release|Any CPU {BAB3BEB3-D913-4D3A-A795-9ACC2A877A66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BAB3BEB3-D913-4D3A-A795-9ACC2A877A66}.Debug|Any CPU.Build.0 = Debug|Any CPU {BAB3BEB3-D913-4D3A-A795-9ACC2A877A66}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2250,6 +2258,8 @@ Global {41B0B9E8-FA0E-4EC0-8D0D-423E2074AAE0} = {34EC168F-E902-91E1-F81D-DCA3C52135BD} {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {AF53BECF-D8D0-4856-868F-F6B32B14D883} = {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} + {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {DC4E7A11-FBFB-4EF8-8146-EBB001427CEC} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} {0524B252-811C-AA05-EAC7-6F666678BB91} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {BAB3BEB3-D913-4D3A-A795-9ACC2A877A66} = {0524B252-811C-AA05-EAC7-6F666678BB91} {DE195420-A61F-A757-EFB5-F9D95A25E1B2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net45.sln b/sdk/AWSSDK.Net45.sln index ddf38eebc327..a65145a633da 100644 --- a/sdk/AWSSDK.Net45.sln +++ b/sdk/AWSSDK.Net45.sln @@ -764,6 +764,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Control", "S3Control", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Control.Net45", "src\Services\S3Control\AWSSDK.S3Control.Net45.csproj", "{6DEEDC32-342A-447E-86D6-DD4EEE11014E}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Outposts", "S3Outposts", "{64F89AA8-B7B9-5D64-5B1C-20A4481EC353}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.Net45", "src\Services\S3Outposts\AWSSDK.S3Outposts.Net45.csproj", "{771007FE-C97A-480D-8275-87D31A870D29}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SageMaker", "SageMaker", "{0524B252-811C-AA05-EAC7-6F666678BB91}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SageMaker.Net45", "src\Services\SageMaker\AWSSDK.SageMaker.Net45.csproj", "{01F481D3-C25E-4355-BCBF-B222FC9BD70B}" @@ -1714,6 +1718,10 @@ Global {6DEEDC32-342A-447E-86D6-DD4EEE11014E}.Debug|Any CPU.Build.0 = Debug|Any CPU {6DEEDC32-342A-447E-86D6-DD4EEE11014E}.Release|Any CPU.ActiveCfg = Release|Any CPU {6DEEDC32-342A-447E-86D6-DD4EEE11014E}.Release|Any CPU.Build.0 = Release|Any CPU + {771007FE-C97A-480D-8275-87D31A870D29}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {771007FE-C97A-480D-8275-87D31A870D29}.Debug|Any CPU.Build.0 = Debug|Any CPU + {771007FE-C97A-480D-8275-87D31A870D29}.Release|Any CPU.ActiveCfg = Release|Any CPU + {771007FE-C97A-480D-8275-87D31A870D29}.Release|Any CPU.Build.0 = Release|Any CPU {01F481D3-C25E-4355-BCBF-B222FC9BD70B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {01F481D3-C25E-4355-BCBF-B222FC9BD70B}.Debug|Any CPU.Build.0 = Debug|Any CPU {01F481D3-C25E-4355-BCBF-B222FC9BD70B}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2290,6 +2298,8 @@ Global {4B8A9445-8D1C-4813-9424-CA1BB0A3AAF2} = {34EC168F-E902-91E1-F81D-DCA3C52135BD} {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {6DEEDC32-342A-447E-86D6-DD4EEE11014E} = {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} + {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {771007FE-C97A-480D-8275-87D31A870D29} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} {0524B252-811C-AA05-EAC7-6F666678BB91} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {01F481D3-C25E-4355-BCBF-B222FC9BD70B} = {0524B252-811C-AA05-EAC7-6F666678BB91} {DE195420-A61F-A757-EFB5-F9D95A25E1B2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.NetStandard.sln b/sdk/AWSSDK.NetStandard.sln index 0dc2544d85b2..0d2b789241be 100644 --- a/sdk/AWSSDK.NetStandard.sln +++ b/sdk/AWSSDK.NetStandard.sln @@ -760,6 +760,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Control", "S3Control", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Control.NetStandard", "src\Services\S3Control\AWSSDK.S3Control.NetStandard.csproj", "{E796BF26-10BF-4A1C-90BB-E73C82EB00D7}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Outposts", "S3Outposts", "{64F89AA8-B7B9-5D64-5B1C-20A4481EC353}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.NetStandard", "src\Services\S3Outposts\AWSSDK.S3Outposts.NetStandard.csproj", "{244BDCFE-629C-4B89-BB14-C4610CAD9251}" +EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SageMaker", "SageMaker", "{0524B252-811C-AA05-EAC7-6F666678BB91}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SageMaker.NetStandard", "src\Services\SageMaker\AWSSDK.SageMaker.NetStandard.csproj", "{588EF4F6-4F6F-429E-9405-73B3BB2246E4}" @@ -1704,6 +1708,10 @@ Global {E796BF26-10BF-4A1C-90BB-E73C82EB00D7}.Debug|Any CPU.Build.0 = Debug|Any CPU {E796BF26-10BF-4A1C-90BB-E73C82EB00D7}.Release|Any CPU.ActiveCfg = Release|Any CPU {E796BF26-10BF-4A1C-90BB-E73C82EB00D7}.Release|Any CPU.Build.0 = Release|Any CPU + {244BDCFE-629C-4B89-BB14-C4610CAD9251}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {244BDCFE-629C-4B89-BB14-C4610CAD9251}.Debug|Any CPU.Build.0 = Debug|Any CPU + {244BDCFE-629C-4B89-BB14-C4610CAD9251}.Release|Any CPU.ActiveCfg = Release|Any CPU + {244BDCFE-629C-4B89-BB14-C4610CAD9251}.Release|Any CPU.Build.0 = Release|Any CPU {588EF4F6-4F6F-429E-9405-73B3BB2246E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {588EF4F6-4F6F-429E-9405-73B3BB2246E4}.Debug|Any CPU.Build.0 = Debug|Any CPU {588EF4F6-4F6F-429E-9405-73B3BB2246E4}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2274,6 +2282,8 @@ Global {1EAB2D5B-BF20-4571-BF12-0910B91DAA83} = {34EC168F-E902-91E1-F81D-DCA3C52135BD} {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {E796BF26-10BF-4A1C-90BB-E73C82EB00D7} = {6A5F66C7-34AB-4F1F-F6D4-8A28E1082663} + {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {244BDCFE-629C-4B89-BB14-C4610CAD9251} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} {0524B252-811C-AA05-EAC7-6F666678BB91} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {588EF4F6-4F6F-429E-9405-73B3BB2246E4} = {0524B252-811C-AA05-EAC7-6F666678BB91} {DE195420-A61F-A757-EFB5-F9D95A25E1B2} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj b/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj index 68197cfe7f20..8c03e63bc191 100644 --- a/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj +++ b/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj @@ -808,6 +808,10 @@ {D8DE315A-EC9C-41D5-87F9-5C40FBB56FCD} AWSSDK.S3Control.CodeAnalysis + + {9252CDC4-069F-4025-AE2C-18EE00A73F47} + AWSSDK.S3Outposts.CodeAnalysis + {3314BA0F-1C6A-4E4A-80F8-EB858D20D048} AWSSDK.SageMaker.CodeAnalysis diff --git a/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest b/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest index 16ab15fc949e..83ffe55221d8 100644 --- a/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest +++ b/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest @@ -393,6 +393,8 @@ + + diff --git a/sdk/code-analysis/ServiceAnalysis/S3Outposts/AWSSDK.S3Outposts.CodeAnalysis.csproj b/sdk/code-analysis/ServiceAnalysis/S3Outposts/AWSSDK.S3Outposts.CodeAnalysis.csproj new file mode 100644 index 000000000000..972ed4b79d02 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/S3Outposts/AWSSDK.S3Outposts.CodeAnalysis.csproj @@ -0,0 +1,97 @@ + + + + + 15.0 + Debug + AnyCPU + {9252CDC4-069F-4025-AE2C-18EE00A73F47} + Library + Properties + Amazon.S3Outposts.CodeAnalysis + AWSSDK.S3Outposts.CodeAnalysis + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Profile7 + v4.5 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + ..\..\..\packages\Microsoft.CodeAnalysis.Common.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.dll + False + + + ..\..\..\packages\Microsoft.CodeAnalysis.CSharp.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.CSharp.dll + False + + + ..\..\..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.CSharp.Workspaces.dll + False + + + ..\..\..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.0.0\lib\portable-net45+win8\Microsoft.CodeAnalysis.Workspaces.dll + False + + + ..\..\..\packages\System.Collections.Immutable.1.1.36\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll + False + + + ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll + False + + + ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll + False + + + ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll + False + + + ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll + False + + + ..\..\..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll + False + + + ..\..\..\packages\System.Reflection.Metadata.1.0.21\lib\portable-net45+win8\System.Reflection.Metadata.dll + False + + + + + + + + \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueAssignmentAnalyzer.cs b/sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueAssignmentAnalyzer.cs new file mode 100644 index 000000000000..4c633d713543 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueAssignmentAnalyzer.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Reflection; +using System.Linq; +using System.Xml.Linq; +using System.Threading; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; +using Microsoft.CodeAnalysis.Diagnostics; + +using Amazon.CodeAnalysis.Shared; + +namespace Amazon.S3Outposts.CodeAnalysis +{ + [DiagnosticAnalyzer(LanguageNames.CSharp)] + public class PropertyValueAssignmentAnalyzer : AbstractPropertyValueAssignmentAnalyzer + { + public override string GetServiceName() + { + return "S3Outposts"; + } + } +} \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueRules.xml b/sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueRules.xml new file mode 100644 index 000000000000..553b2a11c2d1 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/S3Outposts/Generated/PropertyValueRules.xml @@ -0,0 +1,78 @@ + + + + Amazon.S3Outposts.Model.CreateEndpointRequest.OutpostId + 1 + 100 + ^(op-[a-f0-9]{17}|\d{12}|ec2)$ + + + Amazon.S3Outposts.Model.CreateEndpointRequest.SecurityGroupId + 1 + 100 + ^sg-([0-9a-f]{8}|[0-9a-f]{17})$ + + + Amazon.S3Outposts.Model.CreateEndpointRequest.SubnetId + 1 + 100 + ^subnet-([0-9a-f]{8}|[0-9a-f]{17})$ + + + Amazon.S3Outposts.Model.CreateEndpointResponse.EndpointArn + 5 + 500 + ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z\-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$ + + + Amazon.S3Outposts.Model.DeleteEndpointRequest.EndpointId + 5 + 500 + ^[a-zA-Z0-9]{19}$ + + + Amazon.S3Outposts.Model.DeleteEndpointRequest.OutpostId + 1 + 100 + ^(op-[a-f0-9]{17}|\d{12}|ec2)$ + + + Amazon.S3Outposts.Model.ListEndpointsRequest.MaxResults + 0 + 100 + + + Amazon.S3Outposts.Model.ListEndpointsRequest.NextToken + 1 + 1024 + ^[A-Za-z0-9\+\:\/\=\?\#-_]+$ + + + Amazon.S3Outposts.Model.ListEndpointsResponse.NextToken + 1 + 1024 + ^[A-Za-z0-9\+\:\/\=\?\#-_]+$ + + + Amazon.S3Outposts.Model.Endpoint.CidrBlock + 1 + 20 + + + Amazon.S3Outposts.Model.Endpoint.EndpointArn + 5 + 500 + ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3-outposts:[a-z\-0-9]*:[0-9]{12}:outpost/(op-[a-f0-9]{17}|ec2)/endpoint/[a-zA-Z0-9]{19}$ + + + Amazon.S3Outposts.Model.Endpoint.OutpostsId + 1 + 100 + ^(op-[a-f0-9]{17}|\d{12}|ec2)$ + + + Amazon.S3Outposts.Model.NetworkInterface.NetworkInterfaceId + 1 + 100 + + \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/S3Outposts/Properties/AssemblyInfo.cs b/sdk/code-analysis/ServiceAnalysis/S3Outposts/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..2cdb86375885 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/S3Outposts/Properties/AssemblyInfo.cs @@ -0,0 +1,32 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AWSSDK.S3Outposts")] +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon S3 on Outposts. Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] +[assembly: AssemblyCompany("Amazon.com, Inc")] +[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("3.3")] +[assembly: AssemblyFileVersion("3.3")] \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/S3Outposts/packages.config b/sdk/code-analysis/ServiceAnalysis/S3Outposts/packages.config new file mode 100644 index 000000000000..d10a2bff10c2 --- /dev/null +++ b/sdk/code-analysis/ServiceAnalysis/S3Outposts/packages.config @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net35.csproj b/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net35.csproj new file mode 100644 index 000000000000..dc7001deb97f --- /dev/null +++ b/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net35.csproj @@ -0,0 +1,78 @@ + + + true + net35 + $(DefineConstants);BCL;BCL35;AWS_APM_API;CODE_ANALYSIS + portable + true + AWSSDK.S3Outposts + AWSSDK.S3Outposts + + false + false + false + false + false + false + false + false + + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client + + + ..\..\..\AWSDotNetSDK.ruleset + + + ..\..\..\AWSDotNetSDKForBuild.ruleset + + + + + + + ..\..\..\awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Entity.dll + + + + \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net45.csproj b/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net45.csproj new file mode 100644 index 000000000000..7e153812d050 --- /dev/null +++ b/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.Net45.csproj @@ -0,0 +1,71 @@ + + + true + net45 + $(DefineConstants);BCL;BCL45;AWS_ASYNC_API;CODE_ANALYSIS + portable + true + AWSSDK.S3Outposts + AWSSDK.S3Outposts + + false + false + false + false + false + false + false + false + + + + ..\..\..\AWSDotNetSDK.ruleset + + + ..\..\..\AWSDotNetSDKForBuild.ruleset + + + + + + + ..\..\..\awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + + \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.NetStandard.csproj b/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.NetStandard.csproj new file mode 100644 index 000000000000..63e4f351ad14 --- /dev/null +++ b/sdk/src/Services/S3Outposts/AWSSDK.S3Outposts.NetStandard.csproj @@ -0,0 +1,82 @@ + + + true + netstandard1.3;netstandard2.0;netcoreapp3.1 + $(DefineConstants);NETSTANDARD;AWS_ASYNC_API + $(DefineConstants);NETSTANDARD13;ADD_SUPPORT_ICLONEABLE;ADD_SUPPORT_IORDERED_DICTIONARY + $(DefineConstants);NETSTANDARD20;AWS_ASYNC_ENUMERABLES_API + $(DefineConstants);AWS_ASYNC_ENUMERABLES_API + portable + true + AWSSDK.S3Outposts + AWSSDK.S3Outposts + + false + false + false + false + false + false + false + false + + 1.6.0 + + + + 8.0 + + + ..\..\..\AWSDotNetSDK.ruleset + + + ..\..\..\AWSDotNetSDKForBuild.ruleset + + + + 8.0 + + + + + + ..\..\..\awssdk.dll.snk + + + + + $(AWSKeyFile) + + + + + + + + + + + + + + + + + + + + + + all + + + all + + + + + + + + + \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsConfig.cs b/sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsConfig.cs new file mode 100644 index 000000000000..09717a3b2514 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsConfig.cs @@ -0,0 +1,80 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; + +using Amazon.Runtime; +using Amazon.Util.Internal; + + +namespace Amazon.S3Outposts +{ + /// + /// Configuration for accessing Amazon S3Outposts service + /// + public partial class AmazonS3OutpostsConfig : ClientConfig + { + private static readonly string UserAgentString = + InternalSDKUtils.BuildUserAgentString("3.3"); + + private string _userAgent = UserAgentString; + + /// + /// Default constructor + /// + public AmazonS3OutpostsConfig() + { + this.AuthenticationServiceName = "s3-outposts"; + } + + /// + /// The constant used to lookup in the region hash the endpoint. + /// + public override string RegionEndpointServiceName + { + get + { + return "s3-outposts"; + } + } + + /// + /// Gets the ServiceVersion property. + /// + public override string ServiceVersion + { + get + { + return "2017-07-25"; + } + } + + /// + /// Gets the value of UserAgent property. + /// + public override string UserAgent + { + get + { + return _userAgent; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsException.cs b/sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsException.cs new file mode 100644 index 000000000000..401373e962fb --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/AmazonS3OutpostsException.cs @@ -0,0 +1,105 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Net; +using System.Text; + +using Amazon.Runtime; + +namespace Amazon.S3Outposts +{ + /// + /// Common exception for the S3Outposts service. + /// +#if !NETSTANDARD + [Serializable] +#endif + public partial class AmazonS3OutpostsException : AmazonServiceException + { + /// + /// Construct instance of AmazonS3OutpostsException + /// + /// + public AmazonS3OutpostsException(string message) + : base(message) + { + } + + /// + /// Construct instance of AmazonS3OutpostsException + /// + /// + /// + public AmazonS3OutpostsException(string message, Exception innerException) + : base(message, innerException) + { + } + + /// + /// Construct instance of AmazonS3OutpostsException + /// + /// + public AmazonS3OutpostsException(Exception innerException) + : base(innerException.Message, innerException) + { + } + + /// + /// Construct instance of AmazonS3OutpostsException + /// + /// + /// + /// + /// + /// + public AmazonS3OutpostsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) + { + } + + /// + /// Construct instance of AmazonS3OutpostsException + /// + /// + /// + /// + /// + /// + /// + public AmazonS3OutpostsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) + { + } + +#if !NETSTANDARD + /// + /// Constructs a new instance of the AmazonS3OutpostsException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected AmazonS3OutpostsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } +#endif + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Internal/AmazonS3OutpostsMetadata.cs b/sdk/src/Services/S3Outposts/Generated/Internal/AmazonS3OutpostsMetadata.cs new file mode 100644 index 000000000000..0df5d94e54a4 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Internal/AmazonS3OutpostsMetadata.cs @@ -0,0 +1,55 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using Amazon.Runtime.Internal; + + +namespace Amazon.S3Outposts.Internal +{ + /// + /// Service metadata for Amazon S3Outposts service + /// + public partial class AmazonS3OutpostsMetadata : IServiceMetadata + { + /// + /// Gets the value of the Service Id. + /// + public string ServiceId + { + get + { + return "S3Outposts"; + } + } + + /// + /// Gets the dictionary that gives mapping of renamed operations + /// + public System.Collections.Generic.IDictionary OperationNameMapping + { + get + { + return new System.Collections.Generic.Dictionary(0) + { + }; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/AccessDeniedException.cs b/sdk/src/Services/S3Outposts/Generated/Model/AccessDeniedException.cs new file mode 100644 index 000000000000..66ead8caffc9 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/AccessDeniedException.cs @@ -0,0 +1,124 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Access was denied for this action. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class AccessDeniedException : AmazonS3OutpostsException + { + + /// + /// Constructs a new AccessDeniedException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public AccessDeniedException(string message) + : base(message) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + /// + public AccessDeniedException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + public AccessDeniedException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + /// + /// + /// + /// + /// + public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of AccessDeniedException + /// + /// + /// + /// + /// + /// + public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the AccessDeniedException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/AmazonS3OutpostsRequest.cs b/sdk/src/Services/S3Outposts/Generated/Model/AmazonS3OutpostsRequest.cs new file mode 100644 index 000000000000..377f41743827 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/AmazonS3OutpostsRequest.cs @@ -0,0 +1,30 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + +using Amazon.Runtime; + +namespace Amazon.S3Outposts +{ + /// + /// Base class for S3Outposts operation requests. + /// + public partial class AmazonS3OutpostsRequest : AmazonWebServiceRequest + { + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/ConflictException.cs b/sdk/src/Services/S3Outposts/Generated/Model/ConflictException.cs new file mode 100644 index 000000000000..49e5ce107558 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/ConflictException.cs @@ -0,0 +1,124 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// There was a conflict with this action, and it could not be completed. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ConflictException : AmazonS3OutpostsException + { + + /// + /// Constructs a new ConflictException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ConflictException(string message) + : base(message) {} + + /// + /// Construct instance of ConflictException + /// + /// + /// + public ConflictException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ConflictException + /// + /// + public ConflictException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ConflictException + /// + /// + /// + /// + /// + /// + /// + public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ConflictException + /// + /// + /// + /// + /// + /// + public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ConflictException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointRequest.cs b/sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointRequest.cs new file mode 100644 index 000000000000..a191e6300849 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointRequest.cs @@ -0,0 +1,121 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Container for the parameters to the CreateEndpoint operation. + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + public partial class CreateEndpointRequest : AmazonS3OutpostsRequest + { + private string _outpostId; + private string _securityGroupId; + private string _subnetId; + + /// + /// Gets and sets the property OutpostId. + /// + /// The ID of the AWS Outpost. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string OutpostId + { + get { return this._outpostId; } + set { this._outpostId = value; } + } + + // Check to see if OutpostId property is set + internal bool IsSetOutpostId() + { + return this._outpostId != null; + } + + /// + /// Gets and sets the property SecurityGroupId. + /// + /// The ID of the security group to use with the endpoint. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string SecurityGroupId + { + get { return this._securityGroupId; } + set { this._securityGroupId = value; } + } + + // Check to see if SecurityGroupId property is set + internal bool IsSetSecurityGroupId() + { + return this._securityGroupId != null; + } + + /// + /// Gets and sets the property SubnetId. + /// + /// The ID of the subnet in the selected VPC. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string SubnetId + { + get { return this._subnetId; } + set { this._subnetId = value; } + } + + // Check to see if SubnetId property is set + internal bool IsSetSubnetId() + { + return this._subnetId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointResponse.cs b/sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointResponse.cs new file mode 100644 index 000000000000..a1dc589cbbd7 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/CreateEndpointResponse.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// This is the response object from the CreateEndpoint operation. + /// + public partial class CreateEndpointResponse : AmazonWebServiceResponse + { + private string _endpointArn; + + /// + /// Gets and sets the property EndpointArn. + /// + /// The Amazon Resource Name (ARN) of the endpoint. + /// + /// + [AWSProperty(Min=5, Max=500)] + public string EndpointArn + { + get { return this._endpointArn; } + set { this._endpointArn = value; } + } + + // Check to see if EndpointArn property is set + internal bool IsSetEndpointArn() + { + return this._endpointArn != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointRequest.cs b/sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointRequest.cs new file mode 100644 index 000000000000..7319e97aa393 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointRequest.cs @@ -0,0 +1,101 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Container for the parameters to the DeleteEndpoint operation. + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + public partial class DeleteEndpointRequest : AmazonS3OutpostsRequest + { + private string _endpointId; + private string _outpostId; + + /// + /// Gets and sets the property EndpointId. + /// + /// The ID of the end point. + /// + /// + [AWSProperty(Required=true, Min=5, Max=500)] + public string EndpointId + { + get { return this._endpointId; } + set { this._endpointId = value; } + } + + // Check to see if EndpointId property is set + internal bool IsSetEndpointId() + { + return this._endpointId != null; + } + + /// + /// Gets and sets the property OutpostId. + /// + /// The ID of the AWS Outpost. + /// + /// + [AWSProperty(Required=true, Min=1, Max=100)] + public string OutpostId + { + get { return this._outpostId; } + set { this._outpostId = value; } + } + + // Check to see if OutpostId property is set + internal bool IsSetOutpostId() + { + return this._outpostId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointResponse.cs b/sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointResponse.cs new file mode 100644 index 000000000000..917c239e2ec2 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/DeleteEndpointResponse.cs @@ -0,0 +1,38 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// This is the response object from the DeleteEndpoint operation. + /// + public partial class DeleteEndpointResponse : AmazonWebServiceResponse + { + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Endpoint.cs b/sdk/src/Services/S3Outposts/Generated/Model/Endpoint.cs new file mode 100644 index 000000000000..be9c244ed911 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Endpoint.cs @@ -0,0 +1,157 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + public partial class Endpoint + { + private string _cidrBlock; + private DateTime? _creationTime; + private string _endpointArn; + private List _networkInterfaces = new List(); + private string _outpostsId; + private EndpointStatus _status; + + /// + /// Gets and sets the property CidrBlock. + /// + /// The VPC CIDR committed by this endpoint. + /// + /// + [AWSProperty(Min=1, Max=20)] + public string CidrBlock + { + get { return this._cidrBlock; } + set { this._cidrBlock = value; } + } + + // Check to see if CidrBlock property is set + internal bool IsSetCidrBlock() + { + return this._cidrBlock != null; + } + + /// + /// Gets and sets the property CreationTime. + /// + /// The time the endpoint was created. + /// + /// + public DateTime CreationTime + { + get { return this._creationTime.GetValueOrDefault(); } + set { this._creationTime = value; } + } + + // Check to see if CreationTime property is set + internal bool IsSetCreationTime() + { + return this._creationTime.HasValue; + } + + /// + /// Gets and sets the property EndpointArn. + /// + /// The Amazon Resource Name (ARN) of the endpoint. + /// + /// + [AWSProperty(Min=5, Max=500)] + public string EndpointArn + { + get { return this._endpointArn; } + set { this._endpointArn = value; } + } + + // Check to see if EndpointArn property is set + internal bool IsSetEndpointArn() + { + return this._endpointArn != null; + } + + /// + /// Gets and sets the property NetworkInterfaces. + /// + /// The network interface of the endpoint. + /// + /// + public List NetworkInterfaces + { + get { return this._networkInterfaces; } + set { this._networkInterfaces = value; } + } + + // Check to see if NetworkInterfaces property is set + internal bool IsSetNetworkInterfaces() + { + return this._networkInterfaces != null && this._networkInterfaces.Count > 0; + } + + /// + /// Gets and sets the property OutpostsId. + /// + /// The ID of the AWS Outpost. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string OutpostsId + { + get { return this._outpostsId; } + set { this._outpostsId = value; } + } + + // Check to see if OutpostsId property is set + internal bool IsSetOutpostsId() + { + return this._outpostsId != null; + } + + /// + /// Gets and sets the property Status. + /// + /// The status of the endpoint. + /// + /// + public EndpointStatus Status + { + get { return this._status; } + set { this._status = value; } + } + + // Check to see if Status property is set + internal bool IsSetStatus() + { + return this._status != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs new file mode 100644 index 000000000000..cab3012de322 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for AccessDeniedException Object + /// + public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, ErrorResponse errorResponse) + { + context.Read(); + + AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static AccessDeniedExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs new file mode 100644 index 000000000000..792a28dae391 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ConflictException Object + /// + public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ConflictException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ConflictException Unmarshall(JsonUnmarshallerContext context, ErrorResponse errorResponse) + { + context.Read(); + + ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ConflictExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointRequestMarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointRequestMarshaller.cs new file mode 100644 index 000000000000..0a680f459787 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointRequestMarshaller.cs @@ -0,0 +1,115 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// CreateEndpoint Request Marshaller + /// + public class CreateEndpointRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((CreateEndpointRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(CreateEndpointRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.S3Outposts"); + request.Headers["Content-Type"] = "application/json"; + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; + request.HttpMethod = "POST"; + + request.ResourcePath = "/S3Outposts/CreateEndpoint"; + request.MarshallerVersion = 2; + using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) + { + JsonWriter writer = new JsonWriter(stringWriter); + writer.WriteObjectStart(); + var context = new JsonMarshallerContext(request, writer); + if(publicRequest.IsSetOutpostId()) + { + context.Writer.WritePropertyName("OutpostId"); + context.Writer.Write(publicRequest.OutpostId); + } + + if(publicRequest.IsSetSecurityGroupId()) + { + context.Writer.WritePropertyName("SecurityGroupId"); + context.Writer.Write(publicRequest.SecurityGroupId); + } + + if(publicRequest.IsSetSubnetId()) + { + context.Writer.WritePropertyName("SubnetId"); + context.Writer.Write(publicRequest.SubnetId); + } + + + writer.WriteObjectEnd(); + string snippet = stringWriter.ToString(); + request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); + } + + + return request; + } + private static CreateEndpointRequestMarshaller _instance = new CreateEndpointRequestMarshaller(); + + internal static CreateEndpointRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateEndpointRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointResponseUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointResponseUnmarshaller.cs new file mode 100644 index 000000000000..c7130b62f55f --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/CreateEndpointResponseUnmarshaller.cs @@ -0,0 +1,126 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for CreateEndpoint operation + /// + public class CreateEndpointResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + CreateEndpointResponse response = new CreateEndpointResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("EndpointArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.EndpointArn = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) + { + return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) + { + return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonS3OutpostsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static CreateEndpointResponseUnmarshaller _instance = new CreateEndpointResponseUnmarshaller(); + + internal static CreateEndpointResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static CreateEndpointResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointRequestMarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointRequestMarshaller.cs new file mode 100644 index 000000000000..6b1eee6f5622 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointRequestMarshaller.cs @@ -0,0 +1,92 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// DeleteEndpoint Request Marshaller + /// + public class DeleteEndpointRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((DeleteEndpointRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(DeleteEndpointRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.S3Outposts"); + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; + request.HttpMethod = "DELETE"; + + + if (publicRequest.IsSetEndpointId()) + request.Parameters.Add("endpointId", StringUtils.FromString(publicRequest.EndpointId)); + + if (publicRequest.IsSetOutpostId()) + request.Parameters.Add("outpostId", StringUtils.FromString(publicRequest.OutpostId)); + request.ResourcePath = "/S3Outposts/DeleteEndpoint"; + request.MarshallerVersion = 2; + request.UseQueryString = true; + + return request; + } + private static DeleteEndpointRequestMarshaller _instance = new DeleteEndpointRequestMarshaller(); + + internal static DeleteEndpointRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteEndpointRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs new file mode 100644 index 000000000000..4613ad9cd17b --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/DeleteEndpointResponseUnmarshaller.cs @@ -0,0 +1,111 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for DeleteEndpoint operation + /// + public class DeleteEndpointResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + DeleteEndpointResponse response = new DeleteEndpointResponse(); + + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) + { + return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonS3OutpostsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static DeleteEndpointResponseUnmarshaller _instance = new DeleteEndpointResponseUnmarshaller(); + + internal static DeleteEndpointResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static DeleteEndpointResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs new file mode 100644 index 000000000000..5ff189650b04 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs @@ -0,0 +1,122 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for Endpoint Object + /// + public class EndpointUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + Endpoint IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public Endpoint Unmarshall(JsonUnmarshallerContext context) + { + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + Endpoint unmarshalledObject = new Endpoint(); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("CidrBlock", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.CidrBlock = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("CreationTime", targetDepth)) + { + var unmarshaller = DateTimeUnmarshaller.Instance; + unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("EndpointArn", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.EndpointArn = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NetworkInterfaces", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(NetworkInterfaceUnmarshaller.Instance); + unmarshalledObject.NetworkInterfaces = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("OutpostsId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.OutpostsId = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("Status", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.Status = unmarshaller.Unmarshall(context); + continue; + } + } + + return unmarshalledObject; + } + + + private static EndpointUnmarshaller _instance = new EndpointUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static EndpointUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs new file mode 100644 index 000000000000..76fce4f382fc --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for InternalServerException Object + /// + public class InternalServerExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public InternalServerException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public InternalServerException Unmarshall(JsonUnmarshallerContext context, ErrorResponse errorResponse) + { + context.Read(); + + InternalServerException unmarshalledObject = new InternalServerException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static InternalServerExceptionUnmarshaller _instance = new InternalServerExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static InternalServerExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsRequestMarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsRequestMarshaller.cs new file mode 100644 index 000000000000..2fb1a5a6b3bc --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsRequestMarshaller.cs @@ -0,0 +1,92 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// ListEndpoints Request Marshaller + /// + public class ListEndpointsRequestMarshaller : IMarshaller , IMarshaller + { + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(AmazonWebServiceRequest input) + { + return this.Marshall((ListEndpointsRequest)input); + } + + /// + /// Marshaller the request object to the HTTP request. + /// + /// + /// + public IRequest Marshall(ListEndpointsRequest publicRequest) + { + IRequest request = new DefaultRequest(publicRequest, "Amazon.S3Outposts"); + request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; + request.HttpMethod = "GET"; + + + if (publicRequest.IsSetMaxResults()) + request.Parameters.Add("maxResults", StringUtils.FromInt(publicRequest.MaxResults)); + + if (publicRequest.IsSetNextToken()) + request.Parameters.Add("nextToken", StringUtils.FromString(publicRequest.NextToken)); + request.ResourcePath = "/S3Outposts/ListEndpoints"; + request.MarshallerVersion = 2; + request.UseQueryString = true; + + return request; + } + private static ListEndpointsRequestMarshaller _instance = new ListEndpointsRequestMarshaller(); + + internal static ListEndpointsRequestMarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListEndpointsRequestMarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsResponseUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsResponseUnmarshaller.cs new file mode 100644 index 000000000000..4a3e9347d821 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ListEndpointsResponseUnmarshaller.cs @@ -0,0 +1,128 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ListEndpoints operation + /// + public class ListEndpointsResponseUnmarshaller : JsonResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) + { + ListEndpointsResponse response = new ListEndpointsResponse(); + + context.Read(); + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("Endpoints", targetDepth)) + { + var unmarshaller = new ListUnmarshaller(EndpointUnmarshaller.Instance); + response.Endpoints = unmarshaller.Unmarshall(context); + continue; + } + if (context.TestExpression("NextToken", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + response.NextToken = unmarshaller.Unmarshall(context); + continue; + } + } + + return response; + } + + /// + /// Unmarshaller error response to exception. + /// + /// + /// + /// + /// + public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) + { + var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); + errorResponse.InnerException = innerException; + errorResponse.StatusCode = statusCode; + + var responseBodyBytes = context.GetResponseBodyBytes(); + + using (var streamCopy = new MemoryStream(responseBodyBytes)) + using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) + { + if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) + { + return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) + { + return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) + { + return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) + { + return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); + } + } + return new AmazonS3OutpostsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + } + + private static ListEndpointsResponseUnmarshaller _instance = new ListEndpointsResponseUnmarshaller(); + + internal static ListEndpointsResponseUnmarshaller GetInstance() + { + return _instance; + } + + /// + /// Gets the singleton. + /// + public static ListEndpointsResponseUnmarshaller Instance + { + get + { + return _instance; + } + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs new file mode 100644 index 000000000000..68983c391328 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs @@ -0,0 +1,92 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for NetworkInterface Object + /// + public class NetworkInterfaceUnmarshaller : IUnmarshaller, IUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + NetworkInterface IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) + { + throw new NotImplementedException(); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public NetworkInterface Unmarshall(JsonUnmarshallerContext context) + { + context.Read(); + if (context.CurrentTokenType == JsonToken.Null) + return null; + + NetworkInterface unmarshalledObject = new NetworkInterface(); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + if (context.TestExpression("NetworkInterfaceId", targetDepth)) + { + var unmarshaller = StringUnmarshaller.Instance; + unmarshalledObject.NetworkInterfaceId = unmarshaller.Unmarshall(context); + continue; + } + } + + return unmarshalledObject; + } + + + private static NetworkInterfaceUnmarshaller _instance = new NetworkInterfaceUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static NetworkInterfaceUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs new file mode 100644 index 000000000000..7b3b6fa76ed3 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ResourceNotFoundException Object + /// + public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, ErrorResponse errorResponse) + { + context.Read(); + + ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ResourceNotFoundExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs new file mode 100644 index 000000000000..7838c36c9386 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs @@ -0,0 +1,85 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Net; +using System.Text; +using System.Xml.Serialization; + +using Amazon.S3Outposts.Model; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Transform; +using Amazon.Runtime.Internal.Util; +using ThirdParty.Json.LitJson; + +namespace Amazon.S3Outposts.Model.Internal.MarshallTransformations +{ + /// + /// Response Unmarshaller for ValidationException Object + /// + public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller + { + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + public ValidationException Unmarshall(JsonUnmarshallerContext context) + { + return this.Unmarshall(context, new ErrorResponse()); + } + + /// + /// Unmarshaller the response from the service to the response class. + /// + /// + /// + /// + public ValidationException Unmarshall(JsonUnmarshallerContext context, ErrorResponse errorResponse) + { + context.Read(); + + ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, + errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); + + int targetDepth = context.CurrentDepth; + while (context.ReadAtDepth(targetDepth)) + { + } + + return unmarshalledObject; + } + + private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); + + /// + /// Gets the singleton. + /// + public static ValidationExceptionUnmarshaller Instance + { + get + { + return _instance; + } + } + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/InternalServerException.cs b/sdk/src/Services/S3Outposts/Generated/Model/InternalServerException.cs new file mode 100644 index 000000000000..475e481bc783 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/InternalServerException.cs @@ -0,0 +1,124 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// There was an exception with the internal server. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class InternalServerException : AmazonS3OutpostsException + { + + /// + /// Constructs a new InternalServerException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public InternalServerException(string message) + : base(message) {} + + /// + /// Construct instance of InternalServerException + /// + /// + /// + public InternalServerException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of InternalServerException + /// + /// + public InternalServerException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of InternalServerException + /// + /// + /// + /// + /// + /// + /// + public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of InternalServerException + /// + /// + /// + /// + /// + /// + public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the InternalServerException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsRequest.cs b/sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsRequest.cs new file mode 100644 index 000000000000..0a96597670a9 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsRequest.cs @@ -0,0 +1,101 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Container for the parameters to the ListEndpoints operation. + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + public partial class ListEndpointsRequest : AmazonS3OutpostsRequest + { + private int? _maxResults; + private string _nextToken; + + /// + /// Gets and sets the property MaxResults. + /// + /// The max number of endpoints that can be returned on the request. + /// + /// + [AWSProperty(Min=0, Max=100)] + public int MaxResults + { + get { return this._maxResults.GetValueOrDefault(); } + set { this._maxResults = value; } + } + + // Check to see if MaxResults property is set + internal bool IsSetMaxResults() + { + return this._maxResults.HasValue; + } + + /// + /// Gets and sets the property NextToken. + /// + /// The next endpoint requested in the list. + /// + /// + [AWSProperty(Min=1, Max=1024)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsResponse.cs b/sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsResponse.cs new file mode 100644 index 000000000000..007cb584e6b7 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/ListEndpointsResponse.cs @@ -0,0 +1,77 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// This is the response object from the ListEndpoints operation. + /// + public partial class ListEndpointsResponse : AmazonWebServiceResponse + { + private List _endpoints = new List(); + private string _nextToken; + + /// + /// Gets and sets the property Endpoints. + /// + /// Returns an array of endpoints associated with AWS Outpost. + /// + /// + public List Endpoints + { + get { return this._endpoints; } + set { this._endpoints = value; } + } + + // Check to see if Endpoints property is set + internal bool IsSetEndpoints() + { + return this._endpoints != null && this._endpoints.Count > 0; + } + + /// + /// Gets and sets the property NextToken. + /// + /// The next endpoint returned in the list. + /// + /// + [AWSProperty(Min=1, Max=1024)] + public string NextToken + { + get { return this._nextToken; } + set { this._nextToken = value; } + } + + // Check to see if NextToken property is set + internal bool IsSetNextToken() + { + return this._nextToken != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/NetworkInterface.cs b/sdk/src/Services/S3Outposts/Generated/Model/NetworkInterface.cs new file mode 100644 index 000000000000..d2ef4bdeb470 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/NetworkInterface.cs @@ -0,0 +1,58 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// The container for the network interface. + /// + public partial class NetworkInterface + { + private string _networkInterfaceId; + + /// + /// Gets and sets the property NetworkInterfaceId. + /// + /// The ID for the network interface. + /// + /// + [AWSProperty(Min=1, Max=100)] + public string NetworkInterfaceId + { + get { return this._networkInterfaceId; } + set { this._networkInterfaceId = value; } + } + + // Check to see if NetworkInterfaceId property is set + internal bool IsSetNetworkInterfaceId() + { + return this._networkInterfaceId != null; + } + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/ResourceNotFoundException.cs b/sdk/src/Services/S3Outposts/Generated/Model/ResourceNotFoundException.cs new file mode 100644 index 000000000000..271425867925 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/ResourceNotFoundException.cs @@ -0,0 +1,124 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// The requested resource was not found. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ResourceNotFoundException : AmazonS3OutpostsException + { + + /// + /// Constructs a new ResourceNotFoundException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ResourceNotFoundException(string message) + : base(message) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + /// + public ResourceNotFoundException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + public ResourceNotFoundException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + /// + /// + /// + /// + /// + public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ResourceNotFoundException + /// + /// + /// + /// + /// + /// + public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ResourceNotFoundException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/ValidationException.cs b/sdk/src/Services/S3Outposts/Generated/Model/ValidationException.cs new file mode 100644 index 000000000000..9ebcc6ff1e80 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/ValidationException.cs @@ -0,0 +1,124 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using System; +using System.Collections.Generic; +using System.Xml.Serialization; +using System.Text; +using System.IO; +using System.Net; + +using Amazon.Runtime; +using Amazon.Runtime.Internal; + +namespace Amazon.S3Outposts.Model +{ + /// + /// There was an exception validating this data. + /// + #if !NETSTANDARD + [Serializable] + #endif + public partial class ValidationException : AmazonS3OutpostsException + { + + /// + /// Constructs a new ValidationException with the specified error + /// message. + /// + /// + /// Describes the error encountered. + /// + public ValidationException(string message) + : base(message) {} + + /// + /// Construct instance of ValidationException + /// + /// + /// + public ValidationException(string message, Exception innerException) + : base(message, innerException) {} + + /// + /// Construct instance of ValidationException + /// + /// + public ValidationException(Exception innerException) + : base(innerException) {} + + /// + /// Construct instance of ValidationException + /// + /// + /// + /// + /// + /// + /// + public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, innerException, errorType, errorCode, requestId, statusCode) {} + + /// + /// Construct instance of ValidationException + /// + /// + /// + /// + /// + /// + public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) + : base(message, errorType, errorCode, requestId, statusCode) {} + + +#if !NETSTANDARD + /// + /// Constructs a new instance of the ValidationException class with serialized data. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is null. + /// The class name is null or is zero (0). + protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + : base(info, context) + { + } + + /// + /// Sets the with information about the exception. + /// + /// The that holds the serialized object data about the exception being thrown. + /// The that contains contextual information about the source or destination. + /// The parameter is a null reference (Nothing in Visual Basic). +#if BCL35 + [System.Security.Permissions.SecurityPermission( + System.Security.Permissions.SecurityAction.LinkDemand, + Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] +#endif + [System.Security.SecurityCritical] + // These FxCop rules are giving false-positives for this method + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] + public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) + { + base.GetObjectData(info, context); + } +#endif + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IListEndpointsPaginator.cs b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IListEndpointsPaginator.cs new file mode 100644 index 000000000000..29369f2439ce --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IListEndpointsPaginator.cs @@ -0,0 +1,40 @@ +#if !NETSTANDARD13 +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ +using Amazon.Runtime; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Paginator for the ListEndpoints operation + /// + public interface IListEndpointsPaginator + { + /// + /// Enumerable containing all full responses for the operation + /// + IPaginatedEnumerable Responses { get; } + + /// + /// Enumerable containing all of the Endpoints + /// + IPaginatedEnumerable Endpoints { get; } + } +} +#endif \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IS3OutpostsPaginatorFactory.cs b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IS3OutpostsPaginatorFactory.cs new file mode 100644 index 000000000000..001545ccf760 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/IS3OutpostsPaginatorFactory.cs @@ -0,0 +1,35 @@ +#if !NETSTANDARD13 +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + +namespace Amazon.S3Outposts.Model +{ + /// + /// Paginators for the S3Outposts service + /// + public interface IS3OutpostsPaginatorFactory + { + + /// + /// Paginator for ListEndpoints operation + /// + IListEndpointsPaginator ListEndpoints(ListEndpointsRequest request); + } +} +#endif \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/ListEndpointsPaginator.cs b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/ListEndpointsPaginator.cs new file mode 100644 index 000000000000..b691f66d6f16 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/ListEndpointsPaginator.cs @@ -0,0 +1,99 @@ +#if !NETSTANDARD13 +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; +using System.Collections; +using System.Threading; +using System.Threading.Tasks; +using Amazon.Runtime; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Base class for ListEndpoints paginators. + /// + internal sealed partial class ListEndpointsPaginator : IPaginator, IListEndpointsPaginator + { + private readonly IAmazonS3Outposts _client; + private readonly ListEndpointsRequest _request; + private int _isPaginatorInUse = 0; + + /// + /// Enumerable containing all full responses for the operation + /// + public IPaginatedEnumerable Responses => new PaginatedResponse(this); + + /// + /// Enumerable containing all of the Endpoints + /// + public IPaginatedEnumerable Endpoints => + new PaginatedResultKeyResponse(this, (i) => i.Endpoints); + + internal ListEndpointsPaginator(IAmazonS3Outposts client, ListEndpointsRequest request) + { + this._client = client; + this._request = request; + } +#if BCL + IEnumerable IPaginator.Paginate() + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListEndpointsResponse response; + do + { + _request.NextToken = nextToken; + response = _client.ListEndpoints(_request); + nextToken = response.NextToken; + yield return response; + } + while (nextToken != null); + } +#endif +#if AWS_ASYNC_ENUMERABLES_API + async IAsyncEnumerable IPaginator.PaginateAsync(CancellationToken cancellationToken = default) + { + if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) + { + throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); + } + PaginatorUtils.SetUserAgentAdditionOnRequest(_request); + var nextToken = _request.NextToken; + ListEndpointsResponse response; + do + { + _request.NextToken = nextToken; + response = await _client.ListEndpointsAsync(_request, cancellationToken).ConfigureAwait(false); + nextToken = response.NextToken; + cancellationToken.ThrowIfCancellationRequested(); + yield return response; + } + while (nextToken != null); + } +#endif + } +} +#endif \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/S3OutpostsPaginatorFactory.cs b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/S3OutpostsPaginatorFactory.cs new file mode 100644 index 000000000000..6aa7c48a6089 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/Model/_bcl45+netstandard/S3OutpostsPaginatorFactory.cs @@ -0,0 +1,48 @@ +#if !NETSTANDARD13 +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Amazon.S3Outposts.Model +{ + /// + /// Paginators for the S3Outposts service + /// + public class S3OutpostsPaginatorFactory : IS3OutpostsPaginatorFactory + { + private readonly IAmazonS3Outposts client; + + internal S3OutpostsPaginatorFactory(IAmazonS3Outposts client) + { + this.client = client; + } + + /// + /// Paginator for ListEndpoints operation + /// + public IListEndpointsPaginator ListEndpoints(ListEndpointsRequest request) + { + return new ListEndpointsPaginator(this.client, request); + } + } +} +#endif \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/ServiceEnumerations.cs b/sdk/src/Services/S3Outposts/Generated/ServiceEnumerations.cs new file mode 100644 index 000000000000..e2094eb96244 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/ServiceEnumerations.cs @@ -0,0 +1,76 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + +using System; + +using Amazon.Runtime; + +namespace Amazon.S3Outposts +{ + + /// + /// Constants used for properties of type EndpointStatus. + /// + public class EndpointStatus : ConstantClass + { + + /// + /// Constant AVAILABLE for EndpointStatus + /// + public static readonly EndpointStatus AVAILABLE = new EndpointStatus("AVAILABLE"); + /// + /// Constant PENDING for EndpointStatus + /// + public static readonly EndpointStatus PENDING = new EndpointStatus("PENDING"); + + /// + /// This constant constructor does not need to be called if the constant + /// you are attempting to use is already defined as a static instance of + /// this class. + /// This constructor should be used to construct constants that are not + /// defined as statics, for instance if attempting to use a feature that is + /// newer than the current version of the SDK. + /// + public EndpointStatus(string value) + : base(value) + { + } + + /// + /// Finds the constant for the unique value. + /// + /// The unique value for the constant + /// The constant for the unique value + public static EndpointStatus FindValue(string value) + { + return FindValue(value); + } + + /// + /// Utility method to convert strings to the constant class. + /// + /// The string value to convert to the constant class. + /// + public static implicit operator EndpointStatus(string value) + { + return FindValue(value); + } + } + +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/_bcl35/AmazonS3OutpostsClient.cs b/sdk/src/Services/S3Outposts/Generated/_bcl35/AmazonS3OutpostsClient.cs new file mode 100644 index 000000000000..34dd145d267b --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/_bcl35/AmazonS3OutpostsClient.cs @@ -0,0 +1,508 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Collections.Generic; +using System.Net; + +using Amazon.S3Outposts.Model; +using Amazon.S3Outposts.Model.Internal.MarshallTransformations; +using Amazon.S3Outposts.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; + +namespace Amazon.S3Outposts +{ + /// + /// Implementation for accessing S3Outposts + /// + /// Amazon S3 on Outposts provides access to S3 on Outposts operations. + /// + public partial class AmazonS3OutpostsClient : AmazonServiceClient, IAmazonS3Outposts + { + private static IServiceMetadata serviceMetadata = new AmazonS3OutpostsMetadata(); + + #region Constructors + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonS3OutpostsClient() + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonS3OutpostsConfig()) { } + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonS3OutpostsClient(RegionEndpoint region) + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonS3OutpostsConfig{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(AmazonS3OutpostsConfig config) + : base(FallbackCredentialsFactory.GetCredentials(), config) { } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials + /// + /// AWS Credentials + public AmazonS3OutpostsClient(AWSCredentials credentials) + : this(credentials, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonS3OutpostsClient(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonS3OutpostsConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Credentials + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(AWSCredentials credentials, AmazonS3OutpostsConfig clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonS3OutpostsConfig() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonS3OutpostsConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonS3OutpostsConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonS3OutpostsConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion + + #region Overrides + + + /// + /// Creates the signer for the service. + /// + protected override AbstractAWSSigner CreateSigner() + { + return new AWS4Signer(); + } + + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region CreateEndpoint + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + public virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the CreateEndpoint operation. + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint operation on AmazonS3OutpostsClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEndpoint + /// operation. + /// REST API Reference for CreateEndpoint Operation + public virtual IAsyncResult BeginCreateEndpoint(CreateEndpointRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the CreateEndpoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateEndpoint. + /// + /// Returns a CreateEndpointResult from S3Outposts. + /// REST API Reference for CreateEndpoint Operation + public virtual CreateEndpointResponse EndCreateEndpoint(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region DeleteEndpoint + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the DeleteEndpoint operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint operation on AmazonS3OutpostsClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEndpoint + /// operation. + /// REST API Reference for DeleteEndpoint Operation + public virtual IAsyncResult BeginDeleteEndpoint(DeleteEndpointRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the DeleteEndpoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteEndpoint. + /// + /// Returns a DeleteEndpointResult from S3Outposts. + /// REST API Reference for DeleteEndpoint Operation + public virtual DeleteEndpointResponse EndDeleteEndpoint(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + #region ListEndpoints + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + /// + /// Initiates the asynchronous execution of the ListEndpoints operation. + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints operation on AmazonS3OutpostsClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEndpoints + /// operation. + /// REST API Reference for ListEndpoints Operation + public virtual IAsyncResult BeginListEndpoints(ListEndpointsRequest request, AsyncCallback callback, object state) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; + + return BeginInvoke(request, options, callback, state); + } + + /// + /// Finishes the asynchronous execution of the ListEndpoints operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListEndpoints. + /// + /// Returns a ListEndpointsResult from S3Outposts. + /// REST API Reference for ListEndpoints Operation + public virtual ListEndpointsResponse EndListEndpoints(IAsyncResult asyncResult) + { + return EndInvoke(asyncResult); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/_bcl35/IAmazonS3Outposts.cs b/sdk/src/Services/S3Outposts/Generated/_bcl35/IAmazonS3Outposts.cs new file mode 100644 index 000000000000..7b60b4bfcf30 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/_bcl35/IAmazonS3Outposts.cs @@ -0,0 +1,273 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.S3Outposts.Model; + +namespace Amazon.S3Outposts +{ + /// + /// Interface for accessing S3Outposts + /// + /// Amazon S3 on Outposts provides access to S3 on Outposts operations. + /// + public partial interface IAmazonS3Outposts : IAmazonService, IDisposable + { + + +#if BCL45 || AWS_ASYNC_ENUMERABLES_API + /// + /// Paginators for the service + /// + IS3OutpostsPaginatorFactory Paginators { get; } +#endif + + + + #region CreateEndpoint + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request); + + /// + /// Initiates the asynchronous execution of the CreateEndpoint operation. + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint operation on AmazonS3OutpostsClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateEndpoint + /// operation. + /// REST API Reference for CreateEndpoint Operation + IAsyncResult BeginCreateEndpoint(CreateEndpointRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the CreateEndpoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginCreateEndpoint. + /// + /// Returns a CreateEndpointResult from S3Outposts. + /// REST API Reference for CreateEndpoint Operation + CreateEndpointResponse EndCreateEndpoint(IAsyncResult asyncResult); + + #endregion + + #region DeleteEndpoint + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request); + + /// + /// Initiates the asynchronous execution of the DeleteEndpoint operation. + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint operation on AmazonS3OutpostsClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteEndpoint + /// operation. + /// REST API Reference for DeleteEndpoint Operation + IAsyncResult BeginDeleteEndpoint(DeleteEndpointRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the DeleteEndpoint operation. + /// + /// + /// The IAsyncResult returned by the call to BeginDeleteEndpoint. + /// + /// Returns a DeleteEndpointResult from S3Outposts. + /// REST API Reference for DeleteEndpoint Operation + DeleteEndpointResponse EndDeleteEndpoint(IAsyncResult asyncResult); + + #endregion + + #region ListEndpoints + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + ListEndpointsResponse ListEndpoints(ListEndpointsRequest request); + + /// + /// Initiates the asynchronous execution of the ListEndpoints operation. + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints operation on AmazonS3OutpostsClient. + /// An AsyncCallback delegate that is invoked when the operation completes. + /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback + /// procedure using the AsyncState property. + /// + /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListEndpoints + /// operation. + /// REST API Reference for ListEndpoints Operation + IAsyncResult BeginListEndpoints(ListEndpointsRequest request, AsyncCallback callback, object state); + + + + /// + /// Finishes the asynchronous execution of the ListEndpoints operation. + /// + /// + /// The IAsyncResult returned by the call to BeginListEndpoints. + /// + /// Returns a ListEndpointsResult from S3Outposts. + /// REST API Reference for ListEndpoints Operation + ListEndpointsResponse EndListEndpoints(IAsyncResult asyncResult); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/_bcl45/AmazonS3OutpostsClient.cs b/sdk/src/Services/S3Outposts/Generated/_bcl45/AmazonS3OutpostsClient.cs new file mode 100644 index 000000000000..fe723eb28daa --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/_bcl45/AmazonS3OutpostsClient.cs @@ -0,0 +1,591 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Runtime.ExceptionServices; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Net; + +using Amazon.S3Outposts.Model; +using Amazon.S3Outposts.Model.Internal.MarshallTransformations; +using Amazon.S3Outposts.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; + +namespace Amazon.S3Outposts +{ + /// + /// Implementation for accessing S3Outposts + /// + /// Amazon S3 on Outposts provides access to S3 on Outposts operations. + /// + public partial class AmazonS3OutpostsClient : AmazonServiceClient, IAmazonS3Outposts + { + private static IServiceMetadata serviceMetadata = new AmazonS3OutpostsMetadata(); + private IS3OutpostsPaginatorFactory _paginators; + + /// + /// Paginators for the service + /// + public IS3OutpostsPaginatorFactory Paginators + { + get + { + if (this._paginators == null) + { + this._paginators = new S3OutpostsPaginatorFactory(this); + } + return this._paginators; + } + } + #region Constructors + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonS3OutpostsClient() + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonS3OutpostsConfig()) { } + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonS3OutpostsClient(RegionEndpoint region) + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonS3OutpostsConfig{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(AmazonS3OutpostsConfig config) + : base(FallbackCredentialsFactory.GetCredentials(), config) { } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials + /// + /// AWS Credentials + public AmazonS3OutpostsClient(AWSCredentials credentials) + : this(credentials, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonS3OutpostsClient(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonS3OutpostsConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Credentials + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(AWSCredentials credentials, AmazonS3OutpostsConfig clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonS3OutpostsConfig() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonS3OutpostsConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonS3OutpostsConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonS3OutpostsConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion + + #region Overrides + + /// + /// Creates the signer for the service. + /// + protected override AbstractAWSSigner CreateSigner() + { + return new AWS4Signer(); + } + + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region CreateEndpoint + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + public virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + public virtual Task CreateEndpointAsync(CreateEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteEndpoint + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + public virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + public virtual Task DeleteEndpointAsync(DeleteEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListEndpoints + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + public virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + public virtual Task ListEndpointsAsync(ListEndpointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/_bcl45/IAmazonS3Outposts.cs b/sdk/src/Services/S3Outposts/Generated/_bcl45/IAmazonS3Outposts.cs new file mode 100644 index 000000000000..8ce29dfca9ba --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/_bcl45/IAmazonS3Outposts.cs @@ -0,0 +1,340 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.S3Outposts.Model; + +namespace Amazon.S3Outposts +{ + /// + /// Interface for accessing S3Outposts + /// + /// Amazon S3 on Outposts provides access to S3 on Outposts operations. + /// + public partial interface IAmazonS3Outposts : IAmazonService, IDisposable + { + + /// + /// Paginators for the service + /// + IS3OutpostsPaginatorFactory Paginators { get; } + + + #region CreateEndpoint + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request); + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + Task CreateEndpointAsync(CreateEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteEndpoint + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request); + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + Task DeleteEndpointAsync(DeleteEndpointRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListEndpoints + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + ListEndpointsResponse ListEndpoints(ListEndpointsRequest request); + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + Task ListEndpointsAsync(ListEndpointsRequest request, CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/_netstandard/AmazonS3OutpostsClient.cs b/sdk/src/Services/S3Outposts/Generated/_netstandard/AmazonS3OutpostsClient.cs new file mode 100644 index 000000000000..8e787b205ae5 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/_netstandard/AmazonS3OutpostsClient.cs @@ -0,0 +1,469 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Runtime.ExceptionServices; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; +using System.Net; + +using Amazon.S3Outposts.Model; +using Amazon.S3Outposts.Model.Internal.MarshallTransformations; +using Amazon.S3Outposts.Internal; +using Amazon.Runtime; +using Amazon.Runtime.Internal; +using Amazon.Runtime.Internal.Auth; +using Amazon.Runtime.Internal.Transform; + +namespace Amazon.S3Outposts +{ + /// + /// Implementation for accessing S3Outposts + /// + /// Amazon S3 on Outposts provides access to S3 on Outposts operations. + /// + public partial class AmazonS3OutpostsClient : AmazonServiceClient, IAmazonS3Outposts + { + private static IServiceMetadata serviceMetadata = new AmazonS3OutpostsMetadata(); + + #region Constructors + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + public AmazonS3OutpostsClient() + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonS3OutpostsConfig()) { } + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The region to connect. + public AmazonS3OutpostsClient(RegionEndpoint region) + : base(FallbackCredentialsFactory.GetCredentials(), new AmazonS3OutpostsConfig{RegionEndpoint = region}) { } + + /// + /// Constructs AmazonS3OutpostsClient with the credentials loaded from the application's + /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. + /// + /// Example App.config with credentials set. + /// + /// <?xml version="1.0" encoding="utf-8" ?> + /// <configuration> + /// <appSettings> + /// <add key="AWSProfileName" value="AWS Default"/> + /// </appSettings> + /// </configuration> + /// + /// + /// + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(AmazonS3OutpostsConfig config) + : base(FallbackCredentialsFactory.GetCredentials(), config) { } + + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials + /// + /// AWS Credentials + public AmazonS3OutpostsClient(AWSCredentials credentials) + : this(credentials, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials + /// + /// AWS Credentials + /// The region to connect. + public AmazonS3OutpostsClient(AWSCredentials credentials, RegionEndpoint region) + : this(credentials, new AmazonS3OutpostsConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Credentials and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Credentials + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(AWSCredentials credentials, AmazonS3OutpostsConfig clientConfig) + : base(credentials, clientConfig) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The region to connect. + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, new AmazonS3OutpostsConfig() {RegionEndpoint=region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonS3OutpostsConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonS3OutpostsConfig()) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID and AWS Secret Key + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The region to connect. + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) + : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonS3OutpostsConfig{RegionEndpoint = region}) + { + } + + /// + /// Constructs AmazonS3OutpostsClient with AWS Access Key ID, AWS Secret Key and an + /// AmazonS3OutpostsClient Configuration object. + /// + /// AWS Access Key ID + /// AWS Secret Access Key + /// AWS Session Token + /// The AmazonS3OutpostsClient Configuration Object + public AmazonS3OutpostsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonS3OutpostsConfig clientConfig) + : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) + { + } + + #endregion +#if AWS_ASYNC_ENUMERABLES_API + private IS3OutpostsPaginatorFactory _paginators; + + /// + /// Paginators for the service + /// + public IS3OutpostsPaginatorFactory Paginators + { + get + { + if (this._paginators == null) + { + this._paginators = new S3OutpostsPaginatorFactory(this); + } + return this._paginators; + } + } +#endif + + #region Overrides + + /// + /// Creates the signer for the service. + /// + protected override AbstractAWSSigner CreateSigner() + { + return new AWS4Signer(); + } + + /// + /// Capture metadata for the service. + /// + protected override IServiceMetadata ServiceMetadata + { + get + { + return serviceMetadata; + } + } + + #endregion + + #region Dispose + + /// + /// Disposes the service client. + /// + protected override void Dispose(bool disposing) + { + base.Dispose(disposing); + } + + #endregion + + + #region CreateEndpoint + + internal virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + public virtual Task CreateEndpointAsync(CreateEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region DeleteEndpoint + + internal virtual DeleteEndpointResponse DeleteEndpoint(DeleteEndpointRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + public virtual Task DeleteEndpointAsync(DeleteEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = DeleteEndpointRequestMarshaller.Instance; + options.ResponseUnmarshaller = DeleteEndpointResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + #region ListEndpoints + + internal virtual ListEndpointsResponse ListEndpoints(ListEndpointsRequest request) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; + + return Invoke(request, options); + } + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + public virtual Task ListEndpointsAsync(ListEndpointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) + { + var options = new InvokeOptions(); + options.RequestMarshaller = ListEndpointsRequestMarshaller.Instance; + options.ResponseUnmarshaller = ListEndpointsResponseUnmarshaller.Instance; + + return InvokeAsync(request, options, cancellationToken); + } + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Generated/_netstandard/IAmazonS3Outposts.cs b/sdk/src/Services/S3Outposts/Generated/_netstandard/IAmazonS3Outposts.cs new file mode 100644 index 000000000000..30da3cb445b9 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Generated/_netstandard/IAmazonS3Outposts.cs @@ -0,0 +1,205 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Threading; +using System.Threading.Tasks; +using System.Collections.Generic; + +using Amazon.Runtime; +using Amazon.S3Outposts.Model; + +namespace Amazon.S3Outposts +{ + /// + /// Interface for accessing S3Outposts + /// + /// Amazon S3 on Outposts provides access to S3 on Outposts operations. + /// + public partial interface IAmazonS3Outposts : IAmazonService, IDisposable + { +#if AWS_ASYNC_ENUMERABLES_API + /// + /// Paginators for the service + /// + IS3OutpostsPaginatorFactory Paginators { get; } +#endif + + #region CreateEndpoint + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action creates an endpoint and associates it with the specified Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the CreateEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the CreateEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was a conflict with this action, and it could not be completed. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for CreateEndpoint Operation + Task CreateEndpointAsync(CreateEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region DeleteEndpoint + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action deletes an endpoint. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the DeleteEndpoint service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the DeleteEndpoint service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for DeleteEndpoint Operation + Task DeleteEndpointAsync(DeleteEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + #region ListEndpoints + + + + /// + /// S3 on Outposts access points simplify managing data access at scale for shared datasets + /// in Amazon S3 on Outposts. S3 on Outposts uses endpoints to connect to Outposts buckets + /// so that you can perform actions within your virtual private cloud (VPC). + /// + /// + /// + /// This action lists endpoints associated with the Outpost. + /// + /// + /// + /// Related actions include: + /// + /// + /// + /// Container for the necessary parameters to execute the ListEndpoints service method. + /// + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// + /// + /// The response from the ListEndpoints service method, as returned by S3Outposts. + /// + /// Access was denied for this action. + /// + /// + /// There was an exception with the internal server. + /// + /// + /// The requested resource was not found. + /// + /// + /// There was an exception validating this data. + /// + /// REST API Reference for ListEndpoints Operation + Task ListEndpointsAsync(ListEndpointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); + + #endregion + + } +} \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/Properties/AssemblyInfo.cs b/sdk/src/Services/S3Outposts/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..0232ee632571 --- /dev/null +++ b/sdk/src/Services/S3Outposts/Properties/AssemblyInfo.cs @@ -0,0 +1,53 @@ +using System; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AWSSDK.S3Outposts")] +#if BCL35 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon S3 on Outposts. Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.")] +#elif BCL45 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon S3 on Outposts. Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.")] +#elif NETSTANDARD13 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 1.3) - Amazon S3 on Outposts. Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.")] +#elif NETSTANDARD20 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon S3 on Outposts. Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.")] +#elif NETCOREAPP3_1 +[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon S3 on Outposts. Amazon S3 on Outposts expands object storage to on-premises AWS Outposts environments, enabling you to store and retrieve objects using S3 APIs and features.")] +#else +#error Unknown platform constant - unable to set correct AssemblyDescription +#endif + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] +[assembly: AssemblyCompany("Amazon.com, Inc")] +[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("3.3")] +[assembly: AssemblyFileVersion("3.3")] + +[assembly: System.CLSCompliant(true)] + +#if BCL +[assembly: System.Security.AllowPartiallyTrustedCallers] +#endif \ No newline at end of file diff --git a/sdk/src/Services/S3Outposts/S3Outposts.sln b/sdk/src/Services/S3Outposts/S3Outposts.sln new file mode 100644 index 000000000000..fcd4369c8783 --- /dev/null +++ b/sdk/src/Services/S3Outposts/S3Outposts.sln @@ -0,0 +1,153 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26730.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.Net35", "..\..\Core\AWSSDK.Core.Net35.csproj", "{1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.Net45", "..\..\Core\AWSSDK.Core.Net45.csproj", "{7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.NetStandard", "..\..\Core\AWSSDK.Core.NetStandard.csproj", "{A855B58E-ED32-40AE-AE8F-054F448B9F2C}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{939EC5C2-8345-43E2-8F97-72EEEBEEA0AB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "S3Outposts", "S3Outposts", "{64F89AA8-B7B9-5D64-5B1C-20A4481EC353}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.Net35", "AWSSDK.S3Outposts.Net35.csproj", "{96D98115-8C7E-477B-B90B-8288EC223C8C}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.Net45", "AWSSDK.S3Outposts.Net45.csproj", "{8CA04C71-7F01-4614-A098-E2A3A75BB1A8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3Outposts.NetStandard", "AWSSDK.S3Outposts.NetStandard.csproj", "{DE3C5ECB-E36E-44A9-B211-D518C7CB4F41}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.S3Outposts.Net35", "..\..\..\test\Services\S3Outposts\UnitTests\AWSSDK.UnitTests.S3Outposts.Net35.csproj", "{7B9C06A0-B076-4E3A-9930-288289516D49}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.S3Outposts.Net45", "..\..\..\test\Services\S3Outposts\UnitTests\AWSSDK.UnitTests.S3Outposts.Net45.csproj", "{109ED6B1-DABF-4859-AC74-9615F7E90BC7}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServiceClientGeneratorLib", "..\..\..\..\generator\ServiceClientGeneratorLib\ServiceClientGeneratorLib.csproj", "{7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTestUtilities.Net35", "..\..\..\test\UnitTests\Custom\AWSSDK.UnitTestUtilities.Net35.csproj", "{A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTestUtilities.Net45", "..\..\..\test\UnitTests\Custom\AWSSDK.UnitTestUtilities.Net45.csproj", "{002B183F-E568-49CD-9D06-CBCFF2C2921F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IntegrationTestUtilities.Net35", "..\..\..\test\IntegrationTests\AWSSDK.IntegrationTestUtilities.Net35.csproj", "{924D2906-70D6-4D77-8603-816648B2CCA6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IntegrationTestUtilities.Net45", "..\..\..\test\IntegrationTests\AWSSDK.IntegrationTestUtilities.Net45.csproj", "{7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.CommonTest", "..\..\..\test\Common\AWSSDK.CommonTest.csproj", "{66F78F86-68D7-4538-8EA5-A669A08E1C19}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IntegrationTestDependencies", "IntegrationTestDependencies", "{939EC5C2-8345-43E2-8F97-72EEEBEEA0AC}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IdentityManagement.Net35", "..\IdentityManagement\AWSSDK.IdentityManagement.Net35.csproj", "{52A54549-EF4F-4AE8-B893-4DBF1F31D237}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SecurityToken.Net35", "..\SecurityToken\AWSSDK.SecurityToken.Net35.csproj", "{5FC613E3-20A2-4E5A-A7F8-098763C314C7}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SimpleNotificationService.Net35", "..\SimpleNotificationService\AWSSDK.SimpleNotificationService.Net35.csproj", "{CCEDEF13-196D-4E06-BA4E-4A19CF42DFFE}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.Net35", "..\S3\AWSSDK.S3.Net35.csproj", "{0BB1B11D-CEED-4E86-A192-31BAE29C4AB9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IdentityManagement.Net45", "..\IdentityManagement\AWSSDK.IdentityManagement.Net45.csproj", "{01832BE4-8403-4FD3-A4EF-BD2A7AC16086}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.Net45", "..\S3\AWSSDK.S3.Net45.csproj", "{A6DE34AF-9618-4FC4-9630-B4192971B605}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SecurityToken.Net45", "..\SecurityToken\AWSSDK.SecurityToken.Net45.csproj", "{7CDDE8D8-27F7-4C9E-AD3A-58D5448EDBA4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SimpleNotificationService.Net45", "..\SimpleNotificationService\AWSSDK.SimpleNotificationService.Net45.csproj", "{EF385E50-F7BC-4712-B5BF-6522A955B1CB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8}.Release|Any CPU.Build.0 = Release|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43}.Release|Any CPU.Build.0 = Release|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A855B58E-ED32-40AE-AE8F-054F448B9F2C}.Release|Any CPU.Build.0 = Release|Any CPU + {96D98115-8C7E-477B-B90B-8288EC223C8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {96D98115-8C7E-477B-B90B-8288EC223C8C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {96D98115-8C7E-477B-B90B-8288EC223C8C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {96D98115-8C7E-477B-B90B-8288EC223C8C}.Release|Any CPU.Build.0 = Release|Any CPU + {8CA04C71-7F01-4614-A098-E2A3A75BB1A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8CA04C71-7F01-4614-A098-E2A3A75BB1A8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8CA04C71-7F01-4614-A098-E2A3A75BB1A8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8CA04C71-7F01-4614-A098-E2A3A75BB1A8}.Release|Any CPU.Build.0 = Release|Any CPU + {DE3C5ECB-E36E-44A9-B211-D518C7CB4F41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DE3C5ECB-E36E-44A9-B211-D518C7CB4F41}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DE3C5ECB-E36E-44A9-B211-D518C7CB4F41}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DE3C5ECB-E36E-44A9-B211-D518C7CB4F41}.Release|Any CPU.Build.0 = Release|Any CPU + {7B9C06A0-B076-4E3A-9930-288289516D49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7B9C06A0-B076-4E3A-9930-288289516D49}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7B9C06A0-B076-4E3A-9930-288289516D49}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7B9C06A0-B076-4E3A-9930-288289516D49}.Release|Any CPU.Build.0 = Release|Any CPU + {109ED6B1-DABF-4859-AC74-9615F7E90BC7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {109ED6B1-DABF-4859-AC74-9615F7E90BC7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {109ED6B1-DABF-4859-AC74-9615F7E90BC7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {109ED6B1-DABF-4859-AC74-9615F7E90BC7}.Release|Any CPU.Build.0 = Release|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8}.Release|Any CPU.Build.0 = Release|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E}.Release|Any CPU.Build.0 = Release|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {002B183F-E568-49CD-9D06-CBCFF2C2921F}.Release|Any CPU.Build.0 = Release|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {924D2906-70D6-4D77-8603-816648B2CCA6}.Release|Any CPU.Build.0 = Release|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7}.Release|Any CPU.Build.0 = Release|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Debug|Any CPU.Build.0 = Debug|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Release|Any CPU.ActiveCfg = Release|Any CPU + {66F78F86-68D7-4538-8EA5-A669A08E1C19}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {1FACE5D0-97BF-4069-B4F7-0FE28BB160F8} = {9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8} + {7DE3AFA0-1B2D-41B1-82BD-120B8B210B43} = {9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8} + {A855B58E-ED32-40AE-AE8F-054F448B9F2C} = {9863FCB3-BFA4-4B9C-B8F6-302BA5F660B8} + {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} + {96D98115-8C7E-477B-B90B-8288EC223C8C} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} + {8CA04C71-7F01-4614-A098-E2A3A75BB1A8} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} + {DE3C5ECB-E36E-44A9-B211-D518C7CB4F41} = {64F89AA8-B7B9-5D64-5B1C-20A4481EC353} + {7B9C06A0-B076-4E3A-9930-288289516D49} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {109ED6B1-DABF-4859-AC74-9615F7E90BC7} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {7BEE7C44-BE12-43CC-AFB9-B5852A1F43C8} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {A23CE153-A4A3-4D3A-A6DC-0DD1B207118E} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {002B183F-E568-49CD-9D06-CBCFF2C2921F} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {924D2906-70D6-4D77-8603-816648B2CCA6} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {7AB0DA1C-CA0E-4579-BA82-2B41A9DA15C7} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {66F78F86-68D7-4538-8EA5-A669A08E1C19} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} + {52A54549-EF4F-4AE8-B893-4DBF1F31D237} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {5FC613E3-20A2-4E5A-A7F8-098763C314C7} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {CCEDEF13-196D-4E06-BA4E-4A19CF42DFFE} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {0BB1B11D-CEED-4E86-A192-31BAE29C4AB9} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {01832BE4-8403-4FD3-A4EF-BD2A7AC16086} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {A6DE34AF-9618-4FC4-9630-B4192971B605} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {7CDDE8D8-27F7-4C9E-AD3A-58D5448EDBA4} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + {EF385E50-F7BC-4712-B5BF-6522A955B1CB} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8E4CA268-3E0F-4B47-A0BE-AC7AC25AA62A} + EndGlobalSection +EndGlobal \ No newline at end of file diff --git a/sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net35.csproj b/sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net35.csproj new file mode 100644 index 000000000000..247a1e05223b --- /dev/null +++ b/sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net35.csproj @@ -0,0 +1,53 @@ + + + true + net45 + $(DefineConstants);TRACE;BCL;BCL35;AWS_APM_API;DEBUG + portable + true + AWSSDK.UnitTests.S3Outposts.Net35 + AWSSDK.UnitTests.S3Outposts.Net35 + + false + false + false + false + false + false + false + false + + CS1591 + false + bin\$(Configuration)\net35 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net45.csproj b/sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net45.csproj new file mode 100644 index 000000000000..4dbdc11b78e4 --- /dev/null +++ b/sdk/test/Services/S3Outposts/UnitTests/AWSSDK.UnitTests.S3Outposts.Net45.csproj @@ -0,0 +1,49 @@ + + + true + net45 + $(DefineConstants);TRACE;BCL;BCL45;ASYNC_AWAIT;DEBUG + portable + true + AWSSDK.UnitTests.S3Outposts.Net45 + AWSSDK.UnitTests.S3Outposts.Net45 + + false + false + false + false + false + false + false + false + + CS1591 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sdk/test/Services/S3Outposts/UnitTests/Generated/Marshalling/S3OutpostsMarshallingTests.cs b/sdk/test/Services/S3Outposts/UnitTests/Generated/Marshalling/S3OutpostsMarshallingTests.cs new file mode 100644 index 000000000000..e9162f252e44 --- /dev/null +++ b/sdk/test/Services/S3Outposts/UnitTests/Generated/Marshalling/S3OutpostsMarshallingTests.cs @@ -0,0 +1,538 @@ +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + + +using System; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Text; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +using Amazon.S3Outposts; +using Amazon.S3Outposts.Model; +using Amazon.S3Outposts.Model.Internal.MarshallTransformations; +using Amazon.Runtime.Internal.Transform; +using Amazon.Util; +using ServiceClientGenerator; + +using AWSSDK_DotNet35.UnitTests.TestTools; + +namespace AWSSDK_DotNet35.UnitTests.Marshalling +{ + [TestClass] + public partial class S3OutpostsMarshallingTests + { + static readonly ServiceModel service_model = Utils.LoadServiceModel("s3outposts"); + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void CreateEndpointMarshallTest() + { + var operation = service_model.FindOperation("CreateEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CreateEndpointRequestMarshaller(); + + var internalRequest = marshaller.Marshall(request); + TestTools.RequestValidator.Validate("CreateEndpoint", request, internalRequest, service_model); + + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"} + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, operation.ResponseStructure).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); + ResponseUnmarshaller unmarshaller = CreateEndpointResponseUnmarshaller.Instance; + var response = unmarshaller.Unmarshall(context) + as CreateEndpointResponse; + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void CreateEndpoint_AccessDeniedExceptionMarshallTest() + { + var operation = service_model.FindOperation("CreateEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CreateEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("CreateEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("AccessDeniedException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","AccessDeniedException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = CreateEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void CreateEndpoint_ConflictExceptionMarshallTest() + { + var operation = service_model.FindOperation("CreateEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CreateEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("CreateEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ConflictException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = CreateEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void CreateEndpoint_InternalServerExceptionMarshallTest() + { + var operation = service_model.FindOperation("CreateEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CreateEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("CreateEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","InternalServerException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = CreateEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void CreateEndpoint_ResourceNotFoundExceptionMarshallTest() + { + var operation = service_model.FindOperation("CreateEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CreateEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("CreateEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ResourceNotFoundException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = CreateEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void CreateEndpoint_ValidationExceptionMarshallTest() + { + var operation = service_model.FindOperation("CreateEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new CreateEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("CreateEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ValidationException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = CreateEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void DeleteEndpointMarshallTest() + { + var operation = service_model.FindOperation("DeleteEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new DeleteEndpointRequestMarshaller(); + + var internalRequest = marshaller.Marshall(request); + TestTools.RequestValidator.Validate("DeleteEndpoint", request, internalRequest, service_model); + + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void DeleteEndpoint_AccessDeniedExceptionMarshallTest() + { + var operation = service_model.FindOperation("DeleteEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new DeleteEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("DeleteEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("AccessDeniedException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","AccessDeniedException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = DeleteEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void DeleteEndpoint_InternalServerExceptionMarshallTest() + { + var operation = service_model.FindOperation("DeleteEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new DeleteEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("DeleteEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","InternalServerException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = DeleteEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void DeleteEndpoint_ResourceNotFoundExceptionMarshallTest() + { + var operation = service_model.FindOperation("DeleteEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new DeleteEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("DeleteEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ResourceNotFoundException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = DeleteEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void DeleteEndpoint_ValidationExceptionMarshallTest() + { + var operation = service_model.FindOperation("DeleteEndpoint"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new DeleteEndpointRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("DeleteEndpoint", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ValidationException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = DeleteEndpointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void ListEndpointsMarshallTest() + { + var operation = service_model.FindOperation("ListEndpoints"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new ListEndpointsRequestMarshaller(); + + var internalRequest = marshaller.Marshall(request); + TestTools.RequestValidator.Validate("ListEndpoints", request, internalRequest, service_model); + + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"} + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, operation.ResponseStructure).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, webResponse); + ResponseUnmarshaller unmarshaller = ListEndpointsResponseUnmarshaller.Instance; + var response = unmarshaller.Unmarshall(context) + as ListEndpointsResponse; + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void ListEndpoints_AccessDeniedExceptionMarshallTest() + { + var operation = service_model.FindOperation("ListEndpoints"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new ListEndpointsRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("ListEndpoints", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("AccessDeniedException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","AccessDeniedException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = ListEndpointsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void ListEndpoints_InternalServerExceptionMarshallTest() + { + var operation = service_model.FindOperation("ListEndpoints"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new ListEndpointsRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("ListEndpoints", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","InternalServerException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = ListEndpointsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void ListEndpoints_ResourceNotFoundExceptionMarshallTest() + { + var operation = service_model.FindOperation("ListEndpoints"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new ListEndpointsRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("ListEndpoints", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ResourceNotFoundException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = ListEndpointsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("Rest_Json")] + [TestCategory("S3Outposts")] + public void ListEndpoints_ValidationExceptionMarshallTest() + { + var operation = service_model.FindOperation("ListEndpoints"); + + var request = InstantiateClassGenerator.Execute(); + var marshaller = new ListEndpointsRequestMarshaller(); + var internalRequest = marshaller.Marshall(request); + + TestTools.RequestValidator.Validate("ListEndpoints", request, internalRequest, service_model); + + var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); + var webResponse = new WebResponseData + { + Headers = { + {"x-amzn-RequestId", Guid.NewGuid().ToString()}, + {"x-amz-crc32","0"}, + {"x-amzn-ErrorType","ValidationException"}, + } + }; + + var payloadResponse = new JsonSampleGenerator(service_model, exception).Execute(); + webResponse.Headers["Content-Length"] = UTF8Encoding.UTF8.GetBytes(payloadResponse).Length.ToString(); + var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), true, webResponse, true); + var response = ListEndpointsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); + + InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); + } + } +} \ No newline at end of file diff --git a/sdk/test/Services/S3Outposts/UnitTests/Generated/_bcl45+netstandard/Paginators/S3OutpostsPaginatorTests.cs b/sdk/test/Services/S3Outposts/UnitTests/Generated/_bcl45+netstandard/Paginators/S3OutpostsPaginatorTests.cs new file mode 100644 index 000000000000..586b40d05ab7 --- /dev/null +++ b/sdk/test/Services/S3Outposts/UnitTests/Generated/_bcl45+netstandard/Paginators/S3OutpostsPaginatorTests.cs @@ -0,0 +1,83 @@ +#if !NETSTANDARD13 +/* + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"). + * You may not use this file except in compliance with the License. + * A copy of the License is located at + * + * http://aws.amazon.com/apache2.0 + * + * or in the "license" file accompanying this file. This file is distributed + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either + * express or implied. See the License for the specific language governing + * permissions and limitations under the License. + */ + +/* + * Do not modify this file. This file is generated from the s3outposts-2017-07-25.normal.json service model. + */ + +using Amazon.S3Outposts; +using Amazon.S3Outposts.Model; + +using Moq; +using System; +using System.Linq; +using AWSSDK_DotNet35.UnitTests.TestTools; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace AWSSDK_DotNet35.UnitTests.PaginatorTests +{ + [TestClass] + public class S3OutpostsPaginatorTests + { + private static Mock _mockClient; + + [ClassInitialize()] + public static void ClassInitialize(TestContext a) + { + _mockClient = new Mock("access key", "secret", Amazon.RegionEndpoint.USEast1); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("S3Outposts")] + public void ListEndpointsTest_TwoPages() + { + var request = InstantiateClassGenerator.Execute(); + + var firstResponse = InstantiateClassGenerator.Execute(); + var secondResponse = InstantiateClassGenerator.Execute(); + secondResponse.NextToken = null; + + _mockClient.SetupSequence(x => x.ListEndpoints(request)).Returns(firstResponse).Returns(secondResponse); + var paginator = _mockClient.Object.Paginators.ListEndpoints(request); + + Assert.AreEqual(2, paginator.Responses.ToList().Count); + } + + [TestMethod] + [TestCategory("UnitTest")] + [TestCategory("S3Outposts")] + [ExpectedException(typeof(System.InvalidOperationException), "Paginator has already been consumed and cannot be reused. Please create a new instance.")] + public void ListEndpointsTest__OnlyUsedOnce() + { + var request = InstantiateClassGenerator.Execute(); + + var response = InstantiateClassGenerator.Execute(); + response.NextToken = null; + + _mockClient.Setup(x => x.ListEndpoints(request)).Returns(response); + var paginator = _mockClient.Object.Paginators.ListEndpoints(request); + + // Should work the first time + paginator.Responses.ToList(); + + // Second time should throw an exception + paginator.Responses.ToList(); + } + + } +} +#endif \ No newline at end of file