diff --git a/README.md b/README.md index 306331432e38..0dc771e67e55 100644 --- a/README.md +++ b/README.md @@ -590,8 +590,6 @@ Unit tests can be found in the **AWSSDK.UnitTests** project. * Amazon Redshift is a fast, fully managed, petabyte-scale data warehouse solution that makes it simple and cost-effective to efficiently analyze all your data using your existing business intelligence tools. * [AWSSDK.RedshiftDataAPIService](https://www.nuget.org/packages/AWSSDK.RedshiftDataAPIService/) * The Amazon Redshift Data API is generally available. This release enables querying Amazon Redshift data and listing various database objects. -* [AWSSDK.RedshiftServerless](https://www.nuget.org/packages/AWSSDK.RedshiftServerless/) - * Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more. * [AWSSDK.Rekognition](https://www.nuget.org/packages/AWSSDK.Rekognition/) * AWS Rekognition service does image processing and concept recognition, face detection and identification, face verification, similar face search and face clustering. * [AWSSDK.ResilienceHub](https://www.nuget.org/packages/AWSSDK.ResilienceHub/) diff --git a/SDK.CHANGELOG.md b/SDK.CHANGELOG.md index db7880c232e4..d583199036cf 100644 --- a/SDK.CHANGELOG.md +++ b/SDK.CHANGELOG.md @@ -48,8 +48,6 @@ ### 3.7.296.0 (2022-06-16 18:14 UTC) * RedshiftDataAPIService (3.7.6.0) * This release adds a new --workgroup-name field to operations that connect to an endpoint. Customers can now execute queries against their serverless workgroups. -* RedshiftServerless (3.7.0.0) - * Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more. * SecretsManager (3.7.2.57) * Documentation updates for Secrets Manager * SecurityHub (3.7.12.0) diff --git a/generator/ServiceModels/_sdk-versions.json b/generator/ServiceModels/_sdk-versions.json index 37fcddecbfb5..4ec7f4c9c7f2 100644 --- a/generator/ServiceModels/_sdk-versions.json +++ b/generator/ServiceModels/_sdk-versions.json @@ -2465,14 +2465,6 @@ }, "InPreview" : false }, - "RedshiftServerless" : { - "Version" : "3.7.0.1", - "AssemblyVersionOverride" : "3.3", - "Dependencies" : { - "Core" : "3.7.12.2" - }, - "InPreview" : false - }, "ConnectCampaignService" : { "Version" : "3.7.0.0", "AssemblyVersionOverride" : "3.3", diff --git a/generator/ServiceModels/redshiftserverless/metadata.json b/generator/ServiceModels/redshiftserverless/metadata.json deleted file mode 100644 index 49749357b2ca..000000000000 --- a/generator/ServiceModels/redshiftserverless/metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "active": true, - "synopsis": "Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.", - "generate-client-constructors": true -} \ No newline at end of file diff --git a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.api.json b/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.api.json deleted file mode 100644 index 048287be978d..000000000000 --- a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.api.json +++ /dev/null @@ -1,1687 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2021-04-21", - "endpointPrefix":"redshift-serverless", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"Redshift Serverless", - "serviceId":"RedshiftServerless", - "signatureVersion":"v4", - "signingName":"redshift-serverless", - "targetPrefix":"RedshiftServerless", - "uid":"redshiftserverless-2021-04-21" - }, - "operations":{ - "ConvertRecoveryPointToSnapshot":{ - "name":"ConvertRecoveryPointToSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ConvertRecoveryPointToSnapshotRequest"}, - "output":{"shape":"ConvertRecoveryPointToSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ] - }, - "CreateEndpointAccess":{ - "name":"CreateEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEndpointAccessRequest"}, - "output":{"shape":"CreateEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "idempotent":true - }, - "CreateNamespace":{ - "name":"CreateNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateNamespaceRequest"}, - "output":{"shape":"CreateNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"TooManyTagsException"} - ], - "idempotent":true - }, - "CreateSnapshot":{ - "name":"CreateSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSnapshotRequest"}, - "output":{"shape":"CreateSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "idempotent":true - }, - "CreateUsageLimit":{ - "name":"CreateUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateUsageLimitRequest"}, - "output":{"shape":"CreateUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "idempotent":true - }, - "CreateWorkgroup":{ - "name":"CreateWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateWorkgroupRequest"}, - "output":{"shape":"CreateWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InsufficientCapacityException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"TooManyTagsException"} - ], - "idempotent":true - }, - "DeleteEndpointAccess":{ - "name":"DeleteEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEndpointAccessRequest"}, - "output":{"shape":"DeleteEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "idempotent":true - }, - "DeleteNamespace":{ - "name":"DeleteNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteNamespaceRequest"}, - "output":{"shape":"DeleteNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "idempotent":true - }, - "DeleteResourcePolicy":{ - "name":"DeleteResourcePolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteResourcePolicyRequest"}, - "output":{"shape":"DeleteResourcePolicyResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "DeleteSnapshot":{ - "name":"DeleteSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSnapshotRequest"}, - "output":{"shape":"DeleteSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "idempotent":true - }, - "DeleteUsageLimit":{ - "name":"DeleteUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUsageLimitRequest"}, - "output":{"shape":"DeleteUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "idempotent":true - }, - "DeleteWorkgroup":{ - "name":"DeleteWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteWorkgroupRequest"}, - "output":{"shape":"DeleteWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "idempotent":true - }, - "GetCredentials":{ - "name":"GetCredentials", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetCredentialsRequest"}, - "output":{"shape":"GetCredentialsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "GetEndpointAccess":{ - "name":"GetEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetEndpointAccessRequest"}, - "output":{"shape":"GetEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "GetNamespace":{ - "name":"GetNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetNamespaceRequest"}, - "output":{"shape":"GetNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "GetRecoveryPoint":{ - "name":"GetRecoveryPoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRecoveryPointRequest"}, - "output":{"shape":"GetRecoveryPointResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "GetResourcePolicy":{ - "name":"GetResourcePolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetResourcePolicyRequest"}, - "output":{"shape":"GetResourcePolicyResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "GetSnapshot":{ - "name":"GetSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSnapshotRequest"}, - "output":{"shape":"GetSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "GetUsageLimit":{ - "name":"GetUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetUsageLimitRequest"}, - "output":{"shape":"GetUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "GetWorkgroup":{ - "name":"GetWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetWorkgroupRequest"}, - "output":{"shape":"GetWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "ListEndpointAccess":{ - "name":"ListEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListEndpointAccessRequest"}, - "output":{"shape":"ListEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "ListNamespaces":{ - "name":"ListNamespaces", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListNamespacesRequest"}, - "output":{"shape":"ListNamespacesResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ValidationException"} - ] - }, - "ListRecoveryPoints":{ - "name":"ListRecoveryPoints", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRecoveryPointsRequest"}, - "output":{"shape":"ListRecoveryPointsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ValidationException"} - ] - }, - "ListSnapshots":{ - "name":"ListSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListSnapshotsRequest"}, - "output":{"shape":"ListSnapshotsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"ThrottlingException"} - ] - }, - "ListUsageLimits":{ - "name":"ListUsageLimits", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListUsageLimitsRequest"}, - "output":{"shape":"ListUsageLimitsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidPaginationException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "ListWorkgroups":{ - "name":"ListWorkgroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListWorkgroupsRequest"}, - "output":{"shape":"ListWorkgroupsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ValidationException"} - ] - }, - "PutResourcePolicy":{ - "name":"PutResourcePolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutResourcePolicyRequest"}, - "output":{"shape":"PutResourcePolicyResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ] - }, - "RestoreFromRecoveryPoint":{ - "name":"RestoreFromRecoveryPoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreFromRecoveryPointRequest"}, - "output":{"shape":"RestoreFromRecoveryPointResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "RestoreFromSnapshot":{ - "name":"RestoreFromSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreFromSnapshotRequest"}, - "output":{"shape":"RestoreFromSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "idempotent":true - }, - "TagResource":{ - "name":"TagResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TagResourceRequest"}, - "output":{"shape":"TagResourceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"TooManyTagsException"}, - {"shape":"ThrottlingException"} - ] - }, - "UntagResource":{ - "name":"UntagResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UntagResourceRequest"}, - "output":{"shape":"UntagResourceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"ThrottlingException"} - ] - }, - "UpdateEndpointAccess":{ - "name":"UpdateEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateEndpointAccessRequest"}, - "output":{"shape":"UpdateEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"} - ] - }, - "UpdateNamespace":{ - "name":"UpdateNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateNamespaceRequest"}, - "output":{"shape":"UpdateNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "UpdateSnapshot":{ - "name":"UpdateSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateSnapshotRequest"}, - "output":{"shape":"UpdateSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "UpdateUsageLimit":{ - "name":"UpdateUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateUsageLimitRequest"}, - "output":{"shape":"UpdateUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - }, - "UpdateWorkgroup":{ - "name":"UpdateWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateWorkgroupRequest"}, - "output":{"shape":"UpdateWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InsufficientCapacityException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ] - } - }, - "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - "code":{"shape":"String"}, - "message":{"shape":"String"} - }, - "exception":true - }, - "AccountIdList":{ - "type":"list", - "member":{"shape":"String"} - }, - "AmazonResourceName":{ - "type":"string", - "max":1011, - "min":1 - }, - "Boolean":{ - "type":"boolean", - "box":true - }, - "ConfigParameter":{ - "type":"structure", - "members":{ - "parameterKey":{"shape":"ParameterKey"}, - "parameterValue":{"shape":"ParameterValue"} - } - }, - "ConfigParameterList":{ - "type":"list", - "member":{"shape":"ConfigParameter"} - }, - "ConflictException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "ConvertRecoveryPointToSnapshotRequest":{ - "type":"structure", - "required":[ - "recoveryPointId", - "snapshotName" - ], - "members":{ - "recoveryPointId":{"shape":"String"}, - "retentionPeriod":{"shape":"Integer"}, - "snapshotName":{"shape":"String"} - } - }, - "ConvertRecoveryPointToSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{"shape":"Snapshot"} - } - }, - "CreateEndpointAccessRequest":{ - "type":"structure", - "required":[ - "endpointName", - "subnetIds", - "workgroupName" - ], - "members":{ - "endpointName":{"shape":"String"}, - "subnetIds":{"shape":"SubnetIdList"}, - "vpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"}, - "workgroupName":{"shape":"String"} - } - }, - "CreateEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{"shape":"EndpointAccess"} - } - }, - "CreateNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "adminUserPassword":{"shape":"DbPassword"}, - "adminUsername":{"shape":"DbUser"}, - "dbName":{"shape":"String"}, - "defaultIamRoleArn":{"shape":"String"}, - "iamRoles":{"shape":"IamRoleArnList"}, - "kmsKeyId":{"shape":"String"}, - "logExports":{"shape":"LogExportList"}, - "namespaceName":{"shape":"NamespaceName"}, - "tags":{"shape":"TagList"} - } - }, - "CreateNamespaceResponse":{ - "type":"structure", - "members":{ - "namespace":{"shape":"Namespace"} - } - }, - "CreateSnapshotRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "snapshotName" - ], - "members":{ - "namespaceName":{"shape":"String"}, - "retentionPeriod":{"shape":"Integer"}, - "snapshotName":{"shape":"String"} - } - }, - "CreateSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{"shape":"Snapshot"} - } - }, - "CreateUsageLimitRequest":{ - "type":"structure", - "required":[ - "amount", - "resourceArn", - "usageType" - ], - "members":{ - "amount":{"shape":"Long"}, - "breachAction":{"shape":"UsageLimitBreachAction"}, - "period":{"shape":"UsageLimitPeriod"}, - "resourceArn":{"shape":"String"}, - "usageType":{"shape":"UsageLimitUsageType"} - } - }, - "CreateUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{"shape":"UsageLimit"} - } - }, - "CreateWorkgroupRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "workgroupName" - ], - "members":{ - "baseCapacity":{"shape":"Integer"}, - "configParameters":{"shape":"ConfigParameterList"}, - "enhancedVpcRouting":{"shape":"Boolean"}, - "namespaceName":{"shape":"NamespaceName"}, - "publiclyAccessible":{"shape":"Boolean"}, - "securityGroupIds":{"shape":"SecurityGroupIdList"}, - "subnetIds":{"shape":"SubnetIdList"}, - "tags":{"shape":"TagList"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "CreateWorkgroupResponse":{ - "type":"structure", - "members":{ - "workgroup":{"shape":"Workgroup"} - } - }, - "DbName":{"type":"string"}, - "DbPassword":{ - "type":"string", - "sensitive":true - }, - "DbUser":{ - "type":"string", - "sensitive":true - }, - "DeleteEndpointAccessRequest":{ - "type":"structure", - "required":["endpointName"], - "members":{ - "endpointName":{"shape":"String"} - } - }, - "DeleteEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{"shape":"EndpointAccess"} - } - }, - "DeleteNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "finalSnapshotName":{"shape":"String"}, - "finalSnapshotRetentionPeriod":{"shape":"Integer"}, - "namespaceName":{"shape":"NamespaceName"} - } - }, - "DeleteNamespaceResponse":{ - "type":"structure", - "required":["namespace"], - "members":{ - "namespace":{"shape":"Namespace"} - } - }, - "DeleteResourcePolicyRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"String"} - } - }, - "DeleteResourcePolicyResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteSnapshotRequest":{ - "type":"structure", - "required":["snapshotName"], - "members":{ - "snapshotName":{"shape":"String"} - } - }, - "DeleteSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{"shape":"Snapshot"} - } - }, - "DeleteUsageLimitRequest":{ - "type":"structure", - "required":["usageLimitId"], - "members":{ - "usageLimitId":{"shape":"String"} - } - }, - "DeleteUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{"shape":"UsageLimit"} - } - }, - "DeleteWorkgroupRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "DeleteWorkgroupResponse":{ - "type":"structure", - "required":["workgroup"], - "members":{ - "workgroup":{"shape":"Workgroup"} - } - }, - "Double":{ - "type":"double", - "box":true - }, - "Endpoint":{ - "type":"structure", - "members":{ - "address":{"shape":"String"}, - "port":{"shape":"Integer"}, - "vpcEndpoints":{"shape":"VpcEndpointList"} - } - }, - "EndpointAccess":{ - "type":"structure", - "members":{ - "address":{"shape":"String"}, - "endpointArn":{"shape":"String"}, - "endpointCreateTime":{"shape":"SyntheticTimestamp_date_time"}, - "endpointName":{"shape":"String"}, - "endpointStatus":{"shape":"String"}, - "port":{"shape":"Integer"}, - "subnetIds":{"shape":"SubnetIdList"}, - "vpcEndpoint":{"shape":"VpcEndpoint"}, - "vpcSecurityGroups":{"shape":"VpcSecurityGroupMembershipList"}, - "workgroupName":{"shape":"String"} - } - }, - "EndpointAccessList":{ - "type":"list", - "member":{"shape":"EndpointAccess"} - }, - "GetCredentialsRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "dbName":{"shape":"DbName"}, - "durationSeconds":{"shape":"Integer"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "GetCredentialsResponse":{ - "type":"structure", - "members":{ - "dbPassword":{"shape":"DbPassword"}, - "dbUser":{"shape":"DbUser"}, - "expiration":{"shape":"Timestamp"}, - "nextRefreshTime":{"shape":"Timestamp"} - } - }, - "GetEndpointAccessRequest":{ - "type":"structure", - "required":["endpointName"], - "members":{ - "endpointName":{"shape":"String"} - } - }, - "GetEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{"shape":"EndpointAccess"} - } - }, - "GetNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "namespaceName":{"shape":"NamespaceName"} - } - }, - "GetNamespaceResponse":{ - "type":"structure", - "required":["namespace"], - "members":{ - "namespace":{"shape":"Namespace"} - } - }, - "GetRecoveryPointRequest":{ - "type":"structure", - "required":["recoveryPointId"], - "members":{ - "recoveryPointId":{"shape":"String"} - } - }, - "GetRecoveryPointResponse":{ - "type":"structure", - "members":{ - "recoveryPoint":{"shape":"RecoveryPoint"} - } - }, - "GetResourcePolicyRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"String"} - } - }, - "GetResourcePolicyResponse":{ - "type":"structure", - "members":{ - "resourcePolicy":{"shape":"ResourcePolicy"} - } - }, - "GetSnapshotRequest":{ - "type":"structure", - "members":{ - "ownerAccount":{"shape":"String"}, - "snapshotArn":{"shape":"String"}, - "snapshotName":{"shape":"String"} - } - }, - "GetSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{"shape":"Snapshot"} - } - }, - "GetUsageLimitRequest":{ - "type":"structure", - "required":["usageLimitId"], - "members":{ - "usageLimitId":{"shape":"String"} - } - }, - "GetUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{"shape":"UsageLimit"} - } - }, - "GetWorkgroupRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "GetWorkgroupResponse":{ - "type":"structure", - "required":["workgroup"], - "members":{ - "workgroup":{"shape":"Workgroup"} - } - }, - "IamRoleArn":{"type":"string"}, - "IamRoleArnList":{ - "type":"list", - "member":{"shape":"IamRoleArn"} - }, - "InsufficientCapacityException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "exception":true, - "retryable":{"throttling":false} - }, - "Integer":{ - "type":"integer", - "box":true - }, - "InternalServerException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "exception":true, - "fault":true, - "retryable":{"throttling":false} - }, - "InvalidPaginationException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "KmsKeyId":{"type":"string"}, - "ListEndpointAccessRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListEndpointAccessRequestMaxResultsInteger", - "box":true - }, - "nextToken":{"shape":"String"}, - "vpcId":{"shape":"String"}, - "workgroupName":{"shape":"String"} - } - }, - "ListEndpointAccessRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListEndpointAccessResponse":{ - "type":"structure", - "required":["endpoints"], - "members":{ - "endpoints":{"shape":"EndpointAccessList"}, - "nextToken":{"shape":"String"} - } - }, - "ListNamespacesRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListNamespacesRequestMaxResultsInteger", - "box":true - }, - "nextToken":{"shape":"String"} - } - }, - "ListNamespacesRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListNamespacesResponse":{ - "type":"structure", - "required":["namespaces"], - "members":{ - "namespaces":{"shape":"NamespaceList"}, - "nextToken":{"shape":"String"} - } - }, - "ListRecoveryPointsRequest":{ - "type":"structure", - "members":{ - "endTime":{"shape":"Timestamp"}, - "maxResults":{ - "shape":"ListRecoveryPointsRequestMaxResultsInteger", - "box":true - }, - "namespaceName":{"shape":"NamespaceName"}, - "nextToken":{"shape":"String"}, - "startTime":{"shape":"Timestamp"} - } - }, - "ListRecoveryPointsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListRecoveryPointsResponse":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"String"}, - "recoveryPoints":{"shape":"RecoveryPointList"} - } - }, - "ListSnapshotsRequest":{ - "type":"structure", - "members":{ - "endTime":{"shape":"Timestamp"}, - "maxResults":{ - "shape":"ListSnapshotsRequestMaxResultsInteger", - "box":true - }, - "namespaceArn":{"shape":"String"}, - "namespaceName":{"shape":"String"}, - "nextToken":{"shape":"String"}, - "ownerAccount":{"shape":"String"}, - "startTime":{"shape":"Timestamp"} - } - }, - "ListSnapshotsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListSnapshotsResponse":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"String"}, - "snapshots":{"shape":"SnapshotList"} - } - }, - "ListTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{"shape":"AmazonResourceName"} - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "members":{ - "tags":{"shape":"TagList"} - } - }, - "ListUsageLimitsRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListUsageLimitsRequestMaxResultsInteger", - "box":true - }, - "nextToken":{"shape":"PaginationToken"}, - "resourceArn":{"shape":"String"}, - "usageType":{"shape":"UsageLimitUsageType"} - } - }, - "ListUsageLimitsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListUsageLimitsResponse":{ - "type":"structure", - "members":{ - "nextToken":{"shape":"PaginationToken"}, - "usageLimits":{"shape":"UsageLimits"} - } - }, - "ListWorkgroupsRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListWorkgroupsRequestMaxResultsInteger", - "box":true - }, - "nextToken":{"shape":"String"} - } - }, - "ListWorkgroupsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListWorkgroupsResponse":{ - "type":"structure", - "required":["workgroups"], - "members":{ - "nextToken":{"shape":"String"}, - "workgroups":{"shape":"WorkgroupList"} - } - }, - "LogExport":{ - "type":"string", - "enum":[ - "useractivitylog", - "userlog", - "connectionlog" - ] - }, - "LogExportList":{ - "type":"list", - "member":{"shape":"LogExport"}, - "max":16, - "min":0 - }, - "Long":{ - "type":"long", - "box":true - }, - "Namespace":{ - "type":"structure", - "members":{ - "adminUsername":{"shape":"DbUser"}, - "creationDate":{"shape":"SyntheticTimestamp_date_time"}, - "dbName":{"shape":"String"}, - "defaultIamRoleArn":{"shape":"String"}, - "iamRoles":{"shape":"IamRoleArnList"}, - "kmsKeyId":{"shape":"String"}, - "logExports":{"shape":"LogExportList"}, - "namespaceArn":{"shape":"String"}, - "namespaceId":{"shape":"String"}, - "namespaceName":{"shape":"NamespaceName"}, - "status":{"shape":"NamespaceStatus"} - } - }, - "NamespaceList":{ - "type":"list", - "member":{"shape":"Namespace"} - }, - "NamespaceName":{ - "type":"string", - "max":64, - "min":3, - "pattern":"^[a-z0-9-]+$" - }, - "NamespaceStatus":{ - "type":"string", - "enum":[ - "AVAILABLE", - "MODIFYING", - "DELETING" - ] - }, - "NetworkInterface":{ - "type":"structure", - "members":{ - "availabilityZone":{"shape":"String"}, - "networkInterfaceId":{"shape":"String"}, - "privateIpAddress":{"shape":"String"}, - "subnetId":{"shape":"String"} - } - }, - "NetworkInterfaceList":{ - "type":"list", - "member":{"shape":"NetworkInterface"} - }, - "PaginationToken":{ - "type":"string", - "max":1024, - "min":8 - }, - "ParameterKey":{"type":"string"}, - "ParameterValue":{"type":"string"}, - "PutResourcePolicyRequest":{ - "type":"structure", - "required":[ - "policy", - "resourceArn" - ], - "members":{ - "policy":{"shape":"String"}, - "resourceArn":{"shape":"String"} - } - }, - "PutResourcePolicyResponse":{ - "type":"structure", - "members":{ - "resourcePolicy":{"shape":"ResourcePolicy"} - } - }, - "RecoveryPoint":{ - "type":"structure", - "members":{ - "namespaceName":{"shape":"NamespaceName"}, - "recoveryPointCreateTime":{"shape":"SyntheticTimestamp_date_time"}, - "recoveryPointId":{"shape":"String"}, - "totalSizeInMegaBytes":{"shape":"Double"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "RecoveryPointList":{ - "type":"list", - "member":{"shape":"RecoveryPoint"} - }, - "ResourceNotFoundException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"}, - "resourceName":{"shape":"AmazonResourceName"} - }, - "exception":true - }, - "ResourcePolicy":{ - "type":"structure", - "members":{ - "policy":{"shape":"String"}, - "resourceArn":{"shape":"String"} - } - }, - "RestoreFromRecoveryPointRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "recoveryPointId", - "workgroupName" - ], - "members":{ - "namespaceName":{"shape":"NamespaceName"}, - "recoveryPointId":{"shape":"String"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "RestoreFromRecoveryPointResponse":{ - "type":"structure", - "members":{ - "namespace":{"shape":"Namespace"}, - "recoveryPointId":{"shape":"String"} - } - }, - "RestoreFromSnapshotRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "workgroupName" - ], - "members":{ - "namespaceName":{"shape":"NamespaceName"}, - "ownerAccount":{"shape":"String"}, - "snapshotArn":{"shape":"String"}, - "snapshotName":{"shape":"String"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "RestoreFromSnapshotResponse":{ - "type":"structure", - "members":{ - "namespace":{"shape":"Namespace"}, - "ownerAccount":{"shape":"String"}, - "snapshotName":{"shape":"String"} - } - }, - "SecurityGroupId":{"type":"string"}, - "SecurityGroupIdList":{ - "type":"list", - "member":{"shape":"SecurityGroupId"} - }, - "ServiceQuotaExceededException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "Snapshot":{ - "type":"structure", - "members":{ - "accountsWithProvisionedRestoreAccess":{"shape":"AccountIdList"}, - "accountsWithRestoreAccess":{"shape":"AccountIdList"}, - "actualIncrementalBackupSizeInMegaBytes":{"shape":"Double"}, - "adminUsername":{"shape":"String"}, - "backupProgressInMegaBytes":{"shape":"Double"}, - "currentBackupRateInMegaBytesPerSecond":{"shape":"Double"}, - "elapsedTimeInSeconds":{"shape":"Long"}, - "estimatedSecondsToCompletion":{"shape":"Long"}, - "kmsKeyId":{"shape":"KmsKeyId"}, - "namespaceArn":{"shape":"String"}, - "namespaceName":{"shape":"String"}, - "ownerAccount":{"shape":"String"}, - "snapshotArn":{"shape":"String"}, - "snapshotCreateTime":{"shape":"SyntheticTimestamp_date_time"}, - "snapshotName":{"shape":"String"}, - "snapshotRemainingDays":{"shape":"Integer"}, - "snapshotRetentionPeriod":{"shape":"Integer"}, - "snapshotRetentionStartTime":{"shape":"SyntheticTimestamp_date_time"}, - "status":{"shape":"SnapshotStatus"}, - "totalBackupSizeInMegaBytes":{"shape":"Double"} - } - }, - "SnapshotList":{ - "type":"list", - "member":{"shape":"Snapshot"} - }, - "SnapshotStatus":{ - "type":"string", - "enum":[ - "AVAILABLE", - "CREATING", - "DELETED", - "CANCELLED", - "FAILED", - "COPYING" - ] - }, - "String":{"type":"string"}, - "SubnetId":{"type":"string"}, - "SubnetIdList":{ - "type":"list", - "member":{"shape":"SubnetId"} - }, - "SyntheticTimestamp_date_time":{ - "type":"timestamp", - "timestampFormat":"iso8601" - }, - "Tag":{ - "type":"structure", - "required":[ - "key", - "value" - ], - "members":{ - "key":{"shape":"TagKey"}, - "value":{"shape":"TagValue"} - } - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1 - }, - "TagKeyList":{ - "type":"list", - "member":{"shape":"TagKey"}, - "max":200, - "min":0 - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"}, - "max":200, - "min":0 - }, - "TagResourceRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "tags" - ], - "members":{ - "resourceArn":{"shape":"AmazonResourceName"}, - "tags":{"shape":"TagList"} - } - }, - "TagResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "TagValue":{ - "type":"string", - "max":256, - "min":0 - }, - "ThrottlingException":{ - "type":"structure", - "members":{ - "code":{"shape":"String"}, - "message":{"shape":"String"} - }, - "exception":true, - "retryable":{"throttling":false} - }, - "Timestamp":{"type":"timestamp"}, - "TooManyTagsException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"}, - "resourceName":{"shape":"AmazonResourceName"} - }, - "exception":true - }, - "UntagResourceRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "tagKeys" - ], - "members":{ - "resourceArn":{"shape":"AmazonResourceName"}, - "tagKeys":{"shape":"TagKeyList"} - } - }, - "UntagResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "UpdateEndpointAccessRequest":{ - "type":"structure", - "required":["endpointName"], - "members":{ - "endpointName":{"shape":"String"}, - "vpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"} - } - }, - "UpdateEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{"shape":"EndpointAccess"} - } - }, - "UpdateNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "adminUserPassword":{"shape":"DbPassword"}, - "adminUsername":{"shape":"DbUser"}, - "defaultIamRoleArn":{"shape":"String"}, - "iamRoles":{"shape":"IamRoleArnList"}, - "kmsKeyId":{"shape":"String"}, - "logExports":{"shape":"LogExportList"}, - "namespaceName":{"shape":"NamespaceName"} - } - }, - "UpdateNamespaceResponse":{ - "type":"structure", - "required":["namespace"], - "members":{ - "namespace":{"shape":"Namespace"} - } - }, - "UpdateSnapshotRequest":{ - "type":"structure", - "required":["snapshotName"], - "members":{ - "retentionPeriod":{"shape":"Integer"}, - "snapshotName":{"shape":"String"} - } - }, - "UpdateSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{"shape":"Snapshot"} - } - }, - "UpdateUsageLimitRequest":{ - "type":"structure", - "required":["usageLimitId"], - "members":{ - "amount":{"shape":"Long"}, - "breachAction":{"shape":"UsageLimitBreachAction"}, - "usageLimitId":{"shape":"String"} - } - }, - "UpdateUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{"shape":"UsageLimit"} - } - }, - "UpdateWorkgroupRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "baseCapacity":{"shape":"Integer"}, - "configParameters":{"shape":"ConfigParameterList"}, - "enhancedVpcRouting":{"shape":"Boolean"}, - "publiclyAccessible":{"shape":"Boolean"}, - "securityGroupIds":{"shape":"SecurityGroupIdList"}, - "subnetIds":{"shape":"SubnetIdList"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "UpdateWorkgroupResponse":{ - "type":"structure", - "required":["workgroup"], - "members":{ - "workgroup":{"shape":"Workgroup"} - } - }, - "UsageLimit":{ - "type":"structure", - "members":{ - "amount":{"shape":"Long"}, - "breachAction":{"shape":"UsageLimitBreachAction"}, - "period":{"shape":"UsageLimitPeriod"}, - "resourceArn":{"shape":"String"}, - "usageLimitArn":{"shape":"String"}, - "usageLimitId":{"shape":"String"}, - "usageType":{"shape":"UsageLimitUsageType"} - } - }, - "UsageLimitBreachAction":{ - "type":"string", - "enum":[ - "log", - "emit-metric", - "deactivate" - ] - }, - "UsageLimitPeriod":{ - "type":"string", - "enum":[ - "daily", - "weekly", - "monthly" - ] - }, - "UsageLimitUsageType":{ - "type":"string", - "enum":[ - "serverless-compute", - "cross-region-datasharing" - ] - }, - "UsageLimits":{ - "type":"list", - "member":{"shape":"UsageLimit"}, - "max":100, - "min":1 - }, - "ValidationException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "exception":true - }, - "VpcEndpoint":{ - "type":"structure", - "members":{ - "networkInterfaces":{"shape":"NetworkInterfaceList"}, - "vpcEndpointId":{"shape":"String"}, - "vpcId":{"shape":"String"} - } - }, - "VpcEndpointList":{ - "type":"list", - "member":{"shape":"VpcEndpoint"} - }, - "VpcSecurityGroupId":{"type":"string"}, - "VpcSecurityGroupIdList":{ - "type":"list", - "member":{"shape":"VpcSecurityGroupId"} - }, - "VpcSecurityGroupMembership":{ - "type":"structure", - "members":{ - "status":{"shape":"String"}, - "vpcSecurityGroupId":{"shape":"VpcSecurityGroupId"} - } - }, - "VpcSecurityGroupMembershipList":{ - "type":"list", - "member":{"shape":"VpcSecurityGroupMembership"} - }, - "Workgroup":{ - "type":"structure", - "members":{ - "baseCapacity":{"shape":"Integer"}, - "configParameters":{"shape":"ConfigParameterList"}, - "creationDate":{"shape":"SyntheticTimestamp_date_time"}, - "endpoint":{"shape":"Endpoint"}, - "enhancedVpcRouting":{"shape":"Boolean"}, - "namespaceName":{"shape":"String"}, - "publiclyAccessible":{"shape":"Boolean"}, - "securityGroupIds":{"shape":"SecurityGroupIdList"}, - "status":{"shape":"WorkgroupStatus"}, - "subnetIds":{"shape":"SubnetIdList"}, - "workgroupArn":{"shape":"String"}, - "workgroupId":{"shape":"String"}, - "workgroupName":{"shape":"WorkgroupName"} - } - }, - "WorkgroupList":{ - "type":"list", - "member":{"shape":"Workgroup"} - }, - "WorkgroupName":{ - "type":"string", - "max":64, - "min":3, - "pattern":"^[a-z0-9-]+$" - }, - "WorkgroupStatus":{ - "type":"string", - "enum":[ - "CREATING", - "AVAILABLE", - "MODIFYING", - "DELETING" - ] - } - } -} diff --git a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.docs.json b/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.docs.json deleted file mode 100644 index 358e8aab152f..000000000000 --- a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.docs.json +++ /dev/null @@ -1,1075 +0,0 @@ -{ - "version": "2.0", - "service": "

This is prerelease documentation for Amazon Redshift Serverless, which is in preview release. The documentation and the feature are both subject to change. We recommend that you use this feature only in test environments, and not in production environments. For preview terms and conditions, see Beta Service Participation in Amazon Web Services Service Terms.

This is an interface reference for Amazon Redshift Serverless. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.

Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you focus on using your data to acquire new insights for your business and customers.

To learn more about Amazon Redshift Serverless, see What is Amazon Redshift Serverless.

", - "operations": { - "ConvertRecoveryPointToSnapshot": "

Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.

", - "CreateEndpointAccess": "

Creates an Amazon Redshift Serverless managed VPC endpoint.

", - "CreateNamespace": "

Creates a namespace in Amazon Redshift Serverless.

", - "CreateSnapshot": "

Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.

", - "CreateUsageLimit": "

Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.

", - "CreateWorkgroup": "

Creates an workgroup in Amazon Redshift Serverless.

", - "DeleteEndpointAccess": "

Deletes an Amazon Redshift Serverless managed VPC endpoint.

", - "DeleteNamespace": "

Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.

", - "DeleteResourcePolicy": "

Deletes the specified resource policy.

", - "DeleteSnapshot": "

Deletes a snapshot from Amazon Redshift Serverless.

", - "DeleteUsageLimit": "

Deletes a usage limit from Amazon Redshift Serverless.

", - "DeleteWorkgroup": "

Deletes a workgroup.

", - "GetCredentials": "

Returns a database user name and temporary password with temporary authorization to log in to Amazon Redshift Serverless.

By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).

 <p> The Identity and Access Management (IAM) user or role that runs GetCredentials must have an IAM policy attached that allows access to all necessary actions and resources. </p> <p> If the <code>DbName</code> parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.</p> 
", - "GetEndpointAccess": "

Returns information, such as the name, about a VPC endpoint.

", - "GetNamespace": "

Returns information about a namespace in Amazon Redshift Serverless.

", - "GetRecoveryPoint": "

Returns information about a recovery point.

", - "GetResourcePolicy": "

Returns a resource policy.

", - "GetSnapshot": "

Returns information about a specific snapshot.

", - "GetUsageLimit": "

Returns information about a usage limit.

", - "GetWorkgroup": "

Returns information about a specific workgroup.

", - "ListEndpointAccess": "

Returns an array of EndpointAccess objects and relevant information.

", - "ListNamespaces": "

Returns information about a list of specified namespaces.

", - "ListRecoveryPoints": "

Returns an array of recovery points.

", - "ListSnapshots": "

Returns a list of snapshots.

", - "ListTagsForResource": "

Lists the tags assigned to a resource.

", - "ListUsageLimits": "

Lists all usage limits within Amazon Redshift Serverless.

", - "ListWorkgroups": "

Returns information about a list of specified workgroups.

", - "PutResourcePolicy": "

Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

", - "RestoreFromRecoveryPoint": "

Restore the data from a recovery point.

", - "RestoreFromSnapshot": "

Restores a namespace from a snapshot.

", - "TagResource": "

Assigns one or more tags to a resource.

", - "UntagResource": "

Removes a tag or set of tags from a resource.

", - "UpdateEndpointAccess": "

Updates an Amazon Redshift Serverless managed endpoint.

", - "UpdateNamespace": "

Updates a namespace with the specified settings.

", - "UpdateSnapshot": "

Updates a snapshot.

", - "UpdateUsageLimit": "

Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.

", - "UpdateWorkgroup": "

Updates a workgroup with the specified configuration settings.

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

You do not have sufficient access to perform this action.

", - "refs": { - } - }, - "AccountIdList": { - "base": null, - "refs": { - "Snapshot$accountsWithProvisionedRestoreAccess": "

All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.

", - "Snapshot$accountsWithRestoreAccess": "

All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.

" - } - }, - "AmazonResourceName": { - "base": null, - "refs": { - "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to list tags for.

", - "ResourceNotFoundException$resourceName": "

The name of the resource that could not be found.

", - "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to tag.

", - "TooManyTagsException$resourceName": "

The name of the resource that exceeded the number of tags allowed for a resource.

", - "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to remove tags from.

" - } - }, - "Boolean": { - "base": null, - "refs": { - "CreateWorkgroupRequest$enhancedVpcRouting": "

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.

", - "CreateWorkgroupRequest$publiclyAccessible": "

A value that specifies whether the workgroup can be accessed from a public network.

", - "UpdateWorkgroupRequest$enhancedVpcRouting": "

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

", - "UpdateWorkgroupRequest$publiclyAccessible": "

A value that specifies whether the workgroup can be accessible from a public network.

", - "Workgroup$enhancedVpcRouting": "

The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

", - "Workgroup$publiclyAccessible": "

A value that specifies whether the workgroup can be accessible from a public network

" - } - }, - "ConfigParameter": { - "base": "

An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.

", - "refs": { - "ConfigParameterList$member": null - } - }, - "ConfigParameterList": { - "base": null, - "refs": { - "CreateWorkgroupRequest$configParameters": "

An array of parameters to set for more control over a serverless database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

", - "UpdateWorkgroupRequest$configParameters": "

An array of parameters to set for advanced control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

", - "Workgroup$configParameters": "

An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" - } - }, - "ConflictException": { - "base": "

The submitted action has conflicts.

", - "refs": { - } - }, - "ConvertRecoveryPointToSnapshotRequest": { - "base": null, - "refs": { - } - }, - "ConvertRecoveryPointToSnapshotResponse": { - "base": null, - "refs": { - } - }, - "CreateEndpointAccessRequest": { - "base": null, - "refs": { - } - }, - "CreateEndpointAccessResponse": { - "base": null, - "refs": { - } - }, - "CreateNamespaceRequest": { - "base": null, - "refs": { - } - }, - "CreateNamespaceResponse": { - "base": null, - "refs": { - } - }, - "CreateSnapshotRequest": { - "base": null, - "refs": { - } - }, - "CreateSnapshotResponse": { - "base": null, - "refs": { - } - }, - "CreateUsageLimitRequest": { - "base": null, - "refs": { - } - }, - "CreateUsageLimitResponse": { - "base": null, - "refs": { - } - }, - "CreateWorkgroupRequest": { - "base": null, - "refs": { - } - }, - "CreateWorkgroupResponse": { - "base": null, - "refs": { - } - }, - "DbName": { - "base": null, - "refs": { - "GetCredentialsRequest$dbName": "

The name of the database to get temporary authorization to log on to.

Constraints:

" - } - }, - "DbPassword": { - "base": null, - "refs": { - "CreateNamespaceRequest$adminUserPassword": "

The password of the administrator for the first database created in the namespace.

", - "GetCredentialsResponse$dbPassword": "

A temporary password that authorizes the user name returned by DbUser to log on to the database DbName.

", - "UpdateNamespaceRequest$adminUserPassword": "

The password of the administrator for the first database created in the namespace.

" - } - }, - "DbUser": { - "base": null, - "refs": { - "CreateNamespaceRequest$adminUsername": "

The username of the administrator for the first database created in the namespace.

", - "GetCredentialsResponse$dbUser": "

A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC.

", - "Namespace$adminUsername": "

The username of the administrator for the first database created in the namespace.

", - "UpdateNamespaceRequest$adminUsername": "

The username of the administrator for the first database created in the namespace.

" - } - }, - "DeleteEndpointAccessRequest": { - "base": null, - "refs": { - } - }, - "DeleteEndpointAccessResponse": { - "base": null, - "refs": { - } - }, - "DeleteNamespaceRequest": { - "base": null, - "refs": { - } - }, - "DeleteNamespaceResponse": { - "base": null, - "refs": { - } - }, - "DeleteResourcePolicyRequest": { - "base": null, - "refs": { - } - }, - "DeleteResourcePolicyResponse": { - "base": null, - "refs": { - } - }, - "DeleteSnapshotRequest": { - "base": null, - "refs": { - } - }, - "DeleteSnapshotResponse": { - "base": null, - "refs": { - } - }, - "DeleteUsageLimitRequest": { - "base": null, - "refs": { - } - }, - "DeleteUsageLimitResponse": { - "base": null, - "refs": { - } - }, - "DeleteWorkgroupRequest": { - "base": null, - "refs": { - } - }, - "DeleteWorkgroupResponse": { - "base": null, - "refs": { - } - }, - "Double": { - "base": null, - "refs": { - "RecoveryPoint$totalSizeInMegaBytes": "

The total size of the data in the recovery point in megabytes.

", - "Snapshot$actualIncrementalBackupSizeInMegaBytes": "

The size of the incremental backup in megabytes.

", - "Snapshot$backupProgressInMegaBytes": "

The size in megabytes of the data that has been backed up to a snapshot.

", - "Snapshot$currentBackupRateInMegaBytesPerSecond": "

The rate at which data is backed up into a snapshot in megabytes per second.

", - "Snapshot$totalBackupSizeInMegaBytes": "

The total size, in megabytes, of how big the snapshot is.

" - } - }, - "Endpoint": { - "base": "

The VPC endpoint object.

", - "refs": { - "Workgroup$endpoint": "

The endpoint that is created from the workgroup.

" - } - }, - "EndpointAccess": { - "base": "

Information about an Amazon Redshift Serverless VPC endpoint.

", - "refs": { - "CreateEndpointAccessResponse$endpoint": "

The created VPC endpoint.

", - "DeleteEndpointAccessResponse$endpoint": "

The deleted VPC endpoint.

", - "EndpointAccessList$member": null, - "GetEndpointAccessResponse$endpoint": "

The returned VPC endpoint.

", - "UpdateEndpointAccessResponse$endpoint": "

The updated VPC endpoint.

" - } - }, - "EndpointAccessList": { - "base": null, - "refs": { - "ListEndpointAccessResponse$endpoints": "

The returned VPC endpoints.

" - } - }, - "GetCredentialsRequest": { - "base": null, - "refs": { - } - }, - "GetCredentialsResponse": { - "base": null, - "refs": { - } - }, - "GetEndpointAccessRequest": { - "base": null, - "refs": { - } - }, - "GetEndpointAccessResponse": { - "base": null, - "refs": { - } - }, - "GetNamespaceRequest": { - "base": null, - "refs": { - } - }, - "GetNamespaceResponse": { - "base": null, - "refs": { - } - }, - "GetRecoveryPointRequest": { - "base": null, - "refs": { - } - }, - "GetRecoveryPointResponse": { - "base": null, - "refs": { - } - }, - "GetResourcePolicyRequest": { - "base": null, - "refs": { - } - }, - "GetResourcePolicyResponse": { - "base": null, - "refs": { - } - }, - "GetSnapshotRequest": { - "base": null, - "refs": { - } - }, - "GetSnapshotResponse": { - "base": null, - "refs": { - } - }, - "GetUsageLimitRequest": { - "base": null, - "refs": { - } - }, - "GetUsageLimitResponse": { - "base": null, - "refs": { - } - }, - "GetWorkgroupRequest": { - "base": null, - "refs": { - } - }, - "GetWorkgroupResponse": { - "base": null, - "refs": { - } - }, - "IamRoleArn": { - "base": null, - "refs": { - "IamRoleArnList$member": null - } - }, - "IamRoleArnList": { - "base": null, - "refs": { - "CreateNamespaceRequest$iamRoles": "

A list of IAM roles to associate with the namespace.

", - "Namespace$iamRoles": "

A list of IAM roles to associate with the namespace.

", - "UpdateNamespaceRequest$iamRoles": "

A list of IAM roles to associate with the namespace.

" - } - }, - "InsufficientCapacityException": { - "base": "

There is an insufficient capacity to perform the action.

", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "ConvertRecoveryPointToSnapshotRequest$retentionPeriod": "

How long to retain the snapshot.

", - "CreateSnapshotRequest$retentionPeriod": "

How long to retain the created snapshot.

", - "CreateWorkgroupRequest$baseCapacity": "

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

", - "DeleteNamespaceRequest$finalSnapshotRetentionPeriod": "

How long to retain the final snapshot.

", - "Endpoint$port": "

The port that Amazon Redshift Serverless listens on.

", - "EndpointAccess$port": "

The port number on which Amazon Redshift Serverless accepts incoming connections.

", - "GetCredentialsRequest$durationSeconds": "

The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds.

", - "Snapshot$snapshotRemainingDays": "

The amount of days until the snapshot is deleted.

", - "Snapshot$snapshotRetentionPeriod": "

The period of time, in days, of how long the snapshot is retained.

", - "UpdateSnapshotRequest$retentionPeriod": "

The new retention period of the snapshot.

", - "UpdateWorkgroupRequest$baseCapacity": "

The new base data warehouse capacity in Redshift Processing Units (RPUs).

", - "Workgroup$baseCapacity": "

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

" - } - }, - "InternalServerException": { - "base": "

The request processing has failed because of an unknown error, exception or failure.

", - "refs": { - } - }, - "InvalidPaginationException": { - "base": "

The provided pagination token is invalid.

", - "refs": { - } - }, - "KmsKeyId": { - "base": null, - "refs": { - "Snapshot$kmsKeyId": "

The unique identifier of the KMS key used to encrypt the snapshot.

" - } - }, - "ListEndpointAccessRequest": { - "base": null, - "refs": { - } - }, - "ListEndpointAccessRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListEndpointAccessRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" - } - }, - "ListEndpointAccessResponse": { - "base": null, - "refs": { - } - }, - "ListNamespacesRequest": { - "base": null, - "refs": { - } - }, - "ListNamespacesRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListNamespacesRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" - } - }, - "ListNamespacesResponse": { - "base": null, - "refs": { - } - }, - "ListRecoveryPointsRequest": { - "base": null, - "refs": { - } - }, - "ListRecoveryPointsRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListRecoveryPointsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" - } - }, - "ListRecoveryPointsResponse": { - "base": null, - "refs": { - } - }, - "ListSnapshotsRequest": { - "base": null, - "refs": { - } - }, - "ListSnapshotsRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListSnapshotsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" - } - }, - "ListSnapshotsResponse": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": null, - "refs": { - } - }, - "ListUsageLimitsRequest": { - "base": null, - "refs": { - } - }, - "ListUsageLimitsRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListUsageLimitsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 100.

" - } - }, - "ListUsageLimitsResponse": { - "base": null, - "refs": { - } - }, - "ListWorkgroupsRequest": { - "base": null, - "refs": { - } - }, - "ListWorkgroupsRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListWorkgroupsRequest$maxResults": "

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

" - } - }, - "ListWorkgroupsResponse": { - "base": null, - "refs": { - } - }, - "LogExport": { - "base": null, - "refs": { - "LogExportList$member": null - } - }, - "LogExportList": { - "base": null, - "refs": { - "CreateNamespaceRequest$logExports": "

The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.

", - "Namespace$logExports": "

The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.

", - "UpdateNamespaceRequest$logExports": "

The types of logs the namespace can export. The export types are userlog, connectionlog, and useractivitylog.

" - } - }, - "Long": { - "base": null, - "refs": { - "CreateUsageLimitRequest$amount": "

The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

", - "Snapshot$elapsedTimeInSeconds": "

The amount of time it took to back up data into a snapshot.

", - "Snapshot$estimatedSecondsToCompletion": "

The estimated amount of seconds until the snapshot completes backup.

", - "UpdateUsageLimitRequest$amount": "

The new limit amount. For more information about this parameter.

", - "UsageLimit$amount": "

The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.

" - } - }, - "Namespace": { - "base": "

A collection of database objects and users.

", - "refs": { - "CreateNamespaceResponse$namespace": "

The created namespace object.

", - "DeleteNamespaceResponse$namespace": "

The deleted namespace object.

", - "GetNamespaceResponse$namespace": "

The returned namespace object.

", - "NamespaceList$member": null, - "RestoreFromRecoveryPointResponse$namespace": "

The namespace that data was restored into.

", - "RestoreFromSnapshotResponse$namespace": null, - "UpdateNamespaceResponse$namespace": "

A list of tag instances.

" - } - }, - "NamespaceList": { - "base": null, - "refs": { - "ListNamespacesResponse$namespaces": "

The list of returned namespaces.

" - } - }, - "NamespaceName": { - "base": null, - "refs": { - "CreateNamespaceRequest$namespaceName": "

The name of the namespace.

", - "CreateWorkgroupRequest$namespaceName": "

The name of the namespace to associate with the workgroup.

", - "DeleteNamespaceRequest$namespaceName": "

The name of the namespace to delete.

", - "GetNamespaceRequest$namespaceName": "

The name of the namespace to retrieve information for.

", - "ListRecoveryPointsRequest$namespaceName": "

The name of the namespace to list recovery points for.

", - "Namespace$namespaceName": "

The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.

", - "RecoveryPoint$namespaceName": "

The name of the namespace the recovery point is associated with.

", - "RestoreFromRecoveryPointRequest$namespaceName": "

The name of the namespace to restore data into.

", - "RestoreFromSnapshotRequest$namespaceName": "

The name of the namespace to restore the snapshot to.

", - "UpdateNamespaceRequest$namespaceName": "

The name of the namespace.

" - } - }, - "NamespaceStatus": { - "base": null, - "refs": { - "Namespace$status": "

The status of the namespace.

" - } - }, - "NetworkInterface": { - "base": "

Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.

", - "refs": { - "NetworkInterfaceList$member": null - } - }, - "NetworkInterfaceList": { - "base": null, - "refs": { - "VpcEndpoint$networkInterfaces": "

One or more network interfaces of the endpoint. Also known as an interface endpoint.

" - } - }, - "PaginationToken": { - "base": null, - "refs": { - "ListUsageLimitsRequest$nextToken": "

If your initial ListUsageLimits operation returns a nextToken, you can include the returned nextToken in subsequent ListUsageLimits operations, which returns results in the next page.

", - "ListUsageLimitsResponse$nextToken": "

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - } - }, - "ParameterKey": { - "base": null, - "refs": { - "ConfigParameter$parameterKey": "

The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" - } - }, - "ParameterValue": { - "base": null, - "refs": { - "ConfigParameter$parameterValue": "

The value of the parameter to set.

" - } - }, - "PutResourcePolicyRequest": { - "base": null, - "refs": { - } - }, - "PutResourcePolicyResponse": { - "base": null, - "refs": { - } - }, - "RecoveryPoint": { - "base": "

The automatically created recovery point of a namespace. Recovery points are created every 30 minutes and kept for 24 hours.

", - "refs": { - "GetRecoveryPointResponse$recoveryPoint": "

The returned recovery point object.

", - "RecoveryPointList$member": null - } - }, - "RecoveryPointList": { - "base": null, - "refs": { - "ListRecoveryPointsResponse$recoveryPoints": "

The returned recovery point objects.

" - } - }, - "ResourceNotFoundException": { - "base": "

The resource could not be found.

", - "refs": { - } - }, - "ResourcePolicy": { - "base": "

The resource policy object. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

", - "refs": { - "GetResourcePolicyResponse$resourcePolicy": "

The returned resource policy.

", - "PutResourcePolicyResponse$resourcePolicy": "

The policy that was created or updated.

" - } - }, - "RestoreFromRecoveryPointRequest": { - "base": null, - "refs": { - } - }, - "RestoreFromRecoveryPointResponse": { - "base": null, - "refs": { - } - }, - "RestoreFromSnapshotRequest": { - "base": null, - "refs": { - } - }, - "RestoreFromSnapshotResponse": { - "base": null, - "refs": { - } - }, - "SecurityGroupId": { - "base": null, - "refs": { - "SecurityGroupIdList$member": null - } - }, - "SecurityGroupIdList": { - "base": null, - "refs": { - "CreateWorkgroupRequest$securityGroupIds": "

An array of security group IDs to associate with the workgroup.

", - "UpdateWorkgroupRequest$securityGroupIds": "

An array of security group IDs to associate with the workgroup.

", - "Workgroup$securityGroupIds": "

An array of security group IDs to associate with the workgroup.

" - } - }, - "ServiceQuotaExceededException": { - "base": "

The service limit was exceeded.

", - "refs": { - } - }, - "Snapshot": { - "base": "

A snapshot object that contains databases.

", - "refs": { - "ConvertRecoveryPointToSnapshotResponse$snapshot": "

The snapshot converted from the recovery point.

", - "CreateSnapshotResponse$snapshot": "

The created snapshot object.

", - "DeleteSnapshotResponse$snapshot": "

The deleted snapshot object.

", - "GetSnapshotResponse$snapshot": "

The returned snapshot object.

", - "SnapshotList$member": null, - "UpdateSnapshotResponse$snapshot": "

The updated snapshot object.

" - } - }, - "SnapshotList": { - "base": null, - "refs": { - "ListSnapshotsResponse$snapshots": "

All of the returned snapshot objects.

" - } - }, - "SnapshotStatus": { - "base": null, - "refs": { - "Snapshot$status": "

The status of the snapshot.

" - } - }, - "String": { - "base": null, - "refs": { - "AccessDeniedException$code": null, - "AccessDeniedException$message": null, - "AccountIdList$member": null, - "ConflictException$message": null, - "ConvertRecoveryPointToSnapshotRequest$recoveryPointId": "

The unique identifier of the recovery point.

", - "ConvertRecoveryPointToSnapshotRequest$snapshotName": "

The name of the snapshot.

", - "CreateEndpointAccessRequest$endpointName": "

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The name can't contain two consecutive hyphens or end with a hyphen.

", - "CreateEndpointAccessRequest$workgroupName": "

The name of the workgroup to associate with the VPC endpoint.

", - "CreateNamespaceRequest$dbName": "

The name of the first database created in the namespace.

", - "CreateNamespaceRequest$defaultIamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

", - "CreateNamespaceRequest$kmsKeyId": "

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

", - "CreateSnapshotRequest$namespaceName": "

The namespace to create a snapshot for.

", - "CreateSnapshotRequest$snapshotName": "

The name of the snapshot.

", - "CreateUsageLimitRequest$resourceArn": "

The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

", - "DeleteEndpointAccessRequest$endpointName": "

The name of the VPC endpoint to delete.

", - "DeleteNamespaceRequest$finalSnapshotName": "

The name of the snapshot to be created before the namespace is deleted.

", - "DeleteResourcePolicyRequest$resourceArn": "

The Amazon Resource Name (ARN) of the policy to delete.

", - "DeleteSnapshotRequest$snapshotName": "

The name of the snapshot to be deleted.

", - "DeleteUsageLimitRequest$usageLimitId": "

The unique identifier of the usage limit to delete.

", - "Endpoint$address": "

The DNS address of the VPC endpoint.

", - "EndpointAccess$address": "

The DNS address of the endpoint.

", - "EndpointAccess$endpointArn": "

The Amazon Resource Name (ARN) of the VPC endpoint.

", - "EndpointAccess$endpointName": "

The name of the VPC endpoint.

", - "EndpointAccess$endpointStatus": "

The status of the VPC endpoint.

", - "EndpointAccess$workgroupName": "

The name of the workgroup associated with the endpoint.

", - "GetEndpointAccessRequest$endpointName": "

The name of the VPC endpoint to return information for.

", - "GetRecoveryPointRequest$recoveryPointId": "

The unique identifier of the recovery point to return information for.

", - "GetResourcePolicyRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource to return.

", - "GetSnapshotRequest$ownerAccount": "

The owner Amazon Web Services account of a snapshot shared with another user.

", - "GetSnapshotRequest$snapshotArn": "

The Amazon Resource Name (ARN) of the snapshot to return.

", - "GetSnapshotRequest$snapshotName": "

The name of the snapshot to return.

", - "GetUsageLimitRequest$usageLimitId": "

The unique identifier of the usage limit to return information for.

", - "InsufficientCapacityException$message": null, - "InternalServerException$message": null, - "InvalidPaginationException$message": null, - "ListEndpointAccessRequest$nextToken": "

If your initial ListEndpointAccess operation returns a nextToken, you can include the returned nextToken in subsequent ListEndpointAccess operations, which returns results in the next page.

", - "ListEndpointAccessRequest$vpcId": "

The unique identifier of the virtual private cloud with access to Amazon Redshift Serverless.

", - "ListEndpointAccessRequest$workgroupName": "

The name of the workgroup associated with the VPC endpoint to return.

", - "ListEndpointAccessResponse$nextToken": "

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", - "ListNamespacesRequest$nextToken": "

If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.

", - "ListNamespacesResponse$nextToken": "

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", - "ListRecoveryPointsRequest$nextToken": "

If your initial ListRecoveryPoints operation returns a nextToken, you can include the returned nextToken in subsequent ListRecoveryPoints operations, which returns results in the next page.

", - "ListRecoveryPointsResponse$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", - "ListSnapshotsRequest$namespaceArn": "

The Amazon Resource Name (ARN) of the namespace from which to list all snapshots.

", - "ListSnapshotsRequest$namespaceName": "

The namespace from which to list all snapshots.

", - "ListSnapshotsRequest$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", - "ListSnapshotsRequest$ownerAccount": "

The owner Amazon Web Services account of the snapshot.

", - "ListSnapshotsResponse$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

", - "ListUsageLimitsRequest$resourceArn": "

The Amazon Resource Name (ARN) associated with the resource whose usage limits you want to list.

", - "ListWorkgroupsRequest$nextToken": "

If your initial ListWorkgroups operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.

", - "ListWorkgroupsResponse$nextToken": "

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.

", - "Namespace$dbName": "

The name of the first database created in the namespace.

", - "Namespace$defaultIamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

", - "Namespace$kmsKeyId": "

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

", - "Namespace$namespaceArn": "

The Amazon Resource Name (ARN) associated with a namespace.

", - "Namespace$namespaceId": "

The unique identifier of a namespace.

", - "NetworkInterface$availabilityZone": "

The availability Zone.

", - "NetworkInterface$networkInterfaceId": "

The unique identifier of the network interface.

", - "NetworkInterface$privateIpAddress": "

The IPv4 address of the network interface within the subnet.

", - "NetworkInterface$subnetId": "

The unique identifier of the subnet.

", - "PutResourcePolicyRequest$policy": "

The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.

\"{\\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\" : [{ \\\"Sid\\\": \\\"AllowUserRestoreFromSnapshot\\\", \\\"Principal\\\":{\\\"AWS\\\": [\\\"739247239426\\\"]}, \\\"Action\\\": [\\\"redshift-serverless:RestoreFromSnapshot\\\"] , \\\"Effect\\\": \\\"Allow\\\" }]}\"

", - "PutResourcePolicyRequest$resourceArn": "

The Amazon Resource Name (ARN) of the account to create or update a resource policy for.

", - "RecoveryPoint$recoveryPointId": "

The unique identifier of the recovery point.

", - "ResourceNotFoundException$message": null, - "ResourcePolicy$policy": "

The resource policy.

", - "ResourcePolicy$resourceArn": "

The Amazon Resource Name (ARN) of the policy.

", - "RestoreFromRecoveryPointRequest$recoveryPointId": "

The unique identifier of the recovery point to restore from.

", - "RestoreFromRecoveryPointResponse$recoveryPointId": "

The unique identifier of the recovery point used for the restore.

", - "RestoreFromSnapshotRequest$ownerAccount": "

The Amazon Web Services account that owns the snapshot.

", - "RestoreFromSnapshotRequest$snapshotArn": "

The Amazon Resource Name (ARN) of the snapshot to restore from.

", - "RestoreFromSnapshotRequest$snapshotName": "

The name of the snapshot to restore from.

", - "RestoreFromSnapshotResponse$ownerAccount": "

The owner Amazon Web Services; account of the snapshot that was restored.

", - "RestoreFromSnapshotResponse$snapshotName": "

The name of the snapshot used to restore the namespace.

", - "ServiceQuotaExceededException$message": null, - "Snapshot$adminUsername": "

The username of the database within a snapshot.

", - "Snapshot$namespaceArn": "

The Amazon Resource Name (ARN) of the namespace the snapshot was created from.

", - "Snapshot$namespaceName": "

The name of the namepsace.

", - "Snapshot$ownerAccount": "

The owner Amazon Web Services; account of the snapshot.

", - "Snapshot$snapshotArn": "

The Amazon Resource Name (ARN) of the snapshot.

", - "Snapshot$snapshotName": "

The name of the snapshot.

", - "ThrottlingException$code": null, - "ThrottlingException$message": null, - "TooManyTagsException$message": null, - "UpdateEndpointAccessRequest$endpointName": "

The name of the VPC endpoint to update.

", - "UpdateNamespaceRequest$defaultIamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

", - "UpdateNamespaceRequest$kmsKeyId": "

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

", - "UpdateSnapshotRequest$snapshotName": "

The name of the snapshot.

", - "UpdateUsageLimitRequest$usageLimitId": "

The identifier of the usage limit to update.

", - "UsageLimit$resourceArn": "

The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.

", - "UsageLimit$usageLimitArn": "

The Amazon Resource Name (ARN) of the resource associated with the usage limit.

", - "UsageLimit$usageLimitId": "

The identifier of the usage limit.

", - "ValidationException$message": null, - "VpcEndpoint$vpcEndpointId": "

The connection endpoint ID for connecting to Amazon Redshift Serverless.

", - "VpcEndpoint$vpcId": "

The VPC identifier that the endpoint is associated with.

", - "VpcSecurityGroupMembership$status": "

The status of the VPC security group.

", - "Workgroup$namespaceName": "

The namespace the workgroup is associated with.

", - "Workgroup$workgroupArn": "

The Amazon Resource Name (ARN) that links to the workgroup.

", - "Workgroup$workgroupId": "

The unique identifier of the workgroup.

" - } - }, - "SubnetId": { - "base": null, - "refs": { - "SubnetIdList$member": null - } - }, - "SubnetIdList": { - "base": null, - "refs": { - "CreateEndpointAccessRequest$subnetIds": "

The unique identifers of subnets from which Amazon Redshift Serverless chooses one to deploy a VPC endpoint.

", - "CreateWorkgroupRequest$subnetIds": "

An array of VPC subnet IDs to associate with the workgroup.

", - "EndpointAccess$subnetIds": "

The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.

", - "UpdateWorkgroupRequest$subnetIds": "

An array of VPC subnet IDs to associate with the workgroup.

", - "Workgroup$subnetIds": "

An array of subnet IDs the workgroup is associated with.

" - } - }, - "SyntheticTimestamp_date_time": { - "base": null, - "refs": { - "EndpointAccess$endpointCreateTime": "

The time that the endpoint was created.

", - "Namespace$creationDate": "

The date of when the namespace was created.

", - "RecoveryPoint$recoveryPointCreateTime": "

The time the recovery point is created.

", - "Snapshot$snapshotCreateTime": "

The timestamp of when the snapshot was created.

", - "Snapshot$snapshotRetentionStartTime": "

The timestamp of when data within the snapshot started getting retained.

", - "Workgroup$creationDate": "

The creation date of the workgroup.

" - } - }, - "Tag": { - "base": "

A map of key-value pairs.

", - "refs": { - "TagList$member": null - } - }, - "TagKey": { - "base": null, - "refs": { - "Tag$key": "

The key to use in the tag.

", - "TagKeyList$member": null - } - }, - "TagKeyList": { - "base": null, - "refs": { - "UntagResourceRequest$tagKeys": "

The tag or set of tags to remove from the resource.

" - } - }, - "TagList": { - "base": null, - "refs": { - "CreateNamespaceRequest$tags": "

A list of tag instances.

", - "CreateWorkgroupRequest$tags": "

A array of tag instances.

", - "ListTagsForResourceResponse$tags": "

A map of the key-value pairs assigned to the resource.

", - "TagResourceRequest$tags": "

The map of the key-value pairs used to tag the resource.

" - } - }, - "TagResourceRequest": { - "base": null, - "refs": { - } - }, - "TagResourceResponse": { - "base": null, - "refs": { - } - }, - "TagValue": { - "base": null, - "refs": { - "Tag$value": "

The value of the tag.

" - } - }, - "ThrottlingException": { - "base": "

The request was denied due to request throttling.

", - "refs": { - } - }, - "Timestamp": { - "base": null, - "refs": { - "GetCredentialsResponse$expiration": "

The date and time the password in DbPassword expires.

", - "GetCredentialsResponse$nextRefreshTime": "

The date and time of when the DbUser and DbPassword authorization refreshes.

", - "ListRecoveryPointsRequest$endTime": "

The time when creation of the recovery point finished.

", - "ListRecoveryPointsRequest$startTime": "

The time when the recovery point's creation was initiated.

", - "ListSnapshotsRequest$endTime": "

The timestamp showing when the snapshot creation finished.

", - "ListSnapshotsRequest$startTime": "

The time when the creation of the snapshot was initiated.

" - } - }, - "TooManyTagsException": { - "base": "

The request exceeded the number of tags allowed for a resource.

", - "refs": { - } - }, - "UntagResourceRequest": { - "base": null, - "refs": { - } - }, - "UntagResourceResponse": { - "base": null, - "refs": { - } - }, - "UpdateEndpointAccessRequest": { - "base": null, - "refs": { - } - }, - "UpdateEndpointAccessResponse": { - "base": null, - "refs": { - } - }, - "UpdateNamespaceRequest": { - "base": null, - "refs": { - } - }, - "UpdateNamespaceResponse": { - "base": null, - "refs": { - } - }, - "UpdateSnapshotRequest": { - "base": null, - "refs": { - } - }, - "UpdateSnapshotResponse": { - "base": null, - "refs": { - } - }, - "UpdateUsageLimitRequest": { - "base": null, - "refs": { - } - }, - "UpdateUsageLimitResponse": { - "base": null, - "refs": { - } - }, - "UpdateWorkgroupRequest": { - "base": null, - "refs": { - } - }, - "UpdateWorkgroupResponse": { - "base": null, - "refs": { - } - }, - "UsageLimit": { - "base": "

The usage limit object.

", - "refs": { - "CreateUsageLimitResponse$usageLimit": "

The returned usage limit object.

", - "DeleteUsageLimitResponse$usageLimit": "

The deleted usage limit object.

", - "GetUsageLimitResponse$usageLimit": "

The returned usage limit object.

", - "UpdateUsageLimitResponse$usageLimit": "

The updated usage limit object.

", - "UsageLimits$member": null - } - }, - "UsageLimitBreachAction": { - "base": null, - "refs": { - "CreateUsageLimitRequest$breachAction": "

The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.

", - "UpdateUsageLimitRequest$breachAction": "

The new action that Amazon Redshift Serverless takes when the limit is reached.

", - "UsageLimit$breachAction": "

The action that Amazon Redshift Serverless takes when the limit is reached.

" - } - }, - "UsageLimitPeriod": { - "base": null, - "refs": { - "CreateUsageLimitRequest$period": "

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

", - "UsageLimit$period": "

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

" - } - }, - "UsageLimitUsageType": { - "base": null, - "refs": { - "CreateUsageLimitRequest$usageType": "

The type of Amazon Redshift Serverless usage to create a usage limit for.

", - "ListUsageLimitsRequest$usageType": "

The Amazon Redshift Serverless feature whose limits you want to see.

", - "UsageLimit$usageType": "

The Amazon Redshift Serverless feature to limit.

" - } - }, - "UsageLimits": { - "base": null, - "refs": { - "ListUsageLimitsResponse$usageLimits": "

An array of returned usage limit objects.

" - } - }, - "ValidationException": { - "base": "

The input failed to satisfy the constraints specified by an AWS service.

", - "refs": { - } - }, - "VpcEndpoint": { - "base": "

The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.

", - "refs": { - "EndpointAccess$vpcEndpoint": "

The connection endpoint for connecting to Amazon Redshift Serverless.

", - "VpcEndpointList$member": null - } - }, - "VpcEndpointList": { - "base": null, - "refs": { - "Endpoint$vpcEndpoints": "

An array of VpcEndpoint objects.

" - } - }, - "VpcSecurityGroupId": { - "base": null, - "refs": { - "VpcSecurityGroupIdList$member": null, - "VpcSecurityGroupMembership$vpcSecurityGroupId": "

The unique identifier of the VPC security group.

" - } - }, - "VpcSecurityGroupIdList": { - "base": null, - "refs": { - "CreateEndpointAccessRequest$vpcSecurityGroupIds": "

The unique identifiers of the security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

", - "UpdateEndpointAccessRequest$vpcSecurityGroupIds": "

The list of VPC security groups associated with the endpoint after the endpoint is modified.

" - } - }, - "VpcSecurityGroupMembership": { - "base": "

Describes the members of a VPC security group.

", - "refs": { - "VpcSecurityGroupMembershipList$member": null - } - }, - "VpcSecurityGroupMembershipList": { - "base": null, - "refs": { - "EndpointAccess$vpcSecurityGroups": "

The security groups associated with the endpoint.

" - } - }, - "Workgroup": { - "base": "

The collection of computing resources from which an endpoint is created.

", - "refs": { - "CreateWorkgroupResponse$workgroup": "

The created workgroup object.

", - "DeleteWorkgroupResponse$workgroup": "

The deleted workgroup object.

", - "GetWorkgroupResponse$workgroup": "

The returned workgroup object.

", - "UpdateWorkgroupResponse$workgroup": "

The updated workgroup object.

", - "WorkgroupList$member": null - } - }, - "WorkgroupList": { - "base": null, - "refs": { - "ListWorkgroupsResponse$workgroups": "

The returned array of workgroups.

" - } - }, - "WorkgroupName": { - "base": null, - "refs": { - "CreateWorkgroupRequest$workgroupName": "

The name of the created workgroup.

", - "DeleteWorkgroupRequest$workgroupName": "

The name of the workgroup to be deleted.

", - "GetCredentialsRequest$workgroupName": "

The name of the workgroup associated with the database.

", - "GetWorkgroupRequest$workgroupName": "

The name of the workgroup to return information for.

", - "RecoveryPoint$workgroupName": "

The name of the workgroup the recovery point is associated with.

", - "RestoreFromRecoveryPointRequest$workgroupName": "

The name of the workgroup used to restore data.

", - "RestoreFromSnapshotRequest$workgroupName": "

The name of the workgroup used to restore the snapshot.

", - "UpdateWorkgroupRequest$workgroupName": "

The name of the workgroup to update.

", - "Workgroup$workgroupName": "

The name of the workgroup.

" - } - }, - "WorkgroupStatus": { - "base": null, - "refs": { - "Workgroup$status": "

The status of the workgroup.

" - } - } - } -} diff --git a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.examples.json b/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.examples.json deleted file mode 100644 index 0ea7e3b0bbe9..000000000000 --- a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.examples.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.normal.json b/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.normal.json deleted file mode 100644 index 192dacd55b4d..000000000000 --- a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.normal.json +++ /dev/null @@ -1,2468 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2021-04-21", - "endpointPrefix":"redshift-serverless", - "jsonVersion":"1.1", - "protocol":"json", - "serviceFullName":"Redshift Serverless", - "serviceId":"RedshiftServerless", - "signatureVersion":"v4", - "signingName":"redshift-serverless", - "targetPrefix":"RedshiftServerless", - "uid":"redshiftserverless-2021-04-21" - }, - "operations":{ - "ConvertRecoveryPointToSnapshot":{ - "name":"ConvertRecoveryPointToSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ConvertRecoveryPointToSnapshotRequest"}, - "output":{"shape":"ConvertRecoveryPointToSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "documentation":"

Converts a recovery point to a snapshot. For more information about recovery points and snapshots, see Working with snapshots and recovery points.

" - }, - "CreateEndpointAccess":{ - "name":"CreateEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateEndpointAccessRequest"}, - "output":{"shape":"CreateEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "documentation":"

Creates an Amazon Redshift Serverless managed VPC endpoint.

", - "idempotent":true - }, - "CreateNamespace":{ - "name":"CreateNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateNamespaceRequest"}, - "output":{"shape":"CreateNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"TooManyTagsException"} - ], - "documentation":"

Creates a namespace in Amazon Redshift Serverless.

", - "idempotent":true - }, - "CreateSnapshot":{ - "name":"CreateSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateSnapshotRequest"}, - "output":{"shape":"CreateSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "documentation":"

Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.

", - "idempotent":true - }, - "CreateUsageLimit":{ - "name":"CreateUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateUsageLimitRequest"}, - "output":{"shape":"CreateUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "documentation":"

Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.

", - "idempotent":true - }, - "CreateWorkgroup":{ - "name":"CreateWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"CreateWorkgroupRequest"}, - "output":{"shape":"CreateWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InsufficientCapacityException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"TooManyTagsException"} - ], - "documentation":"

Creates an workgroup in Amazon Redshift Serverless.

", - "idempotent":true - }, - "DeleteEndpointAccess":{ - "name":"DeleteEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteEndpointAccessRequest"}, - "output":{"shape":"DeleteEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Deletes an Amazon Redshift Serverless managed VPC endpoint.

", - "idempotent":true - }, - "DeleteNamespace":{ - "name":"DeleteNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteNamespaceRequest"}, - "output":{"shape":"DeleteNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.

", - "idempotent":true - }, - "DeleteResourcePolicy":{ - "name":"DeleteResourcePolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteResourcePolicyRequest"}, - "output":{"shape":"DeleteResourcePolicyResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Deletes the specified resource policy.

" - }, - "DeleteSnapshot":{ - "name":"DeleteSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteSnapshotRequest"}, - "output":{"shape":"DeleteSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Deletes a snapshot from Amazon Redshift Serverless.

", - "idempotent":true - }, - "DeleteUsageLimit":{ - "name":"DeleteUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteUsageLimitRequest"}, - "output":{"shape":"DeleteUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Deletes a usage limit from Amazon Redshift Serverless.

", - "idempotent":true - }, - "DeleteWorkgroup":{ - "name":"DeleteWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"DeleteWorkgroupRequest"}, - "output":{"shape":"DeleteWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Deletes a workgroup.

", - "idempotent":true - }, - "GetCredentials":{ - "name":"GetCredentials", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetCredentialsRequest"}, - "output":{"shape":"GetCredentialsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns a database user name and temporary password with temporary authorization to log in to Amazon Redshift Serverless.

By default, the temporary credentials expire in 900 seconds. You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).

 <p> The Identity and Access Management (IAM) user or role that runs GetCredentials must have an IAM policy attached that allows access to all necessary actions and resources. </p> <p> If the <code>DbName</code> parameter is specified, the IAM policy must allow access to the resource dbname for the specified database name.</p> 
" - }, - "GetEndpointAccess":{ - "name":"GetEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetEndpointAccessRequest"}, - "output":{"shape":"GetEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information, such as the name, about a VPC endpoint.

" - }, - "GetNamespace":{ - "name":"GetNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetNamespaceRequest"}, - "output":{"shape":"GetNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a namespace in Amazon Redshift Serverless.

" - }, - "GetRecoveryPoint":{ - "name":"GetRecoveryPoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetRecoveryPointRequest"}, - "output":{"shape":"GetRecoveryPointResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a recovery point.

" - }, - "GetResourcePolicy":{ - "name":"GetResourcePolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetResourcePolicyRequest"}, - "output":{"shape":"GetResourcePolicyResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns a resource policy.

" - }, - "GetSnapshot":{ - "name":"GetSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetSnapshotRequest"}, - "output":{"shape":"GetSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a specific snapshot.

" - }, - "GetUsageLimit":{ - "name":"GetUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetUsageLimitRequest"}, - "output":{"shape":"GetUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a usage limit.

" - }, - "GetWorkgroup":{ - "name":"GetWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"GetWorkgroupRequest"}, - "output":{"shape":"GetWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a specific workgroup.

" - }, - "ListEndpointAccess":{ - "name":"ListEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListEndpointAccessRequest"}, - "output":{"shape":"ListEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns an array of EndpointAccess objects and relevant information.

" - }, - "ListNamespaces":{ - "name":"ListNamespaces", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListNamespacesRequest"}, - "output":{"shape":"ListNamespacesResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a list of specified namespaces.

" - }, - "ListRecoveryPoints":{ - "name":"ListRecoveryPoints", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListRecoveryPointsRequest"}, - "output":{"shape":"ListRecoveryPointsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns an array of recovery points.

" - }, - "ListSnapshots":{ - "name":"ListSnapshots", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListSnapshotsRequest"}, - "output":{"shape":"ListSnapshotsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns a list of snapshots.

" - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"ThrottlingException"} - ], - "documentation":"

Lists the tags assigned to a resource.

" - }, - "ListUsageLimits":{ - "name":"ListUsageLimits", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListUsageLimitsRequest"}, - "output":{"shape":"ListUsageLimitsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InvalidPaginationException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Lists all usage limits within Amazon Redshift Serverless.

" - }, - "ListWorkgroups":{ - "name":"ListWorkgroups", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"ListWorkgroupsRequest"}, - "output":{"shape":"ListWorkgroupsResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Returns information about a list of specified workgroups.

" - }, - "PutResourcePolicy":{ - "name":"PutResourcePolicy", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"PutResourcePolicyRequest"}, - "output":{"shape":"PutResourcePolicyResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "documentation":"

Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

" - }, - "RestoreFromRecoveryPoint":{ - "name":"RestoreFromRecoveryPoint", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreFromRecoveryPointRequest"}, - "output":{"shape":"RestoreFromRecoveryPointResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Restore the data from a recovery point.

" - }, - "RestoreFromSnapshot":{ - "name":"RestoreFromSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"RestoreFromSnapshotRequest"}, - "output":{"shape":"RestoreFromSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"ServiceQuotaExceededException"} - ], - "documentation":"

Restores a namespace from a snapshot.

", - "idempotent":true - }, - "TagResource":{ - "name":"TagResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"TagResourceRequest"}, - "output":{"shape":"TagResourceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"TooManyTagsException"}, - {"shape":"ThrottlingException"} - ], - "documentation":"

Assigns one or more tags to a resource.

" - }, - "UntagResource":{ - "name":"UntagResource", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UntagResourceRequest"}, - "output":{"shape":"UntagResourceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ValidationException"}, - {"shape":"ThrottlingException"} - ], - "documentation":"

Removes a tag or set of tags from a resource.

" - }, - "UpdateEndpointAccess":{ - "name":"UpdateEndpointAccess", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateEndpointAccessRequest"}, - "output":{"shape":"UpdateEndpointAccessResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"AccessDeniedException"} - ], - "documentation":"

Updates an Amazon Redshift Serverless managed endpoint.

" - }, - "UpdateNamespace":{ - "name":"UpdateNamespace", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateNamespaceRequest"}, - "output":{"shape":"UpdateNamespaceResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Updates a namespace with the specified settings.

" - }, - "UpdateSnapshot":{ - "name":"UpdateSnapshot", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateSnapshotRequest"}, - "output":{"shape":"UpdateSnapshotResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Updates a snapshot.

" - }, - "UpdateUsageLimit":{ - "name":"UpdateUsageLimit", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateUsageLimitRequest"}, - "output":{"shape":"UpdateUsageLimitResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.

" - }, - "UpdateWorkgroup":{ - "name":"UpdateWorkgroup", - "http":{ - "method":"POST", - "requestUri":"/" - }, - "input":{"shape":"UpdateWorkgroupRequest"}, - "output":{"shape":"UpdateWorkgroupResponse"}, - "errors":[ - {"shape":"InternalServerException"}, - {"shape":"InsufficientCapacityException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ConflictException"}, - {"shape":"ValidationException"} - ], - "documentation":"

Updates a workgroup with the specified configuration settings.

" - } - }, - "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - "code":{"shape":"String"}, - "message":{"shape":"String"} - }, - "documentation":"

You do not have sufficient access to perform this action.

", - "exception":true - }, - "AccountIdList":{ - "type":"list", - "member":{"shape":"String"} - }, - "AmazonResourceName":{ - "type":"string", - "max":1011, - "min":1 - }, - "Boolean":{ - "type":"boolean", - "box":true - }, - "ConfigParameter":{ - "type":"structure", - "members":{ - "parameterKey":{ - "shape":"ParameterKey", - "documentation":"

The key of the parameter. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" - }, - "parameterValue":{ - "shape":"ParameterValue", - "documentation":"

The value of the parameter to set.

" - } - }, - "documentation":"

An array of key-value pairs to set for advanced control over Amazon Redshift Serverless.

" - }, - "ConfigParameterList":{ - "type":"list", - "member":{"shape":"ConfigParameter"} - }, - "ConflictException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "documentation":"

The submitted action has conflicts.

", - "exception":true - }, - "ConvertRecoveryPointToSnapshotRequest":{ - "type":"structure", - "required":[ - "recoveryPointId", - "snapshotName" - ], - "members":{ - "recoveryPointId":{ - "shape":"String", - "documentation":"

The unique identifier of the recovery point.

" - }, - "retentionPeriod":{ - "shape":"Integer", - "documentation":"

How long to retain the snapshot.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot.

" - } - } - }, - "ConvertRecoveryPointToSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{ - "shape":"Snapshot", - "documentation":"

The snapshot converted from the recovery point.

" - } - } - }, - "CreateEndpointAccessRequest":{ - "type":"structure", - "required":[ - "endpointName", - "subnetIds", - "workgroupName" - ], - "members":{ - "endpointName":{ - "shape":"String", - "documentation":"

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The name can't contain two consecutive hyphens or end with a hyphen.

" - }, - "subnetIds":{ - "shape":"SubnetIdList", - "documentation":"

The unique identifers of subnets from which Amazon Redshift Serverless chooses one to deploy a VPC endpoint.

" - }, - "vpcSecurityGroupIds":{ - "shape":"VpcSecurityGroupIdList", - "documentation":"

The unique identifiers of the security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.

" - }, - "workgroupName":{ - "shape":"String", - "documentation":"

The name of the workgroup to associate with the VPC endpoint.

" - } - } - }, - "CreateEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{ - "shape":"EndpointAccess", - "documentation":"

The created VPC endpoint.

" - } - } - }, - "CreateNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "adminUserPassword":{ - "shape":"DbPassword", - "documentation":"

The password of the administrator for the first database created in the namespace.

" - }, - "adminUsername":{ - "shape":"DbUser", - "documentation":"

The username of the administrator for the first database created in the namespace.

" - }, - "dbName":{ - "shape":"String", - "documentation":"

The name of the first database created in the namespace.

" - }, - "defaultIamRoleArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

" - }, - "iamRoles":{ - "shape":"IamRoleArnList", - "documentation":"

A list of IAM roles to associate with the namespace.

" - }, - "kmsKeyId":{ - "shape":"String", - "documentation":"

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

" - }, - "logExports":{ - "shape":"LogExportList", - "documentation":"

The types of logs the namespace can export. Available export types are userlog, connectionlog, and useractivitylog.

" - }, - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace.

" - }, - "tags":{ - "shape":"TagList", - "documentation":"

A list of tag instances.

" - } - } - }, - "CreateNamespaceResponse":{ - "type":"structure", - "members":{ - "namespace":{ - "shape":"Namespace", - "documentation":"

The created namespace object.

" - } - } - }, - "CreateSnapshotRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "snapshotName" - ], - "members":{ - "namespaceName":{ - "shape":"String", - "documentation":"

The namespace to create a snapshot for.

" - }, - "retentionPeriod":{ - "shape":"Integer", - "documentation":"

How long to retain the created snapshot.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot.

" - } - } - }, - "CreateSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{ - "shape":"Snapshot", - "documentation":"

The created snapshot object.

" - } - } - }, - "CreateUsageLimitRequest":{ - "type":"structure", - "required":[ - "amount", - "resourceArn", - "usageType" - ], - "members":{ - "amount":{ - "shape":"Long", - "documentation":"

The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred between Regions in cross-account sharing. The value must be a positive number.

" - }, - "breachAction":{ - "shape":"UsageLimitBreachAction", - "documentation":"

The action that Amazon Redshift Serverless takes when the limit is reached. The default is log.

" - }, - "period":{ - "shape":"UsageLimitPeriod", - "documentation":"

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

" - }, - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create the usage limit for.

" - }, - "usageType":{ - "shape":"UsageLimitUsageType", - "documentation":"

The type of Amazon Redshift Serverless usage to create a usage limit for.

" - } - } - }, - "CreateUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{ - "shape":"UsageLimit", - "documentation":"

The returned usage limit object.

" - } - } - }, - "CreateWorkgroupRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "workgroupName" - ], - "members":{ - "baseCapacity":{ - "shape":"Integer", - "documentation":"

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

" - }, - "configParameters":{ - "shape":"ConfigParameterList", - "documentation":"

An array of parameters to set for more control over a serverless database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" - }, - "enhancedVpcRouting":{ - "shape":"Boolean", - "documentation":"

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC instead of over the internet.

" - }, - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace to associate with the workgroup.

" - }, - "publiclyAccessible":{ - "shape":"Boolean", - "documentation":"

A value that specifies whether the workgroup can be accessed from a public network.

" - }, - "securityGroupIds":{ - "shape":"SecurityGroupIdList", - "documentation":"

An array of security group IDs to associate with the workgroup.

" - }, - "subnetIds":{ - "shape":"SubnetIdList", - "documentation":"

An array of VPC subnet IDs to associate with the workgroup.

" - }, - "tags":{ - "shape":"TagList", - "documentation":"

A array of tag instances.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the created workgroup.

" - } - } - }, - "CreateWorkgroupResponse":{ - "type":"structure", - "members":{ - "workgroup":{ - "shape":"Workgroup", - "documentation":"

The created workgroup object.

" - } - } - }, - "DbName":{"type":"string"}, - "DbPassword":{ - "type":"string", - "sensitive":true - }, - "DbUser":{ - "type":"string", - "sensitive":true - }, - "DeleteEndpointAccessRequest":{ - "type":"structure", - "required":["endpointName"], - "members":{ - "endpointName":{ - "shape":"String", - "documentation":"

The name of the VPC endpoint to delete.

" - } - } - }, - "DeleteEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{ - "shape":"EndpointAccess", - "documentation":"

The deleted VPC endpoint.

" - } - } - }, - "DeleteNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "finalSnapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot to be created before the namespace is deleted.

" - }, - "finalSnapshotRetentionPeriod":{ - "shape":"Integer", - "documentation":"

How long to retain the final snapshot.

" - }, - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace to delete.

" - } - } - }, - "DeleteNamespaceResponse":{ - "type":"structure", - "required":["namespace"], - "members":{ - "namespace":{ - "shape":"Namespace", - "documentation":"

The deleted namespace object.

" - } - } - }, - "DeleteResourcePolicyRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the policy to delete.

" - } - } - }, - "DeleteResourcePolicyResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteSnapshotRequest":{ - "type":"structure", - "required":["snapshotName"], - "members":{ - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot to be deleted.

" - } - } - }, - "DeleteSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{ - "shape":"Snapshot", - "documentation":"

The deleted snapshot object.

" - } - } - }, - "DeleteUsageLimitRequest":{ - "type":"structure", - "required":["usageLimitId"], - "members":{ - "usageLimitId":{ - "shape":"String", - "documentation":"

The unique identifier of the usage limit to delete.

" - } - } - }, - "DeleteUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{ - "shape":"UsageLimit", - "documentation":"

The deleted usage limit object.

" - } - } - }, - "DeleteWorkgroupRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup to be deleted.

" - } - } - }, - "DeleteWorkgroupResponse":{ - "type":"structure", - "required":["workgroup"], - "members":{ - "workgroup":{ - "shape":"Workgroup", - "documentation":"

The deleted workgroup object.

" - } - } - }, - "Double":{ - "type":"double", - "box":true - }, - "Endpoint":{ - "type":"structure", - "members":{ - "address":{ - "shape":"String", - "documentation":"

The DNS address of the VPC endpoint.

" - }, - "port":{ - "shape":"Integer", - "documentation":"

The port that Amazon Redshift Serverless listens on.

" - }, - "vpcEndpoints":{ - "shape":"VpcEndpointList", - "documentation":"

An array of VpcEndpoint objects.

" - } - }, - "documentation":"

The VPC endpoint object.

" - }, - "EndpointAccess":{ - "type":"structure", - "members":{ - "address":{ - "shape":"String", - "documentation":"

The DNS address of the endpoint.

" - }, - "endpointArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the VPC endpoint.

" - }, - "endpointCreateTime":{ - "shape":"SyntheticTimestamp_date_time", - "documentation":"

The time that the endpoint was created.

" - }, - "endpointName":{ - "shape":"String", - "documentation":"

The name of the VPC endpoint.

" - }, - "endpointStatus":{ - "shape":"String", - "documentation":"

The status of the VPC endpoint.

" - }, - "port":{ - "shape":"Integer", - "documentation":"

The port number on which Amazon Redshift Serverless accepts incoming connections.

" - }, - "subnetIds":{ - "shape":"SubnetIdList", - "documentation":"

The unique identifier of subnets where Amazon Redshift Serverless choose to deploy the VPC endpoint.

" - }, - "vpcEndpoint":{ - "shape":"VpcEndpoint", - "documentation":"

The connection endpoint for connecting to Amazon Redshift Serverless.

" - }, - "vpcSecurityGroups":{ - "shape":"VpcSecurityGroupMembershipList", - "documentation":"

The security groups associated with the endpoint.

" - }, - "workgroupName":{ - "shape":"String", - "documentation":"

The name of the workgroup associated with the endpoint.

" - } - }, - "documentation":"

Information about an Amazon Redshift Serverless VPC endpoint.

" - }, - "EndpointAccessList":{ - "type":"list", - "member":{"shape":"EndpointAccess"} - }, - "GetCredentialsRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "dbName":{ - "shape":"DbName", - "documentation":"

The name of the database to get temporary authorization to log on to.

Constraints:

" - }, - "durationSeconds":{ - "shape":"Integer", - "documentation":"

The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup associated with the database.

" - } - } - }, - "GetCredentialsResponse":{ - "type":"structure", - "members":{ - "dbPassword":{ - "shape":"DbPassword", - "documentation":"

A temporary password that authorizes the user name returned by DbUser to log on to the database DbName.

" - }, - "dbUser":{ - "shape":"DbUser", - "documentation":"

A database user name that is authorized to log on to the database DbName using the password DbPassword. If the specified DbUser exists in the database, the new user name has the same database privileges as the the user named in DbUser. By default, the user is added to PUBLIC.

" - }, - "expiration":{ - "shape":"Timestamp", - "documentation":"

The date and time the password in DbPassword expires.

" - }, - "nextRefreshTime":{ - "shape":"Timestamp", - "documentation":"

The date and time of when the DbUser and DbPassword authorization refreshes.

" - } - } - }, - "GetEndpointAccessRequest":{ - "type":"structure", - "required":["endpointName"], - "members":{ - "endpointName":{ - "shape":"String", - "documentation":"

The name of the VPC endpoint to return information for.

" - } - } - }, - "GetEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{ - "shape":"EndpointAccess", - "documentation":"

The returned VPC endpoint.

" - } - } - }, - "GetNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace to retrieve information for.

" - } - } - }, - "GetNamespaceResponse":{ - "type":"structure", - "required":["namespace"], - "members":{ - "namespace":{ - "shape":"Namespace", - "documentation":"

The returned namespace object.

" - } - } - }, - "GetRecoveryPointRequest":{ - "type":"structure", - "required":["recoveryPointId"], - "members":{ - "recoveryPointId":{ - "shape":"String", - "documentation":"

The unique identifier of the recovery point to return information for.

" - } - } - }, - "GetRecoveryPointResponse":{ - "type":"structure", - "members":{ - "recoveryPoint":{ - "shape":"RecoveryPoint", - "documentation":"

The returned recovery point object.

" - } - } - }, - "GetResourcePolicyRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the resource to return.

" - } - } - }, - "GetResourcePolicyResponse":{ - "type":"structure", - "members":{ - "resourcePolicy":{ - "shape":"ResourcePolicy", - "documentation":"

The returned resource policy.

" - } - } - }, - "GetSnapshotRequest":{ - "type":"structure", - "members":{ - "ownerAccount":{ - "shape":"String", - "documentation":"

The owner Amazon Web Services account of a snapshot shared with another user.

" - }, - "snapshotArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the snapshot to return.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot to return.

" - } - } - }, - "GetSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{ - "shape":"Snapshot", - "documentation":"

The returned snapshot object.

" - } - } - }, - "GetUsageLimitRequest":{ - "type":"structure", - "required":["usageLimitId"], - "members":{ - "usageLimitId":{ - "shape":"String", - "documentation":"

The unique identifier of the usage limit to return information for.

" - } - } - }, - "GetUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{ - "shape":"UsageLimit", - "documentation":"

The returned usage limit object.

" - } - } - }, - "GetWorkgroupRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup to return information for.

" - } - } - }, - "GetWorkgroupResponse":{ - "type":"structure", - "required":["workgroup"], - "members":{ - "workgroup":{ - "shape":"Workgroup", - "documentation":"

The returned workgroup object.

" - } - } - }, - "IamRoleArn":{"type":"string"}, - "IamRoleArnList":{ - "type":"list", - "member":{"shape":"IamRoleArn"} - }, - "InsufficientCapacityException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "documentation":"

There is an insufficient capacity to perform the action.

", - "exception":true, - "retryable":{"throttling":false} - }, - "Integer":{ - "type":"integer", - "box":true - }, - "InternalServerException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "documentation":"

The request processing has failed because of an unknown error, exception or failure.

", - "exception":true, - "fault":true, - "retryable":{"throttling":false} - }, - "InvalidPaginationException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "documentation":"

The provided pagination token is invalid.

", - "exception":true - }, - "KmsKeyId":{"type":"string"}, - "ListEndpointAccessRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListEndpointAccessRequestMaxResultsInteger", - "documentation":"

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

", - "box":true - }, - "nextToken":{ - "shape":"String", - "documentation":"

If your initial ListEndpointAccess operation returns a nextToken, you can include the returned nextToken in subsequent ListEndpointAccess operations, which returns results in the next page.

" - }, - "vpcId":{ - "shape":"String", - "documentation":"

The unique identifier of the virtual private cloud with access to Amazon Redshift Serverless.

" - }, - "workgroupName":{ - "shape":"String", - "documentation":"

The name of the workgroup associated with the VPC endpoint to return.

" - } - } - }, - "ListEndpointAccessRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListEndpointAccessResponse":{ - "type":"structure", - "required":["endpoints"], - "members":{ - "endpoints":{ - "shape":"EndpointAccessList", - "documentation":"

The returned VPC endpoints.

" - }, - "nextToken":{ - "shape":"String", - "documentation":"

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - } - } - }, - "ListNamespacesRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListNamespacesRequestMaxResultsInteger", - "documentation":"

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

", - "box":true - }, - "nextToken":{ - "shape":"String", - "documentation":"

If your initial ListNamespaces operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.

" - } - } - }, - "ListNamespacesRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListNamespacesResponse":{ - "type":"structure", - "required":["namespaces"], - "members":{ - "namespaces":{ - "shape":"NamespaceList", - "documentation":"

The list of returned namespaces.

" - }, - "nextToken":{ - "shape":"String", - "documentation":"

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - } - } - }, - "ListRecoveryPointsRequest":{ - "type":"structure", - "members":{ - "endTime":{ - "shape":"Timestamp", - "documentation":"

The time when creation of the recovery point finished.

" - }, - "maxResults":{ - "shape":"ListRecoveryPointsRequestMaxResultsInteger", - "documentation":"

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

", - "box":true - }, - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace to list recovery points for.

" - }, - "nextToken":{ - "shape":"String", - "documentation":"

If your initial ListRecoveryPoints operation returns a nextToken, you can include the returned nextToken in subsequent ListRecoveryPoints operations, which returns results in the next page.

" - }, - "startTime":{ - "shape":"Timestamp", - "documentation":"

The time when the recovery point's creation was initiated.

" - } - } - }, - "ListRecoveryPointsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListRecoveryPointsResponse":{ - "type":"structure", - "members":{ - "nextToken":{ - "shape":"String", - "documentation":"

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - }, - "recoveryPoints":{ - "shape":"RecoveryPointList", - "documentation":"

The returned recovery point objects.

" - } - } - }, - "ListSnapshotsRequest":{ - "type":"structure", - "members":{ - "endTime":{ - "shape":"Timestamp", - "documentation":"

The timestamp showing when the snapshot creation finished.

" - }, - "maxResults":{ - "shape":"ListSnapshotsRequestMaxResultsInteger", - "documentation":"

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

", - "box":true - }, - "namespaceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the namespace from which to list all snapshots.

" - }, - "namespaceName":{ - "shape":"String", - "documentation":"

The namespace from which to list all snapshots.

" - }, - "nextToken":{ - "shape":"String", - "documentation":"

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - }, - "ownerAccount":{ - "shape":"String", - "documentation":"

The owner Amazon Web Services account of the snapshot.

" - }, - "startTime":{ - "shape":"Timestamp", - "documentation":"

The time when the creation of the snapshot was initiated.

" - } - } - }, - "ListSnapshotsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListSnapshotsResponse":{ - "type":"structure", - "members":{ - "nextToken":{ - "shape":"String", - "documentation":"

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - }, - "snapshots":{ - "shape":"SnapshotList", - "documentation":"

All of the returned snapshot objects.

" - } - } - }, - "ListTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{ - "shape":"AmazonResourceName", - "documentation":"

The Amazon Resource Name (ARN) of the resource to list tags for.

" - } - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "members":{ - "tags":{ - "shape":"TagList", - "documentation":"

A map of the key-value pairs assigned to the resource.

" - } - } - }, - "ListUsageLimitsRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListUsageLimitsRequestMaxResultsInteger", - "documentation":"

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 100.

", - "box":true - }, - "nextToken":{ - "shape":"PaginationToken", - "documentation":"

If your initial ListUsageLimits operation returns a nextToken, you can include the returned nextToken in subsequent ListUsageLimits operations, which returns results in the next page.

" - }, - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) associated with the resource whose usage limits you want to list.

" - }, - "usageType":{ - "shape":"UsageLimitUsageType", - "documentation":"

The Amazon Redshift Serverless feature whose limits you want to see.

" - } - } - }, - "ListUsageLimitsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListUsageLimitsResponse":{ - "type":"structure", - "members":{ - "nextToken":{ - "shape":"PaginationToken", - "documentation":"

When nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.

" - }, - "usageLimits":{ - "shape":"UsageLimits", - "documentation":"

An array of returned usage limit objects.

" - } - } - }, - "ListWorkgroupsRequest":{ - "type":"structure", - "members":{ - "maxResults":{ - "shape":"ListWorkgroupsRequestMaxResultsInteger", - "documentation":"

An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.

", - "box":true - }, - "nextToken":{ - "shape":"String", - "documentation":"

If your initial ListWorkgroups operation returns a nextToken, you can include the returned nextToken in subsequent ListNamespaces operations, which returns results in the next page.

" - } - } - }, - "ListWorkgroupsRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":100, - "min":1 - }, - "ListWorkgroupsResponse":{ - "type":"structure", - "required":["workgroups"], - "members":{ - "nextToken":{ - "shape":"String", - "documentation":"

If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, make the call again using the returned token.

" - }, - "workgroups":{ - "shape":"WorkgroupList", - "documentation":"

The returned array of workgroups.

" - } - } - }, - "LogExport":{ - "type":"string", - "enum":[ - "useractivitylog", - "userlog", - "connectionlog" - ] - }, - "LogExportList":{ - "type":"list", - "member":{"shape":"LogExport"}, - "max":16, - "min":0 - }, - "Long":{ - "type":"long", - "box":true - }, - "Namespace":{ - "type":"structure", - "members":{ - "adminUsername":{ - "shape":"DbUser", - "documentation":"

The username of the administrator for the first database created in the namespace.

" - }, - "creationDate":{ - "shape":"SyntheticTimestamp_date_time", - "documentation":"

The date of when the namespace was created.

" - }, - "dbName":{ - "shape":"String", - "documentation":"

The name of the first database created in the namespace.

" - }, - "defaultIamRoleArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

" - }, - "iamRoles":{ - "shape":"IamRoleArnList", - "documentation":"

A list of IAM roles to associate with the namespace.

" - }, - "kmsKeyId":{ - "shape":"String", - "documentation":"

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

" - }, - "logExports":{ - "shape":"LogExportList", - "documentation":"

The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.

" - }, - "namespaceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) associated with a namespace.

" - }, - "namespaceId":{ - "shape":"String", - "documentation":"

The unique identifier of a namespace.

" - }, - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.

" - }, - "status":{ - "shape":"NamespaceStatus", - "documentation":"

The status of the namespace.

" - } - }, - "documentation":"

A collection of database objects and users.

" - }, - "NamespaceList":{ - "type":"list", - "member":{"shape":"Namespace"} - }, - "NamespaceName":{ - "type":"string", - "max":64, - "min":3, - "pattern":"^[a-z0-9-]+$" - }, - "NamespaceStatus":{ - "type":"string", - "enum":[ - "AVAILABLE", - "MODIFYING", - "DELETING" - ] - }, - "NetworkInterface":{ - "type":"structure", - "members":{ - "availabilityZone":{ - "shape":"String", - "documentation":"

The availability Zone.

" - }, - "networkInterfaceId":{ - "shape":"String", - "documentation":"

The unique identifier of the network interface.

" - }, - "privateIpAddress":{ - "shape":"String", - "documentation":"

The IPv4 address of the network interface within the subnet.

" - }, - "subnetId":{ - "shape":"String", - "documentation":"

The unique identifier of the subnet.

" - } - }, - "documentation":"

Contains information about a network interface in an Amazon Redshift Serverless managed VPC endpoint.

" - }, - "NetworkInterfaceList":{ - "type":"list", - "member":{"shape":"NetworkInterface"} - }, - "PaginationToken":{ - "type":"string", - "max":1024, - "min":8 - }, - "ParameterKey":{"type":"string"}, - "ParameterValue":{"type":"string"}, - "PutResourcePolicyRequest":{ - "type":"structure", - "required":[ - "policy", - "resourceArn" - ], - "members":{ - "policy":{ - "shape":"String", - "documentation":"

The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot.

\"{\\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\" : [{ \\\"Sid\\\": \\\"AllowUserRestoreFromSnapshot\\\", \\\"Principal\\\":{\\\"AWS\\\": [\\\"739247239426\\\"]}, \\\"Action\\\": [\\\"redshift-serverless:RestoreFromSnapshot\\\"] , \\\"Effect\\\": \\\"Allow\\\" }]}\"

" - }, - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the account to create or update a resource policy for.

" - } - } - }, - "PutResourcePolicyResponse":{ - "type":"structure", - "members":{ - "resourcePolicy":{ - "shape":"ResourcePolicy", - "documentation":"

The policy that was created or updated.

" - } - } - }, - "RecoveryPoint":{ - "type":"structure", - "members":{ - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace the recovery point is associated with.

" - }, - "recoveryPointCreateTime":{ - "shape":"SyntheticTimestamp_date_time", - "documentation":"

The time the recovery point is created.

" - }, - "recoveryPointId":{ - "shape":"String", - "documentation":"

The unique identifier of the recovery point.

" - }, - "totalSizeInMegaBytes":{ - "shape":"Double", - "documentation":"

The total size of the data in the recovery point in megabytes.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup the recovery point is associated with.

" - } - }, - "documentation":"

The automatically created recovery point of a namespace. Recovery points are created every 30 minutes and kept for 24 hours.

" - }, - "RecoveryPointList":{ - "type":"list", - "member":{"shape":"RecoveryPoint"} - }, - "ResourceNotFoundException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"}, - "resourceName":{ - "shape":"AmazonResourceName", - "documentation":"

The name of the resource that could not be found.

" - } - }, - "documentation":"

The resource could not be found.

", - "exception":true - }, - "ResourcePolicy":{ - "type":"structure", - "members":{ - "policy":{ - "shape":"String", - "documentation":"

The resource policy.

" - }, - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the policy.

" - } - }, - "documentation":"

The resource policy object. Currently, you can use policies to share snapshots across Amazon Web Services accounts.

" - }, - "RestoreFromRecoveryPointRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "recoveryPointId", - "workgroupName" - ], - "members":{ - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace to restore data into.

" - }, - "recoveryPointId":{ - "shape":"String", - "documentation":"

The unique identifier of the recovery point to restore from.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup used to restore data.

" - } - } - }, - "RestoreFromRecoveryPointResponse":{ - "type":"structure", - "members":{ - "namespace":{ - "shape":"Namespace", - "documentation":"

The namespace that data was restored into.

" - }, - "recoveryPointId":{ - "shape":"String", - "documentation":"

The unique identifier of the recovery point used for the restore.

" - } - } - }, - "RestoreFromSnapshotRequest":{ - "type":"structure", - "required":[ - "namespaceName", - "workgroupName" - ], - "members":{ - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace to restore the snapshot to.

" - }, - "ownerAccount":{ - "shape":"String", - "documentation":"

The Amazon Web Services account that owns the snapshot.

" - }, - "snapshotArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the snapshot to restore from.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot to restore from.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup used to restore the snapshot.

" - } - } - }, - "RestoreFromSnapshotResponse":{ - "type":"structure", - "members":{ - "namespace":{"shape":"Namespace"}, - "ownerAccount":{ - "shape":"String", - "documentation":"

The owner Amazon Web Services; account of the snapshot that was restored.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot used to restore the namespace.

" - } - } - }, - "SecurityGroupId":{"type":"string"}, - "SecurityGroupIdList":{ - "type":"list", - "member":{"shape":"SecurityGroupId"} - }, - "ServiceQuotaExceededException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "documentation":"

The service limit was exceeded.

", - "exception":true - }, - "Snapshot":{ - "type":"structure", - "members":{ - "accountsWithProvisionedRestoreAccess":{ - "shape":"AccountIdList", - "documentation":"

All of the Amazon Web Services accounts that have access to restore a snapshot to a provisioned cluster.

" - }, - "accountsWithRestoreAccess":{ - "shape":"AccountIdList", - "documentation":"

All of the Amazon Web Services accounts that have access to restore a snapshot to a namespace.

" - }, - "actualIncrementalBackupSizeInMegaBytes":{ - "shape":"Double", - "documentation":"

The size of the incremental backup in megabytes.

" - }, - "adminUsername":{ - "shape":"String", - "documentation":"

The username of the database within a snapshot.

" - }, - "backupProgressInMegaBytes":{ - "shape":"Double", - "documentation":"

The size in megabytes of the data that has been backed up to a snapshot.

" - }, - "currentBackupRateInMegaBytesPerSecond":{ - "shape":"Double", - "documentation":"

The rate at which data is backed up into a snapshot in megabytes per second.

" - }, - "elapsedTimeInSeconds":{ - "shape":"Long", - "documentation":"

The amount of time it took to back up data into a snapshot.

" - }, - "estimatedSecondsToCompletion":{ - "shape":"Long", - "documentation":"

The estimated amount of seconds until the snapshot completes backup.

" - }, - "kmsKeyId":{ - "shape":"KmsKeyId", - "documentation":"

The unique identifier of the KMS key used to encrypt the snapshot.

" - }, - "namespaceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the namespace the snapshot was created from.

" - }, - "namespaceName":{ - "shape":"String", - "documentation":"

The name of the namepsace.

" - }, - "ownerAccount":{ - "shape":"String", - "documentation":"

The owner Amazon Web Services; account of the snapshot.

" - }, - "snapshotArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the snapshot.

" - }, - "snapshotCreateTime":{ - "shape":"SyntheticTimestamp_date_time", - "documentation":"

The timestamp of when the snapshot was created.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot.

" - }, - "snapshotRemainingDays":{ - "shape":"Integer", - "documentation":"

The amount of days until the snapshot is deleted.

" - }, - "snapshotRetentionPeriod":{ - "shape":"Integer", - "documentation":"

The period of time, in days, of how long the snapshot is retained.

" - }, - "snapshotRetentionStartTime":{ - "shape":"SyntheticTimestamp_date_time", - "documentation":"

The timestamp of when data within the snapshot started getting retained.

" - }, - "status":{ - "shape":"SnapshotStatus", - "documentation":"

The status of the snapshot.

" - }, - "totalBackupSizeInMegaBytes":{ - "shape":"Double", - "documentation":"

The total size, in megabytes, of how big the snapshot is.

" - } - }, - "documentation":"

A snapshot object that contains databases.

" - }, - "SnapshotList":{ - "type":"list", - "member":{"shape":"Snapshot"} - }, - "SnapshotStatus":{ - "type":"string", - "enum":[ - "AVAILABLE", - "CREATING", - "DELETED", - "CANCELLED", - "FAILED", - "COPYING" - ] - }, - "String":{"type":"string"}, - "SubnetId":{"type":"string"}, - "SubnetIdList":{ - "type":"list", - "member":{"shape":"SubnetId"} - }, - "SyntheticTimestamp_date_time":{ - "type":"timestamp", - "timestampFormat":"iso8601" - }, - "Tag":{ - "type":"structure", - "required":[ - "key", - "value" - ], - "members":{ - "key":{ - "shape":"TagKey", - "documentation":"

The key to use in the tag.

" - }, - "value":{ - "shape":"TagValue", - "documentation":"

The value of the tag.

" - } - }, - "documentation":"

A map of key-value pairs.

" - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1 - }, - "TagKeyList":{ - "type":"list", - "member":{"shape":"TagKey"}, - "max":200, - "min":0 - }, - "TagList":{ - "type":"list", - "member":{"shape":"Tag"}, - "max":200, - "min":0 - }, - "TagResourceRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "tags" - ], - "members":{ - "resourceArn":{ - "shape":"AmazonResourceName", - "documentation":"

The Amazon Resource Name (ARN) of the resource to tag.

" - }, - "tags":{ - "shape":"TagList", - "documentation":"

The map of the key-value pairs used to tag the resource.

" - } - } - }, - "TagResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "TagValue":{ - "type":"string", - "max":256, - "min":0 - }, - "ThrottlingException":{ - "type":"structure", - "members":{ - "code":{"shape":"String"}, - "message":{"shape":"String"} - }, - "documentation":"

The request was denied due to request throttling.

", - "exception":true, - "retryable":{"throttling":false} - }, - "Timestamp":{"type":"timestamp"}, - "TooManyTagsException":{ - "type":"structure", - "members":{ - "message":{"shape":"String"}, - "resourceName":{ - "shape":"AmazonResourceName", - "documentation":"

The name of the resource that exceeded the number of tags allowed for a resource.

" - } - }, - "documentation":"

The request exceeded the number of tags allowed for a resource.

", - "exception":true - }, - "UntagResourceRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "tagKeys" - ], - "members":{ - "resourceArn":{ - "shape":"AmazonResourceName", - "documentation":"

The Amazon Resource Name (ARN) of the resource to remove tags from.

" - }, - "tagKeys":{ - "shape":"TagKeyList", - "documentation":"

The tag or set of tags to remove from the resource.

" - } - } - }, - "UntagResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "UpdateEndpointAccessRequest":{ - "type":"structure", - "required":["endpointName"], - "members":{ - "endpointName":{ - "shape":"String", - "documentation":"

The name of the VPC endpoint to update.

" - }, - "vpcSecurityGroupIds":{ - "shape":"VpcSecurityGroupIdList", - "documentation":"

The list of VPC security groups associated with the endpoint after the endpoint is modified.

" - } - } - }, - "UpdateEndpointAccessResponse":{ - "type":"structure", - "members":{ - "endpoint":{ - "shape":"EndpointAccess", - "documentation":"

The updated VPC endpoint.

" - } - } - }, - "UpdateNamespaceRequest":{ - "type":"structure", - "required":["namespaceName"], - "members":{ - "adminUserPassword":{ - "shape":"DbPassword", - "documentation":"

The password of the administrator for the first database created in the namespace.

" - }, - "adminUsername":{ - "shape":"DbUser", - "documentation":"

The username of the administrator for the first database created in the namespace.

" - }, - "defaultIamRoleArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.

" - }, - "iamRoles":{ - "shape":"IamRoleArnList", - "documentation":"

A list of IAM roles to associate with the namespace.

" - }, - "kmsKeyId":{ - "shape":"String", - "documentation":"

The ID of the Amazon Web Services Key Management Service key used to encrypt your data.

" - }, - "logExports":{ - "shape":"LogExportList", - "documentation":"

The types of logs the namespace can export. The export types are userlog, connectionlog, and useractivitylog.

" - }, - "namespaceName":{ - "shape":"NamespaceName", - "documentation":"

The name of the namespace.

" - } - } - }, - "UpdateNamespaceResponse":{ - "type":"structure", - "required":["namespace"], - "members":{ - "namespace":{ - "shape":"Namespace", - "documentation":"

A list of tag instances.

" - } - } - }, - "UpdateSnapshotRequest":{ - "type":"structure", - "required":["snapshotName"], - "members":{ - "retentionPeriod":{ - "shape":"Integer", - "documentation":"

The new retention period of the snapshot.

" - }, - "snapshotName":{ - "shape":"String", - "documentation":"

The name of the snapshot.

" - } - } - }, - "UpdateSnapshotResponse":{ - "type":"structure", - "members":{ - "snapshot":{ - "shape":"Snapshot", - "documentation":"

The updated snapshot object.

" - } - } - }, - "UpdateUsageLimitRequest":{ - "type":"structure", - "required":["usageLimitId"], - "members":{ - "amount":{ - "shape":"Long", - "documentation":"

The new limit amount. For more information about this parameter.

" - }, - "breachAction":{ - "shape":"UsageLimitBreachAction", - "documentation":"

The new action that Amazon Redshift Serverless takes when the limit is reached.

" - }, - "usageLimitId":{ - "shape":"String", - "documentation":"

The identifier of the usage limit to update.

" - } - } - }, - "UpdateUsageLimitResponse":{ - "type":"structure", - "members":{ - "usageLimit":{ - "shape":"UsageLimit", - "documentation":"

The updated usage limit object.

" - } - } - }, - "UpdateWorkgroupRequest":{ - "type":"structure", - "required":["workgroupName"], - "members":{ - "baseCapacity":{ - "shape":"Integer", - "documentation":"

The new base data warehouse capacity in Redshift Processing Units (RPUs).

" - }, - "configParameters":{ - "shape":"ConfigParameterList", - "documentation":"

An array of parameters to set for advanced control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" - }, - "enhancedVpcRouting":{ - "shape":"Boolean", - "documentation":"

The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

" - }, - "publiclyAccessible":{ - "shape":"Boolean", - "documentation":"

A value that specifies whether the workgroup can be accessible from a public network.

" - }, - "securityGroupIds":{ - "shape":"SecurityGroupIdList", - "documentation":"

An array of security group IDs to associate with the workgroup.

" - }, - "subnetIds":{ - "shape":"SubnetIdList", - "documentation":"

An array of VPC subnet IDs to associate with the workgroup.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup to update.

" - } - } - }, - "UpdateWorkgroupResponse":{ - "type":"structure", - "required":["workgroup"], - "members":{ - "workgroup":{ - "shape":"Workgroup", - "documentation":"

The updated workgroup object.

" - } - } - }, - "UsageLimit":{ - "type":"structure", - "members":{ - "amount":{ - "shape":"Long", - "documentation":"

The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, this amount is in terabytes (TB). The value must be a positive number.

" - }, - "breachAction":{ - "shape":"UsageLimitBreachAction", - "documentation":"

The action that Amazon Redshift Serverless takes when the limit is reached.

" - }, - "period":{ - "shape":"UsageLimitPeriod", - "documentation":"

The time period that the amount applies to. A weekly period begins on Sunday. The default is monthly.

" - }, - "resourceArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource.

" - }, - "usageLimitArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) of the resource associated with the usage limit.

" - }, - "usageLimitId":{ - "shape":"String", - "documentation":"

The identifier of the usage limit.

" - }, - "usageType":{ - "shape":"UsageLimitUsageType", - "documentation":"

The Amazon Redshift Serverless feature to limit.

" - } - }, - "documentation":"

The usage limit object.

" - }, - "UsageLimitBreachAction":{ - "type":"string", - "enum":[ - "log", - "emit-metric", - "deactivate" - ] - }, - "UsageLimitPeriod":{ - "type":"string", - "enum":[ - "daily", - "weekly", - "monthly" - ] - }, - "UsageLimitUsageType":{ - "type":"string", - "enum":[ - "serverless-compute", - "cross-region-datasharing" - ] - }, - "UsageLimits":{ - "type":"list", - "member":{"shape":"UsageLimit"}, - "max":100, - "min":1 - }, - "ValidationException":{ - "type":"structure", - "required":["message"], - "members":{ - "message":{"shape":"String"} - }, - "documentation":"

The input failed to satisfy the constraints specified by an AWS service.

", - "exception":true - }, - "VpcEndpoint":{ - "type":"structure", - "members":{ - "networkInterfaces":{ - "shape":"NetworkInterfaceList", - "documentation":"

One or more network interfaces of the endpoint. Also known as an interface endpoint.

" - }, - "vpcEndpointId":{ - "shape":"String", - "documentation":"

The connection endpoint ID for connecting to Amazon Redshift Serverless.

" - }, - "vpcId":{ - "shape":"String", - "documentation":"

The VPC identifier that the endpoint is associated with.

" - } - }, - "documentation":"

The connection endpoint for connecting to Amazon Redshift Serverless through the proxy.

" - }, - "VpcEndpointList":{ - "type":"list", - "member":{"shape":"VpcEndpoint"} - }, - "VpcSecurityGroupId":{"type":"string"}, - "VpcSecurityGroupIdList":{ - "type":"list", - "member":{"shape":"VpcSecurityGroupId"} - }, - "VpcSecurityGroupMembership":{ - "type":"structure", - "members":{ - "status":{ - "shape":"String", - "documentation":"

The status of the VPC security group.

" - }, - "vpcSecurityGroupId":{ - "shape":"VpcSecurityGroupId", - "documentation":"

The unique identifier of the VPC security group.

" - } - }, - "documentation":"

Describes the members of a VPC security group.

" - }, - "VpcSecurityGroupMembershipList":{ - "type":"list", - "member":{"shape":"VpcSecurityGroupMembership"} - }, - "Workgroup":{ - "type":"structure", - "members":{ - "baseCapacity":{ - "shape":"Integer", - "documentation":"

The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs).

" - }, - "configParameters":{ - "shape":"ConfigParameterList", - "documentation":"

An array of parameters to set for finer control over a database. The options are datestyle, enable_user_activity_logging, query_group, search_path, and max_query_execution_time.

" - }, - "creationDate":{ - "shape":"SyntheticTimestamp_date_time", - "documentation":"

The creation date of the workgroup.

" - }, - "endpoint":{ - "shape":"Endpoint", - "documentation":"

The endpoint that is created from the workgroup.

" - }, - "enhancedVpcRouting":{ - "shape":"Boolean", - "documentation":"

The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, which forces Amazon Redshift Serverless to route traffic through your VPC.

" - }, - "namespaceName":{ - "shape":"String", - "documentation":"

The namespace the workgroup is associated with.

" - }, - "publiclyAccessible":{ - "shape":"Boolean", - "documentation":"

A value that specifies whether the workgroup can be accessible from a public network

" - }, - "securityGroupIds":{ - "shape":"SecurityGroupIdList", - "documentation":"

An array of security group IDs to associate with the workgroup.

" - }, - "status":{ - "shape":"WorkgroupStatus", - "documentation":"

The status of the workgroup.

" - }, - "subnetIds":{ - "shape":"SubnetIdList", - "documentation":"

An array of subnet IDs the workgroup is associated with.

" - }, - "workgroupArn":{ - "shape":"String", - "documentation":"

The Amazon Resource Name (ARN) that links to the workgroup.

" - }, - "workgroupId":{ - "shape":"String", - "documentation":"

The unique identifier of the workgroup.

" - }, - "workgroupName":{ - "shape":"WorkgroupName", - "documentation":"

The name of the workgroup.

" - } - }, - "documentation":"

The collection of computing resources from which an endpoint is created.

" - }, - "WorkgroupList":{ - "type":"list", - "member":{"shape":"Workgroup"} - }, - "WorkgroupName":{ - "type":"string", - "max":64, - "min":3, - "pattern":"^[a-z0-9-]+$" - }, - "WorkgroupStatus":{ - "type":"string", - "enum":[ - "CREATING", - "AVAILABLE", - "MODIFYING", - "DELETING" - ] - } - }, - "documentation":"

This is prerelease documentation for Amazon Redshift Serverless, which is in preview release. The documentation and the feature are both subject to change. We recommend that you use this feature only in test environments, and not in production environments. For preview terms and conditions, see Beta Service Participation in Amazon Web Services Service Terms.

This is an interface reference for Amazon Redshift Serverless. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.

Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you focus on using your data to acquire new insights for your business and customers.

To learn more about Amazon Redshift Serverless, see What is Amazon Redshift Serverless.

" -} diff --git a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.paginators.json b/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.paginators.json deleted file mode 100644 index cf5163d45010..000000000000 --- a/generator/ServiceModels/redshiftserverless/redshiftserverless-2021-04-21.paginators.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "pagination": { - "ListEndpointAccess": { - "input_token": "nextToken", - "output_token": "nextToken", - "limit_key": "maxResults", - "result_key": "endpoints" - }, - "ListNamespaces": { - "input_token": "nextToken", - "output_token": "nextToken", - "limit_key": "maxResults", - "result_key": "namespaces" - }, - "ListRecoveryPoints": { - "input_token": "nextToken", - "output_token": "nextToken", - "limit_key": "maxResults", - "result_key": "recoveryPoints" - }, - "ListSnapshots": { - "input_token": "nextToken", - "output_token": "nextToken", - "limit_key": "maxResults", - "result_key": "snapshots" - }, - "ListUsageLimits": { - "input_token": "nextToken", - "output_token": "nextToken", - "limit_key": "maxResults", - "result_key": "usageLimits" - }, - "ListWorkgroups": { - "input_token": "nextToken", - "output_token": "nextToken", - "limit_key": "maxResults", - "result_key": "workgroups" - } - } -} diff --git a/generator/ServiceModels/redshiftserverless/smoke.json b/generator/ServiceModels/redshiftserverless/smoke.json deleted file mode 100644 index a9756813e4af..000000000000 --- a/generator/ServiceModels/redshiftserverless/smoke.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "version": 1, - "defaultRegion": "us-west-2", - "testCases": [ - ] -} diff --git a/generator/ServiceModels/redshiftserverless/waiters2.json b/generator/ServiceModels/redshiftserverless/waiters2.json deleted file mode 100644 index 13f60ee66be6..000000000000 --- a/generator/ServiceModels/redshiftserverless/waiters2.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": 2, - "waiters": { - } -} diff --git a/sdk/AWSSDK.CodeAnalysis.sln b/sdk/AWSSDK.CodeAnalysis.sln index 8b8424612729..b48dc0931622 100644 --- a/sdk/AWSSDK.CodeAnalysis.sln +++ b/sdk/AWSSDK.CodeAnalysis.sln @@ -491,8 +491,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.Redshift.CodeAnalysi EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.RedshiftDataAPIService.CodeAnalysis", "code-analysis\ServiceAnalysis\RedshiftDataAPIService\AWSSDK.RedshiftDataAPIService.CodeAnalysis.csproj", "{BA41F83C-C9E4-4878-81F1-321E865DF4CD}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.RedshiftServerless.CodeAnalysis", "code-analysis\ServiceAnalysis\RedshiftServerless\AWSSDK.RedshiftServerless.CodeAnalysis.csproj", "{36CF3D1D-845D-49B9-8A6F-B6149091920F}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.Rekognition.CodeAnalysis", "code-analysis\ServiceAnalysis\Rekognition\AWSSDK.Rekognition.CodeAnalysis.csproj", "{413B40F1-01B7-4290-A8BE-54CBA529A5FE}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AWSSDK.ResilienceHub.CodeAnalysis", "code-analysis\ServiceAnalysis\ResilienceHub\AWSSDK.ResilienceHub.CodeAnalysis.csproj", "{9BC3A195-E720-4950-AE59-DB98890B168B}" @@ -878,7 +876,6 @@ Global code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{2f9747fb-8c0f-4d4f-84dd-3023140eb137}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{ccb1a157-6336-4465-8bac-6812a705b76e}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{ba41f83c-c9e4-4878-81f1-321e865df4cd}*SharedItemsImports = 4 - code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{36cf3d1d-845d-49b9-8a6f-b6149091920f}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{413b40f1-01b7-4290-a8be-54cba529a5fe}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{9bc3a195-e720-4950-ae59-db98890b168b}*SharedItemsImports = 4 code-analysis\SharedAnalysisCode\SharedAnalysisCode.projitems*{7a1f0c85-bf01-4ff0-9bef-665fc572608c}*SharedItemsImports = 4 @@ -1924,10 +1921,6 @@ Global {BA41F83C-C9E4-4878-81F1-321E865DF4CD}.Debug|Any CPU.Build.0 = Debug|Any CPU {BA41F83C-C9E4-4878-81F1-321E865DF4CD}.Release|Any CPU.ActiveCfg = Release|Any CPU {BA41F83C-C9E4-4878-81F1-321E865DF4CD}.Release|Any CPU.Build.0 = Release|Any CPU - {36CF3D1D-845D-49B9-8A6F-B6149091920F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {36CF3D1D-845D-49B9-8A6F-B6149091920F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {36CF3D1D-845D-49B9-8A6F-B6149091920F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {36CF3D1D-845D-49B9-8A6F-B6149091920F}.Release|Any CPU.Build.0 = Release|Any CPU {413B40F1-01B7-4290-A8BE-54CBA529A5FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {413B40F1-01B7-4290-A8BE-54CBA529A5FE}.Debug|Any CPU.Build.0 = Debug|Any CPU {413B40F1-01B7-4290-A8BE-54CBA529A5FE}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -2448,7 +2441,6 @@ Global {2F9747FB-8C0F-4D4F-84DD-3023140EB137} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {CCB1A157-6336-4465-8BAC-6812A705B76E} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {BA41F83C-C9E4-4878-81F1-321E865DF4CD} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} - {36CF3D1D-845D-49B9-8A6F-B6149091920F} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {413B40F1-01B7-4290-A8BE-54CBA529A5FE} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {9BC3A195-E720-4950-AE59-DB98890B168B} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} {7A1F0C85-BF01-4FF0-9BEF-665FC572608C} = {1523203C-CD16-4B4A-8F9D-8ECCA3A327AA} diff --git a/sdk/AWSSDK.Net35.Travis.sln b/sdk/AWSSDK.Net35.Travis.sln index 775ea62bdfa5..93c4fabba895 100644 --- a/sdk/AWSSDK.Net35.Travis.sln +++ b/sdk/AWSSDK.Net35.Travis.sln @@ -976,10 +976,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftDataAPIService", "R EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftDataAPIService.Net35", "src\Services\RedshiftDataAPIService\AWSSDK.RedshiftDataAPIService.Net35.csproj", "{DED78B6C-3E21-485A-BD82-18BC8CD8693A}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftServerless", "RedshiftServerless", "{CD319E95-E3AB-FC9D-48DB-2E22BA64C67B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.Net35", "src\Services\RedshiftServerless\AWSSDK.RedshiftServerless.Net35.csproj", "{CE40E722-0EFC-4F8F-B854-A4C3410C3B00}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rekognition", "Rekognition", "{A5F559E1-6288-D4F9-CDAB-15E7838E2F76}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Rekognition.Net35", "src\Services\Rekognition\AWSSDK.Rekognition.Net35.csproj", "{48517A6F-D3CF-4594-8A50-727180176314}" @@ -2234,10 +2230,6 @@ Global {DED78B6C-3E21-485A-BD82-18BC8CD8693A}.Debug|Any CPU.Build.0 = Debug|Any CPU {DED78B6C-3E21-485A-BD82-18BC8CD8693A}.Release|Any CPU.ActiveCfg = Release|Any CPU {DED78B6C-3E21-485A-BD82-18BC8CD8693A}.Release|Any CPU.Build.0 = Release|Any CPU - {CE40E722-0EFC-4F8F-B854-A4C3410C3B00}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CE40E722-0EFC-4F8F-B854-A4C3410C3B00}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CE40E722-0EFC-4F8F-B854-A4C3410C3B00}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CE40E722-0EFC-4F8F-B854-A4C3410C3B00}.Release|Any CPU.Build.0 = Release|Any CPU {48517A6F-D3CF-4594-8A50-727180176314}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {48517A6F-D3CF-4594-8A50-727180176314}.Debug|Any CPU.Build.0 = Debug|Any CPU {48517A6F-D3CF-4594-8A50-727180176314}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3000,8 +2992,6 @@ Global {74CD46FD-9ABF-4A38-A2DE-AF79CA492AC0} = {C924D055-A9C0-E189-BEFA-46B32FCEE3D0} {436BB8A0-4DD9-45D1-6509-0205DD20D78A} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {DED78B6C-3E21-485A-BD82-18BC8CD8693A} = {436BB8A0-4DD9-45D1-6509-0205DD20D78A} - {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} - {CE40E722-0EFC-4F8F-B854-A4C3410C3B00} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {48517A6F-D3CF-4594-8A50-727180176314} = {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} {2B8C9306-7E58-F7E0-E9CE-69D9A057A7BC} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net35.sln b/sdk/AWSSDK.Net35.sln index c60d15585eb2..498adcb1f114 100644 --- a/sdk/AWSSDK.Net35.sln +++ b/sdk/AWSSDK.Net35.sln @@ -980,10 +980,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftDataAPIService", "R EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftDataAPIService.Net35", "src\Services\RedshiftDataAPIService\AWSSDK.RedshiftDataAPIService.Net35.csproj", "{1E3D8103-25D1-41EB-88CA-816B80255178}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftServerless", "RedshiftServerless", "{CD319E95-E3AB-FC9D-48DB-2E22BA64C67B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.Net35", "src\Services\RedshiftServerless\AWSSDK.RedshiftServerless.Net35.csproj", "{BFBECD7B-5B67-4291-97F5-1C82A552B9D2}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rekognition", "Rekognition", "{A5F559E1-6288-D4F9-CDAB-15E7838E2F76}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Rekognition.Net35", "src\Services\Rekognition\AWSSDK.Rekognition.Net35.csproj", "{3C31EECA-D797-4115-948F-7B62D8BBD333}" @@ -2254,10 +2250,6 @@ Global {1E3D8103-25D1-41EB-88CA-816B80255178}.Debug|Any CPU.Build.0 = Debug|Any CPU {1E3D8103-25D1-41EB-88CA-816B80255178}.Release|Any CPU.ActiveCfg = Release|Any CPU {1E3D8103-25D1-41EB-88CA-816B80255178}.Release|Any CPU.Build.0 = Release|Any CPU - {BFBECD7B-5B67-4291-97F5-1C82A552B9D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BFBECD7B-5B67-4291-97F5-1C82A552B9D2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BFBECD7B-5B67-4291-97F5-1C82A552B9D2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BFBECD7B-5B67-4291-97F5-1C82A552B9D2}.Release|Any CPU.Build.0 = Release|Any CPU {3C31EECA-D797-4115-948F-7B62D8BBD333}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3C31EECA-D797-4115-948F-7B62D8BBD333}.Debug|Any CPU.Build.0 = Debug|Any CPU {3C31EECA-D797-4115-948F-7B62D8BBD333}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3046,8 +3038,6 @@ Global {A2D721EB-497A-47E1-8445-CCA3BD9739BD} = {C924D055-A9C0-E189-BEFA-46B32FCEE3D0} {436BB8A0-4DD9-45D1-6509-0205DD20D78A} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {1E3D8103-25D1-41EB-88CA-816B80255178} = {436BB8A0-4DD9-45D1-6509-0205DD20D78A} - {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} - {BFBECD7B-5B67-4291-97F5-1C82A552B9D2} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {3C31EECA-D797-4115-948F-7B62D8BBD333} = {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} {2B8C9306-7E58-F7E0-E9CE-69D9A057A7BC} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net45.Travis.sln b/sdk/AWSSDK.Net45.Travis.sln index 85ead13dc58c..0227c3766fe7 100644 --- a/sdk/AWSSDK.Net45.Travis.sln +++ b/sdk/AWSSDK.Net45.Travis.sln @@ -976,10 +976,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftDataAPIService", "R EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftDataAPIService.Net45", "src\Services\RedshiftDataAPIService\AWSSDK.RedshiftDataAPIService.Net45.csproj", "{B981B273-22EC-40FE-BB66-BA75B05AA54E}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftServerless", "RedshiftServerless", "{CD319E95-E3AB-FC9D-48DB-2E22BA64C67B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.Net45", "src\Services\RedshiftServerless\AWSSDK.RedshiftServerless.Net45.csproj", "{0565D188-C48C-4938-9C86-FCDE5B9C7EE7}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rekognition", "Rekognition", "{A5F559E1-6288-D4F9-CDAB-15E7838E2F76}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Rekognition.Net45", "src\Services\Rekognition\AWSSDK.Rekognition.Net45.csproj", "{3E5B118D-42C3-45DC-A367-535094B835B7}" @@ -2234,10 +2230,6 @@ Global {B981B273-22EC-40FE-BB66-BA75B05AA54E}.Debug|Any CPU.Build.0 = Debug|Any CPU {B981B273-22EC-40FE-BB66-BA75B05AA54E}.Release|Any CPU.ActiveCfg = Release|Any CPU {B981B273-22EC-40FE-BB66-BA75B05AA54E}.Release|Any CPU.Build.0 = Release|Any CPU - {0565D188-C48C-4938-9C86-FCDE5B9C7EE7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0565D188-C48C-4938-9C86-FCDE5B9C7EE7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0565D188-C48C-4938-9C86-FCDE5B9C7EE7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0565D188-C48C-4938-9C86-FCDE5B9C7EE7}.Release|Any CPU.Build.0 = Release|Any CPU {3E5B118D-42C3-45DC-A367-535094B835B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3E5B118D-42C3-45DC-A367-535094B835B7}.Debug|Any CPU.Build.0 = Debug|Any CPU {3E5B118D-42C3-45DC-A367-535094B835B7}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3000,8 +2992,6 @@ Global {25DD1B20-AEBD-4123-955F-E680B0EE9314} = {C924D055-A9C0-E189-BEFA-46B32FCEE3D0} {436BB8A0-4DD9-45D1-6509-0205DD20D78A} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {B981B273-22EC-40FE-BB66-BA75B05AA54E} = {436BB8A0-4DD9-45D1-6509-0205DD20D78A} - {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} - {0565D188-C48C-4938-9C86-FCDE5B9C7EE7} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {3E5B118D-42C3-45DC-A367-535094B835B7} = {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} {2B8C9306-7E58-F7E0-E9CE-69D9A057A7BC} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.Net45.sln b/sdk/AWSSDK.Net45.sln index eecd98747ad6..7ae7d62d0eba 100644 --- a/sdk/AWSSDK.Net45.sln +++ b/sdk/AWSSDK.Net45.sln @@ -980,10 +980,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftDataAPIService", "R EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftDataAPIService.Net45", "src\Services\RedshiftDataAPIService\AWSSDK.RedshiftDataAPIService.Net45.csproj", "{EB543BB9-1648-4ACC-A4CE-E869E8EBB320}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftServerless", "RedshiftServerless", "{CD319E95-E3AB-FC9D-48DB-2E22BA64C67B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.Net45", "src\Services\RedshiftServerless\AWSSDK.RedshiftServerless.Net45.csproj", "{8B17212C-6DFE-46DF-B916-909F21140C3C}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rekognition", "Rekognition", "{A5F559E1-6288-D4F9-CDAB-15E7838E2F76}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Rekognition.Net45", "src\Services\Rekognition\AWSSDK.Rekognition.Net45.csproj", "{22DA7539-27B7-4611-B509-2097136B7BEE}" @@ -2256,10 +2252,6 @@ Global {EB543BB9-1648-4ACC-A4CE-E869E8EBB320}.Debug|Any CPU.Build.0 = Debug|Any CPU {EB543BB9-1648-4ACC-A4CE-E869E8EBB320}.Release|Any CPU.ActiveCfg = Release|Any CPU {EB543BB9-1648-4ACC-A4CE-E869E8EBB320}.Release|Any CPU.Build.0 = Release|Any CPU - {8B17212C-6DFE-46DF-B916-909F21140C3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8B17212C-6DFE-46DF-B916-909F21140C3C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8B17212C-6DFE-46DF-B916-909F21140C3C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8B17212C-6DFE-46DF-B916-909F21140C3C}.Release|Any CPU.Build.0 = Release|Any CPU {22DA7539-27B7-4611-B509-2097136B7BEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {22DA7539-27B7-4611-B509-2097136B7BEE}.Debug|Any CPU.Build.0 = Debug|Any CPU {22DA7539-27B7-4611-B509-2097136B7BEE}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3052,8 +3044,6 @@ Global {5E34796B-0D3E-463E-8208-D8844AC31E55} = {C924D055-A9C0-E189-BEFA-46B32FCEE3D0} {436BB8A0-4DD9-45D1-6509-0205DD20D78A} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {EB543BB9-1648-4ACC-A4CE-E869E8EBB320} = {436BB8A0-4DD9-45D1-6509-0205DD20D78A} - {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} - {8B17212C-6DFE-46DF-B916-909F21140C3C} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {22DA7539-27B7-4611-B509-2097136B7BEE} = {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} {2B8C9306-7E58-F7E0-E9CE-69D9A057A7BC} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/AWSSDK.NetStandard.sln b/sdk/AWSSDK.NetStandard.sln index 08497d8fcdc2..be6b67357089 100644 --- a/sdk/AWSSDK.NetStandard.sln +++ b/sdk/AWSSDK.NetStandard.sln @@ -976,10 +976,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftDataAPIService", "R EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftDataAPIService.NetStandard", "src\Services\RedshiftDataAPIService\AWSSDK.RedshiftDataAPIService.NetStandard.csproj", "{DC80B846-E833-4DAB-B9A2-AF5368B953DB}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RedshiftServerless", "RedshiftServerless", "{CD319E95-E3AB-FC9D-48DB-2E22BA64C67B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.NetStandard", "src\Services\RedshiftServerless\AWSSDK.RedshiftServerless.NetStandard.csproj", "{285EFE0B-AED2-4070-B9D3-DC76531BC049}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Rekognition", "Rekognition", "{A5F559E1-6288-D4F9-CDAB-15E7838E2F76}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Rekognition.NetStandard", "src\Services\Rekognition\AWSSDK.Rekognition.NetStandard.csproj", "{81C4AB4C-6AA7-4185-A6B5-DE35419AFC4B}" @@ -2246,10 +2242,6 @@ Global {DC80B846-E833-4DAB-B9A2-AF5368B953DB}.Debug|Any CPU.Build.0 = Debug|Any CPU {DC80B846-E833-4DAB-B9A2-AF5368B953DB}.Release|Any CPU.ActiveCfg = Release|Any CPU {DC80B846-E833-4DAB-B9A2-AF5368B953DB}.Release|Any CPU.Build.0 = Release|Any CPU - {285EFE0B-AED2-4070-B9D3-DC76531BC049}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {285EFE0B-AED2-4070-B9D3-DC76531BC049}.Debug|Any CPU.Build.0 = Debug|Any CPU - {285EFE0B-AED2-4070-B9D3-DC76531BC049}.Release|Any CPU.ActiveCfg = Release|Any CPU - {285EFE0B-AED2-4070-B9D3-DC76531BC049}.Release|Any CPU.Build.0 = Release|Any CPU {81C4AB4C-6AA7-4185-A6B5-DE35419AFC4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {81C4AB4C-6AA7-4185-A6B5-DE35419AFC4B}.Debug|Any CPU.Build.0 = Debug|Any CPU {81C4AB4C-6AA7-4185-A6B5-DE35419AFC4B}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -3036,8 +3028,6 @@ Global {0BB283EB-9416-4602-B928-6333B8C54CA8} = {C924D055-A9C0-E189-BEFA-46B32FCEE3D0} {436BB8A0-4DD9-45D1-6509-0205DD20D78A} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {DC80B846-E833-4DAB-B9A2-AF5368B953DB} = {436BB8A0-4DD9-45D1-6509-0205DD20D78A} - {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} - {285EFE0B-AED2-4070-B9D3-DC76531BC049} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} {81C4AB4C-6AA7-4185-A6B5-DE35419AFC4B} = {A5F559E1-6288-D4F9-CDAB-15E7838E2F76} {2B8C9306-7E58-F7E0-E9CE-69D9A057A7BC} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} diff --git a/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj b/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj index bb22bc24ea78..0c24f8f1ea64 100644 --- a/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj +++ b/sdk/code-analysis/AWSCodeAnalysisTestExtension/AWSCodeAnalysisTestExtension.Vsix.csproj @@ -1024,10 +1024,6 @@ {BA41F83C-C9E4-4878-81F1-321E865DF4CD} AWSSDK.RedshiftDataAPIService.CodeAnalysis - - {36CF3D1D-845D-49B9-8A6F-B6149091920F} - AWSSDK.RedshiftServerless.CodeAnalysis - {413B40F1-01B7-4290-A8BE-54CBA529A5FE} AWSSDK.Rekognition.CodeAnalysis diff --git a/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest b/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest index 8d988c8c06c0..66eff9bf4be2 100644 --- a/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest +++ b/sdk/code-analysis/AWSCodeAnalysisTestExtension/source.extension.vsixmanifest @@ -501,8 +501,6 @@ - - diff --git a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/AWSSDK.RedshiftServerless.CodeAnalysis.csproj b/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/AWSSDK.RedshiftServerless.CodeAnalysis.csproj deleted file mode 100644 index 0f48a0eb1be9..000000000000 --- a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/AWSSDK.RedshiftServerless.CodeAnalysis.csproj +++ /dev/null @@ -1,100 +0,0 @@ - - - - - 15.0 - Debug - AnyCPU - {36CF3D1D-845D-49B9-8A6F-B6149091920F} - Library - Properties - Amazon.RedshiftServerless.CodeAnalysis - AWSSDK.RedshiftServerless.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 - - - - - - - Code - - - - - - - - - - - - ..\..\..\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/RedshiftServerless/Generated/PropertyValueAssignmentAnalyzer.cs b/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Generated/PropertyValueAssignmentAnalyzer.cs deleted file mode 100644 index 0781c29e7fc7..000000000000 --- a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Generated/PropertyValueAssignmentAnalyzer.cs +++ /dev/null @@ -1,25 +0,0 @@ -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.RedshiftServerless.CodeAnalysis -{ - [DiagnosticAnalyzer(LanguageNames.CSharp)] - public class PropertyValueAssignmentAnalyzer : AbstractPropertyValueAssignmentAnalyzer - { - public override string GetServiceName() - { - return "RedshiftServerless"; - } - } -} \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Generated/PropertyValueRules.xml b/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Generated/PropertyValueRules.xml deleted file mode 100644 index 5f3839b2be4e..000000000000 --- a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Generated/PropertyValueRules.xml +++ /dev/null @@ -1,192 +0,0 @@ - - - - Amazon.RedshiftServerless.Model.CreateNamespaceRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.CreateWorkgroupRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.CreateWorkgroupRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.DeleteNamespaceRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.DeleteWorkgroupRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.GetCredentialsRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.GetNamespaceRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.GetWorkgroupRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.ListEndpointAccessRequest.MaxResults - 1 - 100 - - - Amazon.RedshiftServerless.Model.ListNamespacesRequest.MaxResults - 1 - 100 - - - Amazon.RedshiftServerless.Model.ListRecoveryPointsRequest.MaxResults - 1 - 100 - - - Amazon.RedshiftServerless.Model.ListRecoveryPointsRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.ListSnapshotsRequest.MaxResults - 1 - 100 - - - Amazon.RedshiftServerless.Model.ListTagsForResourceRequest.ResourceArn - 1 - 1011 - - - Amazon.RedshiftServerless.Model.ListUsageLimitsRequest.MaxResults - 1 - 100 - - - Amazon.RedshiftServerless.Model.ListUsageLimitsRequest.NextToken - 8 - 1024 - - - Amazon.RedshiftServerless.Model.ListUsageLimitsResponse.NextToken - 8 - 1024 - - - Amazon.RedshiftServerless.Model.ListWorkgroupsRequest.MaxResults - 1 - 100 - - - Amazon.RedshiftServerless.Model.RestoreFromRecoveryPointRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.RestoreFromRecoveryPointRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.RestoreFromSnapshotRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.RestoreFromSnapshotRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.TagResourceRequest.ResourceArn - 1 - 1011 - - - Amazon.RedshiftServerless.Model.UntagResourceRequest.ResourceArn - 1 - 1011 - - - Amazon.RedshiftServerless.Model.UpdateNamespaceRequest.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.UpdateWorkgroupRequest.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.Namespace.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.RecoveryPoint.NamespaceName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.RecoveryPoint.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - - Amazon.RedshiftServerless.Model.ResourceNotFoundException.ResourceName - 1 - 1011 - - - Amazon.RedshiftServerless.Model.Tag.Key - 1 - 128 - - - Amazon.RedshiftServerless.Model.Tag.Value - 0 - 256 - - - Amazon.RedshiftServerless.Model.TooManyTagsException.ResourceName - 1 - 1011 - - - Amazon.RedshiftServerless.Model.Workgroup.WorkgroupName - 3 - 64 - ^[a-z0-9-]+$ - - \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Properties/AssemblyInfo.cs b/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Properties/AssemblyInfo.cs deleted file mode 100644 index 736a3016266d..000000000000 --- a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -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.RedshiftServerless")] -[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Redshift Serverless. Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.")] -[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.7.0.1")] \ No newline at end of file diff --git a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/packages.config b/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/packages.config deleted file mode 100644 index 1ff6116a6b5b..000000000000 --- a/sdk/code-analysis/ServiceAnalysis/RedshiftServerless/packages.config +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.Net35.csproj b/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.Net35.csproj deleted file mode 100644 index 7af836729ceb..000000000000 --- a/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.Net35.csproj +++ /dev/null @@ -1,79 +0,0 @@ - - - true - net35 - $(DefineConstants);BCL;BCL35;AWS_APM_API;CODE_ANALYSIS - portable - true - AWSSDK.RedshiftServerless - AWSSDK.RedshiftServerless - - false - false - false - false - false - false - false - false - - - C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client - - false - - - ..\..\..\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/RedshiftServerless/AWSSDK.RedshiftServerless.Net45.csproj b/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.Net45.csproj deleted file mode 100644 index 3c9025a5eb0d..000000000000 --- a/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.Net45.csproj +++ /dev/null @@ -1,70 +0,0 @@ - - - true - net45 - $(DefineConstants);BCL;BCL45;AWS_ASYNC_API;CODE_ANALYSIS - portable - true - AWSSDK.RedshiftServerless - AWSSDK.RedshiftServerless - - 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/RedshiftServerless/AWSSDK.RedshiftServerless.NetStandard.csproj b/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.NetStandard.csproj deleted file mode 100644 index 7c9e7763540a..000000000000 --- a/sdk/src/Services/RedshiftServerless/AWSSDK.RedshiftServerless.NetStandard.csproj +++ /dev/null @@ -1,76 +0,0 @@ - - - true - netstandard2.0;netcoreapp3.1 - $(DefineConstants);NETSTANDARD;AWS_ASYNC_API - $(DefineConstants);NETSTANDARD20;AWS_ASYNC_ENUMERABLES_API - $(DefineConstants);AWS_ASYNC_ENUMERABLES_API - portable - true - AWSSDK.RedshiftServerless - AWSSDK.RedshiftServerless - - false - false - false - false - false - false - false - false - - - - - 8.0 - - - ..\..\..\AWSDotNetSDK.ruleset - - - ..\..\..\AWSDotNetSDKForBuild.ruleset - - - - - - ..\..\..\awssdk.dll.snk - - - - - $(AWSKeyFile) - - - - - - - - - - - - - - - - - - - - - - all - - - all - - - - - - - - - \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessConfig.cs b/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessConfig.cs deleted file mode 100644 index 21c40a6b804b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessConfig.cs +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; - -using Amazon.Runtime; -using Amazon.Util.Internal; - - -namespace Amazon.RedshiftServerless -{ - /// - /// Configuration for accessing Amazon RedshiftServerless service - /// - public partial class AmazonRedshiftServerlessConfig : ClientConfig - { - private static readonly string UserAgentString = - InternalSDKUtils.BuildUserAgentString("3.7.0.1"); - - private string _userAgent = UserAgentString; - - /// - /// Default constructor - /// - public AmazonRedshiftServerlessConfig() - : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonRedshiftServerlessDefaultConfiguration.GetAllConfigurations())) - { - this.AuthenticationServiceName = "redshift-serverless"; - } - - /// - /// The constant used to lookup in the region hash the endpoint. - /// - public override string RegionEndpointServiceName - { - get - { - return "redshift-serverless"; - } - } - - /// - /// Gets the ServiceVersion property. - /// - public override string ServiceVersion - { - get - { - return "2021-04-21"; - } - } - - /// - /// 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/RedshiftServerless/Generated/AmazonRedshiftServerlessDefaultConfiguration.cs b/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessDefaultConfiguration.cs deleted file mode 100644 index e1694a1bb732..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessDefaultConfiguration.cs +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; - -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless -{ - /// - /// Configuration for accessing Amazon RedshiftServerless service - /// - public static class AmazonRedshiftServerlessDefaultConfiguration - { - /// - /// Collection of all s supported by - /// RedshiftServerless - /// - public static ReadOnlyCollection GetAllConfigurations() - { - return new ReadOnlyCollection(new List - { - Standard, - InRegion, - CrossRegion, - Mobile, - Auto, - Legacy - }); - } - - /// - ///

The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- ///
- public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration - { - Name = DefaultConfigurationMode.Standard, - RetryMode = RequestRetryMode.Standard, - StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, - S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, - // 0:00:03.1 - ConnectTimeout = TimeSpan.FromMilliseconds(3100L), - // 0:00:03.1 - TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), - TimeToFirstByteTimeout = null, - HttpRequestTimeout = null - }; - /// - ///

The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- ///
- public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration - { - Name = DefaultConfigurationMode.InRegion, - RetryMode = RequestRetryMode.Standard, - StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, - S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, - // 0:00:01.1 - ConnectTimeout = TimeSpan.FromMilliseconds(1100L), - // 0:00:01.1 - TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), - TimeToFirstByteTimeout = null, - HttpRequestTimeout = null - }; - /// - ///

The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- ///
- public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration - { - Name = DefaultConfigurationMode.CrossRegion, - RetryMode = RequestRetryMode.Standard, - StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, - S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, - // 0:00:03.1 - ConnectTimeout = TimeSpan.FromMilliseconds(3100L), - // 0:00:03.1 - TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), - TimeToFirstByteTimeout = null, - HttpRequestTimeout = null - }; - /// - ///

The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- ///
- public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration - { - Name = DefaultConfigurationMode.Mobile, - RetryMode = RequestRetryMode.Standard, - StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, - S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, - // 0:00:30 - ConnectTimeout = TimeSpan.FromMilliseconds(30000L), - // 0:00:30 - TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), - TimeToFirstByteTimeout = null, - HttpRequestTimeout = null - }; - /// - ///

The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.

Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query EC2 Instance Metadata service, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application

- ///
- public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration - { - Name = DefaultConfigurationMode.Auto, - RetryMode = RequestRetryMode.Standard, - StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, - S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, - // 0:00:01.1 - ConnectTimeout = TimeSpan.FromMilliseconds(1100L), - // 0:00:01.1 - TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), - TimeToFirstByteTimeout = null, - HttpRequestTimeout = null - }; - /// - ///

The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode

- ///
- public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration - { - Name = DefaultConfigurationMode.Legacy, - RetryMode = RequestRetryMode.Legacy, - StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, - S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, - ConnectTimeout = null, - TlsNegotiationTimeout = null, - TimeToFirstByteTimeout = null, - HttpRequestTimeout = null - }; - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessException.cs b/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessException.cs deleted file mode 100644 index 1848ebca265a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/AmazonRedshiftServerlessException.cs +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using System; -using System.Collections.Generic; -using System.Net; -using System.Text; - -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless -{ - /// - /// Common exception for the RedshiftServerless service. - /// -#if !NETSTANDARD - [Serializable] -#endif - public partial class AmazonRedshiftServerlessException : AmazonServiceException - { - /// - /// Construct instance of AmazonRedshiftServerlessException - /// - /// - public AmazonRedshiftServerlessException(string message) - : base(message) - { - } - - /// - /// Construct instance of AmazonRedshiftServerlessException - /// - /// - /// - public AmazonRedshiftServerlessException(string message, Exception innerException) - : base(message, innerException) - { - } - - /// - /// Construct instance of AmazonRedshiftServerlessException - /// - /// - public AmazonRedshiftServerlessException(Exception innerException) - : base(innerException.Message, innerException) - { - } - - /// - /// Construct instance of AmazonRedshiftServerlessException - /// - /// - /// - /// - /// - /// - public AmazonRedshiftServerlessException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, errorType, errorCode, requestId, statusCode) - { - } - - /// - /// Construct instance of AmazonRedshiftServerlessException - /// - /// - /// - /// - /// - /// - /// - public AmazonRedshiftServerlessException(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 AmazonRedshiftServerlessException 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 AmazonRedshiftServerlessException(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/RedshiftServerless/Generated/Internal/AmazonRedshiftServerlessMetadata.cs b/sdk/src/Services/RedshiftServerless/Generated/Internal/AmazonRedshiftServerlessMetadata.cs deleted file mode 100644 index 5fccd4639760..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Internal/AmazonRedshiftServerlessMetadata.cs +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using Amazon.Runtime.Internal; - - -namespace Amazon.RedshiftServerless.Internal -{ - /// - /// Service metadata for Amazon RedshiftServerless service - /// - public partial class AmazonRedshiftServerlessMetadata : IServiceMetadata - { - /// - /// Gets the value of the Service Id. - /// - public string ServiceId - { - get - { - return "RedshiftServerless"; - } - } - - /// - /// 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/RedshiftServerless/Generated/Model/AccessDeniedException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/AccessDeniedException.cs deleted file mode 100644 index 85f40d813b6a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/AccessDeniedException.cs +++ /dev/null @@ -1,142 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// You do not have sufficient access to perform this action. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class AccessDeniedException : AmazonRedshiftServerlessException - { - private string _code; - - /// - /// 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) - { - this.Code = (string)info.GetValue("Code", typeof(string)); - } - - /// - /// 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); - info.AddValue("Code", this.Code); - } -#endif - - /// - /// Gets and sets the property Code. - /// - public string Code - { - get { return this._code; } - set { this._code = value; } - } - - // Check to see if Code property is set - internal bool IsSetCode() - { - return this._code != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/AmazonRedshiftServerlessRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/AmazonRedshiftServerlessRequest.cs deleted file mode 100644 index 748ea822419c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/AmazonRedshiftServerlessRequest.cs +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless -{ - /// - /// Base class for RedshiftServerless operation requests. - /// - public partial class AmazonRedshiftServerlessRequest : AmazonWebServiceRequest - { - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ConfigParameter.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ConfigParameter.cs deleted file mode 100644 index e27defcb993c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ConfigParameter.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// An array of key-value pairs to set for advanced control over Amazon Redshift Serverless. - /// - public partial class ConfigParameter - { - private string _parameterKey; - private string _parameterValue; - - /// - /// Gets and sets the property ParameterKey. - /// - /// The key of the parameter. The options are datestyle, enable_user_activity_logging, - /// query_group, search_path, and max_query_execution_time. - /// - /// - public string ParameterKey - { - get { return this._parameterKey; } - set { this._parameterKey = value; } - } - - // Check to see if ParameterKey property is set - internal bool IsSetParameterKey() - { - return this._parameterKey != null; - } - - /// - /// Gets and sets the property ParameterValue. - /// - /// The value of the parameter to set. - /// - /// - public string ParameterValue - { - get { return this._parameterValue; } - set { this._parameterValue = value; } - } - - // Check to see if ParameterValue property is set - internal bool IsSetParameterValue() - { - return this._parameterValue != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ConflictException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ConflictException.cs deleted file mode 100644 index 9e45d555477f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ConflictException.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The submitted action has conflicts. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class ConflictException : AmazonRedshiftServerlessException - { - - /// - /// 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/RedshiftServerless/Generated/Model/ConvertRecoveryPointToSnapshotRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ConvertRecoveryPointToSnapshotRequest.cs deleted file mode 100644 index fee2b428a22e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ConvertRecoveryPointToSnapshotRequest.cs +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ConvertRecoveryPointToSnapshot operation. - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - public partial class ConvertRecoveryPointToSnapshotRequest : AmazonRedshiftServerlessRequest - { - private string _recoveryPointId; - private int? _retentionPeriod; - private string _snapshotName; - - /// - /// Gets and sets the property RecoveryPointId. - /// - /// The unique identifier of the recovery point. - /// - /// - [AWSProperty(Required=true)] - public string RecoveryPointId - { - get { return this._recoveryPointId; } - set { this._recoveryPointId = value; } - } - - // Check to see if RecoveryPointId property is set - internal bool IsSetRecoveryPointId() - { - return this._recoveryPointId != null; - } - - /// - /// Gets and sets the property RetentionPeriod. - /// - /// How long to retain the snapshot. - /// - /// - public int RetentionPeriod - { - get { return this._retentionPeriod.GetValueOrDefault(); } - set { this._retentionPeriod = value; } - } - - // Check to see if RetentionPeriod property is set - internal bool IsSetRetentionPeriod() - { - return this._retentionPeriod.HasValue; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot. - /// - /// - [AWSProperty(Required=true)] - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ConvertRecoveryPointToSnapshotResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ConvertRecoveryPointToSnapshotResponse.cs deleted file mode 100644 index f09caa3c34cc..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ConvertRecoveryPointToSnapshotResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ConvertRecoveryPointToSnapshot operation. - /// - public partial class ConvertRecoveryPointToSnapshotResponse : AmazonWebServiceResponse - { - private Snapshot _snapshot; - - /// - /// Gets and sets the property Snapshot. - /// - /// The snapshot converted from the recovery point. - /// - /// - public Snapshot Snapshot - { - get { return this._snapshot; } - set { this._snapshot = value; } - } - - // Check to see if Snapshot property is set - internal bool IsSetSnapshot() - { - return this._snapshot != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateEndpointAccessRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateEndpointAccessRequest.cs deleted file mode 100644 index 4afd82378c31..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateEndpointAccessRequest.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the CreateEndpointAccess operation. - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - public partial class CreateEndpointAccessRequest : AmazonRedshiftServerlessRequest - { - private string _endpointName; - private List _subnetIds = new List(); - private List _vpcSecurityGroupIds = new List(); - private string _workgroupName; - - /// - /// Gets and sets the property EndpointName. - /// - /// The name of the VPC endpoint. An endpoint name must contain 1-30 characters. Valid - /// characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. - /// The name can't contain two consecutive hyphens or end with a hyphen. - /// - /// - [AWSProperty(Required=true)] - public string EndpointName - { - get { return this._endpointName; } - set { this._endpointName = value; } - } - - // Check to see if EndpointName property is set - internal bool IsSetEndpointName() - { - return this._endpointName != null; - } - - /// - /// Gets and sets the property SubnetIds. - /// - /// The unique identifers of subnets from which Amazon Redshift Serverless chooses one - /// to deploy a VPC endpoint. - /// - /// - [AWSProperty(Required=true)] - public List SubnetIds - { - get { return this._subnetIds; } - set { this._subnetIds = value; } - } - - // Check to see if SubnetIds property is set - internal bool IsSetSubnetIds() - { - return this._subnetIds != null && this._subnetIds.Count > 0; - } - - /// - /// Gets and sets the property VpcSecurityGroupIds. - /// - /// The unique identifiers of the security group that defines the ports, protocols, and - /// sources for inbound traffic that you are authorizing into your endpoint. - /// - /// - public List VpcSecurityGroupIds - { - get { return this._vpcSecurityGroupIds; } - set { this._vpcSecurityGroupIds = value; } - } - - // Check to see if VpcSecurityGroupIds property is set - internal bool IsSetVpcSecurityGroupIds() - { - return this._vpcSecurityGroupIds != null && this._vpcSecurityGroupIds.Count > 0; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup to associate with the VPC endpoint. - /// - /// - [AWSProperty(Required=true)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateEndpointAccessResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateEndpointAccessResponse.cs deleted file mode 100644 index 7177f96a3c63..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateEndpointAccessResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the CreateEndpointAccess operation. - /// - public partial class CreateEndpointAccessResponse : AmazonWebServiceResponse - { - private EndpointAccess _endpoint; - - /// - /// Gets and sets the property Endpoint. - /// - /// The created VPC endpoint. - /// - /// - public EndpointAccess Endpoint - { - get { return this._endpoint; } - set { this._endpoint = value; } - } - - // Check to see if Endpoint property is set - internal bool IsSetEndpoint() - { - return this._endpoint != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateNamespaceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateNamespaceRequest.cs deleted file mode 100644 index 11793226e74f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateNamespaceRequest.cs +++ /dev/null @@ -1,215 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the CreateNamespace operation. - /// Creates a namespace in Amazon Redshift Serverless. - /// - public partial class CreateNamespaceRequest : AmazonRedshiftServerlessRequest - { - private string _adminUsername; - private string _adminUserPassword; - private string _dbName; - private string _defaultIamRoleArn; - private List _iamRoles = new List(); - private string _kmsKeyId; - private List _logExports = new List(); - private string _namespaceName; - private List _tags = new List(); - - /// - /// Gets and sets the property AdminUsername. - /// - /// The username of the administrator for the first database created in the namespace. - /// - /// - public string AdminUsername - { - get { return this._adminUsername; } - set { this._adminUsername = value; } - } - - // Check to see if AdminUsername property is set - internal bool IsSetAdminUsername() - { - return this._adminUsername != null; - } - - /// - /// Gets and sets the property AdminUserPassword. - /// - /// The password of the administrator for the first database created in the namespace. - /// - /// - public string AdminUserPassword - { - get { return this._adminUserPassword; } - set { this._adminUserPassword = value; } - } - - // Check to see if AdminUserPassword property is set - internal bool IsSetAdminUserPassword() - { - return this._adminUserPassword != null; - } - - /// - /// Gets and sets the property DbName. - /// - /// The name of the first database created in the namespace. - /// - /// - public string DbName - { - get { return this._dbName; } - set { this._dbName = value; } - } - - // Check to see if DbName property is set - internal bool IsSetDbName() - { - return this._dbName != null; - } - - /// - /// Gets and sets the property DefaultIamRoleArn. - /// - /// The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. - /// - /// - public string DefaultIamRoleArn - { - get { return this._defaultIamRoleArn; } - set { this._defaultIamRoleArn = value; } - } - - // Check to see if DefaultIamRoleArn property is set - internal bool IsSetDefaultIamRoleArn() - { - return this._defaultIamRoleArn != null; - } - - /// - /// Gets and sets the property IamRoles. - /// - /// A list of IAM roles to associate with the namespace. - /// - /// - public List IamRoles - { - get { return this._iamRoles; } - set { this._iamRoles = value; } - } - - // Check to see if IamRoles property is set - internal bool IsSetIamRoles() - { - return this._iamRoles != null && this._iamRoles.Count > 0; - } - - /// - /// Gets and sets the property KmsKeyId. - /// - /// The ID of the Amazon Web Services Key Management Service key used to encrypt your - /// data. - /// - /// - public string KmsKeyId - { - get { return this._kmsKeyId; } - set { this._kmsKeyId = value; } - } - - // Check to see if KmsKeyId property is set - internal bool IsSetKmsKeyId() - { - return this._kmsKeyId != null; - } - - /// - /// Gets and sets the property LogExports. - /// - /// The types of logs the namespace can export. Available export types are userlog, - /// connectionlog, and useractivitylog. - /// - /// - [AWSProperty(Min=0, Max=16)] - public List LogExports - { - get { return this._logExports; } - set { this._logExports = value; } - } - - // Check to see if LogExports property is set - internal bool IsSetLogExports() - { - return this._logExports != null && this._logExports.Count > 0; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property Tags. - /// - /// A list of tag instances. - /// - /// - [AWSProperty(Min=0, Max=200)] - public List Tags - { - get { return this._tags; } - set { this._tags = value; } - } - - // Check to see if Tags property is set - internal bool IsSetTags() - { - return this._tags != null && this._tags.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateNamespaceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateNamespaceResponse.cs deleted file mode 100644 index cba6de336751..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateNamespaceResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the CreateNamespace operation. - /// - public partial class CreateNamespaceResponse : AmazonWebServiceResponse - { - private Namespace _awsNamespace; - - /// - /// Gets and sets the property Namespace. - /// - /// The created namespace object. - /// - /// - public Namespace Namespace - { - get { return this._awsNamespace; } - set { this._awsNamespace = value; } - } - - // Check to see if Namespace property is set - internal bool IsSetNamespace() - { - return this._awsNamespace != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateSnapshotRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateSnapshotRequest.cs deleted file mode 100644 index 37f8b8ed0373..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateSnapshotRequest.cs +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the CreateSnapshot operation. - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - public partial class CreateSnapshotRequest : AmazonRedshiftServerlessRequest - { - private string _namespaceName; - private int? _retentionPeriod; - private string _snapshotName; - - /// - /// Gets and sets the property NamespaceName. - /// - /// The namespace to create a snapshot for. - /// - /// - [AWSProperty(Required=true)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property RetentionPeriod. - /// - /// How long to retain the created snapshot. - /// - /// - public int RetentionPeriod - { - get { return this._retentionPeriod.GetValueOrDefault(); } - set { this._retentionPeriod = value; } - } - - // Check to see if RetentionPeriod property is set - internal bool IsSetRetentionPeriod() - { - return this._retentionPeriod.HasValue; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot. - /// - /// - [AWSProperty(Required=true)] - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateSnapshotResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateSnapshotResponse.cs deleted file mode 100644 index 2b89dd0453a0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateSnapshotResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the CreateSnapshot operation. - /// - public partial class CreateSnapshotResponse : AmazonWebServiceResponse - { - private Snapshot _snapshot; - - /// - /// Gets and sets the property Snapshot. - /// - /// The created snapshot object. - /// - /// - public Snapshot Snapshot - { - get { return this._snapshot; } - set { this._snapshot = value; } - } - - // Check to see if Snapshot property is set - internal bool IsSetSnapshot() - { - return this._snapshot != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateUsageLimitRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateUsageLimitRequest.cs deleted file mode 100644 index 461e83ec0676..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateUsageLimitRequest.cs +++ /dev/null @@ -1,143 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the CreateUsageLimit operation. - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - public partial class CreateUsageLimitRequest : AmazonRedshiftServerlessRequest - { - private long? _amount; - private UsageLimitBreachAction _breachAction; - private UsageLimitPeriod _period; - private string _resourceArn; - private UsageLimitUsageType _usageType; - - /// - /// Gets and sets the property Amount. - /// - /// The limit amount. If time-based, this amount is in Redshift Processing Units (RPU) - /// consumed per hour. If data-based, this amount is in terabytes (TB) of data transferred - /// between Regions in cross-account sharing. The value must be a positive number. - /// - /// - [AWSProperty(Required=true)] - public long Amount - { - get { return this._amount.GetValueOrDefault(); } - set { this._amount = value; } - } - - // Check to see if Amount property is set - internal bool IsSetAmount() - { - return this._amount.HasValue; - } - - /// - /// Gets and sets the property BreachAction. - /// - /// The action that Amazon Redshift Serverless takes when the limit is reached. The default - /// is log. - /// - /// - public UsageLimitBreachAction BreachAction - { - get { return this._breachAction; } - set { this._breachAction = value; } - } - - // Check to see if BreachAction property is set - internal bool IsSetBreachAction() - { - return this._breachAction != null; - } - - /// - /// Gets and sets the property Period. - /// - /// The time period that the amount applies to. A weekly period begins on Sunday. The - /// default is monthly. - /// - /// - public UsageLimitPeriod Period - { - get { return this._period; } - set { this._period = value; } - } - - // Check to see if Period property is set - internal bool IsSetPeriod() - { - return this._period != null; - } - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource to create - /// the usage limit for. - /// - /// - [AWSProperty(Required=true)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - /// - /// Gets and sets the property UsageType. - /// - /// The type of Amazon Redshift Serverless usage to create a usage limit for. - /// - /// - [AWSProperty(Required=true)] - public UsageLimitUsageType UsageType - { - get { return this._usageType; } - set { this._usageType = value; } - } - - // Check to see if UsageType property is set - internal bool IsSetUsageType() - { - return this._usageType != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateUsageLimitResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateUsageLimitResponse.cs deleted file mode 100644 index 764519607e93..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateUsageLimitResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the CreateUsageLimit operation. - /// - public partial class CreateUsageLimitResponse : AmazonWebServiceResponse - { - private UsageLimit _usageLimit; - - /// - /// Gets and sets the property UsageLimit. - /// - /// The returned usage limit object. - /// - /// - public UsageLimit UsageLimit - { - get { return this._usageLimit; } - set { this._usageLimit = value; } - } - - // Check to see if UsageLimit property is set - internal bool IsSetUsageLimit() - { - return this._usageLimit != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateWorkgroupRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateWorkgroupRequest.cs deleted file mode 100644 index 0b47dcd275ff..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateWorkgroupRequest.cs +++ /dev/null @@ -1,217 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the CreateWorkgroup operation. - /// Creates an workgroup in Amazon Redshift Serverless. - /// - public partial class CreateWorkgroupRequest : AmazonRedshiftServerlessRequest - { - private int? _baseCapacity; - private List _configParameters = new List(); - private bool? _enhancedVpcRouting; - private string _namespaceName; - private bool? _publiclyAccessible; - private List _securityGroupIds = new List(); - private List _subnetIds = new List(); - private List _tags = new List(); - private string _workgroupName; - - /// - /// Gets and sets the property BaseCapacity. - /// - /// The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). - /// - /// - public int BaseCapacity - { - get { return this._baseCapacity.GetValueOrDefault(); } - set { this._baseCapacity = value; } - } - - // Check to see if BaseCapacity property is set - internal bool IsSetBaseCapacity() - { - return this._baseCapacity.HasValue; - } - - /// - /// Gets and sets the property ConfigParameters. - /// - /// An array of parameters to set for more control over a serverless database. The options - /// are datestyle, enable_user_activity_logging, query_group, - /// search_path, and max_query_execution_time. - /// - /// - public List ConfigParameters - { - get { return this._configParameters; } - set { this._configParameters = value; } - } - - // Check to see if ConfigParameters property is set - internal bool IsSetConfigParameters() - { - return this._configParameters != null && this._configParameters.Count > 0; - } - - /// - /// Gets and sets the property EnhancedVpcRouting. - /// - /// The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, - /// which forces Amazon Redshift Serverless to route traffic through your VPC instead - /// of over the internet. - /// - /// - public bool EnhancedVpcRouting - { - get { return this._enhancedVpcRouting.GetValueOrDefault(); } - set { this._enhancedVpcRouting = value; } - } - - // Check to see if EnhancedVpcRouting property is set - internal bool IsSetEnhancedVpcRouting() - { - return this._enhancedVpcRouting.HasValue; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace to associate with the workgroup. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property PubliclyAccessible. - /// - /// A value that specifies whether the workgroup can be accessed from a public network. - /// - /// - public bool PubliclyAccessible - { - get { return this._publiclyAccessible.GetValueOrDefault(); } - set { this._publiclyAccessible = value; } - } - - // Check to see if PubliclyAccessible property is set - internal bool IsSetPubliclyAccessible() - { - return this._publiclyAccessible.HasValue; - } - - /// - /// Gets and sets the property SecurityGroupIds. - /// - /// An array of security group IDs to associate with the workgroup. - /// - /// - public List SecurityGroupIds - { - get { return this._securityGroupIds; } - set { this._securityGroupIds = value; } - } - - // Check to see if SecurityGroupIds property is set - internal bool IsSetSecurityGroupIds() - { - return this._securityGroupIds != null && this._securityGroupIds.Count > 0; - } - - /// - /// Gets and sets the property SubnetIds. - /// - /// An array of VPC subnet IDs to associate with the workgroup. - /// - /// - public List SubnetIds - { - get { return this._subnetIds; } - set { this._subnetIds = value; } - } - - // Check to see if SubnetIds property is set - internal bool IsSetSubnetIds() - { - return this._subnetIds != null && this._subnetIds.Count > 0; - } - - /// - /// Gets and sets the property Tags. - /// - /// A array of tag instances. - /// - /// - [AWSProperty(Min=0, Max=200)] - public List Tags - { - get { return this._tags; } - set { this._tags = value; } - } - - // Check to see if Tags property is set - internal bool IsSetTags() - { - return this._tags != null && this._tags.Count > 0; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the created workgroup. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateWorkgroupResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/CreateWorkgroupResponse.cs deleted file mode 100644 index 3991ae244719..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/CreateWorkgroupResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the CreateWorkgroup operation. - /// - public partial class CreateWorkgroupResponse : AmazonWebServiceResponse - { - private Workgroup _workgroup; - - /// - /// Gets and sets the property Workgroup. - /// - /// The created workgroup object. - /// - /// - public Workgroup Workgroup - { - get { return this._workgroup; } - set { this._workgroup = value; } - } - - // Check to see if Workgroup property is set - internal bool IsSetWorkgroup() - { - return this._workgroup != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteEndpointAccessRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteEndpointAccessRequest.cs deleted file mode 100644 index d36bf6c99bbe..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteEndpointAccessRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the DeleteEndpointAccess operation. - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - public partial class DeleteEndpointAccessRequest : AmazonRedshiftServerlessRequest - { - private string _endpointName; - - /// - /// Gets and sets the property EndpointName. - /// - /// The name of the VPC endpoint to delete. - /// - /// - [AWSProperty(Required=true)] - public string EndpointName - { - get { return this._endpointName; } - set { this._endpointName = value; } - } - - // Check to see if EndpointName property is set - internal bool IsSetEndpointName() - { - return this._endpointName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteEndpointAccessResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteEndpointAccessResponse.cs deleted file mode 100644 index 429fdd9faf88..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteEndpointAccessResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the DeleteEndpointAccess operation. - /// - public partial class DeleteEndpointAccessResponse : AmazonWebServiceResponse - { - private EndpointAccess _endpoint; - - /// - /// Gets and sets the property Endpoint. - /// - /// The deleted VPC endpoint. - /// - /// - public EndpointAccess Endpoint - { - get { return this._endpoint; } - set { this._endpoint = value; } - } - - // Check to see if Endpoint property is set - internal bool IsSetEndpoint() - { - return this._endpoint != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteNamespaceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteNamespaceRequest.cs deleted file mode 100644 index 7d5b498c0c93..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteNamespaceRequest.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the DeleteNamespace operation. - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - public partial class DeleteNamespaceRequest : AmazonRedshiftServerlessRequest - { - private string _finalSnapshotName; - private int? _finalSnapshotRetentionPeriod; - private string _namespaceName; - - /// - /// Gets and sets the property FinalSnapshotName. - /// - /// The name of the snapshot to be created before the namespace is deleted. - /// - /// - public string FinalSnapshotName - { - get { return this._finalSnapshotName; } - set { this._finalSnapshotName = value; } - } - - // Check to see if FinalSnapshotName property is set - internal bool IsSetFinalSnapshotName() - { - return this._finalSnapshotName != null; - } - - /// - /// Gets and sets the property FinalSnapshotRetentionPeriod. - /// - /// How long to retain the final snapshot. - /// - /// - public int FinalSnapshotRetentionPeriod - { - get { return this._finalSnapshotRetentionPeriod.GetValueOrDefault(); } - set { this._finalSnapshotRetentionPeriod = value; } - } - - // Check to see if FinalSnapshotRetentionPeriod property is set - internal bool IsSetFinalSnapshotRetentionPeriod() - { - return this._finalSnapshotRetentionPeriod.HasValue; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace to delete. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteNamespaceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteNamespaceResponse.cs deleted file mode 100644 index 356bbc4d4da3..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteNamespaceResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the DeleteNamespace operation. - /// - public partial class DeleteNamespaceResponse : AmazonWebServiceResponse - { - private Namespace _awsNamespace; - - /// - /// Gets and sets the property Namespace. - /// - /// The deleted namespace object. - /// - /// - [AWSProperty(Required=true)] - public Namespace Namespace - { - get { return this._awsNamespace; } - set { this._awsNamespace = value; } - } - - // Check to see if Namespace property is set - internal bool IsSetNamespace() - { - return this._awsNamespace != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteResourcePolicyRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteResourcePolicyRequest.cs deleted file mode 100644 index 6db8fbf22249..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteResourcePolicyRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the DeleteResourcePolicy operation. - /// Deletes the specified resource policy. - /// - public partial class DeleteResourcePolicyRequest : AmazonRedshiftServerlessRequest - { - private string _resourceArn; - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the policy to delete. - /// - /// - [AWSProperty(Required=true)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteResourcePolicyResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteResourcePolicyResponse.cs deleted file mode 100644 index d1634c7e3ae8..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteResourcePolicyResponse.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the DeleteResourcePolicy operation. - /// - public partial class DeleteResourcePolicyResponse : AmazonWebServiceResponse - { - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteSnapshotRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteSnapshotRequest.cs deleted file mode 100644 index 4cf2b491b7b4..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteSnapshotRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the DeleteSnapshot operation. - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - public partial class DeleteSnapshotRequest : AmazonRedshiftServerlessRequest - { - private string _snapshotName; - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot to be deleted. - /// - /// - [AWSProperty(Required=true)] - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteSnapshotResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteSnapshotResponse.cs deleted file mode 100644 index a8780887dcce..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteSnapshotResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the DeleteSnapshot operation. - /// - public partial class DeleteSnapshotResponse : AmazonWebServiceResponse - { - private Snapshot _snapshot; - - /// - /// Gets and sets the property Snapshot. - /// - /// The deleted snapshot object. - /// - /// - public Snapshot Snapshot - { - get { return this._snapshot; } - set { this._snapshot = value; } - } - - // Check to see if Snapshot property is set - internal bool IsSetSnapshot() - { - return this._snapshot != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteUsageLimitRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteUsageLimitRequest.cs deleted file mode 100644 index ad5f0021bc64..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteUsageLimitRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the DeleteUsageLimit operation. - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - public partial class DeleteUsageLimitRequest : AmazonRedshiftServerlessRequest - { - private string _usageLimitId; - - /// - /// Gets and sets the property UsageLimitId. - /// - /// The unique identifier of the usage limit to delete. - /// - /// - [AWSProperty(Required=true)] - public string UsageLimitId - { - get { return this._usageLimitId; } - set { this._usageLimitId = value; } - } - - // Check to see if UsageLimitId property is set - internal bool IsSetUsageLimitId() - { - return this._usageLimitId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteUsageLimitResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteUsageLimitResponse.cs deleted file mode 100644 index 3fe1f4d33fd3..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteUsageLimitResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the DeleteUsageLimit operation. - /// - public partial class DeleteUsageLimitResponse : AmazonWebServiceResponse - { - private UsageLimit _usageLimit; - - /// - /// Gets and sets the property UsageLimit. - /// - /// The deleted usage limit object. - /// - /// - public UsageLimit UsageLimit - { - get { return this._usageLimit; } - set { this._usageLimit = value; } - } - - // Check to see if UsageLimit property is set - internal bool IsSetUsageLimit() - { - return this._usageLimit != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteWorkgroupRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteWorkgroupRequest.cs deleted file mode 100644 index a7a47e9a1c22..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteWorkgroupRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the DeleteWorkgroup operation. - /// Deletes a workgroup. - /// - public partial class DeleteWorkgroupRequest : AmazonRedshiftServerlessRequest - { - private string _workgroupName; - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup to be deleted. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteWorkgroupResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteWorkgroupResponse.cs deleted file mode 100644 index c61d7abc5fbc..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/DeleteWorkgroupResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the DeleteWorkgroup operation. - /// - public partial class DeleteWorkgroupResponse : AmazonWebServiceResponse - { - private Workgroup _workgroup; - - /// - /// Gets and sets the property Workgroup. - /// - /// The deleted workgroup object. - /// - /// - [AWSProperty(Required=true)] - public Workgroup Workgroup - { - get { return this._workgroup; } - set { this._workgroup = value; } - } - - // Check to see if Workgroup property is set - internal bool IsSetWorkgroup() - { - return this._workgroup != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Endpoint.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Endpoint.cs deleted file mode 100644 index 038b35fcc491..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Endpoint.cs +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The VPC endpoint object. - /// - public partial class Endpoint - { - private string _address; - private int? _port; - private List _vpcEndpoints = new List(); - - /// - /// Gets and sets the property Address. - /// - /// The DNS address of the VPC endpoint. - /// - /// - public string Address - { - get { return this._address; } - set { this._address = value; } - } - - // Check to see if Address property is set - internal bool IsSetAddress() - { - return this._address != null; - } - - /// - /// Gets and sets the property Port. - /// - /// The port that Amazon Redshift Serverless listens on. - /// - /// - public int Port - { - get { return this._port.GetValueOrDefault(); } - set { this._port = value; } - } - - // Check to see if Port property is set - internal bool IsSetPort() - { - return this._port.HasValue; - } - - /// - /// Gets and sets the property VpcEndpoints. - /// - /// An array of VpcEndpoint objects. - /// - /// - public List VpcEndpoints - { - get { return this._vpcEndpoints; } - set { this._vpcEndpoints = value; } - } - - // Check to see if VpcEndpoints property is set - internal bool IsSetVpcEndpoints() - { - return this._vpcEndpoints != null && this._vpcEndpoints.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/EndpointAccess.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/EndpointAccess.cs deleted file mode 100644 index 310536a284e5..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/EndpointAccess.cs +++ /dev/null @@ -1,229 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Information about an Amazon Redshift Serverless VPC endpoint. - /// - public partial class EndpointAccess - { - private string _address; - private string _endpointArn; - private DateTime? _endpointCreateTime; - private string _endpointName; - private string _endpointStatus; - private int? _port; - private List _subnetIds = new List(); - private VpcEndpoint _vpcEndpoint; - private List _vpcSecurityGroups = new List(); - private string _workgroupName; - - /// - /// Gets and sets the property Address. - /// - /// The DNS address of the endpoint. - /// - /// - public string Address - { - get { return this._address; } - set { this._address = value; } - } - - // Check to see if Address property is set - internal bool IsSetAddress() - { - return this._address != null; - } - - /// - /// Gets and sets the property EndpointArn. - /// - /// The Amazon Resource Name (ARN) of the VPC endpoint. - /// - /// - 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 EndpointCreateTime. - /// - /// The time that the endpoint was created. - /// - /// - public DateTime EndpointCreateTime - { - get { return this._endpointCreateTime.GetValueOrDefault(); } - set { this._endpointCreateTime = value; } - } - - // Check to see if EndpointCreateTime property is set - internal bool IsSetEndpointCreateTime() - { - return this._endpointCreateTime.HasValue; - } - - /// - /// Gets and sets the property EndpointName. - /// - /// The name of the VPC endpoint. - /// - /// - public string EndpointName - { - get { return this._endpointName; } - set { this._endpointName = value; } - } - - // Check to see if EndpointName property is set - internal bool IsSetEndpointName() - { - return this._endpointName != null; - } - - /// - /// Gets and sets the property EndpointStatus. - /// - /// The status of the VPC endpoint. - /// - /// - public string EndpointStatus - { - get { return this._endpointStatus; } - set { this._endpointStatus = value; } - } - - // Check to see if EndpointStatus property is set - internal bool IsSetEndpointStatus() - { - return this._endpointStatus != null; - } - - /// - /// Gets and sets the property Port. - /// - /// The port number on which Amazon Redshift Serverless accepts incoming connections. - /// - /// - public int Port - { - get { return this._port.GetValueOrDefault(); } - set { this._port = value; } - } - - // Check to see if Port property is set - internal bool IsSetPort() - { - return this._port.HasValue; - } - - /// - /// Gets and sets the property SubnetIds. - /// - /// The unique identifier of subnets where Amazon Redshift Serverless choose to deploy - /// the VPC endpoint. - /// - /// - public List SubnetIds - { - get { return this._subnetIds; } - set { this._subnetIds = value; } - } - - // Check to see if SubnetIds property is set - internal bool IsSetSubnetIds() - { - return this._subnetIds != null && this._subnetIds.Count > 0; - } - - /// - /// Gets and sets the property VpcEndpoint. - /// - /// The connection endpoint for connecting to Amazon Redshift Serverless. - /// - /// - public VpcEndpoint VpcEndpoint - { - get { return this._vpcEndpoint; } - set { this._vpcEndpoint = value; } - } - - // Check to see if VpcEndpoint property is set - internal bool IsSetVpcEndpoint() - { - return this._vpcEndpoint != null; - } - - /// - /// Gets and sets the property VpcSecurityGroups. - /// - /// The security groups associated with the endpoint. - /// - /// - public List VpcSecurityGroups - { - get { return this._vpcSecurityGroups; } - set { this._vpcSecurityGroups = value; } - } - - // Check to see if VpcSecurityGroups property is set - internal bool IsSetVpcSecurityGroups() - { - return this._vpcSecurityGroups != null && this._vpcSecurityGroups.Count > 0; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup associated with the endpoint. - /// - /// - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetCredentialsRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetCredentialsRequest.cs deleted file mode 100644 index d787f9b9f625..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetCredentialsRequest.cs +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetCredentials operation. - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-    /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-    /// actions and resources. </p> <p> If the <code>DbName</code>
-    /// parameter is specified, the IAM policy must allow access to the resource dbname for
-    /// the specified database name.</p> 
- ///
- public partial class GetCredentialsRequest : AmazonRedshiftServerlessRequest - { - private string _dbName; - private int? _durationSeconds; - private string _workgroupName; - - /// - /// Gets and sets the property DbName. - /// - /// The name of the database to get temporary authorization to log on to. - /// - /// - /// - /// Constraints: - /// - ///
  • - /// - /// Must be 1 to 64 alphanumeric characters or hyphens. - /// - ///
  • - /// - /// Must contain only lowercase letters, numbers, underscore, plus sign, period (dot), - /// at symbol (@), or hyphen. - /// - ///
  • - /// - /// The first character must be a letter. - /// - ///
  • - /// - /// Must not contain a colon ( : ) or slash ( / ). - /// - ///
  • - /// - /// Cannot be a reserved word. A list of reserved words can be found in Reserved - /// Words in the Amazon Redshift Database Developer Guide - /// - ///
- ///
- public string DbName - { - get { return this._dbName; } - set { this._dbName = value; } - } - - // Check to see if DbName property is set - internal bool IsSetDbName() - { - return this._dbName != null; - } - - /// - /// Gets and sets the property DurationSeconds. - /// - /// The number of seconds until the returned temporary password expires. The minimum is - /// 900 seconds, and the maximum is 3600 seconds. - /// - /// - public int DurationSeconds - { - get { return this._durationSeconds.GetValueOrDefault(); } - set { this._durationSeconds = value; } - } - - // Check to see if DurationSeconds property is set - internal bool IsSetDurationSeconds() - { - return this._durationSeconds.HasValue; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup associated with the database. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetCredentialsResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetCredentialsResponse.cs deleted file mode 100644 index c21988998ade..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetCredentialsResponse.cs +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetCredentials operation. - /// - public partial class GetCredentialsResponse : AmazonWebServiceResponse - { - private string _dbPassword; - private string _dbUser; - private DateTime? _expiration; - private DateTime? _nextRefreshTime; - - /// - /// Gets and sets the property DbPassword. - /// - /// A temporary password that authorizes the user name returned by DbUser - /// to log on to the database DbName. - /// - /// - public string DbPassword - { - get { return this._dbPassword; } - set { this._dbPassword = value; } - } - - // Check to see if DbPassword property is set - internal bool IsSetDbPassword() - { - return this._dbPassword != null; - } - - /// - /// Gets and sets the property DbUser. - /// - /// A database user name that is authorized to log on to the database DbName - /// using the password DbPassword. If the specified DbUser exists - /// in the database, the new user name has the same database privileges as the the user - /// named in DbUser. By default, the user is added to PUBLIC. - /// - /// - public string DbUser - { - get { return this._dbUser; } - set { this._dbUser = value; } - } - - // Check to see if DbUser property is set - internal bool IsSetDbUser() - { - return this._dbUser != null; - } - - /// - /// Gets and sets the property Expiration. - /// - /// The date and time the password in DbPassword expires. - /// - /// - public DateTime Expiration - { - get { return this._expiration.GetValueOrDefault(); } - set { this._expiration = value; } - } - - // Check to see if Expiration property is set - internal bool IsSetExpiration() - { - return this._expiration.HasValue; - } - - /// - /// Gets and sets the property NextRefreshTime. - /// - /// The date and time of when the DbUser and DbPassword authorization - /// refreshes. - /// - /// - public DateTime NextRefreshTime - { - get { return this._nextRefreshTime.GetValueOrDefault(); } - set { this._nextRefreshTime = value; } - } - - // Check to see if NextRefreshTime property is set - internal bool IsSetNextRefreshTime() - { - return this._nextRefreshTime.HasValue; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetEndpointAccessRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetEndpointAccessRequest.cs deleted file mode 100644 index 98d0e19103ce..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetEndpointAccessRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetEndpointAccess operation. - /// Returns information, such as the name, about a VPC endpoint. - /// - public partial class GetEndpointAccessRequest : AmazonRedshiftServerlessRequest - { - private string _endpointName; - - /// - /// Gets and sets the property EndpointName. - /// - /// The name of the VPC endpoint to return information for. - /// - /// - [AWSProperty(Required=true)] - public string EndpointName - { - get { return this._endpointName; } - set { this._endpointName = value; } - } - - // Check to see if EndpointName property is set - internal bool IsSetEndpointName() - { - return this._endpointName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetEndpointAccessResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetEndpointAccessResponse.cs deleted file mode 100644 index 757350af1695..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetEndpointAccessResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetEndpointAccess operation. - /// - public partial class GetEndpointAccessResponse : AmazonWebServiceResponse - { - private EndpointAccess _endpoint; - - /// - /// Gets and sets the property Endpoint. - /// - /// The returned VPC endpoint. - /// - /// - public EndpointAccess Endpoint - { - get { return this._endpoint; } - set { this._endpoint = value; } - } - - // Check to see if Endpoint property is set - internal bool IsSetEndpoint() - { - return this._endpoint != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetNamespaceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetNamespaceRequest.cs deleted file mode 100644 index dae10b0aa39a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetNamespaceRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetNamespace operation. - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - public partial class GetNamespaceRequest : AmazonRedshiftServerlessRequest - { - private string _namespaceName; - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace to retrieve information for. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetNamespaceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetNamespaceResponse.cs deleted file mode 100644 index 3ccfd5abf023..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetNamespaceResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetNamespace operation. - /// - public partial class GetNamespaceResponse : AmazonWebServiceResponse - { - private Namespace _awsNamespace; - - /// - /// Gets and sets the property Namespace. - /// - /// The returned namespace object. - /// - /// - [AWSProperty(Required=true)] - public Namespace Namespace - { - get { return this._awsNamespace; } - set { this._awsNamespace = value; } - } - - // Check to see if Namespace property is set - internal bool IsSetNamespace() - { - return this._awsNamespace != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetRecoveryPointRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetRecoveryPointRequest.cs deleted file mode 100644 index 7f8082dd8431..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetRecoveryPointRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetRecoveryPoint operation. - /// Returns information about a recovery point. - /// - public partial class GetRecoveryPointRequest : AmazonRedshiftServerlessRequest - { - private string _recoveryPointId; - - /// - /// Gets and sets the property RecoveryPointId. - /// - /// The unique identifier of the recovery point to return information for. - /// - /// - [AWSProperty(Required=true)] - public string RecoveryPointId - { - get { return this._recoveryPointId; } - set { this._recoveryPointId = value; } - } - - // Check to see if RecoveryPointId property is set - internal bool IsSetRecoveryPointId() - { - return this._recoveryPointId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetRecoveryPointResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetRecoveryPointResponse.cs deleted file mode 100644 index 72a48ddf0424..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetRecoveryPointResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetRecoveryPoint operation. - /// - public partial class GetRecoveryPointResponse : AmazonWebServiceResponse - { - private RecoveryPoint _recoveryPoint; - - /// - /// Gets and sets the property RecoveryPoint. - /// - /// The returned recovery point object. - /// - /// - public RecoveryPoint RecoveryPoint - { - get { return this._recoveryPoint; } - set { this._recoveryPoint = value; } - } - - // Check to see if RecoveryPoint property is set - internal bool IsSetRecoveryPoint() - { - return this._recoveryPoint != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetResourcePolicyRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetResourcePolicyRequest.cs deleted file mode 100644 index f92e7ab541e5..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetResourcePolicyRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetResourcePolicy operation. - /// Returns a resource policy. - /// - public partial class GetResourcePolicyRequest : AmazonRedshiftServerlessRequest - { - private string _resourceArn; - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the resource to return. - /// - /// - [AWSProperty(Required=true)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetResourcePolicyResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetResourcePolicyResponse.cs deleted file mode 100644 index b96b9c57c938..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetResourcePolicyResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetResourcePolicy operation. - /// - public partial class GetResourcePolicyResponse : AmazonWebServiceResponse - { - private ResourcePolicy _resourcePolicy; - - /// - /// Gets and sets the property ResourcePolicy. - /// - /// The returned resource policy. - /// - /// - public ResourcePolicy ResourcePolicy - { - get { return this._resourcePolicy; } - set { this._resourcePolicy = value; } - } - - // Check to see if ResourcePolicy property is set - internal bool IsSetResourcePolicy() - { - return this._resourcePolicy != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetSnapshotRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetSnapshotRequest.cs deleted file mode 100644 index d54a6d05afe7..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetSnapshotRequest.cs +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetSnapshot operation. - /// Returns information about a specific snapshot. - /// - public partial class GetSnapshotRequest : AmazonRedshiftServerlessRequest - { - private string _ownerAccount; - private string _snapshotArn; - private string _snapshotName; - - /// - /// Gets and sets the property OwnerAccount. - /// - /// The owner Amazon Web Services account of a snapshot shared with another user. - /// - /// - public string OwnerAccount - { - get { return this._ownerAccount; } - set { this._ownerAccount = value; } - } - - // Check to see if OwnerAccount property is set - internal bool IsSetOwnerAccount() - { - return this._ownerAccount != null; - } - - /// - /// Gets and sets the property SnapshotArn. - /// - /// The Amazon Resource Name (ARN) of the snapshot to return. - /// - /// - public string SnapshotArn - { - get { return this._snapshotArn; } - set { this._snapshotArn = value; } - } - - // Check to see if SnapshotArn property is set - internal bool IsSetSnapshotArn() - { - return this._snapshotArn != null; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot to return. - /// - /// - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetSnapshotResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetSnapshotResponse.cs deleted file mode 100644 index 355c34faa157..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetSnapshotResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetSnapshot operation. - /// - public partial class GetSnapshotResponse : AmazonWebServiceResponse - { - private Snapshot _snapshot; - - /// - /// Gets and sets the property Snapshot. - /// - /// The returned snapshot object. - /// - /// - public Snapshot Snapshot - { - get { return this._snapshot; } - set { this._snapshot = value; } - } - - // Check to see if Snapshot property is set - internal bool IsSetSnapshot() - { - return this._snapshot != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetUsageLimitRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetUsageLimitRequest.cs deleted file mode 100644 index 81731e98db8f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetUsageLimitRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetUsageLimit operation. - /// Returns information about a usage limit. - /// - public partial class GetUsageLimitRequest : AmazonRedshiftServerlessRequest - { - private string _usageLimitId; - - /// - /// Gets and sets the property UsageLimitId. - /// - /// The unique identifier of the usage limit to return information for. - /// - /// - [AWSProperty(Required=true)] - public string UsageLimitId - { - get { return this._usageLimitId; } - set { this._usageLimitId = value; } - } - - // Check to see if UsageLimitId property is set - internal bool IsSetUsageLimitId() - { - return this._usageLimitId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetUsageLimitResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetUsageLimitResponse.cs deleted file mode 100644 index 8b2fc5bd4273..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetUsageLimitResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetUsageLimit operation. - /// - public partial class GetUsageLimitResponse : AmazonWebServiceResponse - { - private UsageLimit _usageLimit; - - /// - /// Gets and sets the property UsageLimit. - /// - /// The returned usage limit object. - /// - /// - public UsageLimit UsageLimit - { - get { return this._usageLimit; } - set { this._usageLimit = value; } - } - - // Check to see if UsageLimit property is set - internal bool IsSetUsageLimit() - { - return this._usageLimit != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetWorkgroupRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetWorkgroupRequest.cs deleted file mode 100644 index b26614b09ddf..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetWorkgroupRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the GetWorkgroup operation. - /// Returns information about a specific workgroup. - /// - public partial class GetWorkgroupRequest : AmazonRedshiftServerlessRequest - { - private string _workgroupName; - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup to return information for. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/GetWorkgroupResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/GetWorkgroupResponse.cs deleted file mode 100644 index a905b36ce6ee..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/GetWorkgroupResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the GetWorkgroup operation. - /// - public partial class GetWorkgroupResponse : AmazonWebServiceResponse - { - private Workgroup _workgroup; - - /// - /// Gets and sets the property Workgroup. - /// - /// The returned workgroup object. - /// - /// - [AWSProperty(Required=true)] - public Workgroup Workgroup - { - get { return this._workgroup; } - set { this._workgroup = value; } - } - - // Check to see if Workgroup property is set - internal bool IsSetWorkgroup() - { - return this._workgroup != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/InsufficientCapacityException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/InsufficientCapacityException.cs deleted file mode 100644 index 309e47562aaf..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/InsufficientCapacityException.cs +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// There is an insufficient capacity to perform the action. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class InsufficientCapacityException : AmazonRedshiftServerlessException - { - - private RetryableDetails _retryableDetails = new RetryableDetails(false); - - /// - /// Constructs a new InsufficientCapacityException with the specified error - /// message. - /// - /// - /// Describes the error encountered. - /// - public InsufficientCapacityException(string message) - : base(message) {} - - /// - /// Construct instance of InsufficientCapacityException - /// - /// - /// - public InsufficientCapacityException(string message, Exception innerException) - : base(message, innerException) {} - - /// - /// Construct instance of InsufficientCapacityException - /// - /// - public InsufficientCapacityException(Exception innerException) - : base(innerException) {} - - /// - /// Construct instance of InsufficientCapacityException - /// - /// - /// - /// - /// - /// - /// - public InsufficientCapacityException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, innerException, errorType, errorCode, requestId, statusCode) {} - - /// - /// Construct instance of InsufficientCapacityException - /// - /// - /// - /// - /// - /// - public InsufficientCapacityException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, errorType, errorCode, requestId, statusCode) {} - - -#if !NETSTANDARD - /// - /// Constructs a new instance of the InsufficientCapacityException 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 InsufficientCapacityException(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 - - /// - /// Flag indicating if the exception is retryable and the associated retry - /// details. A null value indicates that the exception is not retryable. - /// - public override RetryableDetails Retryable - { - get - { - return _retryableDetails; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs deleted file mode 100644 index 291728885491..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/AccessDeniedExceptionUnmarshaller.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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 Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.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)) - { - if (context.TestExpression("code", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Code = unmarshaller.Unmarshall(context); - continue; - } - } - - 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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConfigParameterMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConfigParameterMarshaller.cs deleted file mode 100644 index ab179970aed0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConfigParameterMarshaller.cs +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ConfigParameter Marshaller - /// - public class ConfigParameterMarshaller : IRequestMarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public void Marshall(ConfigParameter requestObject, JsonMarshallerContext context) - { - if(requestObject.IsSetParameterKey()) - { - context.Writer.WritePropertyName("parameterKey"); - context.Writer.Write(requestObject.ParameterKey); - } - - if(requestObject.IsSetParameterValue()) - { - context.Writer.WritePropertyName("parameterValue"); - context.Writer.Write(requestObject.ParameterValue); - } - - } - - /// - /// Singleton Marshaller. - /// - public readonly static ConfigParameterMarshaller Instance = new ConfigParameterMarshaller(); - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConfigParameterUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConfigParameterUnmarshaller.cs deleted file mode 100644 index e74341bbfd36..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConfigParameterUnmarshaller.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ConfigParameter Object - /// - public class ConfigParameterUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - ConfigParameter IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public ConfigParameter Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - ConfigParameter unmarshalledObject = new ConfigParameter(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("parameterKey", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.ParameterKey = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("parameterValue", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.ParameterValue = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static ConfigParameterUnmarshaller _instance = new ConfigParameterUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static ConfigParameterUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs deleted file mode 100644 index b87025307523..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConflictExceptionUnmarshaller.cs +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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 Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConvertRecoveryPointToSnapshotRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConvertRecoveryPointToSnapshotRequestMarshaller.cs deleted file mode 100644 index 5cc0dcd92608..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConvertRecoveryPointToSnapshotRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ConvertRecoveryPointToSnapshot Request Marshaller - /// - public class ConvertRecoveryPointToSnapshotRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ConvertRecoveryPointToSnapshotRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ConvertRecoveryPointToSnapshotRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ConvertRecoveryPointToSnapshot"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetRecoveryPointId()) - { - context.Writer.WritePropertyName("recoveryPointId"); - context.Writer.Write(publicRequest.RecoveryPointId); - } - - if(publicRequest.IsSetRetentionPeriod()) - { - context.Writer.WritePropertyName("retentionPeriod"); - context.Writer.Write(publicRequest.RetentionPeriod); - } - - if(publicRequest.IsSetSnapshotName()) - { - context.Writer.WritePropertyName("snapshotName"); - context.Writer.Write(publicRequest.SnapshotName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ConvertRecoveryPointToSnapshotRequestMarshaller _instance = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - - internal static ConvertRecoveryPointToSnapshotRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ConvertRecoveryPointToSnapshotRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConvertRecoveryPointToSnapshotResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConvertRecoveryPointToSnapshotResponseUnmarshaller.cs deleted file mode 100644 index 4f2a3c1b74ab..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ConvertRecoveryPointToSnapshotResponseUnmarshaller.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ConvertRecoveryPointToSnapshot operation - /// - public class ConvertRecoveryPointToSnapshotResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ConvertRecoveryPointToSnapshotResponse response = new ConvertRecoveryPointToSnapshotResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("snapshot", targetDepth)) - { - var unmarshaller = SnapshotUnmarshaller.Instance; - response.Snapshot = 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("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("ServiceQuotaExceededException")) - { - return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ConvertRecoveryPointToSnapshotResponseUnmarshaller _instance = new ConvertRecoveryPointToSnapshotResponseUnmarshaller(); - - internal static ConvertRecoveryPointToSnapshotResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ConvertRecoveryPointToSnapshotResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateEndpointAccessRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateEndpointAccessRequestMarshaller.cs deleted file mode 100644 index 2cb56e831a2b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateEndpointAccessRequestMarshaller.cs +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// CreateEndpointAccess Request Marshaller - /// - public class CreateEndpointAccessRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((CreateEndpointAccessRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(CreateEndpointAccessRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.CreateEndpointAccess"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetEndpointName()) - { - context.Writer.WritePropertyName("endpointName"); - context.Writer.Write(publicRequest.EndpointName); - } - - if(publicRequest.IsSetSubnetIds()) - { - context.Writer.WritePropertyName("subnetIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestSubnetIdsListValue in publicRequest.SubnetIds) - { - context.Writer.Write(publicRequestSubnetIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetVpcSecurityGroupIds()) - { - context.Writer.WritePropertyName("vpcSecurityGroupIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestVpcSecurityGroupIdsListValue in publicRequest.VpcSecurityGroupIds) - { - context.Writer.Write(publicRequestVpcSecurityGroupIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static CreateEndpointAccessRequestMarshaller _instance = new CreateEndpointAccessRequestMarshaller(); - - internal static CreateEndpointAccessRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateEndpointAccessRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateEndpointAccessResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateEndpointAccessResponseUnmarshaller.cs deleted file mode 100644 index 9884d66939ce..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateEndpointAccessResponseUnmarshaller.cs +++ /dev/null @@ -1,130 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for CreateEndpointAccess operation - /// - public class CreateEndpointAccessResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - CreateEndpointAccessResponse response = new CreateEndpointAccessResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("endpoint", targetDepth)) - { - var unmarshaller = EndpointAccessUnmarshaller.Instance; - response.Endpoint = 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("ServiceQuotaExceededException")) - { - return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static CreateEndpointAccessResponseUnmarshaller _instance = new CreateEndpointAccessResponseUnmarshaller(); - - internal static CreateEndpointAccessResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateEndpointAccessResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateNamespaceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateNamespaceRequestMarshaller.cs deleted file mode 100644 index 1fc4995d5f4c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateNamespaceRequestMarshaller.cs +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// CreateNamespace Request Marshaller - /// - public class CreateNamespaceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((CreateNamespaceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(CreateNamespaceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.CreateNamespace"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetAdminUsername()) - { - context.Writer.WritePropertyName("adminUsername"); - context.Writer.Write(publicRequest.AdminUsername); - } - - if(publicRequest.IsSetAdminUserPassword()) - { - context.Writer.WritePropertyName("adminUserPassword"); - context.Writer.Write(publicRequest.AdminUserPassword); - } - - if(publicRequest.IsSetDbName()) - { - context.Writer.WritePropertyName("dbName"); - context.Writer.Write(publicRequest.DbName); - } - - if(publicRequest.IsSetDefaultIamRoleArn()) - { - context.Writer.WritePropertyName("defaultIamRoleArn"); - context.Writer.Write(publicRequest.DefaultIamRoleArn); - } - - if(publicRequest.IsSetIamRoles()) - { - context.Writer.WritePropertyName("iamRoles"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestIamRolesListValue in publicRequest.IamRoles) - { - context.Writer.Write(publicRequestIamRolesListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetKmsKeyId()) - { - context.Writer.WritePropertyName("kmsKeyId"); - context.Writer.Write(publicRequest.KmsKeyId); - } - - if(publicRequest.IsSetLogExports()) - { - context.Writer.WritePropertyName("logExports"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestLogExportsListValue in publicRequest.LogExports) - { - context.Writer.Write(publicRequestLogExportsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetTags()) - { - context.Writer.WritePropertyName("tags"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestTagsListValue in publicRequest.Tags) - { - context.Writer.WriteObjectStart(); - - var marshaller = TagMarshaller.Instance; - marshaller.Marshall(publicRequestTagsListValue, context); - - context.Writer.WriteObjectEnd(); - } - context.Writer.WriteArrayEnd(); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static CreateNamespaceRequestMarshaller _instance = new CreateNamespaceRequestMarshaller(); - - internal static CreateNamespaceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateNamespaceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateNamespaceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateNamespaceResponseUnmarshaller.cs deleted file mode 100644 index 0c1bf61b8cb9..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateNamespaceResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for CreateNamespace operation - /// - public class CreateNamespaceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - CreateNamespaceResponse response = new CreateNamespaceResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespace", targetDepth)) - { - var unmarshaller = NamespaceUnmarshaller.Instance; - response.Namespace = 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("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("TooManyTagsException")) - { - return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static CreateNamespaceResponseUnmarshaller _instance = new CreateNamespaceResponseUnmarshaller(); - - internal static CreateNamespaceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateNamespaceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateSnapshotRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateSnapshotRequestMarshaller.cs deleted file mode 100644 index 8301e76d753f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateSnapshotRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// CreateSnapshot Request Marshaller - /// - public class CreateSnapshotRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((CreateSnapshotRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(CreateSnapshotRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.CreateSnapshot"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetRetentionPeriod()) - { - context.Writer.WritePropertyName("retentionPeriod"); - context.Writer.Write(publicRequest.RetentionPeriod); - } - - if(publicRequest.IsSetSnapshotName()) - { - context.Writer.WritePropertyName("snapshotName"); - context.Writer.Write(publicRequest.SnapshotName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static CreateSnapshotRequestMarshaller _instance = new CreateSnapshotRequestMarshaller(); - - internal static CreateSnapshotRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateSnapshotRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateSnapshotResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateSnapshotResponseUnmarshaller.cs deleted file mode 100644 index e0e764e31c05..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateSnapshotResponseUnmarshaller.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for CreateSnapshot operation - /// - public class CreateSnapshotResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - CreateSnapshotResponse response = new CreateSnapshotResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("snapshot", targetDepth)) - { - var unmarshaller = SnapshotUnmarshaller.Instance; - response.Snapshot = 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("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("ServiceQuotaExceededException")) - { - return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static CreateSnapshotResponseUnmarshaller _instance = new CreateSnapshotResponseUnmarshaller(); - - internal static CreateSnapshotResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateSnapshotResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateUsageLimitRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateUsageLimitRequestMarshaller.cs deleted file mode 100644 index bdeee6e722b5..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateUsageLimitRequestMarshaller.cs +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// CreateUsageLimit Request Marshaller - /// - public class CreateUsageLimitRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((CreateUsageLimitRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(CreateUsageLimitRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.CreateUsageLimit"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetAmount()) - { - context.Writer.WritePropertyName("amount"); - context.Writer.Write(publicRequest.Amount); - } - - if(publicRequest.IsSetBreachAction()) - { - context.Writer.WritePropertyName("breachAction"); - context.Writer.Write(publicRequest.BreachAction); - } - - if(publicRequest.IsSetPeriod()) - { - context.Writer.WritePropertyName("period"); - context.Writer.Write(publicRequest.Period); - } - - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - if(publicRequest.IsSetUsageType()) - { - context.Writer.WritePropertyName("usageType"); - context.Writer.Write(publicRequest.UsageType); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static CreateUsageLimitRequestMarshaller _instance = new CreateUsageLimitRequestMarshaller(); - - internal static CreateUsageLimitRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateUsageLimitRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateUsageLimitResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateUsageLimitResponseUnmarshaller.cs deleted file mode 100644 index 26b7a287ba2b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateUsageLimitResponseUnmarshaller.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for CreateUsageLimit operation - /// - public class CreateUsageLimitResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - CreateUsageLimitResponse response = new CreateUsageLimitResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("usageLimit", targetDepth)) - { - var unmarshaller = UsageLimitUnmarshaller.Instance; - response.UsageLimit = 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("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("ServiceQuotaExceededException")) - { - return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static CreateUsageLimitResponseUnmarshaller _instance = new CreateUsageLimitResponseUnmarshaller(); - - internal static CreateUsageLimitResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateUsageLimitResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateWorkgroupRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateWorkgroupRequestMarshaller.cs deleted file mode 100644 index 24218514500e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateWorkgroupRequestMarshaller.cs +++ /dev/null @@ -1,181 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// CreateWorkgroup Request Marshaller - /// - public class CreateWorkgroupRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((CreateWorkgroupRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(CreateWorkgroupRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.CreateWorkgroup"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetBaseCapacity()) - { - context.Writer.WritePropertyName("baseCapacity"); - context.Writer.Write(publicRequest.BaseCapacity); - } - - if(publicRequest.IsSetConfigParameters()) - { - context.Writer.WritePropertyName("configParameters"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestConfigParametersListValue in publicRequest.ConfigParameters) - { - context.Writer.WriteObjectStart(); - - var marshaller = ConfigParameterMarshaller.Instance; - marshaller.Marshall(publicRequestConfigParametersListValue, context); - - context.Writer.WriteObjectEnd(); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetEnhancedVpcRouting()) - { - context.Writer.WritePropertyName("enhancedVpcRouting"); - context.Writer.Write(publicRequest.EnhancedVpcRouting); - } - - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetPubliclyAccessible()) - { - context.Writer.WritePropertyName("publiclyAccessible"); - context.Writer.Write(publicRequest.PubliclyAccessible); - } - - if(publicRequest.IsSetSecurityGroupIds()) - { - context.Writer.WritePropertyName("securityGroupIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestSecurityGroupIdsListValue in publicRequest.SecurityGroupIds) - { - context.Writer.Write(publicRequestSecurityGroupIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetSubnetIds()) - { - context.Writer.WritePropertyName("subnetIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestSubnetIdsListValue in publicRequest.SubnetIds) - { - context.Writer.Write(publicRequestSubnetIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetTags()) - { - context.Writer.WritePropertyName("tags"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestTagsListValue in publicRequest.Tags) - { - context.Writer.WriteObjectStart(); - - var marshaller = TagMarshaller.Instance; - marshaller.Marshall(publicRequestTagsListValue, context); - - context.Writer.WriteObjectEnd(); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static CreateWorkgroupRequestMarshaller _instance = new CreateWorkgroupRequestMarshaller(); - - internal static CreateWorkgroupRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateWorkgroupRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateWorkgroupResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateWorkgroupResponseUnmarshaller.cs deleted file mode 100644 index e9076be5f592..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/CreateWorkgroupResponseUnmarshaller.cs +++ /dev/null @@ -1,130 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for CreateWorkgroup operation - /// - public class CreateWorkgroupResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - CreateWorkgroupResponse response = new CreateWorkgroupResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("workgroup", targetDepth)) - { - var unmarshaller = WorkgroupUnmarshaller.Instance; - response.Workgroup = 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("ConflictException")) - { - return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("InsufficientCapacityException")) - { - return InsufficientCapacityExceptionUnmarshaller.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("TooManyTagsException")) - { - return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static CreateWorkgroupResponseUnmarshaller _instance = new CreateWorkgroupResponseUnmarshaller(); - - internal static CreateWorkgroupResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static CreateWorkgroupResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteEndpointAccessRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteEndpointAccessRequestMarshaller.cs deleted file mode 100644 index 764802841405..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteEndpointAccessRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// DeleteEndpointAccess Request Marshaller - /// - public class DeleteEndpointAccessRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((DeleteEndpointAccessRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(DeleteEndpointAccessRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.DeleteEndpointAccess"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetEndpointName()) - { - context.Writer.WritePropertyName("endpointName"); - context.Writer.Write(publicRequest.EndpointName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static DeleteEndpointAccessRequestMarshaller _instance = new DeleteEndpointAccessRequestMarshaller(); - - internal static DeleteEndpointAccessRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteEndpointAccessRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteEndpointAccessResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteEndpointAccessResponseUnmarshaller.cs deleted file mode 100644 index 21fd8654ddc9..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteEndpointAccessResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for DeleteEndpointAccess operation - /// - public class DeleteEndpointAccessResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - DeleteEndpointAccessResponse response = new DeleteEndpointAccessResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("endpoint", targetDepth)) - { - var unmarshaller = EndpointAccessUnmarshaller.Instance; - response.Endpoint = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static DeleteEndpointAccessResponseUnmarshaller _instance = new DeleteEndpointAccessResponseUnmarshaller(); - - internal static DeleteEndpointAccessResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteEndpointAccessResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteNamespaceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteNamespaceRequestMarshaller.cs deleted file mode 100644 index bf1ff4bfa9be..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteNamespaceRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// DeleteNamespace Request Marshaller - /// - public class DeleteNamespaceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((DeleteNamespaceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(DeleteNamespaceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.DeleteNamespace"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetFinalSnapshotName()) - { - context.Writer.WritePropertyName("finalSnapshotName"); - context.Writer.Write(publicRequest.FinalSnapshotName); - } - - if(publicRequest.IsSetFinalSnapshotRetentionPeriod()) - { - context.Writer.WritePropertyName("finalSnapshotRetentionPeriod"); - context.Writer.Write(publicRequest.FinalSnapshotRetentionPeriod); - } - - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static DeleteNamespaceRequestMarshaller _instance = new DeleteNamespaceRequestMarshaller(); - - internal static DeleteNamespaceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteNamespaceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteNamespaceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteNamespaceResponseUnmarshaller.cs deleted file mode 100644 index a5ab117bc929..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteNamespaceResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for DeleteNamespace operation - /// - public class DeleteNamespaceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - DeleteNamespaceResponse response = new DeleteNamespaceResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespace", targetDepth)) - { - var unmarshaller = NamespaceUnmarshaller.Instance; - response.Namespace = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static DeleteNamespaceResponseUnmarshaller _instance = new DeleteNamespaceResponseUnmarshaller(); - - internal static DeleteNamespaceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteNamespaceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteResourcePolicyRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteResourcePolicyRequestMarshaller.cs deleted file mode 100644 index 2148bf39106c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteResourcePolicyRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// DeleteResourcePolicy Request Marshaller - /// - public class DeleteResourcePolicyRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((DeleteResourcePolicyRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(DeleteResourcePolicyRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.DeleteResourcePolicy"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static DeleteResourcePolicyRequestMarshaller _instance = new DeleteResourcePolicyRequestMarshaller(); - - internal static DeleteResourcePolicyRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteResourcePolicyRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteResourcePolicyResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteResourcePolicyResponseUnmarshaller.cs deleted file mode 100644 index a02ee19cbf02..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteResourcePolicyResponseUnmarshaller.cs +++ /dev/null @@ -1,107 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for DeleteResourcePolicy operation - /// - public class DeleteResourcePolicyResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - DeleteResourcePolicyResponse response = new DeleteResourcePolicyResponse(); - - - 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static DeleteResourcePolicyResponseUnmarshaller _instance = new DeleteResourcePolicyResponseUnmarshaller(); - - internal static DeleteResourcePolicyResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteResourcePolicyResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteSnapshotRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteSnapshotRequestMarshaller.cs deleted file mode 100644 index 1f070e8c4286..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteSnapshotRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// DeleteSnapshot Request Marshaller - /// - public class DeleteSnapshotRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((DeleteSnapshotRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(DeleteSnapshotRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.DeleteSnapshot"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetSnapshotName()) - { - context.Writer.WritePropertyName("snapshotName"); - context.Writer.Write(publicRequest.SnapshotName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static DeleteSnapshotRequestMarshaller _instance = new DeleteSnapshotRequestMarshaller(); - - internal static DeleteSnapshotRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteSnapshotRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteSnapshotResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteSnapshotResponseUnmarshaller.cs deleted file mode 100644 index 239c2afda093..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteSnapshotResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for DeleteSnapshot operation - /// - public class DeleteSnapshotResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - DeleteSnapshotResponse response = new DeleteSnapshotResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("snapshot", targetDepth)) - { - var unmarshaller = SnapshotUnmarshaller.Instance; - response.Snapshot = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static DeleteSnapshotResponseUnmarshaller _instance = new DeleteSnapshotResponseUnmarshaller(); - - internal static DeleteSnapshotResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteSnapshotResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteUsageLimitRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteUsageLimitRequestMarshaller.cs deleted file mode 100644 index ea2faa827dd1..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteUsageLimitRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// DeleteUsageLimit Request Marshaller - /// - public class DeleteUsageLimitRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((DeleteUsageLimitRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(DeleteUsageLimitRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.DeleteUsageLimit"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetUsageLimitId()) - { - context.Writer.WritePropertyName("usageLimitId"); - context.Writer.Write(publicRequest.UsageLimitId); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static DeleteUsageLimitRequestMarshaller _instance = new DeleteUsageLimitRequestMarshaller(); - - internal static DeleteUsageLimitRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteUsageLimitRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteUsageLimitResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteUsageLimitResponseUnmarshaller.cs deleted file mode 100644 index cef626b1622f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteUsageLimitResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for DeleteUsageLimit operation - /// - public class DeleteUsageLimitResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - DeleteUsageLimitResponse response = new DeleteUsageLimitResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("usageLimit", targetDepth)) - { - var unmarshaller = UsageLimitUnmarshaller.Instance; - response.UsageLimit = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static DeleteUsageLimitResponseUnmarshaller _instance = new DeleteUsageLimitResponseUnmarshaller(); - - internal static DeleteUsageLimitResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteUsageLimitResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteWorkgroupRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteWorkgroupRequestMarshaller.cs deleted file mode 100644 index 48f1259f8461..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteWorkgroupRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// DeleteWorkgroup Request Marshaller - /// - public class DeleteWorkgroupRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((DeleteWorkgroupRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(DeleteWorkgroupRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.DeleteWorkgroup"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static DeleteWorkgroupRequestMarshaller _instance = new DeleteWorkgroupRequestMarshaller(); - - internal static DeleteWorkgroupRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteWorkgroupRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteWorkgroupResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteWorkgroupResponseUnmarshaller.cs deleted file mode 100644 index b0613c653435..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/DeleteWorkgroupResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for DeleteWorkgroup operation - /// - public class DeleteWorkgroupResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - DeleteWorkgroupResponse response = new DeleteWorkgroupResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("workgroup", targetDepth)) - { - var unmarshaller = WorkgroupUnmarshaller.Instance; - response.Workgroup = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static DeleteWorkgroupResponseUnmarshaller _instance = new DeleteWorkgroupResponseUnmarshaller(); - - internal static DeleteWorkgroupResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static DeleteWorkgroupResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/EndpointAccessUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/EndpointAccessUnmarshaller.cs deleted file mode 100644 index d8e3e942f65a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/EndpointAccessUnmarshaller.cs +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for EndpointAccess Object - /// - public class EndpointAccessUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - EndpointAccess IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public EndpointAccess Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - EndpointAccess unmarshalledObject = new EndpointAccess(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("address", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Address = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("endpointArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.EndpointArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("endpointCreateTime", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - unmarshalledObject.EndpointCreateTime = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("endpointName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.EndpointName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("endpointStatus", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.EndpointStatus = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("port", targetDepth)) - { - var unmarshaller = IntUnmarshaller.Instance; - unmarshalledObject.Port = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("subnetIds", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.SubnetIds = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("vpcEndpoint", targetDepth)) - { - var unmarshaller = VpcEndpointUnmarshaller.Instance; - unmarshalledObject.VpcEndpoint = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("vpcSecurityGroups", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(VpcSecurityGroupMembershipUnmarshaller.Instance); - unmarshalledObject.VpcSecurityGroups = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("workgroupName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.WorkgroupName = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static EndpointAccessUnmarshaller _instance = new EndpointAccessUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static EndpointAccessUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs deleted file mode 100644 index 76ab8ea5a388..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/EndpointUnmarshaller.cs +++ /dev/null @@ -1,104 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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("address", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Address = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("port", targetDepth)) - { - var unmarshaller = IntUnmarshaller.Instance; - unmarshalledObject.Port = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("vpcEndpoints", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(VpcEndpointUnmarshaller.Instance); - unmarshalledObject.VpcEndpoints = 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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetCredentialsRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetCredentialsRequestMarshaller.cs deleted file mode 100644 index 1d17e82505e8..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetCredentialsRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetCredentials Request Marshaller - /// - public class GetCredentialsRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetCredentialsRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetCredentialsRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetCredentials"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetDbName()) - { - context.Writer.WritePropertyName("dbName"); - context.Writer.Write(publicRequest.DbName); - } - - if(publicRequest.IsSetDurationSeconds()) - { - context.Writer.WritePropertyName("durationSeconds"); - context.Writer.Write(publicRequest.DurationSeconds); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetCredentialsRequestMarshaller _instance = new GetCredentialsRequestMarshaller(); - - internal static GetCredentialsRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetCredentialsRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetCredentialsResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetCredentialsResponseUnmarshaller.cs deleted file mode 100644 index 5216bc6547a7..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetCredentialsResponseUnmarshaller.cs +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetCredentials operation - /// - public class GetCredentialsResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetCredentialsResponse response = new GetCredentialsResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("dbPassword", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.DbPassword = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("dbUser", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.DbUser = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("expiration", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - response.Expiration = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("nextRefreshTime", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - response.NextRefreshTime = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetCredentialsResponseUnmarshaller _instance = new GetCredentialsResponseUnmarshaller(); - - internal static GetCredentialsResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetCredentialsResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetEndpointAccessRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetEndpointAccessRequestMarshaller.cs deleted file mode 100644 index e42e0909747a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetEndpointAccessRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetEndpointAccess Request Marshaller - /// - public class GetEndpointAccessRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetEndpointAccessRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetEndpointAccessRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetEndpointAccess"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetEndpointName()) - { - context.Writer.WritePropertyName("endpointName"); - context.Writer.Write(publicRequest.EndpointName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetEndpointAccessRequestMarshaller _instance = new GetEndpointAccessRequestMarshaller(); - - internal static GetEndpointAccessRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetEndpointAccessRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetEndpointAccessResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetEndpointAccessResponseUnmarshaller.cs deleted file mode 100644 index 2afecfe0f56d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetEndpointAccessResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetEndpointAccess operation - /// - public class GetEndpointAccessResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetEndpointAccessResponse response = new GetEndpointAccessResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("endpoint", targetDepth)) - { - var unmarshaller = EndpointAccessUnmarshaller.Instance; - response.Endpoint = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetEndpointAccessResponseUnmarshaller _instance = new GetEndpointAccessResponseUnmarshaller(); - - internal static GetEndpointAccessResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetEndpointAccessResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetNamespaceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetNamespaceRequestMarshaller.cs deleted file mode 100644 index 2f50aefbdb17..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetNamespaceRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetNamespace Request Marshaller - /// - public class GetNamespaceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetNamespaceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetNamespaceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetNamespace"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetNamespaceRequestMarshaller _instance = new GetNamespaceRequestMarshaller(); - - internal static GetNamespaceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetNamespaceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetNamespaceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetNamespaceResponseUnmarshaller.cs deleted file mode 100644 index d18f0fd134c5..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetNamespaceResponseUnmarshaller.cs +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetNamespace operation - /// - public class GetNamespaceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetNamespaceResponse response = new GetNamespaceResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespace", targetDepth)) - { - var unmarshaller = NamespaceUnmarshaller.Instance; - response.Namespace = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetNamespaceResponseUnmarshaller _instance = new GetNamespaceResponseUnmarshaller(); - - internal static GetNamespaceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetNamespaceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetRecoveryPointRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetRecoveryPointRequestMarshaller.cs deleted file mode 100644 index c62e6ed556d0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetRecoveryPointRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetRecoveryPoint Request Marshaller - /// - public class GetRecoveryPointRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetRecoveryPointRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetRecoveryPointRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetRecoveryPoint"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetRecoveryPointId()) - { - context.Writer.WritePropertyName("recoveryPointId"); - context.Writer.Write(publicRequest.RecoveryPointId); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetRecoveryPointRequestMarshaller _instance = new GetRecoveryPointRequestMarshaller(); - - internal static GetRecoveryPointRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetRecoveryPointRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetRecoveryPointResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetRecoveryPointResponseUnmarshaller.cs deleted file mode 100644 index 278cbe4d7d27..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetRecoveryPointResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetRecoveryPoint operation - /// - public class GetRecoveryPointResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetRecoveryPointResponse response = new GetRecoveryPointResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("recoveryPoint", targetDepth)) - { - var unmarshaller = RecoveryPointUnmarshaller.Instance; - response.RecoveryPoint = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetRecoveryPointResponseUnmarshaller _instance = new GetRecoveryPointResponseUnmarshaller(); - - internal static GetRecoveryPointResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetRecoveryPointResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetResourcePolicyRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetResourcePolicyRequestMarshaller.cs deleted file mode 100644 index 06474735de1d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetResourcePolicyRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetResourcePolicy Request Marshaller - /// - public class GetResourcePolicyRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetResourcePolicyRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetResourcePolicyRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetResourcePolicy"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetResourcePolicyRequestMarshaller _instance = new GetResourcePolicyRequestMarshaller(); - - internal static GetResourcePolicyRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetResourcePolicyRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetResourcePolicyResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetResourcePolicyResponseUnmarshaller.cs deleted file mode 100644 index 547cd59bd47f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetResourcePolicyResponseUnmarshaller.cs +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetResourcePolicy operation - /// - public class GetResourcePolicyResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetResourcePolicyResponse response = new GetResourcePolicyResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("resourcePolicy", targetDepth)) - { - var unmarshaller = ResourcePolicyUnmarshaller.Instance; - response.ResourcePolicy = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetResourcePolicyResponseUnmarshaller _instance = new GetResourcePolicyResponseUnmarshaller(); - - internal static GetResourcePolicyResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetResourcePolicyResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetSnapshotRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetSnapshotRequestMarshaller.cs deleted file mode 100644 index f91da5cc7db2..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetSnapshotRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetSnapshot Request Marshaller - /// - public class GetSnapshotRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetSnapshotRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetSnapshotRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetSnapshot"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetOwnerAccount()) - { - context.Writer.WritePropertyName("ownerAccount"); - context.Writer.Write(publicRequest.OwnerAccount); - } - - if(publicRequest.IsSetSnapshotArn()) - { - context.Writer.WritePropertyName("snapshotArn"); - context.Writer.Write(publicRequest.SnapshotArn); - } - - if(publicRequest.IsSetSnapshotName()) - { - context.Writer.WritePropertyName("snapshotName"); - context.Writer.Write(publicRequest.SnapshotName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetSnapshotRequestMarshaller _instance = new GetSnapshotRequestMarshaller(); - - internal static GetSnapshotRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetSnapshotRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetSnapshotResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetSnapshotResponseUnmarshaller.cs deleted file mode 100644 index 91f388005dd7..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetSnapshotResponseUnmarshaller.cs +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetSnapshot operation - /// - public class GetSnapshotResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetSnapshotResponse response = new GetSnapshotResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("snapshot", targetDepth)) - { - var unmarshaller = SnapshotUnmarshaller.Instance; - response.Snapshot = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetSnapshotResponseUnmarshaller _instance = new GetSnapshotResponseUnmarshaller(); - - internal static GetSnapshotResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetSnapshotResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetUsageLimitRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetUsageLimitRequestMarshaller.cs deleted file mode 100644 index bf68e6d25571..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetUsageLimitRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetUsageLimit Request Marshaller - /// - public class GetUsageLimitRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetUsageLimitRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetUsageLimitRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetUsageLimit"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetUsageLimitId()) - { - context.Writer.WritePropertyName("usageLimitId"); - context.Writer.Write(publicRequest.UsageLimitId); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetUsageLimitRequestMarshaller _instance = new GetUsageLimitRequestMarshaller(); - - internal static GetUsageLimitRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetUsageLimitRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetUsageLimitResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetUsageLimitResponseUnmarshaller.cs deleted file mode 100644 index 6cc2ab14e524..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetUsageLimitResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetUsageLimit operation - /// - public class GetUsageLimitResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetUsageLimitResponse response = new GetUsageLimitResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("usageLimit", targetDepth)) - { - var unmarshaller = UsageLimitUnmarshaller.Instance; - response.UsageLimit = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetUsageLimitResponseUnmarshaller _instance = new GetUsageLimitResponseUnmarshaller(); - - internal static GetUsageLimitResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetUsageLimitResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetWorkgroupRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetWorkgroupRequestMarshaller.cs deleted file mode 100644 index a366910d3d1b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetWorkgroupRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// GetWorkgroup Request Marshaller - /// - public class GetWorkgroupRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((GetWorkgroupRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(GetWorkgroupRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.GetWorkgroup"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static GetWorkgroupRequestMarshaller _instance = new GetWorkgroupRequestMarshaller(); - - internal static GetWorkgroupRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetWorkgroupRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetWorkgroupResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetWorkgroupResponseUnmarshaller.cs deleted file mode 100644 index 6c03b1da9a87..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/GetWorkgroupResponseUnmarshaller.cs +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for GetWorkgroup operation - /// - public class GetWorkgroupResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - GetWorkgroupResponse response = new GetWorkgroupResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("workgroup", targetDepth)) - { - var unmarshaller = WorkgroupUnmarshaller.Instance; - response.Workgroup = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static GetWorkgroupResponseUnmarshaller _instance = new GetWorkgroupResponseUnmarshaller(); - - internal static GetWorkgroupResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static GetWorkgroupResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InsufficientCapacityExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InsufficientCapacityExceptionUnmarshaller.cs deleted file mode 100644 index 35951ac0932d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InsufficientCapacityExceptionUnmarshaller.cs +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for InsufficientCapacityException Object - /// - public class InsufficientCapacityExceptionUnmarshaller : IErrorResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public InsufficientCapacityException Unmarshall(JsonUnmarshallerContext context) - { - return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public InsufficientCapacityException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) - { - context.Read(); - - InsufficientCapacityException unmarshalledObject = new InsufficientCapacityException(errorResponse.Message, errorResponse.InnerException, - errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - } - - return unmarshalledObject; - } - - private static InsufficientCapacityExceptionUnmarshaller _instance = new InsufficientCapacityExceptionUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static InsufficientCapacityExceptionUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs deleted file mode 100644 index 0f388587da03..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InternalServerExceptionUnmarshaller.cs +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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 Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public InternalServerException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InvalidPaginationExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InvalidPaginationExceptionUnmarshaller.cs deleted file mode 100644 index e1e0d7ab5546..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/InvalidPaginationExceptionUnmarshaller.cs +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for InvalidPaginationException Object - /// - public class InvalidPaginationExceptionUnmarshaller : IErrorResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public InvalidPaginationException Unmarshall(JsonUnmarshallerContext context) - { - return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public InvalidPaginationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) - { - context.Read(); - - InvalidPaginationException unmarshalledObject = new InvalidPaginationException(errorResponse.Message, errorResponse.InnerException, - errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - } - - return unmarshalledObject; - } - - private static InvalidPaginationExceptionUnmarshaller _instance = new InvalidPaginationExceptionUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static InvalidPaginationExceptionUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListEndpointAccessRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListEndpointAccessRequestMarshaller.cs deleted file mode 100644 index 1ca03a27a42f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListEndpointAccessRequestMarshaller.cs +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListEndpointAccess Request Marshaller - /// - public class ListEndpointAccessRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListEndpointAccessRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListEndpointAccessRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListEndpointAccess"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetMaxResults()) - { - context.Writer.WritePropertyName("maxResults"); - context.Writer.Write(publicRequest.MaxResults); - } - - if(publicRequest.IsSetNextToken()) - { - context.Writer.WritePropertyName("nextToken"); - context.Writer.Write(publicRequest.NextToken); - } - - if(publicRequest.IsSetVpcId()) - { - context.Writer.WritePropertyName("vpcId"); - context.Writer.Write(publicRequest.VpcId); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListEndpointAccessRequestMarshaller _instance = new ListEndpointAccessRequestMarshaller(); - - internal static ListEndpointAccessRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListEndpointAccessRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListEndpointAccessResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListEndpointAccessResponseUnmarshaller.cs deleted file mode 100644 index 11f6ac943f9e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListEndpointAccessResponseUnmarshaller.cs +++ /dev/null @@ -1,128 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListEndpointAccess operation - /// - public class ListEndpointAccessResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListEndpointAccessResponse response = new ListEndpointAccessResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("endpoints", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(EndpointAccessUnmarshaller.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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListEndpointAccessResponseUnmarshaller _instance = new ListEndpointAccessResponseUnmarshaller(); - - internal static ListEndpointAccessResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListEndpointAccessResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListNamespacesRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListNamespacesRequestMarshaller.cs deleted file mode 100644 index 7b3796fcd53f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListNamespacesRequestMarshaller.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListNamespaces Request Marshaller - /// - public class ListNamespacesRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListNamespacesRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListNamespacesRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListNamespaces"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetMaxResults()) - { - context.Writer.WritePropertyName("maxResults"); - context.Writer.Write(publicRequest.MaxResults); - } - - if(publicRequest.IsSetNextToken()) - { - context.Writer.WritePropertyName("nextToken"); - context.Writer.Write(publicRequest.NextToken); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListNamespacesRequestMarshaller _instance = new ListNamespacesRequestMarshaller(); - - internal static ListNamespacesRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListNamespacesRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListNamespacesResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListNamespacesResponseUnmarshaller.cs deleted file mode 100644 index dd52f733a23e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListNamespacesResponseUnmarshaller.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListNamespaces operation - /// - public class ListNamespacesResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListNamespacesResponse response = new ListNamespacesResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespaces", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(NamespaceUnmarshaller.Instance); - response.Namespaces = 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("InternalServerException")) - { - return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListNamespacesResponseUnmarshaller _instance = new ListNamespacesResponseUnmarshaller(); - - internal static ListNamespacesResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListNamespacesResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListRecoveryPointsRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListRecoveryPointsRequestMarshaller.cs deleted file mode 100644 index 91f76d85cd91..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListRecoveryPointsRequestMarshaller.cs +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListRecoveryPoints Request Marshaller - /// - public class ListRecoveryPointsRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListRecoveryPointsRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListRecoveryPointsRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListRecoveryPoints"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetEndTime()) - { - context.Writer.WritePropertyName("endTime"); - context.Writer.Write(publicRequest.EndTime); - } - - if(publicRequest.IsSetMaxResults()) - { - context.Writer.WritePropertyName("maxResults"); - context.Writer.Write(publicRequest.MaxResults); - } - - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetNextToken()) - { - context.Writer.WritePropertyName("nextToken"); - context.Writer.Write(publicRequest.NextToken); - } - - if(publicRequest.IsSetStartTime()) - { - context.Writer.WritePropertyName("startTime"); - context.Writer.Write(publicRequest.StartTime); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListRecoveryPointsRequestMarshaller _instance = new ListRecoveryPointsRequestMarshaller(); - - internal static ListRecoveryPointsRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListRecoveryPointsRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListRecoveryPointsResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListRecoveryPointsResponseUnmarshaller.cs deleted file mode 100644 index 68d3106fa379..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListRecoveryPointsResponseUnmarshaller.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListRecoveryPoints operation - /// - public class ListRecoveryPointsResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListRecoveryPointsResponse response = new ListRecoveryPointsResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("nextToken", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.NextToken = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("recoveryPoints", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(RecoveryPointUnmarshaller.Instance); - response.RecoveryPoints = 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("InternalServerException")) - { - return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListRecoveryPointsResponseUnmarshaller _instance = new ListRecoveryPointsResponseUnmarshaller(); - - internal static ListRecoveryPointsResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListRecoveryPointsResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListSnapshotsRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListSnapshotsRequestMarshaller.cs deleted file mode 100644 index 17776276dc8b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListSnapshotsRequestMarshaller.cs +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListSnapshots Request Marshaller - /// - public class ListSnapshotsRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListSnapshotsRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListSnapshotsRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListSnapshots"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetEndTime()) - { - context.Writer.WritePropertyName("endTime"); - context.Writer.Write(publicRequest.EndTime); - } - - if(publicRequest.IsSetMaxResults()) - { - context.Writer.WritePropertyName("maxResults"); - context.Writer.Write(publicRequest.MaxResults); - } - - if(publicRequest.IsSetNamespaceArn()) - { - context.Writer.WritePropertyName("namespaceArn"); - context.Writer.Write(publicRequest.NamespaceArn); - } - - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetNextToken()) - { - context.Writer.WritePropertyName("nextToken"); - context.Writer.Write(publicRequest.NextToken); - } - - if(publicRequest.IsSetOwnerAccount()) - { - context.Writer.WritePropertyName("ownerAccount"); - context.Writer.Write(publicRequest.OwnerAccount); - } - - if(publicRequest.IsSetStartTime()) - { - context.Writer.WritePropertyName("startTime"); - context.Writer.Write(publicRequest.StartTime); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListSnapshotsRequestMarshaller _instance = new ListSnapshotsRequestMarshaller(); - - internal static ListSnapshotsRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListSnapshotsRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListSnapshotsResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListSnapshotsResponseUnmarshaller.cs deleted file mode 100644 index 0f66b49fc1b0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListSnapshotsResponseUnmarshaller.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListSnapshots operation - /// - public class ListSnapshotsResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListSnapshotsResponse response = new ListSnapshotsResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("nextToken", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.NextToken = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshots", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(SnapshotUnmarshaller.Instance); - response.Snapshots = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListSnapshotsResponseUnmarshaller _instance = new ListSnapshotsResponseUnmarshaller(); - - internal static ListSnapshotsResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListSnapshotsResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs deleted file mode 100644 index eb76cdf76172..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceRequestMarshaller.cs +++ /dev/null @@ -1,103 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListTagsForResource Request Marshaller - /// - public class ListTagsForResourceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListTagsForResourceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListTagsForResourceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListTagsForResource"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); - - internal static ListTagsForResourceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListTagsForResourceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs deleted file mode 100644 index 5f42986e1e8c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListTagsForResourceResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListTagsForResource operation - /// - public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListTagsForResourceResponse response = new ListTagsForResourceResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("tags", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(TagUnmarshaller.Instance); - response.Tags = 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("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("ThrottlingException")) - { - return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); - - internal static ListTagsForResourceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListTagsForResourceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListUsageLimitsRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListUsageLimitsRequestMarshaller.cs deleted file mode 100644 index 68abf89f929e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListUsageLimitsRequestMarshaller.cs +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListUsageLimits Request Marshaller - /// - public class ListUsageLimitsRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListUsageLimitsRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListUsageLimitsRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListUsageLimits"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetMaxResults()) - { - context.Writer.WritePropertyName("maxResults"); - context.Writer.Write(publicRequest.MaxResults); - } - - if(publicRequest.IsSetNextToken()) - { - context.Writer.WritePropertyName("nextToken"); - context.Writer.Write(publicRequest.NextToken); - } - - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - if(publicRequest.IsSetUsageType()) - { - context.Writer.WritePropertyName("usageType"); - context.Writer.Write(publicRequest.UsageType); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListUsageLimitsRequestMarshaller _instance = new ListUsageLimitsRequestMarshaller(); - - internal static ListUsageLimitsRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListUsageLimitsRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListUsageLimitsResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListUsageLimitsResponseUnmarshaller.cs deleted file mode 100644 index 7c65b083786c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListUsageLimitsResponseUnmarshaller.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListUsageLimits operation - /// - public class ListUsageLimitsResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListUsageLimitsResponse response = new ListUsageLimitsResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("nextToken", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.NextToken = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("usageLimits", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(UsageLimitUnmarshaller.Instance); - response.UsageLimits = 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("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("InvalidPaginationException")) - { - return InvalidPaginationExceptionUnmarshaller.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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListUsageLimitsResponseUnmarshaller _instance = new ListUsageLimitsResponseUnmarshaller(); - - internal static ListUsageLimitsResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListUsageLimitsResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListWorkgroupsRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListWorkgroupsRequestMarshaller.cs deleted file mode 100644 index ffd248a258d5..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListWorkgroupsRequestMarshaller.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// ListWorkgroups Request Marshaller - /// - public class ListWorkgroupsRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((ListWorkgroupsRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(ListWorkgroupsRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.ListWorkgroups"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetMaxResults()) - { - context.Writer.WritePropertyName("maxResults"); - context.Writer.Write(publicRequest.MaxResults); - } - - if(publicRequest.IsSetNextToken()) - { - context.Writer.WritePropertyName("nextToken"); - context.Writer.Write(publicRequest.NextToken); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static ListWorkgroupsRequestMarshaller _instance = new ListWorkgroupsRequestMarshaller(); - - internal static ListWorkgroupsRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListWorkgroupsRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListWorkgroupsResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListWorkgroupsResponseUnmarshaller.cs deleted file mode 100644 index c63ecafcf134..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ListWorkgroupsResponseUnmarshaller.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ListWorkgroups operation - /// - public class ListWorkgroupsResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - ListWorkgroupsResponse response = new ListWorkgroupsResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("nextToken", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.NextToken = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("workgroups", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(WorkgroupUnmarshaller.Instance); - response.Workgroups = 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("InternalServerException")) - { - return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static ListWorkgroupsResponseUnmarshaller _instance = new ListWorkgroupsResponseUnmarshaller(); - - internal static ListWorkgroupsResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static ListWorkgroupsResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/NamespaceUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/NamespaceUnmarshaller.cs deleted file mode 100644 index 45b0358b031c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/NamespaceUnmarshaller.cs +++ /dev/null @@ -1,152 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for Namespace Object - /// - public class NamespaceUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - Namespace IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public Namespace Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - Namespace unmarshalledObject = new Namespace(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("adminUsername", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.AdminUsername = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("creationDate", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("dbName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.DbName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("defaultIamRoleArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.DefaultIamRoleArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("iamRoles", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.IamRoles = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("kmsKeyId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.KmsKeyId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("logExports", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.LogExports = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("namespaceArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("namespaceId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("namespaceName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("status", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Status = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static NamespaceUnmarshaller _instance = new NamespaceUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static NamespaceUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs deleted file mode 100644 index 73f604f16722..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/NetworkInterfaceUnmarshaller.cs +++ /dev/null @@ -1,110 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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("availabilityZone", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.AvailabilityZone = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("networkInterfaceId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NetworkInterfaceId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("privateIpAddress", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.PrivateIpAddress = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("subnetId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.SubnetId = 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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/PutResourcePolicyRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/PutResourcePolicyRequestMarshaller.cs deleted file mode 100644 index 4c70b8181232..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/PutResourcePolicyRequestMarshaller.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// PutResourcePolicy Request Marshaller - /// - public class PutResourcePolicyRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((PutResourcePolicyRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(PutResourcePolicyRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.PutResourcePolicy"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetPolicy()) - { - context.Writer.WritePropertyName("policy"); - context.Writer.Write(publicRequest.Policy); - } - - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static PutResourcePolicyRequestMarshaller _instance = new PutResourcePolicyRequestMarshaller(); - - internal static PutResourcePolicyRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static PutResourcePolicyRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/PutResourcePolicyResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/PutResourcePolicyResponseUnmarshaller.cs deleted file mode 100644 index e29f2bdcd7ca..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/PutResourcePolicyResponseUnmarshaller.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for PutResourcePolicy operation - /// - public class PutResourcePolicyResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - PutResourcePolicyResponse response = new PutResourcePolicyResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("resourcePolicy", targetDepth)) - { - var unmarshaller = ResourcePolicyUnmarshaller.Instance; - response.ResourcePolicy = 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("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("ServiceQuotaExceededException")) - { - return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static PutResourcePolicyResponseUnmarshaller _instance = new PutResourcePolicyResponseUnmarshaller(); - - internal static PutResourcePolicyResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static PutResourcePolicyResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RecoveryPointUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RecoveryPointUnmarshaller.cs deleted file mode 100644 index aea933140a3f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RecoveryPointUnmarshaller.cs +++ /dev/null @@ -1,116 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for RecoveryPoint Object - /// - public class RecoveryPointUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - RecoveryPoint IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public RecoveryPoint Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - RecoveryPoint unmarshalledObject = new RecoveryPoint(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespaceName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("recoveryPointCreateTime", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - unmarshalledObject.RecoveryPointCreateTime = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("recoveryPointId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.RecoveryPointId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("totalSizeInMegaBytes", targetDepth)) - { - var unmarshaller = DoubleUnmarshaller.Instance; - unmarshalledObject.TotalSizeInMegaBytes = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("workgroupName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.WorkgroupName = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static RecoveryPointUnmarshaller _instance = new RecoveryPointUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static RecoveryPointUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs deleted file mode 100644 index 8a0052d97b50..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ResourceNotFoundExceptionUnmarshaller.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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 Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.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)) - { - if (context.TestExpression("resourceName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context); - continue; - } - } - - 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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ResourcePolicyUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ResourcePolicyUnmarshaller.cs deleted file mode 100644 index 6302b79d269a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ResourcePolicyUnmarshaller.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ResourcePolicy Object - /// - public class ResourcePolicyUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - ResourcePolicy IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public ResourcePolicy Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - ResourcePolicy unmarshalledObject = new ResourcePolicy(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("policy", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Policy = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("resourceArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static ResourcePolicyUnmarshaller _instance = new ResourcePolicyUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static ResourcePolicyUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromRecoveryPointRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromRecoveryPointRequestMarshaller.cs deleted file mode 100644 index dabeb93e13d0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromRecoveryPointRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// RestoreFromRecoveryPoint Request Marshaller - /// - public class RestoreFromRecoveryPointRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((RestoreFromRecoveryPointRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(RestoreFromRecoveryPointRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.RestoreFromRecoveryPoint"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetRecoveryPointId()) - { - context.Writer.WritePropertyName("recoveryPointId"); - context.Writer.Write(publicRequest.RecoveryPointId); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static RestoreFromRecoveryPointRequestMarshaller _instance = new RestoreFromRecoveryPointRequestMarshaller(); - - internal static RestoreFromRecoveryPointRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static RestoreFromRecoveryPointRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromRecoveryPointResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromRecoveryPointResponseUnmarshaller.cs deleted file mode 100644 index fd2a83eaf951..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromRecoveryPointResponseUnmarshaller.cs +++ /dev/null @@ -1,128 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for RestoreFromRecoveryPoint operation - /// - public class RestoreFromRecoveryPointResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - RestoreFromRecoveryPointResponse response = new RestoreFromRecoveryPointResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespace", targetDepth)) - { - var unmarshaller = NamespaceUnmarshaller.Instance; - response.Namespace = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("recoveryPointId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.RecoveryPointId = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static RestoreFromRecoveryPointResponseUnmarshaller _instance = new RestoreFromRecoveryPointResponseUnmarshaller(); - - internal static RestoreFromRecoveryPointResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static RestoreFromRecoveryPointResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromSnapshotRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromSnapshotRequestMarshaller.cs deleted file mode 100644 index c87caee89325..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromSnapshotRequestMarshaller.cs +++ /dev/null @@ -1,127 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// RestoreFromSnapshot Request Marshaller - /// - public class RestoreFromSnapshotRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((RestoreFromSnapshotRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(RestoreFromSnapshotRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.RestoreFromSnapshot"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - if(publicRequest.IsSetOwnerAccount()) - { - context.Writer.WritePropertyName("ownerAccount"); - context.Writer.Write(publicRequest.OwnerAccount); - } - - if(publicRequest.IsSetSnapshotArn()) - { - context.Writer.WritePropertyName("snapshotArn"); - context.Writer.Write(publicRequest.SnapshotArn); - } - - if(publicRequest.IsSetSnapshotName()) - { - context.Writer.WritePropertyName("snapshotName"); - context.Writer.Write(publicRequest.SnapshotName); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static RestoreFromSnapshotRequestMarshaller _instance = new RestoreFromSnapshotRequestMarshaller(); - - internal static RestoreFromSnapshotRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static RestoreFromSnapshotRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromSnapshotResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromSnapshotResponseUnmarshaller.cs deleted file mode 100644 index 3704c0324332..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/RestoreFromSnapshotResponseUnmarshaller.cs +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for RestoreFromSnapshot operation - /// - public class RestoreFromSnapshotResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - RestoreFromSnapshotResponse response = new RestoreFromSnapshotResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespace", targetDepth)) - { - var unmarshaller = NamespaceUnmarshaller.Instance; - response.Namespace = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("ownerAccount", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.OwnerAccount = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - response.SnapshotName = 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("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("ServiceQuotaExceededException")) - { - return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static RestoreFromSnapshotResponseUnmarshaller _instance = new RestoreFromSnapshotResponseUnmarshaller(); - - internal static RestoreFromSnapshotResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static RestoreFromSnapshotResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs deleted file mode 100644 index 102ae06aae80..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ServiceQuotaExceededExceptionUnmarshaller.cs +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ServiceQuotaExceededException Object - /// - public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context) - { - return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) - { - context.Read(); - - ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException, - errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - } - - return unmarshalledObject; - } - - private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static ServiceQuotaExceededExceptionUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/SnapshotUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/SnapshotUnmarshaller.cs deleted file mode 100644 index 86a40387c3a6..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/SnapshotUnmarshaller.cs +++ /dev/null @@ -1,206 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for Snapshot Object - /// - public class SnapshotUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - Snapshot IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public Snapshot Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - Snapshot unmarshalledObject = new Snapshot(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("accountsWithProvisionedRestoreAccess", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.AccountsWithProvisionedRestoreAccess = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("accountsWithRestoreAccess", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.AccountsWithRestoreAccess = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("actualIncrementalBackupSizeInMegaBytes", targetDepth)) - { - var unmarshaller = DoubleUnmarshaller.Instance; - unmarshalledObject.ActualIncrementalBackupSizeInMegaBytes = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("adminUsername", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.AdminUsername = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("backupProgressInMegaBytes", targetDepth)) - { - var unmarshaller = DoubleUnmarshaller.Instance; - unmarshalledObject.BackupProgressInMegaBytes = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("currentBackupRateInMegaBytesPerSecond", targetDepth)) - { - var unmarshaller = DoubleUnmarshaller.Instance; - unmarshalledObject.CurrentBackupRateInMegaBytesPerSecond = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("elapsedTimeInSeconds", targetDepth)) - { - var unmarshaller = LongUnmarshaller.Instance; - unmarshalledObject.ElapsedTimeInSeconds = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("estimatedSecondsToCompletion", targetDepth)) - { - var unmarshaller = LongUnmarshaller.Instance; - unmarshalledObject.EstimatedSecondsToCompletion = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("kmsKeyId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.KmsKeyId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("namespaceArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("namespaceName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("ownerAccount", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.OwnerAccount = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.SnapshotArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotCreateTime", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - unmarshalledObject.SnapshotCreateTime = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.SnapshotName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotRemainingDays", targetDepth)) - { - var unmarshaller = IntUnmarshaller.Instance; - unmarshalledObject.SnapshotRemainingDays = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotRetentionPeriod", targetDepth)) - { - var unmarshaller = IntUnmarshaller.Instance; - unmarshalledObject.SnapshotRetentionPeriod = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("snapshotRetentionStartTime", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - unmarshalledObject.SnapshotRetentionStartTime = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("status", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Status = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("totalBackupSizeInMegaBytes", targetDepth)) - { - var unmarshaller = DoubleUnmarshaller.Instance; - unmarshalledObject.TotalBackupSizeInMegaBytes = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static SnapshotUnmarshaller _instance = new SnapshotUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static SnapshotUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs deleted file mode 100644 index d08f204dbaba..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagMarshaller.cs +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Tag Marshaller - /// - public class TagMarshaller : IRequestMarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public void Marshall(Tag requestObject, JsonMarshallerContext context) - { - if(requestObject.IsSetKey()) - { - context.Writer.WritePropertyName("key"); - context.Writer.Write(requestObject.Key); - } - - if(requestObject.IsSetValue()) - { - context.Writer.WritePropertyName("value"); - context.Writer.Write(requestObject.Value); - } - - } - - /// - /// Singleton Marshaller. - /// - public readonly static TagMarshaller Instance = new TagMarshaller(); - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs deleted file mode 100644 index f239dd8e78b5..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagResourceRequestMarshaller.cs +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// TagResource Request Marshaller - /// - public class TagResourceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((TagResourceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(TagResourceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.TagResource"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - if(publicRequest.IsSetTags()) - { - context.Writer.WritePropertyName("tags"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestTagsListValue in publicRequest.Tags) - { - context.Writer.WriteObjectStart(); - - var marshaller = TagMarshaller.Instance; - marshaller.Marshall(publicRequestTagsListValue, context); - - context.Writer.WriteObjectEnd(); - } - context.Writer.WriteArrayEnd(); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); - - internal static TagResourceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static TagResourceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs deleted file mode 100644 index 7e75b96e0bc6..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagResourceResponseUnmarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for TagResource operation - /// - public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - TagResourceResponse response = new TagResourceResponse(); - - - 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("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("ThrottlingException")) - { - return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException")) - { - return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); - - internal static TagResourceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static TagResourceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs deleted file mode 100644 index f268be912237..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TagUnmarshaller.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for Tag Object - /// - public class TagUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - Tag IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public Tag Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - Tag unmarshalledObject = new Tag(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("key", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Key = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("value", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Value = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static TagUnmarshaller _instance = new TagUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static TagUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs deleted file mode 100644 index e8cb81f2de2c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ThrottlingExceptionUnmarshaller.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for ThrottlingException Object - /// - public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public ThrottlingException Unmarshall(JsonUnmarshallerContext context) - { - return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) - { - context.Read(); - - ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, - errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("code", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Code = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static ThrottlingExceptionUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TooManyTagsExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TooManyTagsExceptionUnmarshaller.cs deleted file mode 100644 index 872f6c5224be..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/TooManyTagsExceptionUnmarshaller.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for TooManyTagsException Object - /// - public class TooManyTagsExceptionUnmarshaller : IErrorResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public TooManyTagsException Unmarshall(JsonUnmarshallerContext context) - { - return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public TooManyTagsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) - { - context.Read(); - - TooManyTagsException unmarshalledObject = new TooManyTagsException(errorResponse.Message, errorResponse.InnerException, - errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("resourceName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - private static TooManyTagsExceptionUnmarshaller _instance = new TooManyTagsExceptionUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static TooManyTagsExceptionUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs deleted file mode 100644 index 64f5e97576c1..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UntagResourceRequestMarshaller.cs +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// UntagResource Request Marshaller - /// - public class UntagResourceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((UntagResourceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(UntagResourceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.UntagResource"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetResourceArn()) - { - context.Writer.WritePropertyName("resourceArn"); - context.Writer.Write(publicRequest.ResourceArn); - } - - if(publicRequest.IsSetTagKeys()) - { - context.Writer.WritePropertyName("tagKeys"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys) - { - context.Writer.Write(publicRequestTagKeysListValue); - } - context.Writer.WriteArrayEnd(); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); - - internal static UntagResourceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UntagResourceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs deleted file mode 100644 index 8765442dcbcb..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UntagResourceResponseUnmarshaller.cs +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UntagResource operation - /// - public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - UntagResourceResponse response = new UntagResourceResponse(); - - - 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("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("ThrottlingException")) - { - return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) - { - return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - } - return new AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller(); - - internal static UntagResourceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UntagResourceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateEndpointAccessRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateEndpointAccessRequestMarshaller.cs deleted file mode 100644 index 1f6b056f71f3..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateEndpointAccessRequestMarshaller.cs +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// UpdateEndpointAccess Request Marshaller - /// - public class UpdateEndpointAccessRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((UpdateEndpointAccessRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(UpdateEndpointAccessRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.UpdateEndpointAccess"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetEndpointName()) - { - context.Writer.WritePropertyName("endpointName"); - context.Writer.Write(publicRequest.EndpointName); - } - - if(publicRequest.IsSetVpcSecurityGroupIds()) - { - context.Writer.WritePropertyName("vpcSecurityGroupIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestVpcSecurityGroupIdsListValue in publicRequest.VpcSecurityGroupIds) - { - context.Writer.Write(publicRequestVpcSecurityGroupIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static UpdateEndpointAccessRequestMarshaller _instance = new UpdateEndpointAccessRequestMarshaller(); - - internal static UpdateEndpointAccessRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateEndpointAccessRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateEndpointAccessResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateEndpointAccessResponseUnmarshaller.cs deleted file mode 100644 index 88667162b98f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateEndpointAccessResponseUnmarshaller.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UpdateEndpointAccess operation - /// - public class UpdateEndpointAccessResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - UpdateEndpointAccessResponse response = new UpdateEndpointAccessResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("endpoint", targetDepth)) - { - var unmarshaller = EndpointAccessUnmarshaller.Instance; - response.Endpoint = 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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static UpdateEndpointAccessResponseUnmarshaller _instance = new UpdateEndpointAccessResponseUnmarshaller(); - - internal static UpdateEndpointAccessResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateEndpointAccessResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateNamespaceRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateNamespaceRequestMarshaller.cs deleted file mode 100644 index 5fc90b973053..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateNamespaceRequestMarshaller.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// UpdateNamespace Request Marshaller - /// - public class UpdateNamespaceRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((UpdateNamespaceRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(UpdateNamespaceRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.UpdateNamespace"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetAdminUsername()) - { - context.Writer.WritePropertyName("adminUsername"); - context.Writer.Write(publicRequest.AdminUsername); - } - - if(publicRequest.IsSetAdminUserPassword()) - { - context.Writer.WritePropertyName("adminUserPassword"); - context.Writer.Write(publicRequest.AdminUserPassword); - } - - if(publicRequest.IsSetDefaultIamRoleArn()) - { - context.Writer.WritePropertyName("defaultIamRoleArn"); - context.Writer.Write(publicRequest.DefaultIamRoleArn); - } - - if(publicRequest.IsSetIamRoles()) - { - context.Writer.WritePropertyName("iamRoles"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestIamRolesListValue in publicRequest.IamRoles) - { - context.Writer.Write(publicRequestIamRolesListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetKmsKeyId()) - { - context.Writer.WritePropertyName("kmsKeyId"); - context.Writer.Write(publicRequest.KmsKeyId); - } - - if(publicRequest.IsSetLogExports()) - { - context.Writer.WritePropertyName("logExports"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestLogExportsListValue in publicRequest.LogExports) - { - context.Writer.Write(publicRequestLogExportsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetNamespaceName()) - { - context.Writer.WritePropertyName("namespaceName"); - context.Writer.Write(publicRequest.NamespaceName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static UpdateNamespaceRequestMarshaller _instance = new UpdateNamespaceRequestMarshaller(); - - internal static UpdateNamespaceRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateNamespaceRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateNamespaceResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateNamespaceResponseUnmarshaller.cs deleted file mode 100644 index aaa0a6f89c6d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateNamespaceResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UpdateNamespace operation - /// - public class UpdateNamespaceResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - UpdateNamespaceResponse response = new UpdateNamespaceResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("namespace", targetDepth)) - { - var unmarshaller = NamespaceUnmarshaller.Instance; - response.Namespace = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static UpdateNamespaceResponseUnmarshaller _instance = new UpdateNamespaceResponseUnmarshaller(); - - internal static UpdateNamespaceResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateNamespaceResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateSnapshotRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateSnapshotRequestMarshaller.cs deleted file mode 100644 index d89a56a57be4..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateSnapshotRequestMarshaller.cs +++ /dev/null @@ -1,109 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// UpdateSnapshot Request Marshaller - /// - public class UpdateSnapshotRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((UpdateSnapshotRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(UpdateSnapshotRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.UpdateSnapshot"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetRetentionPeriod()) - { - context.Writer.WritePropertyName("retentionPeriod"); - context.Writer.Write(publicRequest.RetentionPeriod); - } - - if(publicRequest.IsSetSnapshotName()) - { - context.Writer.WritePropertyName("snapshotName"); - context.Writer.Write(publicRequest.SnapshotName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static UpdateSnapshotRequestMarshaller _instance = new UpdateSnapshotRequestMarshaller(); - - internal static UpdateSnapshotRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateSnapshotRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateSnapshotResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateSnapshotResponseUnmarshaller.cs deleted file mode 100644 index bf113868a046..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateSnapshotResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UpdateSnapshot operation - /// - public class UpdateSnapshotResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - UpdateSnapshotResponse response = new UpdateSnapshotResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("snapshot", targetDepth)) - { - var unmarshaller = SnapshotUnmarshaller.Instance; - response.Snapshot = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static UpdateSnapshotResponseUnmarshaller _instance = new UpdateSnapshotResponseUnmarshaller(); - - internal static UpdateSnapshotResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateSnapshotResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateUsageLimitRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateUsageLimitRequestMarshaller.cs deleted file mode 100644 index 48eb826abd58..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateUsageLimitRequestMarshaller.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// UpdateUsageLimit Request Marshaller - /// - public class UpdateUsageLimitRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((UpdateUsageLimitRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(UpdateUsageLimitRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.UpdateUsageLimit"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetAmount()) - { - context.Writer.WritePropertyName("amount"); - context.Writer.Write(publicRequest.Amount); - } - - if(publicRequest.IsSetBreachAction()) - { - context.Writer.WritePropertyName("breachAction"); - context.Writer.Write(publicRequest.BreachAction); - } - - if(publicRequest.IsSetUsageLimitId()) - { - context.Writer.WritePropertyName("usageLimitId"); - context.Writer.Write(publicRequest.UsageLimitId); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static UpdateUsageLimitRequestMarshaller _instance = new UpdateUsageLimitRequestMarshaller(); - - internal static UpdateUsageLimitRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateUsageLimitRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateUsageLimitResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateUsageLimitResponseUnmarshaller.cs deleted file mode 100644 index 9935208cc997..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateUsageLimitResponseUnmarshaller.cs +++ /dev/null @@ -1,122 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UpdateUsageLimit operation - /// - public class UpdateUsageLimitResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - UpdateUsageLimitResponse response = new UpdateUsageLimitResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("usageLimit", targetDepth)) - { - var unmarshaller = UsageLimitUnmarshaller.Instance; - response.UsageLimit = 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("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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static UpdateUsageLimitResponseUnmarshaller _instance = new UpdateUsageLimitResponseUnmarshaller(); - - internal static UpdateUsageLimitResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateUsageLimitResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateWorkgroupRequestMarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateWorkgroupRequestMarshaller.cs deleted file mode 100644 index 576739b823b8..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateWorkgroupRequestMarshaller.cs +++ /dev/null @@ -1,159 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// UpdateWorkgroup Request Marshaller - /// - public class UpdateWorkgroupRequestMarshaller : IMarshaller , IMarshaller - { - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(AmazonWebServiceRequest input) - { - return this.Marshall((UpdateWorkgroupRequest)input); - } - - /// - /// Marshaller the request object to the HTTP request. - /// - /// - /// - public IRequest Marshall(UpdateWorkgroupRequest publicRequest) - { - IRequest request = new DefaultRequest(publicRequest, "Amazon.RedshiftServerless"); - string target = "RedshiftServerless.UpdateWorkgroup"; - request.Headers["X-Amz-Target"] = target; - request.Headers["Content-Type"] = "application/x-amz-json-1.1"; - request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-04-21"; - request.HttpMethod = "POST"; - - request.ResourcePath = "/"; - using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) - { - JsonWriter writer = new JsonWriter(stringWriter); - writer.WriteObjectStart(); - var context = new JsonMarshallerContext(request, writer); - if(publicRequest.IsSetBaseCapacity()) - { - context.Writer.WritePropertyName("baseCapacity"); - context.Writer.Write(publicRequest.BaseCapacity); - } - - if(publicRequest.IsSetConfigParameters()) - { - context.Writer.WritePropertyName("configParameters"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestConfigParametersListValue in publicRequest.ConfigParameters) - { - context.Writer.WriteObjectStart(); - - var marshaller = ConfigParameterMarshaller.Instance; - marshaller.Marshall(publicRequestConfigParametersListValue, context); - - context.Writer.WriteObjectEnd(); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetEnhancedVpcRouting()) - { - context.Writer.WritePropertyName("enhancedVpcRouting"); - context.Writer.Write(publicRequest.EnhancedVpcRouting); - } - - if(publicRequest.IsSetPubliclyAccessible()) - { - context.Writer.WritePropertyName("publiclyAccessible"); - context.Writer.Write(publicRequest.PubliclyAccessible); - } - - if(publicRequest.IsSetSecurityGroupIds()) - { - context.Writer.WritePropertyName("securityGroupIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestSecurityGroupIdsListValue in publicRequest.SecurityGroupIds) - { - context.Writer.Write(publicRequestSecurityGroupIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetSubnetIds()) - { - context.Writer.WritePropertyName("subnetIds"); - context.Writer.WriteArrayStart(); - foreach(var publicRequestSubnetIdsListValue in publicRequest.SubnetIds) - { - context.Writer.Write(publicRequestSubnetIdsListValue); - } - context.Writer.WriteArrayEnd(); - } - - if(publicRequest.IsSetWorkgroupName()) - { - context.Writer.WritePropertyName("workgroupName"); - context.Writer.Write(publicRequest.WorkgroupName); - } - - writer.WriteObjectEnd(); - string snippet = stringWriter.ToString(); - request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); - } - - - return request; - } - private static UpdateWorkgroupRequestMarshaller _instance = new UpdateWorkgroupRequestMarshaller(); - - internal static UpdateWorkgroupRequestMarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateWorkgroupRequestMarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateWorkgroupResponseUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateWorkgroupResponseUnmarshaller.cs deleted file mode 100644 index 6ce8ce42d663..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UpdateWorkgroupResponseUnmarshaller.cs +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UpdateWorkgroup operation - /// - public class UpdateWorkgroupResponseUnmarshaller : JsonResponseUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) - { - UpdateWorkgroupResponse response = new UpdateWorkgroupResponse(); - - context.Read(); - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("workgroup", targetDepth)) - { - var unmarshaller = WorkgroupUnmarshaller.Instance; - response.Workgroup = 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("ConflictException")) - { - return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); - } - if (errorResponse.Code != null && errorResponse.Code.Equals("InsufficientCapacityException")) - { - return InsufficientCapacityExceptionUnmarshaller.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 AmazonRedshiftServerlessException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); - } - - private static UpdateWorkgroupResponseUnmarshaller _instance = new UpdateWorkgroupResponseUnmarshaller(); - - internal static UpdateWorkgroupResponseUnmarshaller GetInstance() - { - return _instance; - } - - /// - /// Gets the singleton. - /// - public static UpdateWorkgroupResponseUnmarshaller Instance - { - get - { - return _instance; - } - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UsageLimitUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UsageLimitUnmarshaller.cs deleted file mode 100644 index 4b9497405ac7..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/UsageLimitUnmarshaller.cs +++ /dev/null @@ -1,128 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for UsageLimit Object - /// - public class UsageLimitUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - UsageLimit IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public UsageLimit Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - UsageLimit unmarshalledObject = new UsageLimit(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("amount", targetDepth)) - { - var unmarshaller = LongUnmarshaller.Instance; - unmarshalledObject.Amount = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("breachAction", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.BreachAction = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("period", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Period = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("resourceArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("usageLimitArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.UsageLimitArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("usageLimitId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.UsageLimitId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("usageType", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.UsageType = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static UsageLimitUnmarshaller _instance = new UsageLimitUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static UsageLimitUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs deleted file mode 100644 index b886614a0896..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/ValidationExceptionUnmarshaller.cs +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.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 Amazon.Runtime.Internal.ErrorResponse()); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - /// - public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.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/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/VpcEndpointUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/VpcEndpointUnmarshaller.cs deleted file mode 100644 index 07284e1fd09b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/VpcEndpointUnmarshaller.cs +++ /dev/null @@ -1,104 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for VpcEndpoint Object - /// - public class VpcEndpointUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - VpcEndpoint IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public VpcEndpoint Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - VpcEndpoint unmarshalledObject = new VpcEndpoint(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("networkInterfaces", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(NetworkInterfaceUnmarshaller.Instance); - unmarshalledObject.NetworkInterfaces = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("vpcEndpointId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.VpcEndpointId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("vpcId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.VpcId = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static VpcEndpointUnmarshaller _instance = new VpcEndpointUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static VpcEndpointUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/VpcSecurityGroupMembershipUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/VpcSecurityGroupMembershipUnmarshaller.cs deleted file mode 100644 index 919fa6bbec99..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/VpcSecurityGroupMembershipUnmarshaller.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for VpcSecurityGroupMembership Object - /// - public class VpcSecurityGroupMembershipUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - VpcSecurityGroupMembership IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public VpcSecurityGroupMembership Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - VpcSecurityGroupMembership unmarshalledObject = new VpcSecurityGroupMembership(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("status", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Status = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("vpcSecurityGroupId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.VpcSecurityGroupId = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static VpcSecurityGroupMembershipUnmarshaller _instance = new VpcSecurityGroupMembershipUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static VpcSecurityGroupMembershipUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/WorkgroupUnmarshaller.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/WorkgroupUnmarshaller.cs deleted file mode 100644 index be7ab186eb37..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Internal/MarshallTransformations/WorkgroupUnmarshaller.cs +++ /dev/null @@ -1,164 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Transform; -using Amazon.Runtime.Internal.Util; -using ThirdParty.Json.LitJson; - -namespace Amazon.RedshiftServerless.Model.Internal.MarshallTransformations -{ - /// - /// Response Unmarshaller for Workgroup Object - /// - public class WorkgroupUnmarshaller : IUnmarshaller, IUnmarshaller - { - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - Workgroup IUnmarshaller.Unmarshall(XmlUnmarshallerContext context) - { - throw new NotImplementedException(); - } - - /// - /// Unmarshaller the response from the service to the response class. - /// - /// - /// - public Workgroup Unmarshall(JsonUnmarshallerContext context) - { - context.Read(); - if (context.CurrentTokenType == JsonToken.Null) - return null; - - Workgroup unmarshalledObject = new Workgroup(); - - int targetDepth = context.CurrentDepth; - while (context.ReadAtDepth(targetDepth)) - { - if (context.TestExpression("baseCapacity", targetDepth)) - { - var unmarshaller = IntUnmarshaller.Instance; - unmarshalledObject.BaseCapacity = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("configParameters", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(ConfigParameterUnmarshaller.Instance); - unmarshalledObject.ConfigParameters = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("creationDate", targetDepth)) - { - var unmarshaller = DateTimeUnmarshaller.Instance; - unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("endpoint", targetDepth)) - { - var unmarshaller = EndpointUnmarshaller.Instance; - unmarshalledObject.Endpoint = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("enhancedVpcRouting", targetDepth)) - { - var unmarshaller = BoolUnmarshaller.Instance; - unmarshalledObject.EnhancedVpcRouting = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("namespaceName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.NamespaceName = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("publiclyAccessible", targetDepth)) - { - var unmarshaller = BoolUnmarshaller.Instance; - unmarshalledObject.PubliclyAccessible = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("securityGroupIds", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.SecurityGroupIds = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("status", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.Status = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("subnetIds", targetDepth)) - { - var unmarshaller = new ListUnmarshaller(StringUnmarshaller.Instance); - unmarshalledObject.SubnetIds = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("workgroupArn", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.WorkgroupArn = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("workgroupId", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.WorkgroupId = unmarshaller.Unmarshall(context); - continue; - } - if (context.TestExpression("workgroupName", targetDepth)) - { - var unmarshaller = StringUnmarshaller.Instance; - unmarshalledObject.WorkgroupName = unmarshaller.Unmarshall(context); - continue; - } - } - - return unmarshalledObject; - } - - - private static WorkgroupUnmarshaller _instance = new WorkgroupUnmarshaller(); - - /// - /// Gets the singleton. - /// - public static WorkgroupUnmarshaller Instance - { - get - { - return _instance; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/InternalServerException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/InternalServerException.cs deleted file mode 100644 index 9a1e8484e32d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/InternalServerException.cs +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class InternalServerException : AmazonRedshiftServerlessException - { - - private RetryableDetails _retryableDetails = new RetryableDetails(false); - - /// - /// 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 - - /// - /// Flag indicating if the exception is retryable and the associated retry - /// details. A null value indicates that the exception is not retryable. - /// - public override RetryableDetails Retryable - { - get - { - return _retryableDetails; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/InvalidPaginationException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/InvalidPaginationException.cs deleted file mode 100644 index af12313c7cca..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/InvalidPaginationException.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The provided pagination token is invalid. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class InvalidPaginationException : AmazonRedshiftServerlessException - { - - /// - /// Constructs a new InvalidPaginationException with the specified error - /// message. - /// - /// - /// Describes the error encountered. - /// - public InvalidPaginationException(string message) - : base(message) {} - - /// - /// Construct instance of InvalidPaginationException - /// - /// - /// - public InvalidPaginationException(string message, Exception innerException) - : base(message, innerException) {} - - /// - /// Construct instance of InvalidPaginationException - /// - /// - public InvalidPaginationException(Exception innerException) - : base(innerException) {} - - /// - /// Construct instance of InvalidPaginationException - /// - /// - /// - /// - /// - /// - /// - public InvalidPaginationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, innerException, errorType, errorCode, requestId, statusCode) {} - - /// - /// Construct instance of InvalidPaginationException - /// - /// - /// - /// - /// - /// - public InvalidPaginationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, errorType, errorCode, requestId, statusCode) {} - - -#if !NETSTANDARD - /// - /// Constructs a new instance of the InvalidPaginationException 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 InvalidPaginationException(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/RedshiftServerless/Generated/Model/ListEndpointAccessRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListEndpointAccessRequest.cs deleted file mode 100644 index 1b742ba75737..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListEndpointAccessRequest.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListEndpointAccess operation. - /// Returns an array of EndpointAccess objects and relevant information. - /// - public partial class ListEndpointAccessRequest : AmazonRedshiftServerlessRequest - { - private int? _maxResults; - private string _nextToken; - private string _vpcId; - private string _workgroupName; - - /// - /// Gets and sets the property MaxResults. - /// - /// An optional parameter that specifies the maximum number of results to return. You - /// can use nextToken to get the next page of results. - /// - /// - [AWSProperty(Min=1, 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. - /// - /// If your initial ListEndpointAccess operation returns a nextToken, - /// you can include the returned nextToken in subsequent ListEndpointAccess - /// operations, which returns results in the next page. - /// - /// - 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; - } - - /// - /// Gets and sets the property VpcId. - /// - /// The unique identifier of the virtual private cloud with access to Amazon Redshift - /// Serverless. - /// - /// - public string VpcId - { - get { return this._vpcId; } - set { this._vpcId = value; } - } - - // Check to see if VpcId property is set - internal bool IsSetVpcId() - { - return this._vpcId != null; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup associated with the VPC endpoint to return. - /// - /// - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListEndpointAccessResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListEndpointAccessResponse.cs deleted file mode 100644 index 0ebfebccafb9..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListEndpointAccessResponse.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListEndpointAccess operation. - /// - public partial class ListEndpointAccessResponse : AmazonWebServiceResponse - { - private List _endpoints = new List(); - private string _nextToken; - - /// - /// Gets and sets the property Endpoints. - /// - /// The returned VPC endpoints. - /// - /// - [AWSProperty(Required=true)] - 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. - /// - /// When nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. Make the call - /// again using the returned token to retrieve the next page. - /// - /// - 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/RedshiftServerless/Generated/Model/ListNamespacesRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListNamespacesRequest.cs deleted file mode 100644 index a6581dc2d2a0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListNamespacesRequest.cs +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListNamespaces operation. - /// Returns information about a list of specified namespaces. - /// - public partial class ListNamespacesRequest : AmazonRedshiftServerlessRequest - { - private int? _maxResults; - private string _nextToken; - - /// - /// Gets and sets the property MaxResults. - /// - /// An optional parameter that specifies the maximum number of results to return. You - /// can use nextToken to get the next page of results. - /// - /// - [AWSProperty(Min=1, 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. - /// - /// If your initial ListNamespaces operation returns a nextToken, - /// you can include the returned nextToken in subsequent ListNamespaces - /// operations, which returns results in the next page. - /// - /// - 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/RedshiftServerless/Generated/Model/ListNamespacesResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListNamespacesResponse.cs deleted file mode 100644 index 7d3f05a44af3..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListNamespacesResponse.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListNamespaces operation. - /// - public partial class ListNamespacesResponse : AmazonWebServiceResponse - { - private List _namespaces = new List(); - private string _nextToken; - - /// - /// Gets and sets the property Namespaces. - /// - /// The list of returned namespaces. - /// - /// - [AWSProperty(Required=true)] - public List Namespaces - { - get { return this._namespaces; } - set { this._namespaces = value; } - } - - // Check to see if Namespaces property is set - internal bool IsSetNamespaces() - { - return this._namespaces != null && this._namespaces.Count > 0; - } - - /// - /// Gets and sets the property NextToken. - /// - /// When nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. Make the call - /// again using the returned token to retrieve the next page. - /// - /// - 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/RedshiftServerless/Generated/Model/ListRecoveryPointsRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListRecoveryPointsRequest.cs deleted file mode 100644 index cc296ee092ec..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListRecoveryPointsRequest.cs +++ /dev/null @@ -1,139 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListRecoveryPoints operation. - /// Returns an array of recovery points. - /// - public partial class ListRecoveryPointsRequest : AmazonRedshiftServerlessRequest - { - private DateTime? _endTime; - private int? _maxResults; - private string _namespaceName; - private string _nextToken; - private DateTime? _startTime; - - /// - /// Gets and sets the property EndTime. - /// - /// The time when creation of the recovery point finished. - /// - /// - public DateTime EndTime - { - get { return this._endTime.GetValueOrDefault(); } - set { this._endTime = value; } - } - - // Check to see if EndTime property is set - internal bool IsSetEndTime() - { - return this._endTime.HasValue; - } - - /// - /// Gets and sets the property MaxResults. - /// - /// An optional parameter that specifies the maximum number of results to return. You - /// can use nextToken to get the next page of results. - /// - /// - [AWSProperty(Min=1, 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 NamespaceName. - /// - /// The name of the namespace to list recovery points for. - /// - /// - [AWSProperty(Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property NextToken. - /// - /// If your initial ListRecoveryPoints operation returns a nextToken, - /// you can include the returned nextToken in subsequent ListRecoveryPoints - /// operations, which returns results in the next page. - /// - /// - 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; - } - - /// - /// Gets and sets the property StartTime. - /// - /// The time when the recovery point's creation was initiated. - /// - /// - public DateTime StartTime - { - get { return this._startTime.GetValueOrDefault(); } - set { this._startTime = value; } - } - - // Check to see if StartTime property is set - internal bool IsSetStartTime() - { - return this._startTime.HasValue; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListRecoveryPointsResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListRecoveryPointsResponse.cs deleted file mode 100644 index 890c840504a2..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListRecoveryPointsResponse.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListRecoveryPoints operation. - /// - public partial class ListRecoveryPointsResponse : AmazonWebServiceResponse - { - private string _nextToken; - private List _recoveryPoints = new List(); - - /// - /// Gets and sets the property NextToken. - /// - /// If nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. Make the call - /// again using the returned token to retrieve the next page. - /// - /// - 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; - } - - /// - /// Gets and sets the property RecoveryPoints. - /// - /// The returned recovery point objects. - /// - /// - public List RecoveryPoints - { - get { return this._recoveryPoints; } - set { this._recoveryPoints = value; } - } - - // Check to see if RecoveryPoints property is set - internal bool IsSetRecoveryPoints() - { - return this._recoveryPoints != null && this._recoveryPoints.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListSnapshotsRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListSnapshotsRequest.cs deleted file mode 100644 index f8bdcc2bcbb7..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListSnapshotsRequest.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListSnapshots operation. - /// Returns a list of snapshots. - /// - public partial class ListSnapshotsRequest : AmazonRedshiftServerlessRequest - { - private DateTime? _endTime; - private int? _maxResults; - private string _namespaceArn; - private string _namespaceName; - private string _nextToken; - private string _ownerAccount; - private DateTime? _startTime; - - /// - /// Gets and sets the property EndTime. - /// - /// The timestamp showing when the snapshot creation finished. - /// - /// - public DateTime EndTime - { - get { return this._endTime.GetValueOrDefault(); } - set { this._endTime = value; } - } - - // Check to see if EndTime property is set - internal bool IsSetEndTime() - { - return this._endTime.HasValue; - } - - /// - /// Gets and sets the property MaxResults. - /// - /// An optional parameter that specifies the maximum number of results to return. You - /// can use nextToken to get the next page of results. - /// - /// - [AWSProperty(Min=1, 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 NamespaceArn. - /// - /// The Amazon Resource Name (ARN) of the namespace from which to list all snapshots. - /// - /// - public string NamespaceArn - { - get { return this._namespaceArn; } - set { this._namespaceArn = value; } - } - - // Check to see if NamespaceArn property is set - internal bool IsSetNamespaceArn() - { - return this._namespaceArn != null; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The namespace from which to list all snapshots. - /// - /// - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property NextToken. - /// - /// If nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. Make the call - /// again using the returned token to retrieve the next page. - /// - /// - 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; - } - - /// - /// Gets and sets the property OwnerAccount. - /// - /// The owner Amazon Web Services account of the snapshot. - /// - /// - public string OwnerAccount - { - get { return this._ownerAccount; } - set { this._ownerAccount = value; } - } - - // Check to see if OwnerAccount property is set - internal bool IsSetOwnerAccount() - { - return this._ownerAccount != null; - } - - /// - /// Gets and sets the property StartTime. - /// - /// The time when the creation of the snapshot was initiated. - /// - /// - public DateTime StartTime - { - get { return this._startTime.GetValueOrDefault(); } - set { this._startTime = value; } - } - - // Check to see if StartTime property is set - internal bool IsSetStartTime() - { - return this._startTime.HasValue; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListSnapshotsResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListSnapshotsResponse.cs deleted file mode 100644 index 7c485e9322ac..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListSnapshotsResponse.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListSnapshots operation. - /// - public partial class ListSnapshotsResponse : AmazonWebServiceResponse - { - private string _nextToken; - private List _snapshots = new List(); - - /// - /// Gets and sets the property NextToken. - /// - /// If nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. Make the call - /// again using the returned token to retrieve the next page. - /// - /// - 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; - } - - /// - /// Gets and sets the property Snapshots. - /// - /// All of the returned snapshot objects. - /// - /// - public List Snapshots - { - get { return this._snapshots; } - set { this._snapshots = value; } - } - - // Check to see if Snapshots property is set - internal bool IsSetSnapshots() - { - return this._snapshots != null && this._snapshots.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListTagsForResourceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListTagsForResourceRequest.cs deleted file mode 100644 index 808f7dce4025..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListTagsForResourceRequest.cs +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListTagsForResource operation. - /// Lists the tags assigned to a resource. - /// - public partial class ListTagsForResourceRequest : AmazonRedshiftServerlessRequest - { - private string _resourceArn; - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the resource to list tags for. - /// - /// - [AWSProperty(Required=true, Min=1, Max=1011)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListTagsForResourceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListTagsForResourceResponse.cs deleted file mode 100644 index bcf3d8d6b436..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListTagsForResourceResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListTagsForResource operation. - /// - public partial class ListTagsForResourceResponse : AmazonWebServiceResponse - { - private List _tags = new List(); - - /// - /// Gets and sets the property Tags. - /// - /// A map of the key-value pairs assigned to the resource. - /// - /// - [AWSProperty(Min=0, Max=200)] - public List Tags - { - get { return this._tags; } - set { this._tags = value; } - } - - // Check to see if Tags property is set - internal bool IsSetTags() - { - return this._tags != null && this._tags.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListUsageLimitsRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListUsageLimitsRequest.cs deleted file mode 100644 index b473b10d3bd2..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListUsageLimitsRequest.cs +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListUsageLimits operation. - /// Lists all usage limits within Amazon Redshift Serverless. - /// - public partial class ListUsageLimitsRequest : AmazonRedshiftServerlessRequest - { - private int? _maxResults; - private string _nextToken; - private string _resourceArn; - private UsageLimitUsageType _usageType; - - /// - /// Gets and sets the property MaxResults. - /// - /// An optional parameter that specifies the maximum number of results to return. You - /// can use nextToken to get the next page of results. The default is 100. - /// - /// - [AWSProperty(Min=1, 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. - /// - /// If your initial ListUsageLimits operation returns a nextToken, - /// you can include the returned nextToken in subsequent ListUsageLimits - /// operations, which returns results in the next page. - /// - /// - [AWSProperty(Min=8, 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; - } - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) associated with the resource whose usage limits you - /// want to list. - /// - /// - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - /// - /// Gets and sets the property UsageType. - /// - /// The Amazon Redshift Serverless feature whose limits you want to see. - /// - /// - public UsageLimitUsageType UsageType - { - get { return this._usageType; } - set { this._usageType = value; } - } - - // Check to see if UsageType property is set - internal bool IsSetUsageType() - { - return this._usageType != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListUsageLimitsResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListUsageLimitsResponse.cs deleted file mode 100644 index 78074a4a5cb8..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListUsageLimitsResponse.cs +++ /dev/null @@ -1,80 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListUsageLimits operation. - /// - public partial class ListUsageLimitsResponse : AmazonWebServiceResponse - { - private string _nextToken; - private List _usageLimits = new List(); - - /// - /// Gets and sets the property NextToken. - /// - /// When nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. Make the call - /// again using the returned token to retrieve the next page. - /// - /// - [AWSProperty(Min=8, 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; - } - - /// - /// Gets and sets the property UsageLimits. - /// - /// An array of returned usage limit objects. - /// - /// - [AWSProperty(Min=1, Max=100)] - public List UsageLimits - { - get { return this._usageLimits; } - set { this._usageLimits = value; } - } - - // Check to see if UsageLimits property is set - internal bool IsSetUsageLimits() - { - return this._usageLimits != null && this._usageLimits.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ListWorkgroupsRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListWorkgroupsRequest.cs deleted file mode 100644 index d8413975d3f1..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListWorkgroupsRequest.cs +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the ListWorkgroups operation. - /// Returns information about a list of specified workgroups. - /// - public partial class ListWorkgroupsRequest : AmazonRedshiftServerlessRequest - { - private int? _maxResults; - private string _nextToken; - - /// - /// Gets and sets the property MaxResults. - /// - /// An optional parameter that specifies the maximum number of results to return. You - /// can use nextToken to get the next page of results. - /// - /// - [AWSProperty(Min=1, 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. - /// - /// If your initial ListWorkgroups operation returns a nextToken, you can - /// include the returned nextToken in subsequent ListNamespaces operations, - /// which returns results in the next page. - /// - /// - 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/RedshiftServerless/Generated/Model/ListWorkgroupsResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ListWorkgroupsResponse.cs deleted file mode 100644 index 7cc920d5e230..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ListWorkgroupsResponse.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the ListWorkgroups operation. - /// - public partial class ListWorkgroupsResponse : AmazonWebServiceResponse - { - private string _nextToken; - private List _workgroups = new List(); - - /// - /// Gets and sets the property NextToken. - /// - /// If nextToken is returned, there are more results available. The value - /// of nextToken is a unique pagination token for each page. To retrieve - /// the next page, make the call again using the returned token. - /// - /// - 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; - } - - /// - /// Gets and sets the property Workgroups. - /// - /// The returned array of workgroups. - /// - /// - [AWSProperty(Required=true)] - public List Workgroups - { - get { return this._workgroups; } - set { this._workgroups = value; } - } - - // Check to see if Workgroups property is set - internal bool IsSetWorkgroups() - { - return this._workgroups != null && this._workgroups.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Namespace.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Namespace.cs deleted file mode 100644 index e013cb20f495..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Namespace.cs +++ /dev/null @@ -1,253 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// A collection of database objects and users. - /// - public partial class Namespace - { - private string _adminUsername; - private DateTime? _creationDate; - private string _dbName; - private string _defaultIamRoleArn; - private List _iamRoles = new List(); - private string _kmsKeyId; - private List _logExports = new List(); - private string _namespaceArn; - private string _namespaceId; - private string _namespaceName; - private NamespaceStatus _status; - - /// - /// Gets and sets the property AdminUsername. - /// - /// The username of the administrator for the first database created in the namespace. - /// - /// - public string AdminUsername - { - get { return this._adminUsername; } - set { this._adminUsername = value; } - } - - // Check to see if AdminUsername property is set - internal bool IsSetAdminUsername() - { - return this._adminUsername != null; - } - - /// - /// Gets and sets the property CreationDate. - /// - /// The date of when the namespace was created. - /// - /// - public DateTime CreationDate - { - get { return this._creationDate.GetValueOrDefault(); } - set { this._creationDate = value; } - } - - // Check to see if CreationDate property is set - internal bool IsSetCreationDate() - { - return this._creationDate.HasValue; - } - - /// - /// Gets and sets the property DbName. - /// - /// The name of the first database created in the namespace. - /// - /// - public string DbName - { - get { return this._dbName; } - set { this._dbName = value; } - } - - // Check to see if DbName property is set - internal bool IsSetDbName() - { - return this._dbName != null; - } - - /// - /// Gets and sets the property DefaultIamRoleArn. - /// - /// The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. - /// - /// - public string DefaultIamRoleArn - { - get { return this._defaultIamRoleArn; } - set { this._defaultIamRoleArn = value; } - } - - // Check to see if DefaultIamRoleArn property is set - internal bool IsSetDefaultIamRoleArn() - { - return this._defaultIamRoleArn != null; - } - - /// - /// Gets and sets the property IamRoles. - /// - /// A list of IAM roles to associate with the namespace. - /// - /// - public List IamRoles - { - get { return this._iamRoles; } - set { this._iamRoles = value; } - } - - // Check to see if IamRoles property is set - internal bool IsSetIamRoles() - { - return this._iamRoles != null && this._iamRoles.Count > 0; - } - - /// - /// Gets and sets the property KmsKeyId. - /// - /// The ID of the Amazon Web Services Key Management Service key used to encrypt your - /// data. - /// - /// - public string KmsKeyId - { - get { return this._kmsKeyId; } - set { this._kmsKeyId = value; } - } - - // Check to see if KmsKeyId property is set - internal bool IsSetKmsKeyId() - { - return this._kmsKeyId != null; - } - - /// - /// Gets and sets the property LogExports. - /// - /// The types of logs the namespace can export. Available export types are User log, Connection - /// log, and User activity log. - /// - /// - [AWSProperty(Min=0, Max=16)] - public List LogExports - { - get { return this._logExports; } - set { this._logExports = value; } - } - - // Check to see if LogExports property is set - internal bool IsSetLogExports() - { - return this._logExports != null && this._logExports.Count > 0; - } - - /// - /// Gets and sets the property NamespaceArn. - /// - /// The Amazon Resource Name (ARN) associated with a namespace. - /// - /// - public string NamespaceArn - { - get { return this._namespaceArn; } - set { this._namespaceArn = value; } - } - - // Check to see if NamespaceArn property is set - internal bool IsSetNamespaceArn() - { - return this._namespaceArn != null; - } - - /// - /// Gets and sets the property NamespaceId. - /// - /// The unique identifier of a namespace. - /// - /// - public string NamespaceId - { - get { return this._namespaceId; } - set { this._namespaceId = value; } - } - - // Check to see if NamespaceId property is set - internal bool IsSetNamespaceId() - { - return this._namespaceId != null; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, - /// and it cannot be a reserved word. A list of reserved words can be found in Reserved - /// Words in the Amazon Redshift Database Developer Guide. - /// - /// - [AWSProperty(Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property Status. - /// - /// The status of the namespace. - /// - /// - public NamespaceStatus 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/RedshiftServerless/Generated/Model/NetworkInterface.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/NetworkInterface.cs deleted file mode 100644 index f0381a1b49af..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/NetworkInterface.cs +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Contains information about a network interface in an Amazon Redshift Serverless managed - /// VPC endpoint. - /// - public partial class NetworkInterface - { - private string _availabilityZone; - private string _networkInterfaceId; - private string _privateIpAddress; - private string _subnetId; - - /// - /// Gets and sets the property AvailabilityZone. - /// - /// The availability Zone. - /// - /// - public string AvailabilityZone - { - get { return this._availabilityZone; } - set { this._availabilityZone = value; } - } - - // Check to see if AvailabilityZone property is set - internal bool IsSetAvailabilityZone() - { - return this._availabilityZone != null; - } - - /// - /// Gets and sets the property NetworkInterfaceId. - /// - /// The unique identifier of the network interface. - /// - /// - 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; - } - - /// - /// Gets and sets the property PrivateIpAddress. - /// - /// The IPv4 address of the network interface within the subnet. - /// - /// - public string PrivateIpAddress - { - get { return this._privateIpAddress; } - set { this._privateIpAddress = value; } - } - - // Check to see if PrivateIpAddress property is set - internal bool IsSetPrivateIpAddress() - { - return this._privateIpAddress != null; - } - - /// - /// Gets and sets the property SubnetId. - /// - /// The unique identifier of the subnet. - /// - /// - 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/RedshiftServerless/Generated/Model/PutResourcePolicyRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/PutResourcePolicyRequest.cs deleted file mode 100644 index 5b2f242def7c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/PutResourcePolicyRequest.cs +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the PutResourcePolicy operation. - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - public partial class PutResourcePolicyRequest : AmazonRedshiftServerlessRequest - { - private string _policy; - private string _resourceArn; - - /// - /// Gets and sets the property Policy. - /// - /// The policy to create or update. For example, the following policy grants a user authorization - /// to restore a snapshot. - /// - /// - /// - /// "{\"Version\": \"2012-10-17\", \"Statement\" : [{ \"Sid\": \"AllowUserRestoreFromSnapshot\", - /// \"Principal\":{\"AWS\": [\"739247239426\"]}, \"Action\": [\"redshift-serverless:RestoreFromSnapshot\"] - /// , \"Effect\": \"Allow\" }]}" - /// - /// - [AWSProperty(Required=true)] - public string Policy - { - get { return this._policy; } - set { this._policy = value; } - } - - // Check to see if Policy property is set - internal bool IsSetPolicy() - { - return this._policy != null; - } - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the account to create or update a resource policy - /// for. - /// - /// - [AWSProperty(Required=true)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/PutResourcePolicyResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/PutResourcePolicyResponse.cs deleted file mode 100644 index ae9df49cbdb8..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/PutResourcePolicyResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the PutResourcePolicy operation. - /// - public partial class PutResourcePolicyResponse : AmazonWebServiceResponse - { - private ResourcePolicy _resourcePolicy; - - /// - /// Gets and sets the property ResourcePolicy. - /// - /// The policy that was created or updated. - /// - /// - public ResourcePolicy ResourcePolicy - { - get { return this._resourcePolicy; } - set { this._resourcePolicy = value; } - } - - // Check to see if ResourcePolicy property is set - internal bool IsSetResourcePolicy() - { - return this._resourcePolicy != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/RecoveryPoint.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/RecoveryPoint.cs deleted file mode 100644 index 53bb6a3d6032..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/RecoveryPoint.cs +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The automatically created recovery point of a namespace. Recovery points are created - /// every 30 minutes and kept for 24 hours. - /// - public partial class RecoveryPoint - { - private string _namespaceName; - private DateTime? _recoveryPointCreateTime; - private string _recoveryPointId; - private double? _totalSizeInMegaBytes; - private string _workgroupName; - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace the recovery point is associated with. - /// - /// - [AWSProperty(Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property RecoveryPointCreateTime. - /// - /// The time the recovery point is created. - /// - /// - public DateTime RecoveryPointCreateTime - { - get { return this._recoveryPointCreateTime.GetValueOrDefault(); } - set { this._recoveryPointCreateTime = value; } - } - - // Check to see if RecoveryPointCreateTime property is set - internal bool IsSetRecoveryPointCreateTime() - { - return this._recoveryPointCreateTime.HasValue; - } - - /// - /// Gets and sets the property RecoveryPointId. - /// - /// The unique identifier of the recovery point. - /// - /// - public string RecoveryPointId - { - get { return this._recoveryPointId; } - set { this._recoveryPointId = value; } - } - - // Check to see if RecoveryPointId property is set - internal bool IsSetRecoveryPointId() - { - return this._recoveryPointId != null; - } - - /// - /// Gets and sets the property TotalSizeInMegaBytes. - /// - /// The total size of the data in the recovery point in megabytes. - /// - /// - public double TotalSizeInMegaBytes - { - get { return this._totalSizeInMegaBytes.GetValueOrDefault(); } - set { this._totalSizeInMegaBytes = value; } - } - - // Check to see if TotalSizeInMegaBytes property is set - internal bool IsSetTotalSizeInMegaBytes() - { - return this._totalSizeInMegaBytes.HasValue; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup the recovery point is associated with. - /// - /// - [AWSProperty(Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ResourceNotFoundException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ResourceNotFoundException.cs deleted file mode 100644 index 383dc13deac9..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ResourceNotFoundException.cs +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The resource could not be found. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class ResourceNotFoundException : AmazonRedshiftServerlessException - { - private string _resourceName; - - /// - /// 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) - { - this.ResourceName = (string)info.GetValue("ResourceName", typeof(string)); - } - - /// - /// 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); - info.AddValue("ResourceName", this.ResourceName); - } -#endif - - /// - /// Gets and sets the property ResourceName. - /// - /// The name of the resource that could not be found. - /// - /// - [AWSProperty(Min=1, Max=1011)] - public string ResourceName - { - get { return this._resourceName; } - set { this._resourceName = value; } - } - - // Check to see if ResourceName property is set - internal bool IsSetResourceName() - { - return this._resourceName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ResourcePolicy.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ResourcePolicy.cs deleted file mode 100644 index 3c778db81727..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ResourcePolicy.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The resource policy object. Currently, you can use policies to share snapshots across - /// Amazon Web Services accounts. - /// - public partial class ResourcePolicy - { - private string _policy; - private string _resourceArn; - - /// - /// Gets and sets the property Policy. - /// - /// The resource policy. - /// - /// - public string Policy - { - get { return this._policy; } - set { this._policy = value; } - } - - // Check to see if Policy property is set - internal bool IsSetPolicy() - { - return this._policy != null; - } - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the policy. - /// - /// - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromRecoveryPointRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromRecoveryPointRequest.cs deleted file mode 100644 index 1f8ce719ee5f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromRecoveryPointRequest.cs +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the RestoreFromRecoveryPoint operation. - /// Restore the data from a recovery point. - /// - public partial class RestoreFromRecoveryPointRequest : AmazonRedshiftServerlessRequest - { - private string _namespaceName; - private string _recoveryPointId; - private string _workgroupName; - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace to restore data into. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property RecoveryPointId. - /// - /// The unique identifier of the recovery point to restore from. - /// - /// - [AWSProperty(Required=true)] - public string RecoveryPointId - { - get { return this._recoveryPointId; } - set { this._recoveryPointId = value; } - } - - // Check to see if RecoveryPointId property is set - internal bool IsSetRecoveryPointId() - { - return this._recoveryPointId != null; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup used to restore data. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromRecoveryPointResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromRecoveryPointResponse.cs deleted file mode 100644 index 2e53ee293c0a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromRecoveryPointResponse.cs +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the RestoreFromRecoveryPoint operation. - /// - public partial class RestoreFromRecoveryPointResponse : AmazonWebServiceResponse - { - private Namespace _awsNamespace; - private string _recoveryPointId; - - /// - /// Gets and sets the property Namespace. - /// - /// The namespace that data was restored into. - /// - /// - public Namespace Namespace - { - get { return this._awsNamespace; } - set { this._awsNamespace = value; } - } - - // Check to see if Namespace property is set - internal bool IsSetNamespace() - { - return this._awsNamespace != null; - } - - /// - /// Gets and sets the property RecoveryPointId. - /// - /// The unique identifier of the recovery point used for the restore. - /// - /// - public string RecoveryPointId - { - get { return this._recoveryPointId; } - set { this._recoveryPointId = value; } - } - - // Check to see if RecoveryPointId property is set - internal bool IsSetRecoveryPointId() - { - return this._recoveryPointId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromSnapshotRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromSnapshotRequest.cs deleted file mode 100644 index 0e6c7404a8e6..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromSnapshotRequest.cs +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the RestoreFromSnapshot operation. - /// Restores a namespace from a snapshot. - /// - public partial class RestoreFromSnapshotRequest : AmazonRedshiftServerlessRequest - { - private string _namespaceName; - private string _ownerAccount; - private string _snapshotArn; - private string _snapshotName; - private string _workgroupName; - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace to restore the snapshot to. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property OwnerAccount. - /// - /// The Amazon Web Services account that owns the snapshot. - /// - /// - public string OwnerAccount - { - get { return this._ownerAccount; } - set { this._ownerAccount = value; } - } - - // Check to see if OwnerAccount property is set - internal bool IsSetOwnerAccount() - { - return this._ownerAccount != null; - } - - /// - /// Gets and sets the property SnapshotArn. - /// - /// The Amazon Resource Name (ARN) of the snapshot to restore from. - /// - /// - public string SnapshotArn - { - get { return this._snapshotArn; } - set { this._snapshotArn = value; } - } - - // Check to see if SnapshotArn property is set - internal bool IsSetSnapshotArn() - { - return this._snapshotArn != null; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot to restore from. - /// - /// - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup used to restore the snapshot. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromSnapshotResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromSnapshotResponse.cs deleted file mode 100644 index 3f8d61a6c785..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/RestoreFromSnapshotResponse.cs +++ /dev/null @@ -1,92 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the RestoreFromSnapshot operation. - /// - public partial class RestoreFromSnapshotResponse : AmazonWebServiceResponse - { - private Namespace _awsNamespace; - private string _ownerAccount; - private string _snapshotName; - - /// - /// Gets and sets the property Namespace. - /// - public Namespace Namespace - { - get { return this._awsNamespace; } - set { this._awsNamespace = value; } - } - - // Check to see if Namespace property is set - internal bool IsSetNamespace() - { - return this._awsNamespace != null; - } - - /// - /// Gets and sets the property OwnerAccount. - /// - /// The owner Amazon Web Services; account of the snapshot that was restored. - /// - /// - public string OwnerAccount - { - get { return this._ownerAccount; } - set { this._ownerAccount = value; } - } - - // Check to see if OwnerAccount property is set - internal bool IsSetOwnerAccount() - { - return this._ownerAccount != null; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot used to restore the namespace. - /// - /// - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ServiceQuotaExceededException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ServiceQuotaExceededException.cs deleted file mode 100644 index e45241efb69a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ServiceQuotaExceededException.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The service limit was exceeded. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class ServiceQuotaExceededException : AmazonRedshiftServerlessException - { - - /// - /// Constructs a new ServiceQuotaExceededException with the specified error - /// message. - /// - /// - /// Describes the error encountered. - /// - public ServiceQuotaExceededException(string message) - : base(message) {} - - /// - /// Construct instance of ServiceQuotaExceededException - /// - /// - /// - public ServiceQuotaExceededException(string message, Exception innerException) - : base(message, innerException) {} - - /// - /// Construct instance of ServiceQuotaExceededException - /// - /// - public ServiceQuotaExceededException(Exception innerException) - : base(innerException) {} - - /// - /// Construct instance of ServiceQuotaExceededException - /// - /// - /// - /// - /// - /// - /// - public ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, innerException, errorType, errorCode, requestId, statusCode) {} - - /// - /// Construct instance of ServiceQuotaExceededException - /// - /// - /// - /// - /// - /// - public ServiceQuotaExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, errorType, errorCode, requestId, statusCode) {} - - -#if !NETSTANDARD - /// - /// Constructs a new instance of the ServiceQuotaExceededException 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 ServiceQuotaExceededException(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/RedshiftServerless/Generated/Model/Snapshot.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Snapshot.cs deleted file mode 100644 index 5c6d850e8a51..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Snapshot.cs +++ /dev/null @@ -1,420 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// A snapshot object that contains databases. - /// - public partial class Snapshot - { - private List _accountsWithProvisionedRestoreAccess = new List(); - private List _accountsWithRestoreAccess = new List(); - private double? _actualIncrementalBackupSizeInMegaBytes; - private string _adminUsername; - private double? _backupProgressInMegaBytes; - private double? _currentBackupRateInMegaBytesPerSecond; - private long? _elapsedTimeInSeconds; - private long? _estimatedSecondsToCompletion; - private string _kmsKeyId; - private string _namespaceArn; - private string _namespaceName; - private string _ownerAccount; - private string _snapshotArn; - private DateTime? _snapshotCreateTime; - private string _snapshotName; - private int? _snapshotRemainingDays; - private int? _snapshotRetentionPeriod; - private DateTime? _snapshotRetentionStartTime; - private SnapshotStatus _status; - private double? _totalBackupSizeInMegaBytes; - - /// - /// Gets and sets the property AccountsWithProvisionedRestoreAccess. - /// - /// All of the Amazon Web Services accounts that have access to restore a snapshot to - /// a provisioned cluster. - /// - /// - public List AccountsWithProvisionedRestoreAccess - { - get { return this._accountsWithProvisionedRestoreAccess; } - set { this._accountsWithProvisionedRestoreAccess = value; } - } - - // Check to see if AccountsWithProvisionedRestoreAccess property is set - internal bool IsSetAccountsWithProvisionedRestoreAccess() - { - return this._accountsWithProvisionedRestoreAccess != null && this._accountsWithProvisionedRestoreAccess.Count > 0; - } - - /// - /// Gets and sets the property AccountsWithRestoreAccess. - /// - /// All of the Amazon Web Services accounts that have access to restore a snapshot to - /// a namespace. - /// - /// - public List AccountsWithRestoreAccess - { - get { return this._accountsWithRestoreAccess; } - set { this._accountsWithRestoreAccess = value; } - } - - // Check to see if AccountsWithRestoreAccess property is set - internal bool IsSetAccountsWithRestoreAccess() - { - return this._accountsWithRestoreAccess != null && this._accountsWithRestoreAccess.Count > 0; - } - - /// - /// Gets and sets the property ActualIncrementalBackupSizeInMegaBytes. - /// - /// The size of the incremental backup in megabytes. - /// - /// - public double ActualIncrementalBackupSizeInMegaBytes - { - get { return this._actualIncrementalBackupSizeInMegaBytes.GetValueOrDefault(); } - set { this._actualIncrementalBackupSizeInMegaBytes = value; } - } - - // Check to see if ActualIncrementalBackupSizeInMegaBytes property is set - internal bool IsSetActualIncrementalBackupSizeInMegaBytes() - { - return this._actualIncrementalBackupSizeInMegaBytes.HasValue; - } - - /// - /// Gets and sets the property AdminUsername. - /// - /// The username of the database within a snapshot. - /// - /// - public string AdminUsername - { - get { return this._adminUsername; } - set { this._adminUsername = value; } - } - - // Check to see if AdminUsername property is set - internal bool IsSetAdminUsername() - { - return this._adminUsername != null; - } - - /// - /// Gets and sets the property BackupProgressInMegaBytes. - /// - /// The size in megabytes of the data that has been backed up to a snapshot. - /// - /// - public double BackupProgressInMegaBytes - { - get { return this._backupProgressInMegaBytes.GetValueOrDefault(); } - set { this._backupProgressInMegaBytes = value; } - } - - // Check to see if BackupProgressInMegaBytes property is set - internal bool IsSetBackupProgressInMegaBytes() - { - return this._backupProgressInMegaBytes.HasValue; - } - - /// - /// Gets and sets the property CurrentBackupRateInMegaBytesPerSecond. - /// - /// The rate at which data is backed up into a snapshot in megabytes per second. - /// - /// - public double CurrentBackupRateInMegaBytesPerSecond - { - get { return this._currentBackupRateInMegaBytesPerSecond.GetValueOrDefault(); } - set { this._currentBackupRateInMegaBytesPerSecond = value; } - } - - // Check to see if CurrentBackupRateInMegaBytesPerSecond property is set - internal bool IsSetCurrentBackupRateInMegaBytesPerSecond() - { - return this._currentBackupRateInMegaBytesPerSecond.HasValue; - } - - /// - /// Gets and sets the property ElapsedTimeInSeconds. - /// - /// The amount of time it took to back up data into a snapshot. - /// - /// - public long ElapsedTimeInSeconds - { - get { return this._elapsedTimeInSeconds.GetValueOrDefault(); } - set { this._elapsedTimeInSeconds = value; } - } - - // Check to see if ElapsedTimeInSeconds property is set - internal bool IsSetElapsedTimeInSeconds() - { - return this._elapsedTimeInSeconds.HasValue; - } - - /// - /// Gets and sets the property EstimatedSecondsToCompletion. - /// - /// The estimated amount of seconds until the snapshot completes backup. - /// - /// - public long EstimatedSecondsToCompletion - { - get { return this._estimatedSecondsToCompletion.GetValueOrDefault(); } - set { this._estimatedSecondsToCompletion = value; } - } - - // Check to see if EstimatedSecondsToCompletion property is set - internal bool IsSetEstimatedSecondsToCompletion() - { - return this._estimatedSecondsToCompletion.HasValue; - } - - /// - /// Gets and sets the property KmsKeyId. - /// - /// The unique identifier of the KMS key used to encrypt the snapshot. - /// - /// - public string KmsKeyId - { - get { return this._kmsKeyId; } - set { this._kmsKeyId = value; } - } - - // Check to see if KmsKeyId property is set - internal bool IsSetKmsKeyId() - { - return this._kmsKeyId != null; - } - - /// - /// Gets and sets the property NamespaceArn. - /// - /// The Amazon Resource Name (ARN) of the namespace the snapshot was created from. - /// - /// - public string NamespaceArn - { - get { return this._namespaceArn; } - set { this._namespaceArn = value; } - } - - // Check to see if NamespaceArn property is set - internal bool IsSetNamespaceArn() - { - return this._namespaceArn != null; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namepsace. - /// - /// - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property OwnerAccount. - /// - /// The owner Amazon Web Services; account of the snapshot. - /// - /// - public string OwnerAccount - { - get { return this._ownerAccount; } - set { this._ownerAccount = value; } - } - - // Check to see if OwnerAccount property is set - internal bool IsSetOwnerAccount() - { - return this._ownerAccount != null; - } - - /// - /// Gets and sets the property SnapshotArn. - /// - /// The Amazon Resource Name (ARN) of the snapshot. - /// - /// - public string SnapshotArn - { - get { return this._snapshotArn; } - set { this._snapshotArn = value; } - } - - // Check to see if SnapshotArn property is set - internal bool IsSetSnapshotArn() - { - return this._snapshotArn != null; - } - - /// - /// Gets and sets the property SnapshotCreateTime. - /// - /// The timestamp of when the snapshot was created. - /// - /// - public DateTime SnapshotCreateTime - { - get { return this._snapshotCreateTime.GetValueOrDefault(); } - set { this._snapshotCreateTime = value; } - } - - // Check to see if SnapshotCreateTime property is set - internal bool IsSetSnapshotCreateTime() - { - return this._snapshotCreateTime.HasValue; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot. - /// - /// - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - /// - /// Gets and sets the property SnapshotRemainingDays. - /// - /// The amount of days until the snapshot is deleted. - /// - /// - public int SnapshotRemainingDays - { - get { return this._snapshotRemainingDays.GetValueOrDefault(); } - set { this._snapshotRemainingDays = value; } - } - - // Check to see if SnapshotRemainingDays property is set - internal bool IsSetSnapshotRemainingDays() - { - return this._snapshotRemainingDays.HasValue; - } - - /// - /// Gets and sets the property SnapshotRetentionPeriod. - /// - /// The period of time, in days, of how long the snapshot is retained. - /// - /// - public int SnapshotRetentionPeriod - { - get { return this._snapshotRetentionPeriod.GetValueOrDefault(); } - set { this._snapshotRetentionPeriod = value; } - } - - // Check to see if SnapshotRetentionPeriod property is set - internal bool IsSetSnapshotRetentionPeriod() - { - return this._snapshotRetentionPeriod.HasValue; - } - - /// - /// Gets and sets the property SnapshotRetentionStartTime. - /// - /// The timestamp of when data within the snapshot started getting retained. - /// - /// - public DateTime SnapshotRetentionStartTime - { - get { return this._snapshotRetentionStartTime.GetValueOrDefault(); } - set { this._snapshotRetentionStartTime = value; } - } - - // Check to see if SnapshotRetentionStartTime property is set - internal bool IsSetSnapshotRetentionStartTime() - { - return this._snapshotRetentionStartTime.HasValue; - } - - /// - /// Gets and sets the property Status. - /// - /// The status of the snapshot. - /// - /// - public SnapshotStatus Status - { - get { return this._status; } - set { this._status = value; } - } - - // Check to see if Status property is set - internal bool IsSetStatus() - { - return this._status != null; - } - - /// - /// Gets and sets the property TotalBackupSizeInMegaBytes. - /// - /// The total size, in megabytes, of how big the snapshot is. - /// - /// - public double TotalBackupSizeInMegaBytes - { - get { return this._totalBackupSizeInMegaBytes.GetValueOrDefault(); } - set { this._totalBackupSizeInMegaBytes = value; } - } - - // Check to see if TotalBackupSizeInMegaBytes property is set - internal bool IsSetTotalBackupSizeInMegaBytes() - { - return this._totalBackupSizeInMegaBytes.HasValue; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Tag.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Tag.cs deleted file mode 100644 index 8fdd7c91db5d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Tag.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// A map of key-value pairs. - /// - public partial class Tag - { - private string _key; - private string _value; - - /// - /// Gets and sets the property Key. - /// - /// The key to use in the tag. - /// - /// - [AWSProperty(Required=true, Min=1, Max=128)] - public string Key - { - get { return this._key; } - set { this._key = value; } - } - - // Check to see if Key property is set - internal bool IsSetKey() - { - return this._key != null; - } - - /// - /// Gets and sets the property Value. - /// - /// The value of the tag. - /// - /// - [AWSProperty(Required=true, Min=0, Max=256)] - public string Value - { - get { return this._value; } - set { this._value = value; } - } - - // Check to see if Value property is set - internal bool IsSetValue() - { - return this._value != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/TagResourceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/TagResourceRequest.cs deleted file mode 100644 index e5a51969548e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/TagResourceRequest.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the TagResource operation. - /// Assigns one or more tags to a resource. - /// - public partial class TagResourceRequest : AmazonRedshiftServerlessRequest - { - private string _resourceArn; - private List _tags = new List(); - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the resource to tag. - /// - /// - [AWSProperty(Required=true, Min=1, Max=1011)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - /// - /// Gets and sets the property Tags. - /// - /// The map of the key-value pairs used to tag the resource. - /// - /// - [AWSProperty(Required=true, Min=0, Max=200)] - public List Tags - { - get { return this._tags; } - set { this._tags = value; } - } - - // Check to see if Tags property is set - internal bool IsSetTags() - { - return this._tags != null && this._tags.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/TagResourceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/TagResourceResponse.cs deleted file mode 100644 index c5531fd2a0b3..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/TagResourceResponse.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the TagResource operation. - /// - public partial class TagResourceResponse : AmazonWebServiceResponse - { - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ThrottlingException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ThrottlingException.cs deleted file mode 100644 index c8c2282e12dd..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ThrottlingException.cs +++ /dev/null @@ -1,155 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The request was denied due to request throttling. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class ThrottlingException : AmazonRedshiftServerlessException - { - private string _code; - - private RetryableDetails _retryableDetails = new RetryableDetails(false); - - /// - /// Constructs a new ThrottlingException with the specified error - /// message. - /// - /// - /// Describes the error encountered. - /// - public ThrottlingException(string message) - : base(message) {} - - /// - /// Construct instance of ThrottlingException - /// - /// - /// - public ThrottlingException(string message, Exception innerException) - : base(message, innerException) {} - - /// - /// Construct instance of ThrottlingException - /// - /// - public ThrottlingException(Exception innerException) - : base(innerException) {} - - /// - /// Construct instance of ThrottlingException - /// - /// - /// - /// - /// - /// - /// - public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, innerException, errorType, errorCode, requestId, statusCode) {} - - /// - /// Construct instance of ThrottlingException - /// - /// - /// - /// - /// - /// - public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, errorType, errorCode, requestId, statusCode) {} - - -#if !NETSTANDARD - /// - /// Constructs a new instance of the ThrottlingException 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 ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) - : base(info, context) - { - this.Code = (string)info.GetValue("Code", typeof(string)); - } - - /// - /// 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); - info.AddValue("Code", this.Code); - } -#endif - - /// - /// Gets and sets the property Code. - /// - public string Code - { - get { return this._code; } - set { this._code = value; } - } - - // Check to see if Code property is set - internal bool IsSetCode() - { - return this._code != null; - } - - /// - /// Flag indicating if the exception is retryable and the associated retry - /// details. A null value indicates that the exception is not retryable. - /// - public override RetryableDetails Retryable - { - get - { - return _retryableDetails; - } - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/TooManyTagsException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/TooManyTagsException.cs deleted file mode 100644 index 5a2d9976d5d1..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/TooManyTagsException.cs +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The request exceeded the number of tags allowed for a resource. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class TooManyTagsException : AmazonRedshiftServerlessException - { - private string _resourceName; - - /// - /// Constructs a new TooManyTagsException with the specified error - /// message. - /// - /// - /// Describes the error encountered. - /// - public TooManyTagsException(string message) - : base(message) {} - - /// - /// Construct instance of TooManyTagsException - /// - /// - /// - public TooManyTagsException(string message, Exception innerException) - : base(message, innerException) {} - - /// - /// Construct instance of TooManyTagsException - /// - /// - public TooManyTagsException(Exception innerException) - : base(innerException) {} - - /// - /// Construct instance of TooManyTagsException - /// - /// - /// - /// - /// - /// - /// - public TooManyTagsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, innerException, errorType, errorCode, requestId, statusCode) {} - - /// - /// Construct instance of TooManyTagsException - /// - /// - /// - /// - /// - /// - public TooManyTagsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) - : base(message, errorType, errorCode, requestId, statusCode) {} - - -#if !NETSTANDARD - /// - /// Constructs a new instance of the TooManyTagsException 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 TooManyTagsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) - : base(info, context) - { - this.ResourceName = (string)info.GetValue("ResourceName", typeof(string)); - } - - /// - /// 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); - info.AddValue("ResourceName", this.ResourceName); - } -#endif - - /// - /// Gets and sets the property ResourceName. - /// - /// The name of the resource that exceeded the number of tags allowed for a resource. - /// - /// - [AWSProperty(Min=1, Max=1011)] - public string ResourceName - { - get { return this._resourceName; } - set { this._resourceName = value; } - } - - // Check to see if ResourceName property is set - internal bool IsSetResourceName() - { - return this._resourceName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UntagResourceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UntagResourceRequest.cs deleted file mode 100644 index ae1c30567f8b..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UntagResourceRequest.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the UntagResource operation. - /// Removes a tag or set of tags from a resource. - /// - public partial class UntagResourceRequest : AmazonRedshiftServerlessRequest - { - private string _resourceArn; - private List _tagKeys = new List(); - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) of the resource to remove tags from. - /// - /// - [AWSProperty(Required=true, Min=1, Max=1011)] - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - /// - /// Gets and sets the property TagKeys. - /// - /// The tag or set of tags to remove from the resource. - /// - /// - [AWSProperty(Required=true, Min=0, Max=200)] - public List TagKeys - { - get { return this._tagKeys; } - set { this._tagKeys = value; } - } - - // Check to see if TagKeys property is set - internal bool IsSetTagKeys() - { - return this._tagKeys != null && this._tagKeys.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UntagResourceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UntagResourceResponse.cs deleted file mode 100644 index 8f5e594e4780..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UntagResourceResponse.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the UntagResource operation. - /// - public partial class UntagResourceResponse : AmazonWebServiceResponse - { - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateEndpointAccessRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateEndpointAccessRequest.cs deleted file mode 100644 index 40d1bb5bd027..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateEndpointAccessRequest.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the UpdateEndpointAccess operation. - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - public partial class UpdateEndpointAccessRequest : AmazonRedshiftServerlessRequest - { - private string _endpointName; - private List _vpcSecurityGroupIds = new List(); - - /// - /// Gets and sets the property EndpointName. - /// - /// The name of the VPC endpoint to update. - /// - /// - [AWSProperty(Required=true)] - public string EndpointName - { - get { return this._endpointName; } - set { this._endpointName = value; } - } - - // Check to see if EndpointName property is set - internal bool IsSetEndpointName() - { - return this._endpointName != null; - } - - /// - /// Gets and sets the property VpcSecurityGroupIds. - /// - /// The list of VPC security groups associated with the endpoint after the endpoint is - /// modified. - /// - /// - public List VpcSecurityGroupIds - { - get { return this._vpcSecurityGroupIds; } - set { this._vpcSecurityGroupIds = value; } - } - - // Check to see if VpcSecurityGroupIds property is set - internal bool IsSetVpcSecurityGroupIds() - { - return this._vpcSecurityGroupIds != null && this._vpcSecurityGroupIds.Count > 0; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateEndpointAccessResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateEndpointAccessResponse.cs deleted file mode 100644 index 63fccecfc5b0..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateEndpointAccessResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the UpdateEndpointAccess operation. - /// - public partial class UpdateEndpointAccessResponse : AmazonWebServiceResponse - { - private EndpointAccess _endpoint; - - /// - /// Gets and sets the property Endpoint. - /// - /// The updated VPC endpoint. - /// - /// - public EndpointAccess Endpoint - { - get { return this._endpoint; } - set { this._endpoint = value; } - } - - // Check to see if Endpoint property is set - internal bool IsSetEndpoint() - { - return this._endpoint != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateNamespaceRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateNamespaceRequest.cs deleted file mode 100644 index 8164218da871..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateNamespaceRequest.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the UpdateNamespace operation. - /// Updates a namespace with the specified settings. - /// - public partial class UpdateNamespaceRequest : AmazonRedshiftServerlessRequest - { - private string _adminUsername; - private string _adminUserPassword; - private string _defaultIamRoleArn; - private List _iamRoles = new List(); - private string _kmsKeyId; - private List _logExports = new List(); - private string _namespaceName; - - /// - /// Gets and sets the property AdminUsername. - /// - /// The username of the administrator for the first database created in the namespace. - /// - /// - public string AdminUsername - { - get { return this._adminUsername; } - set { this._adminUsername = value; } - } - - // Check to see if AdminUsername property is set - internal bool IsSetAdminUsername() - { - return this._adminUsername != null; - } - - /// - /// Gets and sets the property AdminUserPassword. - /// - /// The password of the administrator for the first database created in the namespace. - /// - /// - public string AdminUserPassword - { - get { return this._adminUserPassword; } - set { this._adminUserPassword = value; } - } - - // Check to see if AdminUserPassword property is set - internal bool IsSetAdminUserPassword() - { - return this._adminUserPassword != null; - } - - /// - /// Gets and sets the property DefaultIamRoleArn. - /// - /// The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. - /// - /// - public string DefaultIamRoleArn - { - get { return this._defaultIamRoleArn; } - set { this._defaultIamRoleArn = value; } - } - - // Check to see if DefaultIamRoleArn property is set - internal bool IsSetDefaultIamRoleArn() - { - return this._defaultIamRoleArn != null; - } - - /// - /// Gets and sets the property IamRoles. - /// - /// A list of IAM roles to associate with the namespace. - /// - /// - public List IamRoles - { - get { return this._iamRoles; } - set { this._iamRoles = value; } - } - - // Check to see if IamRoles property is set - internal bool IsSetIamRoles() - { - return this._iamRoles != null && this._iamRoles.Count > 0; - } - - /// - /// Gets and sets the property KmsKeyId. - /// - /// The ID of the Amazon Web Services Key Management Service key used to encrypt your - /// data. - /// - /// - public string KmsKeyId - { - get { return this._kmsKeyId; } - set { this._kmsKeyId = value; } - } - - // Check to see if KmsKeyId property is set - internal bool IsSetKmsKeyId() - { - return this._kmsKeyId != null; - } - - /// - /// Gets and sets the property LogExports. - /// - /// The types of logs the namespace can export. The export types are userlog, - /// connectionlog, and useractivitylog. - /// - /// - [AWSProperty(Min=0, Max=16)] - public List LogExports - { - get { return this._logExports; } - set { this._logExports = value; } - } - - // Check to see if LogExports property is set - internal bool IsSetLogExports() - { - return this._logExports != null && this._logExports.Count > 0; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The name of the namespace. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateNamespaceResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateNamespaceResponse.cs deleted file mode 100644 index a920cba64a8c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateNamespaceResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the UpdateNamespace operation. - /// - public partial class UpdateNamespaceResponse : AmazonWebServiceResponse - { - private Namespace _awsNamespace; - - /// - /// Gets and sets the property Namespace. - /// - /// A list of tag instances. - /// - /// - [AWSProperty(Required=true)] - public Namespace Namespace - { - get { return this._awsNamespace; } - set { this._awsNamespace = value; } - } - - // Check to see if Namespace property is set - internal bool IsSetNamespace() - { - return this._awsNamespace != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateSnapshotRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateSnapshotRequest.cs deleted file mode 100644 index 749d70e9d509..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateSnapshotRequest.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the UpdateSnapshot operation. - /// Updates a snapshot. - /// - public partial class UpdateSnapshotRequest : AmazonRedshiftServerlessRequest - { - private int? _retentionPeriod; - private string _snapshotName; - - /// - /// Gets and sets the property RetentionPeriod. - /// - /// The new retention period of the snapshot. - /// - /// - public int RetentionPeriod - { - get { return this._retentionPeriod.GetValueOrDefault(); } - set { this._retentionPeriod = value; } - } - - // Check to see if RetentionPeriod property is set - internal bool IsSetRetentionPeriod() - { - return this._retentionPeriod.HasValue; - } - - /// - /// Gets and sets the property SnapshotName. - /// - /// The name of the snapshot. - /// - /// - [AWSProperty(Required=true)] - public string SnapshotName - { - get { return this._snapshotName; } - set { this._snapshotName = value; } - } - - // Check to see if SnapshotName property is set - internal bool IsSetSnapshotName() - { - return this._snapshotName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateSnapshotResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateSnapshotResponse.cs deleted file mode 100644 index 89d4c7043f9e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateSnapshotResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the UpdateSnapshot operation. - /// - public partial class UpdateSnapshotResponse : AmazonWebServiceResponse - { - private Snapshot _snapshot; - - /// - /// Gets and sets the property Snapshot. - /// - /// The updated snapshot object. - /// - /// - public Snapshot Snapshot - { - get { return this._snapshot; } - set { this._snapshot = value; } - } - - // Check to see if Snapshot property is set - internal bool IsSetSnapshot() - { - return this._snapshot != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateUsageLimitRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateUsageLimitRequest.cs deleted file mode 100644 index 0fef82086e5f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateUsageLimitRequest.cs +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the UpdateUsageLimit operation. - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - public partial class UpdateUsageLimitRequest : AmazonRedshiftServerlessRequest - { - private long? _amount; - private UsageLimitBreachAction _breachAction; - private string _usageLimitId; - - /// - /// Gets and sets the property Amount. - /// - /// The new limit amount. For more information about this parameter. - /// - /// - public long Amount - { - get { return this._amount.GetValueOrDefault(); } - set { this._amount = value; } - } - - // Check to see if Amount property is set - internal bool IsSetAmount() - { - return this._amount.HasValue; - } - - /// - /// Gets and sets the property BreachAction. - /// - /// The new action that Amazon Redshift Serverless takes when the limit is reached. - /// - /// - public UsageLimitBreachAction BreachAction - { - get { return this._breachAction; } - set { this._breachAction = value; } - } - - // Check to see if BreachAction property is set - internal bool IsSetBreachAction() - { - return this._breachAction != null; - } - - /// - /// Gets and sets the property UsageLimitId. - /// - /// The identifier of the usage limit to update. - /// - /// - [AWSProperty(Required=true)] - public string UsageLimitId - { - get { return this._usageLimitId; } - set { this._usageLimitId = value; } - } - - // Check to see if UsageLimitId property is set - internal bool IsSetUsageLimitId() - { - return this._usageLimitId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateUsageLimitResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateUsageLimitResponse.cs deleted file mode 100644 index 9f854349f005..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateUsageLimitResponse.cs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the UpdateUsageLimit operation. - /// - public partial class UpdateUsageLimitResponse : AmazonWebServiceResponse - { - private UsageLimit _usageLimit; - - /// - /// Gets and sets the property UsageLimit. - /// - /// The updated usage limit object. - /// - /// - public UsageLimit UsageLimit - { - get { return this._usageLimit; } - set { this._usageLimit = value; } - } - - // Check to see if UsageLimit property is set - internal bool IsSetUsageLimit() - { - return this._usageLimit != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateWorkgroupRequest.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateWorkgroupRequest.cs deleted file mode 100644 index 7d60d2feb957..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateWorkgroupRequest.cs +++ /dev/null @@ -1,176 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Container for the parameters to the UpdateWorkgroup operation. - /// Updates a workgroup with the specified configuration settings. - /// - public partial class UpdateWorkgroupRequest : AmazonRedshiftServerlessRequest - { - private int? _baseCapacity; - private List _configParameters = new List(); - private bool? _enhancedVpcRouting; - private bool? _publiclyAccessible; - private List _securityGroupIds = new List(); - private List _subnetIds = new List(); - private string _workgroupName; - - /// - /// Gets and sets the property BaseCapacity. - /// - /// The new base data warehouse capacity in Redshift Processing Units (RPUs). - /// - /// - public int BaseCapacity - { - get { return this._baseCapacity.GetValueOrDefault(); } - set { this._baseCapacity = value; } - } - - // Check to see if BaseCapacity property is set - internal bool IsSetBaseCapacity() - { - return this._baseCapacity.HasValue; - } - - /// - /// Gets and sets the property ConfigParameters. - /// - /// An array of parameters to set for advanced control over a database. The options are - /// datestyle, enable_user_activity_logging, query_group, - /// search_path, and max_query_execution_time. - /// - /// - public List ConfigParameters - { - get { return this._configParameters; } - set { this._configParameters = value; } - } - - // Check to see if ConfigParameters property is set - internal bool IsSetConfigParameters() - { - return this._configParameters != null && this._configParameters.Count > 0; - } - - /// - /// Gets and sets the property EnhancedVpcRouting. - /// - /// The value that specifies whether to turn on enhanced virtual private cloud (VPC) routing, - /// which forces Amazon Redshift Serverless to route traffic through your VPC. - /// - /// - public bool EnhancedVpcRouting - { - get { return this._enhancedVpcRouting.GetValueOrDefault(); } - set { this._enhancedVpcRouting = value; } - } - - // Check to see if EnhancedVpcRouting property is set - internal bool IsSetEnhancedVpcRouting() - { - return this._enhancedVpcRouting.HasValue; - } - - /// - /// Gets and sets the property PubliclyAccessible. - /// - /// A value that specifies whether the workgroup can be accessible from a public network. - /// - /// - public bool PubliclyAccessible - { - get { return this._publiclyAccessible.GetValueOrDefault(); } - set { this._publiclyAccessible = value; } - } - - // Check to see if PubliclyAccessible property is set - internal bool IsSetPubliclyAccessible() - { - return this._publiclyAccessible.HasValue; - } - - /// - /// Gets and sets the property SecurityGroupIds. - /// - /// An array of security group IDs to associate with the workgroup. - /// - /// - public List SecurityGroupIds - { - get { return this._securityGroupIds; } - set { this._securityGroupIds = value; } - } - - // Check to see if SecurityGroupIds property is set - internal bool IsSetSecurityGroupIds() - { - return this._securityGroupIds != null && this._securityGroupIds.Count > 0; - } - - /// - /// Gets and sets the property SubnetIds. - /// - /// An array of VPC subnet IDs to associate with the workgroup. - /// - /// - public List SubnetIds - { - get { return this._subnetIds; } - set { this._subnetIds = value; } - } - - // Check to see if SubnetIds property is set - internal bool IsSetSubnetIds() - { - return this._subnetIds != null && this._subnetIds.Count > 0; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup to update. - /// - /// - [AWSProperty(Required=true, Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateWorkgroupResponse.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateWorkgroupResponse.cs deleted file mode 100644 index b83e21cd150c..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UpdateWorkgroupResponse.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// This is the response object from the UpdateWorkgroup operation. - /// - public partial class UpdateWorkgroupResponse : AmazonWebServiceResponse - { - private Workgroup _workgroup; - - /// - /// Gets and sets the property Workgroup. - /// - /// The updated workgroup object. - /// - /// - [AWSProperty(Required=true)] - public Workgroup Workgroup - { - get { return this._workgroup; } - set { this._workgroup = value; } - } - - // Check to see if Workgroup property is set - internal bool IsSetWorkgroup() - { - return this._workgroup != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/UsageLimit.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/UsageLimit.cs deleted file mode 100644 index 5a51d07c8efb..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/UsageLimit.cs +++ /dev/null @@ -1,173 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The usage limit object. - /// - public partial class UsageLimit - { - private long? _amount; - private UsageLimitBreachAction _breachAction; - private UsageLimitPeriod _period; - private string _resourceArn; - private string _usageLimitArn; - private string _usageLimitId; - private UsageLimitUsageType _usageType; - - /// - /// Gets and sets the property Amount. - /// - /// The limit amount. If time-based, this amount is in RPUs consumed per hour. If data-based, - /// this amount is in terabytes (TB). The value must be a positive number. - /// - /// - public long Amount - { - get { return this._amount.GetValueOrDefault(); } - set { this._amount = value; } - } - - // Check to see if Amount property is set - internal bool IsSetAmount() - { - return this._amount.HasValue; - } - - /// - /// Gets and sets the property BreachAction. - /// - /// The action that Amazon Redshift Serverless takes when the limit is reached. - /// - /// - public UsageLimitBreachAction BreachAction - { - get { return this._breachAction; } - set { this._breachAction = value; } - } - - // Check to see if BreachAction property is set - internal bool IsSetBreachAction() - { - return this._breachAction != null; - } - - /// - /// Gets and sets the property Period. - /// - /// The time period that the amount applies to. A weekly period begins on Sunday. The - /// default is monthly. - /// - /// - public UsageLimitPeriod Period - { - get { return this._period; } - set { this._period = value; } - } - - // Check to see if Period property is set - internal bool IsSetPeriod() - { - return this._period != null; - } - - /// - /// Gets and sets the property ResourceArn. - /// - /// The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless resource. - /// - /// - public string ResourceArn - { - get { return this._resourceArn; } - set { this._resourceArn = value; } - } - - // Check to see if ResourceArn property is set - internal bool IsSetResourceArn() - { - return this._resourceArn != null; - } - - /// - /// Gets and sets the property UsageLimitArn. - /// - /// The Amazon Resource Name (ARN) of the resource associated with the usage limit. - /// - /// - public string UsageLimitArn - { - get { return this._usageLimitArn; } - set { this._usageLimitArn = value; } - } - - // Check to see if UsageLimitArn property is set - internal bool IsSetUsageLimitArn() - { - return this._usageLimitArn != null; - } - - /// - /// Gets and sets the property UsageLimitId. - /// - /// The identifier of the usage limit. - /// - /// - public string UsageLimitId - { - get { return this._usageLimitId; } - set { this._usageLimitId = value; } - } - - // Check to see if UsageLimitId property is set - internal bool IsSetUsageLimitId() - { - return this._usageLimitId != null; - } - - /// - /// Gets and sets the property UsageType. - /// - /// The Amazon Redshift Serverless feature to limit. - /// - /// - public UsageLimitUsageType UsageType - { - get { return this._usageType; } - set { this._usageType = value; } - } - - // Check to see if UsageType property is set - internal bool IsSetUsageType() - { - return this._usageType != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/ValidationException.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/ValidationException.cs deleted file mode 100644 index d2b3d0fb11b1..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/ValidationException.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - #if !NETSTANDARD - [Serializable] - #endif - public partial class ValidationException : AmazonRedshiftServerlessException - { - - /// - /// 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/RedshiftServerless/Generated/Model/VpcEndpoint.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/VpcEndpoint.cs deleted file mode 100644 index 5a63b352b8b3..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/VpcEndpoint.cs +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The connection endpoint for connecting to Amazon Redshift Serverless through the proxy. - /// - public partial class VpcEndpoint - { - private List _networkInterfaces = new List(); - private string _vpcEndpointId; - private string _vpcId; - - /// - /// Gets and sets the property NetworkInterfaces. - /// - /// One or more network interfaces of the endpoint. Also known as an interface 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 VpcEndpointId. - /// - /// The connection endpoint ID for connecting to Amazon Redshift Serverless. - /// - /// - public string VpcEndpointId - { - get { return this._vpcEndpointId; } - set { this._vpcEndpointId = value; } - } - - // Check to see if VpcEndpointId property is set - internal bool IsSetVpcEndpointId() - { - return this._vpcEndpointId != null; - } - - /// - /// Gets and sets the property VpcId. - /// - /// The VPC identifier that the endpoint is associated with. - /// - /// - public string VpcId - { - get { return this._vpcId; } - set { this._vpcId = value; } - } - - // Check to see if VpcId property is set - internal bool IsSetVpcId() - { - return this._vpcId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/VpcSecurityGroupMembership.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/VpcSecurityGroupMembership.cs deleted file mode 100644 index 7732a18231bf..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/VpcSecurityGroupMembership.cs +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Describes the members of a VPC security group. - /// - public partial class VpcSecurityGroupMembership - { - private string _status; - private string _vpcSecurityGroupId; - - /// - /// Gets and sets the property Status. - /// - /// The status of the VPC security group. - /// - /// - public string Status - { - get { return this._status; } - set { this._status = value; } - } - - // Check to see if Status property is set - internal bool IsSetStatus() - { - return this._status != null; - } - - /// - /// Gets and sets the property VpcSecurityGroupId. - /// - /// The unique identifier of the VPC security group. - /// - /// - public string VpcSecurityGroupId - { - get { return this._vpcSecurityGroupId; } - set { this._vpcSecurityGroupId = value; } - } - - // Check to see if VpcSecurityGroupId property is set - internal bool IsSetVpcSecurityGroupId() - { - return this._vpcSecurityGroupId != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/Workgroup.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/Workgroup.cs deleted file mode 100644 index 50f82f8ec180..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/Workgroup.cs +++ /dev/null @@ -1,289 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// The collection of computing resources from which an endpoint is created. - /// - public partial class Workgroup - { - private int? _baseCapacity; - private List _configParameters = new List(); - private DateTime? _creationDate; - private Endpoint _endpoint; - private bool? _enhancedVpcRouting; - private string _namespaceName; - private bool? _publiclyAccessible; - private List _securityGroupIds = new List(); - private WorkgroupStatus _status; - private List _subnetIds = new List(); - private string _workgroupArn; - private string _workgroupId; - private string _workgroupName; - - /// - /// Gets and sets the property BaseCapacity. - /// - /// The base data warehouse capacity of the workgroup in Redshift Processing Units (RPUs). - /// - /// - public int BaseCapacity - { - get { return this._baseCapacity.GetValueOrDefault(); } - set { this._baseCapacity = value; } - } - - // Check to see if BaseCapacity property is set - internal bool IsSetBaseCapacity() - { - return this._baseCapacity.HasValue; - } - - /// - /// Gets and sets the property ConfigParameters. - /// - /// An array of parameters to set for finer control over a database. The options are datestyle, - /// enable_user_activity_logging, query_group, search_path, - /// and max_query_execution_time. - /// - /// - public List ConfigParameters - { - get { return this._configParameters; } - set { this._configParameters = value; } - } - - // Check to see if ConfigParameters property is set - internal bool IsSetConfigParameters() - { - return this._configParameters != null && this._configParameters.Count > 0; - } - - /// - /// Gets and sets the property CreationDate. - /// - /// The creation date of the workgroup. - /// - /// - public DateTime CreationDate - { - get { return this._creationDate.GetValueOrDefault(); } - set { this._creationDate = value; } - } - - // Check to see if CreationDate property is set - internal bool IsSetCreationDate() - { - return this._creationDate.HasValue; - } - - /// - /// Gets and sets the property Endpoint. - /// - /// The endpoint that is created from the workgroup. - /// - /// - public Endpoint Endpoint - { - get { return this._endpoint; } - set { this._endpoint = value; } - } - - // Check to see if Endpoint property is set - internal bool IsSetEndpoint() - { - return this._endpoint != null; - } - - /// - /// Gets and sets the property EnhancedVpcRouting. - /// - /// The value that specifies whether to enable enhanced virtual private cloud (VPC) routing, - /// which forces Amazon Redshift Serverless to route traffic through your VPC. - /// - /// - public bool EnhancedVpcRouting - { - get { return this._enhancedVpcRouting.GetValueOrDefault(); } - set { this._enhancedVpcRouting = value; } - } - - // Check to see if EnhancedVpcRouting property is set - internal bool IsSetEnhancedVpcRouting() - { - return this._enhancedVpcRouting.HasValue; - } - - /// - /// Gets and sets the property NamespaceName. - /// - /// The namespace the workgroup is associated with. - /// - /// - public string NamespaceName - { - get { return this._namespaceName; } - set { this._namespaceName = value; } - } - - // Check to see if NamespaceName property is set - internal bool IsSetNamespaceName() - { - return this._namespaceName != null; - } - - /// - /// Gets and sets the property PubliclyAccessible. - /// - /// A value that specifies whether the workgroup can be accessible from a public network - /// - /// - public bool PubliclyAccessible - { - get { return this._publiclyAccessible.GetValueOrDefault(); } - set { this._publiclyAccessible = value; } - } - - // Check to see if PubliclyAccessible property is set - internal bool IsSetPubliclyAccessible() - { - return this._publiclyAccessible.HasValue; - } - - /// - /// Gets and sets the property SecurityGroupIds. - /// - /// An array of security group IDs to associate with the workgroup. - /// - /// - public List SecurityGroupIds - { - get { return this._securityGroupIds; } - set { this._securityGroupIds = value; } - } - - // Check to see if SecurityGroupIds property is set - internal bool IsSetSecurityGroupIds() - { - return this._securityGroupIds != null && this._securityGroupIds.Count > 0; - } - - /// - /// Gets and sets the property Status. - /// - /// The status of the workgroup. - /// - /// - public WorkgroupStatus Status - { - get { return this._status; } - set { this._status = value; } - } - - // Check to see if Status property is set - internal bool IsSetStatus() - { - return this._status != null; - } - - /// - /// Gets and sets the property SubnetIds. - /// - /// An array of subnet IDs the workgroup is associated with. - /// - /// - public List SubnetIds - { - get { return this._subnetIds; } - set { this._subnetIds = value; } - } - - // Check to see if SubnetIds property is set - internal bool IsSetSubnetIds() - { - return this._subnetIds != null && this._subnetIds.Count > 0; - } - - /// - /// Gets and sets the property WorkgroupArn. - /// - /// The Amazon Resource Name (ARN) that links to the workgroup. - /// - /// - public string WorkgroupArn - { - get { return this._workgroupArn; } - set { this._workgroupArn = value; } - } - - // Check to see if WorkgroupArn property is set - internal bool IsSetWorkgroupArn() - { - return this._workgroupArn != null; - } - - /// - /// Gets and sets the property WorkgroupId. - /// - /// The unique identifier of the workgroup. - /// - /// - public string WorkgroupId - { - get { return this._workgroupId; } - set { this._workgroupId = value; } - } - - // Check to see if WorkgroupId property is set - internal bool IsSetWorkgroupId() - { - return this._workgroupId != null; - } - - /// - /// Gets and sets the property WorkgroupName. - /// - /// The name of the workgroup. - /// - /// - [AWSProperty(Min=3, Max=64)] - public string WorkgroupName - { - get { return this._workgroupName; } - set { this._workgroupName = value; } - } - - // Check to see if WorkgroupName property is set - internal bool IsSetWorkgroupName() - { - return this._workgroupName != null; - } - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListEndpointAccessPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListEndpointAccessPaginator.cs deleted file mode 100644 index e24086c971ce..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListEndpointAccessPaginator.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginator for the ListEndpointAccess operation - /// - public interface IListEndpointAccessPaginator - { - /// - /// Enumerable containing all full responses for the operation - /// - IPaginatedEnumerable Responses { get; } - - /// - /// Enumerable containing all of the Endpoints - /// - IPaginatedEnumerable Endpoints { get; } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListNamespacesPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListNamespacesPaginator.cs deleted file mode 100644 index d67bfcf79413..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListNamespacesPaginator.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginator for the ListNamespaces operation - /// - public interface IListNamespacesPaginator - { - /// - /// Enumerable containing all full responses for the operation - /// - IPaginatedEnumerable Responses { get; } - - /// - /// Enumerable containing all of the Namespaces - /// - IPaginatedEnumerable Namespaces { get; } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListRecoveryPointsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListRecoveryPointsPaginator.cs deleted file mode 100644 index 2192f7c53938..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListRecoveryPointsPaginator.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginator for the ListRecoveryPoints operation - /// - public interface IListRecoveryPointsPaginator - { - /// - /// Enumerable containing all full responses for the operation - /// - IPaginatedEnumerable Responses { get; } - - /// - /// Enumerable containing all of the RecoveryPoints - /// - IPaginatedEnumerable RecoveryPoints { get; } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListSnapshotsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListSnapshotsPaginator.cs deleted file mode 100644 index 3b3ee3eb55f2..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListSnapshotsPaginator.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginator for the ListSnapshots operation - /// - public interface IListSnapshotsPaginator - { - /// - /// Enumerable containing all full responses for the operation - /// - IPaginatedEnumerable Responses { get; } - - /// - /// Enumerable containing all of the Snapshots - /// - IPaginatedEnumerable Snapshots { get; } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListUsageLimitsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListUsageLimitsPaginator.cs deleted file mode 100644 index 3ba6c9b3d17a..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListUsageLimitsPaginator.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginator for the ListUsageLimits operation - /// - public interface IListUsageLimitsPaginator - { - /// - /// Enumerable containing all full responses for the operation - /// - IPaginatedEnumerable Responses { get; } - - /// - /// Enumerable containing all of the UsageLimits - /// - IPaginatedEnumerable UsageLimits { get; } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListWorkgroupsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListWorkgroupsPaginator.cs deleted file mode 100644 index 82585cdbbb97..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IListWorkgroupsPaginator.cs +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginator for the ListWorkgroups operation - /// - public interface IListWorkgroupsPaginator - { - /// - /// Enumerable containing all full responses for the operation - /// - IPaginatedEnumerable Responses { get; } - - /// - /// Enumerable containing all of the Workgroups - /// - IPaginatedEnumerable Workgroups { get; } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IRedshiftServerlessPaginatorFactory.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IRedshiftServerlessPaginatorFactory.cs deleted file mode 100644 index c8d750ab9297..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/IRedshiftServerlessPaginatorFactory.cs +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginators for the RedshiftServerless service - /// - public interface IRedshiftServerlessPaginatorFactory - { - - /// - /// Paginator for ListEndpointAccess operation - /// - IListEndpointAccessPaginator ListEndpointAccess(ListEndpointAccessRequest request); - - /// - /// Paginator for ListNamespaces operation - /// - IListNamespacesPaginator ListNamespaces(ListNamespacesRequest request); - - /// - /// Paginator for ListRecoveryPoints operation - /// - IListRecoveryPointsPaginator ListRecoveryPoints(ListRecoveryPointsRequest request); - - /// - /// Paginator for ListSnapshots operation - /// - IListSnapshotsPaginator ListSnapshots(ListSnapshotsRequest request); - - /// - /// Paginator for ListUsageLimits operation - /// - IListUsageLimitsPaginator ListUsageLimits(ListUsageLimitsRequest request); - - /// - /// Paginator for ListWorkgroups operation - /// - IListWorkgroupsPaginator ListWorkgroups(ListWorkgroupsRequest request); - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListEndpointAccessPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListEndpointAccessPaginator.cs deleted file mode 100644 index 65cd9becfe2d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListEndpointAccessPaginator.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Base class for ListEndpointAccess paginators. - /// - internal sealed partial class ListEndpointAccessPaginator : IPaginator, IListEndpointAccessPaginator - { - private readonly IAmazonRedshiftServerless _client; - private readonly ListEndpointAccessRequest _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 ListEndpointAccessPaginator(IAmazonRedshiftServerless client, ListEndpointAccessRequest 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; - ListEndpointAccessResponse response; - do - { - _request.NextToken = nextToken; - response = _client.ListEndpointAccess(_request); - nextToken = response.NextToken; - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#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; - ListEndpointAccessResponse response; - do - { - _request.NextToken = nextToken; - response = await _client.ListEndpointAccessAsync(_request, cancellationToken).ConfigureAwait(false); - nextToken = response.NextToken; - cancellationToken.ThrowIfCancellationRequested(); - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#endif - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListNamespacesPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListNamespacesPaginator.cs deleted file mode 100644 index be132b45296f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListNamespacesPaginator.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Base class for ListNamespaces paginators. - /// - internal sealed partial class ListNamespacesPaginator : IPaginator, IListNamespacesPaginator - { - private readonly IAmazonRedshiftServerless _client; - private readonly ListNamespacesRequest _request; - private int _isPaginatorInUse = 0; - - /// - /// Enumerable containing all full responses for the operation - /// - public IPaginatedEnumerable Responses => new PaginatedResponse(this); - - /// - /// Enumerable containing all of the Namespaces - /// - public IPaginatedEnumerable Namespaces => - new PaginatedResultKeyResponse(this, (i) => i.Namespaces); - - internal ListNamespacesPaginator(IAmazonRedshiftServerless client, ListNamespacesRequest 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; - ListNamespacesResponse response; - do - { - _request.NextToken = nextToken; - response = _client.ListNamespaces(_request); - nextToken = response.NextToken; - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#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; - ListNamespacesResponse response; - do - { - _request.NextToken = nextToken; - response = await _client.ListNamespacesAsync(_request, cancellationToken).ConfigureAwait(false); - nextToken = response.NextToken; - cancellationToken.ThrowIfCancellationRequested(); - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#endif - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListRecoveryPointsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListRecoveryPointsPaginator.cs deleted file mode 100644 index 2bd829d2754e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListRecoveryPointsPaginator.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Base class for ListRecoveryPoints paginators. - /// - internal sealed partial class ListRecoveryPointsPaginator : IPaginator, IListRecoveryPointsPaginator - { - private readonly IAmazonRedshiftServerless _client; - private readonly ListRecoveryPointsRequest _request; - private int _isPaginatorInUse = 0; - - /// - /// Enumerable containing all full responses for the operation - /// - public IPaginatedEnumerable Responses => new PaginatedResponse(this); - - /// - /// Enumerable containing all of the RecoveryPoints - /// - public IPaginatedEnumerable RecoveryPoints => - new PaginatedResultKeyResponse(this, (i) => i.RecoveryPoints); - - internal ListRecoveryPointsPaginator(IAmazonRedshiftServerless client, ListRecoveryPointsRequest 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; - ListRecoveryPointsResponse response; - do - { - _request.NextToken = nextToken; - response = _client.ListRecoveryPoints(_request); - nextToken = response.NextToken; - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#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; - ListRecoveryPointsResponse response; - do - { - _request.NextToken = nextToken; - response = await _client.ListRecoveryPointsAsync(_request, cancellationToken).ConfigureAwait(false); - nextToken = response.NextToken; - cancellationToken.ThrowIfCancellationRequested(); - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#endif - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListSnapshotsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListSnapshotsPaginator.cs deleted file mode 100644 index 4950d46c8ef1..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListSnapshotsPaginator.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Base class for ListSnapshots paginators. - /// - internal sealed partial class ListSnapshotsPaginator : IPaginator, IListSnapshotsPaginator - { - private readonly IAmazonRedshiftServerless _client; - private readonly ListSnapshotsRequest _request; - private int _isPaginatorInUse = 0; - - /// - /// Enumerable containing all full responses for the operation - /// - public IPaginatedEnumerable Responses => new PaginatedResponse(this); - - /// - /// Enumerable containing all of the Snapshots - /// - public IPaginatedEnumerable Snapshots => - new PaginatedResultKeyResponse(this, (i) => i.Snapshots); - - internal ListSnapshotsPaginator(IAmazonRedshiftServerless client, ListSnapshotsRequest 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; - ListSnapshotsResponse response; - do - { - _request.NextToken = nextToken; - response = _client.ListSnapshots(_request); - nextToken = response.NextToken; - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#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; - ListSnapshotsResponse response; - do - { - _request.NextToken = nextToken; - response = await _client.ListSnapshotsAsync(_request, cancellationToken).ConfigureAwait(false); - nextToken = response.NextToken; - cancellationToken.ThrowIfCancellationRequested(); - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#endif - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListUsageLimitsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListUsageLimitsPaginator.cs deleted file mode 100644 index 74faec8b31ea..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListUsageLimitsPaginator.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Base class for ListUsageLimits paginators. - /// - internal sealed partial class ListUsageLimitsPaginator : IPaginator, IListUsageLimitsPaginator - { - private readonly IAmazonRedshiftServerless _client; - private readonly ListUsageLimitsRequest _request; - private int _isPaginatorInUse = 0; - - /// - /// Enumerable containing all full responses for the operation - /// - public IPaginatedEnumerable Responses => new PaginatedResponse(this); - - /// - /// Enumerable containing all of the UsageLimits - /// - public IPaginatedEnumerable UsageLimits => - new PaginatedResultKeyResponse(this, (i) => i.UsageLimits); - - internal ListUsageLimitsPaginator(IAmazonRedshiftServerless client, ListUsageLimitsRequest 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; - ListUsageLimitsResponse response; - do - { - _request.NextToken = nextToken; - response = _client.ListUsageLimits(_request); - nextToken = response.NextToken; - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#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; - ListUsageLimitsResponse response; - do - { - _request.NextToken = nextToken; - response = await _client.ListUsageLimitsAsync(_request, cancellationToken).ConfigureAwait(false); - nextToken = response.NextToken; - cancellationToken.ThrowIfCancellationRequested(); - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#endif - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListWorkgroupsPaginator.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListWorkgroupsPaginator.cs deleted file mode 100644 index 53651984fc53..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/ListWorkgroupsPaginator.cs +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model -{ - /// - /// Base class for ListWorkgroups paginators. - /// - internal sealed partial class ListWorkgroupsPaginator : IPaginator, IListWorkgroupsPaginator - { - private readonly IAmazonRedshiftServerless _client; - private readonly ListWorkgroupsRequest _request; - private int _isPaginatorInUse = 0; - - /// - /// Enumerable containing all full responses for the operation - /// - public IPaginatedEnumerable Responses => new PaginatedResponse(this); - - /// - /// Enumerable containing all of the Workgroups - /// - public IPaginatedEnumerable Workgroups => - new PaginatedResultKeyResponse(this, (i) => i.Workgroups); - - internal ListWorkgroupsPaginator(IAmazonRedshiftServerless client, ListWorkgroupsRequest 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; - ListWorkgroupsResponse response; - do - { - _request.NextToken = nextToken; - response = _client.ListWorkgroups(_request); - nextToken = response.NextToken; - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#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; - ListWorkgroupsResponse response; - do - { - _request.NextToken = nextToken; - response = await _client.ListWorkgroupsAsync(_request, cancellationToken).ConfigureAwait(false); - nextToken = response.NextToken; - cancellationToken.ThrowIfCancellationRequested(); - yield return response; - } - while (!string.IsNullOrEmpty(nextToken)); - } -#endif - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/RedshiftServerlessPaginatorFactory.cs b/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/RedshiftServerlessPaginatorFactory.cs deleted file mode 100644 index ab643bf3c331..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/Model/_bcl45+netstandard/RedshiftServerlessPaginatorFactory.cs +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - -using System; -using System.Collections.Generic; -using System.Text; - -namespace Amazon.RedshiftServerless.Model -{ - /// - /// Paginators for the RedshiftServerless service - /// - public class RedshiftServerlessPaginatorFactory : IRedshiftServerlessPaginatorFactory - { - private readonly IAmazonRedshiftServerless client; - - internal RedshiftServerlessPaginatorFactory(IAmazonRedshiftServerless client) - { - this.client = client; - } - - /// - /// Paginator for ListEndpointAccess operation - /// - public IListEndpointAccessPaginator ListEndpointAccess(ListEndpointAccessRequest request) - { - return new ListEndpointAccessPaginator(this.client, request); - } - - /// - /// Paginator for ListNamespaces operation - /// - public IListNamespacesPaginator ListNamespaces(ListNamespacesRequest request) - { - return new ListNamespacesPaginator(this.client, request); - } - - /// - /// Paginator for ListRecoveryPoints operation - /// - public IListRecoveryPointsPaginator ListRecoveryPoints(ListRecoveryPointsRequest request) - { - return new ListRecoveryPointsPaginator(this.client, request); - } - - /// - /// Paginator for ListSnapshots operation - /// - public IListSnapshotsPaginator ListSnapshots(ListSnapshotsRequest request) - { - return new ListSnapshotsPaginator(this.client, request); - } - - /// - /// Paginator for ListUsageLimits operation - /// - public IListUsageLimitsPaginator ListUsageLimits(ListUsageLimitsRequest request) - { - return new ListUsageLimitsPaginator(this.client, request); - } - - /// - /// Paginator for ListWorkgroups operation - /// - public IListWorkgroupsPaginator ListWorkgroups(ListWorkgroupsRequest request) - { - return new ListWorkgroupsPaginator(this.client, request); - } - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/ServiceEnumerations.cs b/sdk/src/Services/RedshiftServerless/Generated/ServiceEnumerations.cs deleted file mode 100644 index 482d80e1a0b6..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/ServiceEnumerations.cs +++ /dev/null @@ -1,416 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - -using System; - -using Amazon.Runtime; - -namespace Amazon.RedshiftServerless -{ - - /// - /// Constants used for properties of type LogExport. - /// - public class LogExport : ConstantClass - { - - /// - /// Constant Connectionlog for LogExport - /// - public static readonly LogExport Connectionlog = new LogExport("connectionlog"); - /// - /// Constant Useractivitylog for LogExport - /// - public static readonly LogExport Useractivitylog = new LogExport("useractivitylog"); - /// - /// Constant Userlog for LogExport - /// - public static readonly LogExport Userlog = new LogExport("userlog"); - - /// - /// 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 LogExport(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 LogExport 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 LogExport(string value) - { - return FindValue(value); - } - } - - - /// - /// Constants used for properties of type NamespaceStatus. - /// - public class NamespaceStatus : ConstantClass - { - - /// - /// Constant AVAILABLE for NamespaceStatus - /// - public static readonly NamespaceStatus AVAILABLE = new NamespaceStatus("AVAILABLE"); - /// - /// Constant DELETING for NamespaceStatus - /// - public static readonly NamespaceStatus DELETING = new NamespaceStatus("DELETING"); - /// - /// Constant MODIFYING for NamespaceStatus - /// - public static readonly NamespaceStatus MODIFYING = new NamespaceStatus("MODIFYING"); - - /// - /// 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 NamespaceStatus(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 NamespaceStatus 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 NamespaceStatus(string value) - { - return FindValue(value); - } - } - - - /// - /// Constants used for properties of type SnapshotStatus. - /// - public class SnapshotStatus : ConstantClass - { - - /// - /// Constant AVAILABLE for SnapshotStatus - /// - public static readonly SnapshotStatus AVAILABLE = new SnapshotStatus("AVAILABLE"); - /// - /// Constant CANCELLED for SnapshotStatus - /// - public static readonly SnapshotStatus CANCELLED = new SnapshotStatus("CANCELLED"); - /// - /// Constant COPYING for SnapshotStatus - /// - public static readonly SnapshotStatus COPYING = new SnapshotStatus("COPYING"); - /// - /// Constant CREATING for SnapshotStatus - /// - public static readonly SnapshotStatus CREATING = new SnapshotStatus("CREATING"); - /// - /// Constant DELETED for SnapshotStatus - /// - public static readonly SnapshotStatus DELETED = new SnapshotStatus("DELETED"); - /// - /// Constant FAILED for SnapshotStatus - /// - public static readonly SnapshotStatus FAILED = new SnapshotStatus("FAILED"); - - /// - /// 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 SnapshotStatus(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 SnapshotStatus 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 SnapshotStatus(string value) - { - return FindValue(value); - } - } - - - /// - /// Constants used for properties of type UsageLimitBreachAction. - /// - public class UsageLimitBreachAction : ConstantClass - { - - /// - /// Constant Deactivate for UsageLimitBreachAction - /// - public static readonly UsageLimitBreachAction Deactivate = new UsageLimitBreachAction("deactivate"); - /// - /// Constant EmitMetric for UsageLimitBreachAction - /// - public static readonly UsageLimitBreachAction EmitMetric = new UsageLimitBreachAction("emit-metric"); - /// - /// Constant Log for UsageLimitBreachAction - /// - public static readonly UsageLimitBreachAction Log = new UsageLimitBreachAction("log"); - - /// - /// 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 UsageLimitBreachAction(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 UsageLimitBreachAction 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 UsageLimitBreachAction(string value) - { - return FindValue(value); - } - } - - - /// - /// Constants used for properties of type UsageLimitPeriod. - /// - public class UsageLimitPeriod : ConstantClass - { - - /// - /// Constant Daily for UsageLimitPeriod - /// - public static readonly UsageLimitPeriod Daily = new UsageLimitPeriod("daily"); - /// - /// Constant Monthly for UsageLimitPeriod - /// - public static readonly UsageLimitPeriod Monthly = new UsageLimitPeriod("monthly"); - /// - /// Constant Weekly for UsageLimitPeriod - /// - public static readonly UsageLimitPeriod Weekly = new UsageLimitPeriod("weekly"); - - /// - /// 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 UsageLimitPeriod(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 UsageLimitPeriod 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 UsageLimitPeriod(string value) - { - return FindValue(value); - } - } - - - /// - /// Constants used for properties of type UsageLimitUsageType. - /// - public class UsageLimitUsageType : ConstantClass - { - - /// - /// Constant CrossRegionDatasharing for UsageLimitUsageType - /// - public static readonly UsageLimitUsageType CrossRegionDatasharing = new UsageLimitUsageType("cross-region-datasharing"); - /// - /// Constant ServerlessCompute for UsageLimitUsageType - /// - public static readonly UsageLimitUsageType ServerlessCompute = new UsageLimitUsageType("serverless-compute"); - - /// - /// 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 UsageLimitUsageType(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 UsageLimitUsageType 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 UsageLimitUsageType(string value) - { - return FindValue(value); - } - } - - - /// - /// Constants used for properties of type WorkgroupStatus. - /// - public class WorkgroupStatus : ConstantClass - { - - /// - /// Constant AVAILABLE for WorkgroupStatus - /// - public static readonly WorkgroupStatus AVAILABLE = new WorkgroupStatus("AVAILABLE"); - /// - /// Constant CREATING for WorkgroupStatus - /// - public static readonly WorkgroupStatus CREATING = new WorkgroupStatus("CREATING"); - /// - /// Constant DELETING for WorkgroupStatus - /// - public static readonly WorkgroupStatus DELETING = new WorkgroupStatus("DELETING"); - /// - /// Constant MODIFYING for WorkgroupStatus - /// - public static readonly WorkgroupStatus MODIFYING = new WorkgroupStatus("MODIFYING"); - - /// - /// 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 WorkgroupStatus(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 WorkgroupStatus 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 WorkgroupStatus(string value) - { - return FindValue(value); - } - } - -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/_bcl35/AmazonRedshiftServerlessClient.cs b/sdk/src/Services/RedshiftServerless/Generated/_bcl35/AmazonRedshiftServerlessClient.cs deleted file mode 100644 index 0a42f7f7ea9e..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/_bcl35/AmazonRedshiftServerlessClient.cs +++ /dev/null @@ -1,2746 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; -using System.Collections.Generic; -using System.Net; - -using Amazon.RedshiftServerless.Model; -using Amazon.RedshiftServerless.Model.Internal.MarshallTransformations; -using Amazon.RedshiftServerless.Internal; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Auth; -using Amazon.Runtime.Internal.Transform; - -namespace Amazon.RedshiftServerless -{ - /// - /// Implementation for accessing RedshiftServerless - /// - /// This is prerelease documentation for Amazon Redshift Serverless, which is in preview - /// release. The documentation and the feature are both subject to change. We recommend - /// that you use this feature only in test environments, and not in production environments. - /// For preview terms and conditions, see Beta Service Participation in Amazon - /// Web Services Service Terms. - /// - /// - /// - /// This is an interface reference for Amazon Redshift Serverless. It contains documentation - /// for one of the programming or command line interfaces you can use to manage Amazon - /// Redshift Serverless. - /// - /// - /// - /// Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently - /// scales the underlying resources based on workload demands. Amazon Redshift Serverless - /// adjusts capacity in seconds to deliver consistently high performance and simplified - /// operations for even the most demanding and volatile workloads. Amazon Redshift Serverless - /// lets you focus on using your data to acquire new insights for your business and customers. - /// - /// - /// - /// - /// To learn more about Amazon Redshift Serverless, see What - /// is Amazon Redshift Serverless. - /// - /// - public partial class AmazonRedshiftServerlessClient : AmazonServiceClient, IAmazonRedshiftServerless - { - private static IServiceMetadata serviceMetadata = new AmazonRedshiftServerlessMetadata(); - -#if BCL45 || AWS_ASYNC_ENUMERABLES_API - private IRedshiftServerlessPaginatorFactory _paginators; - - /// - /// Paginators for the service - /// - public IRedshiftServerlessPaginatorFactory Paginators - { - get - { - if (this._paginators == null) - { - this._paginators = new RedshiftServerlessPaginatorFactory(this); - } - return this._paginators; - } - } -#endif - #region Constructors - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient() - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonRedshiftServerlessConfig()) { } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient(RegionEndpoint region) - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) { } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(AmazonRedshiftServerlessConfig config) - : base(FallbackCredentialsFactory.GetCredentials(), config) { } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials - /// - /// AWS Credentials - public AmazonRedshiftServerlessClient(AWSCredentials credentials) - : this(credentials, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials - /// - /// AWS Credentials - /// The region to connect. - public AmazonRedshiftServerlessClient(AWSCredentials credentials, RegionEndpoint region) - : this(credentials, new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Credentials - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(AWSCredentials credentials, AmazonRedshiftServerlessConfig clientConfig) - : base(credentials, clientConfig) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey) - : this(awsAccessKeyId, awsSecretAccessKey, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// The region to connect. - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) - : this(awsAccessKeyId, awsSecretAccessKey, new AmazonRedshiftServerlessConfig() {RegionEndpoint=region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID, AWS Secret Key and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonRedshiftServerlessConfig clientConfig) - : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// AWS Session Token - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) - : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) - : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID, AWS Secret Key and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// AWS Session Token - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonRedshiftServerlessConfig 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 ConvertRecoveryPointToSnapshot - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - public virtual ConvertRecoveryPointToSnapshotResponse ConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ConvertRecoveryPointToSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ConvertRecoveryPointToSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndConvertRecoveryPointToSnapshot - /// operation. - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - public virtual IAsyncResult BeginConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ConvertRecoveryPointToSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ConvertRecoveryPointToSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginConvertRecoveryPointToSnapshot. - /// - /// Returns a ConvertRecoveryPointToSnapshotResult from RedshiftServerless. - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - public virtual ConvertRecoveryPointToSnapshotResponse EndConvertRecoveryPointToSnapshot(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region CreateEndpointAccess - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - public virtual CreateEndpointAccessResponse CreateEndpointAccess(CreateEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the CreateEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateEndpointAccess - /// operation. - /// REST API Reference for CreateEndpointAccess Operation - public virtual IAsyncResult BeginCreateEndpointAccess(CreateEndpointAccessRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateEndpointAccessResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the CreateEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateEndpointAccess. - /// - /// Returns a CreateEndpointAccessResult from RedshiftServerless. - /// REST API Reference for CreateEndpointAccess Operation - public virtual CreateEndpointAccessResponse EndCreateEndpointAccess(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region CreateNamespace - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - public virtual CreateNamespaceResponse CreateNamespace(CreateNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the CreateNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the CreateNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateNamespace - /// operation. - /// REST API Reference for CreateNamespace Operation - public virtual IAsyncResult BeginCreateNamespace(CreateNamespaceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateNamespaceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the CreateNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateNamespace. - /// - /// Returns a CreateNamespaceResult from RedshiftServerless. - /// REST API Reference for CreateNamespace Operation - public virtual CreateNamespaceResponse EndCreateNamespace(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region CreateSnapshot - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - public virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the CreateSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the CreateSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateSnapshot - /// operation. - /// REST API Reference for CreateSnapshot Operation - public virtual IAsyncResult BeginCreateSnapshot(CreateSnapshotRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the CreateSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateSnapshot. - /// - /// Returns a CreateSnapshotResult from RedshiftServerless. - /// REST API Reference for CreateSnapshot Operation - public virtual CreateSnapshotResponse EndCreateSnapshot(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region CreateUsageLimit - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - public virtual CreateUsageLimitResponse CreateUsageLimit(CreateUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the CreateUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the CreateUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateUsageLimit - /// operation. - /// REST API Reference for CreateUsageLimit Operation - public virtual IAsyncResult BeginCreateUsageLimit(CreateUsageLimitRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateUsageLimitResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the CreateUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateUsageLimit. - /// - /// Returns a CreateUsageLimitResult from RedshiftServerless. - /// REST API Reference for CreateUsageLimit Operation - public virtual CreateUsageLimitResponse EndCreateUsageLimit(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region CreateWorkgroup - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - public virtual CreateWorkgroupResponse CreateWorkgroup(CreateWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the CreateWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the CreateWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateWorkgroup - /// operation. - /// REST API Reference for CreateWorkgroup Operation - public virtual IAsyncResult BeginCreateWorkgroup(CreateWorkgroupRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateWorkgroupResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the CreateWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateWorkgroup. - /// - /// Returns a CreateWorkgroupResult from RedshiftServerless. - /// REST API Reference for CreateWorkgroup Operation - public virtual CreateWorkgroupResponse EndCreateWorkgroup(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region DeleteEndpointAccess - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - public virtual DeleteEndpointAccessResponse DeleteEndpointAccess(DeleteEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the DeleteEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteEndpointAccess - /// operation. - /// REST API Reference for DeleteEndpointAccess Operation - public virtual IAsyncResult BeginDeleteEndpointAccess(DeleteEndpointAccessRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteEndpointAccessResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the DeleteEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteEndpointAccess. - /// - /// Returns a DeleteEndpointAccessResult from RedshiftServerless. - /// REST API Reference for DeleteEndpointAccess Operation - public virtual DeleteEndpointAccessResponse EndDeleteEndpointAccess(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region DeleteNamespace - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - public virtual DeleteNamespaceResponse DeleteNamespace(DeleteNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the DeleteNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteNamespace - /// operation. - /// REST API Reference for DeleteNamespace Operation - public virtual IAsyncResult BeginDeleteNamespace(DeleteNamespaceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteNamespaceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the DeleteNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteNamespace. - /// - /// Returns a DeleteNamespaceResult from RedshiftServerless. - /// REST API Reference for DeleteNamespace Operation - public virtual DeleteNamespaceResponse EndDeleteNamespace(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region DeleteResourcePolicy - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - public virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the DeleteResourcePolicy operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteResourcePolicy - /// operation. - /// REST API Reference for DeleteResourcePolicy Operation - public virtual IAsyncResult BeginDeleteResourcePolicy(DeleteResourcePolicyRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the DeleteResourcePolicy operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteResourcePolicy. - /// - /// Returns a DeleteResourcePolicyResult from RedshiftServerless. - /// REST API Reference for DeleteResourcePolicy Operation - public virtual DeleteResourcePolicyResponse EndDeleteResourcePolicy(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region DeleteSnapshot - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - public virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the DeleteSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteSnapshot - /// operation. - /// REST API Reference for DeleteSnapshot Operation - public virtual IAsyncResult BeginDeleteSnapshot(DeleteSnapshotRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the DeleteSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteSnapshot. - /// - /// Returns a DeleteSnapshotResult from RedshiftServerless. - /// REST API Reference for DeleteSnapshot Operation - public virtual DeleteSnapshotResponse EndDeleteSnapshot(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region DeleteUsageLimit - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - public virtual DeleteUsageLimitResponse DeleteUsageLimit(DeleteUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the DeleteUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteUsageLimit - /// operation. - /// REST API Reference for DeleteUsageLimit Operation - public virtual IAsyncResult BeginDeleteUsageLimit(DeleteUsageLimitRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteUsageLimitResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the DeleteUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteUsageLimit. - /// - /// Returns a DeleteUsageLimitResult from RedshiftServerless. - /// REST API Reference for DeleteUsageLimit Operation - public virtual DeleteUsageLimitResponse EndDeleteUsageLimit(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region DeleteWorkgroup - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - public virtual DeleteWorkgroupResponse DeleteWorkgroup(DeleteWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the DeleteWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteWorkgroup - /// operation. - /// REST API Reference for DeleteWorkgroup Operation - public virtual IAsyncResult BeginDeleteWorkgroup(DeleteWorkgroupRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteWorkgroupResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the DeleteWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteWorkgroup. - /// - /// Returns a DeleteWorkgroupResult from RedshiftServerless. - /// REST API Reference for DeleteWorkgroup Operation - public virtual DeleteWorkgroupResponse EndDeleteWorkgroup(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetCredentials - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - public virtual GetCredentialsResponse GetCredentials(GetCredentialsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetCredentialsRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetCredentialsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetCredentials operation. - /// - /// - /// Container for the necessary parameters to execute the GetCredentials operation on AmazonRedshiftServerlessClient. - /// 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 EndGetCredentials - /// operation. - /// REST API Reference for GetCredentials Operation - public virtual IAsyncResult BeginGetCredentials(GetCredentialsRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetCredentialsRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetCredentialsResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetCredentials operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetCredentials. - /// - /// Returns a GetCredentialsResult from RedshiftServerless. - /// REST API Reference for GetCredentials Operation - public virtual GetCredentialsResponse EndGetCredentials(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetEndpointAccess - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - public virtual GetEndpointAccessResponse GetEndpointAccess(GetEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the GetEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndGetEndpointAccess - /// operation. - /// REST API Reference for GetEndpointAccess Operation - public virtual IAsyncResult BeginGetEndpointAccess(GetEndpointAccessRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetEndpointAccessResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetEndpointAccess. - /// - /// Returns a GetEndpointAccessResult from RedshiftServerless. - /// REST API Reference for GetEndpointAccess Operation - public virtual GetEndpointAccessResponse EndGetEndpointAccess(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetNamespace - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - public virtual GetNamespaceResponse GetNamespace(GetNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the GetNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndGetNamespace - /// operation. - /// REST API Reference for GetNamespace Operation - public virtual IAsyncResult BeginGetNamespace(GetNamespaceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetNamespaceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetNamespace. - /// - /// Returns a GetNamespaceResult from RedshiftServerless. - /// REST API Reference for GetNamespace Operation - public virtual GetNamespaceResponse EndGetNamespace(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetRecoveryPoint - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - public virtual GetRecoveryPointResponse GetRecoveryPoint(GetRecoveryPointRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetRecoveryPointResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetRecoveryPoint operation. - /// - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint operation on AmazonRedshiftServerlessClient. - /// 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 EndGetRecoveryPoint - /// operation. - /// REST API Reference for GetRecoveryPoint Operation - public virtual IAsyncResult BeginGetRecoveryPoint(GetRecoveryPointRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetRecoveryPointResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetRecoveryPoint operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetRecoveryPoint. - /// - /// Returns a GetRecoveryPointResult from RedshiftServerless. - /// REST API Reference for GetRecoveryPoint Operation - public virtual GetRecoveryPointResponse EndGetRecoveryPoint(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetResourcePolicy - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - public virtual GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetResourcePolicy operation. - /// - /// - /// Container for the necessary parameters to execute the GetResourcePolicy operation on AmazonRedshiftServerlessClient. - /// 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 EndGetResourcePolicy - /// operation. - /// REST API Reference for GetResourcePolicy Operation - public virtual IAsyncResult BeginGetResourcePolicy(GetResourcePolicyRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetResourcePolicy operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetResourcePolicy. - /// - /// Returns a GetResourcePolicyResult from RedshiftServerless. - /// REST API Reference for GetResourcePolicy Operation - public virtual GetResourcePolicyResponse EndGetResourcePolicy(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetSnapshot - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - public virtual GetSnapshotResponse GetSnapshot(GetSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the GetSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndGetSnapshot - /// operation. - /// REST API Reference for GetSnapshot Operation - public virtual IAsyncResult BeginGetSnapshot(GetSnapshotRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetSnapshotResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetSnapshot. - /// - /// Returns a GetSnapshotResult from RedshiftServerless. - /// REST API Reference for GetSnapshot Operation - public virtual GetSnapshotResponse EndGetSnapshot(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetUsageLimit - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - public virtual GetUsageLimitResponse GetUsageLimit(GetUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the GetUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndGetUsageLimit - /// operation. - /// REST API Reference for GetUsageLimit Operation - public virtual IAsyncResult BeginGetUsageLimit(GetUsageLimitRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetUsageLimitResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetUsageLimit. - /// - /// Returns a GetUsageLimitResult from RedshiftServerless. - /// REST API Reference for GetUsageLimit Operation - public virtual GetUsageLimitResponse EndGetUsageLimit(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region GetWorkgroup - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - public virtual GetWorkgroupResponse GetWorkgroup(GetWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the GetWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the GetWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndGetWorkgroup - /// operation. - /// REST API Reference for GetWorkgroup Operation - public virtual IAsyncResult BeginGetWorkgroup(GetWorkgroupRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetWorkgroupResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the GetWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetWorkgroup. - /// - /// Returns a GetWorkgroupResult from RedshiftServerless. - /// REST API Reference for GetWorkgroup Operation - public virtual GetWorkgroupResponse EndGetWorkgroup(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListEndpointAccess - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - public virtual ListEndpointAccessResponse ListEndpointAccess(ListEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the ListEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndListEndpointAccess - /// operation. - /// REST API Reference for ListEndpointAccess Operation - public virtual IAsyncResult BeginListEndpointAccess(ListEndpointAccessRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListEndpointAccessResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListEndpointAccess. - /// - /// Returns a ListEndpointAccessResult from RedshiftServerless. - /// REST API Reference for ListEndpointAccess Operation - public virtual ListEndpointAccessResponse EndListEndpointAccess(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListNamespaces - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - public virtual ListNamespacesResponse ListNamespaces(ListNamespacesRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListNamespacesRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListNamespacesResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListNamespaces operation. - /// - /// - /// Container for the necessary parameters to execute the ListNamespaces operation on AmazonRedshiftServerlessClient. - /// 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 EndListNamespaces - /// operation. - /// REST API Reference for ListNamespaces Operation - public virtual IAsyncResult BeginListNamespaces(ListNamespacesRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListNamespacesRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListNamespacesResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListNamespaces operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListNamespaces. - /// - /// Returns a ListNamespacesResult from RedshiftServerless. - /// REST API Reference for ListNamespaces Operation - public virtual ListNamespacesResponse EndListNamespaces(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListRecoveryPoints - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - public virtual ListRecoveryPointsResponse ListRecoveryPoints(ListRecoveryPointsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListRecoveryPointsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListRecoveryPointsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListRecoveryPoints operation. - /// - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints operation on AmazonRedshiftServerlessClient. - /// 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 EndListRecoveryPoints - /// operation. - /// REST API Reference for ListRecoveryPoints Operation - public virtual IAsyncResult BeginListRecoveryPoints(ListRecoveryPointsRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListRecoveryPointsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListRecoveryPointsResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListRecoveryPoints operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListRecoveryPoints. - /// - /// Returns a ListRecoveryPointsResult from RedshiftServerless. - /// REST API Reference for ListRecoveryPoints Operation - public virtual ListRecoveryPointsResponse EndListRecoveryPoints(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListSnapshots - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - public virtual ListSnapshotsResponse ListSnapshots(ListSnapshotsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListSnapshotsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListSnapshotsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListSnapshots operation. - /// - /// - /// Container for the necessary parameters to execute the ListSnapshots operation on AmazonRedshiftServerlessClient. - /// 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 EndListSnapshots - /// operation. - /// REST API Reference for ListSnapshots Operation - public virtual IAsyncResult BeginListSnapshots(ListSnapshotsRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListSnapshotsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListSnapshotsResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListSnapshots operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListSnapshots. - /// - /// Returns a ListSnapshotsResult from RedshiftServerless. - /// REST API Reference for ListSnapshots Operation - public virtual ListSnapshotsResponse EndListSnapshots(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListTagsForResource - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListTagsForResource operation. - /// - /// - /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonRedshiftServerlessClient. - /// 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 EndListTagsForResource - /// operation. - /// REST API Reference for ListTagsForResource Operation - public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListTagsForResource operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListTagsForResource. - /// - /// Returns a ListTagsForResourceResult from RedshiftServerless. - /// REST API Reference for ListTagsForResource Operation - public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListUsageLimits - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - public virtual ListUsageLimitsResponse ListUsageLimits(ListUsageLimitsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListUsageLimitsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListUsageLimitsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListUsageLimits operation. - /// - /// - /// Container for the necessary parameters to execute the ListUsageLimits operation on AmazonRedshiftServerlessClient. - /// 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 EndListUsageLimits - /// operation. - /// REST API Reference for ListUsageLimits Operation - public virtual IAsyncResult BeginListUsageLimits(ListUsageLimitsRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListUsageLimitsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListUsageLimitsResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListUsageLimits operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListUsageLimits. - /// - /// Returns a ListUsageLimitsResult from RedshiftServerless. - /// REST API Reference for ListUsageLimits Operation - public virtual ListUsageLimitsResponse EndListUsageLimits(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region ListWorkgroups - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - public virtual ListWorkgroupsResponse ListWorkgroups(ListWorkgroupsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListWorkgroupsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListWorkgroupsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the ListWorkgroups operation. - /// - /// - /// Container for the necessary parameters to execute the ListWorkgroups operation on AmazonRedshiftServerlessClient. - /// 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 EndListWorkgroups - /// operation. - /// REST API Reference for ListWorkgroups Operation - public virtual IAsyncResult BeginListWorkgroups(ListWorkgroupsRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListWorkgroupsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListWorkgroupsResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the ListWorkgroups operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListWorkgroups. - /// - /// Returns a ListWorkgroupsResult from RedshiftServerless. - /// REST API Reference for ListWorkgroups Operation - public virtual ListWorkgroupsResponse EndListWorkgroups(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region PutResourcePolicy - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - public virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the PutResourcePolicy operation. - /// - /// - /// Container for the necessary parameters to execute the PutResourcePolicy operation on AmazonRedshiftServerlessClient. - /// 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 EndPutResourcePolicy - /// operation. - /// REST API Reference for PutResourcePolicy Operation - public virtual IAsyncResult BeginPutResourcePolicy(PutResourcePolicyRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the PutResourcePolicy operation. - /// - /// - /// The IAsyncResult returned by the call to BeginPutResourcePolicy. - /// - /// Returns a PutResourcePolicyResult from RedshiftServerless. - /// REST API Reference for PutResourcePolicy Operation - public virtual PutResourcePolicyResponse EndPutResourcePolicy(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region RestoreFromRecoveryPoint - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - public virtual RestoreFromRecoveryPointResponse RestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromRecoveryPointResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the RestoreFromRecoveryPoint operation. - /// - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint operation on AmazonRedshiftServerlessClient. - /// 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 EndRestoreFromRecoveryPoint - /// operation. - /// REST API Reference for RestoreFromRecoveryPoint Operation - public virtual IAsyncResult BeginRestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromRecoveryPointResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the RestoreFromRecoveryPoint operation. - /// - /// - /// The IAsyncResult returned by the call to BeginRestoreFromRecoveryPoint. - /// - /// Returns a RestoreFromRecoveryPointResult from RedshiftServerless. - /// REST API Reference for RestoreFromRecoveryPoint Operation - public virtual RestoreFromRecoveryPointResponse EndRestoreFromRecoveryPoint(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region RestoreFromSnapshot - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - public virtual RestoreFromSnapshotResponse RestoreFromSnapshot(RestoreFromSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the RestoreFromSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndRestoreFromSnapshot - /// operation. - /// REST API Reference for RestoreFromSnapshot Operation - public virtual IAsyncResult BeginRestoreFromSnapshot(RestoreFromSnapshotRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the RestoreFromSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginRestoreFromSnapshot. - /// - /// Returns a RestoreFromSnapshotResult from RedshiftServerless. - /// REST API Reference for RestoreFromSnapshot Operation - public virtual RestoreFromSnapshotResponse EndRestoreFromSnapshot(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region TagResource - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - public virtual TagResourceResponse TagResource(TagResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = TagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the TagResource operation. - /// - /// - /// Container for the necessary parameters to execute the TagResource operation on AmazonRedshiftServerlessClient. - /// 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 EndTagResource - /// operation. - /// REST API Reference for TagResource Operation - public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = TagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the TagResource operation. - /// - /// - /// The IAsyncResult returned by the call to BeginTagResource. - /// - /// Returns a TagResourceResult from RedshiftServerless. - /// REST API Reference for TagResource Operation - public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region UntagResource - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the UntagResource operation. - /// - /// - /// Container for the necessary parameters to execute the UntagResource operation on AmazonRedshiftServerlessClient. - /// 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 EndUntagResource - /// operation. - /// REST API Reference for UntagResource Operation - public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the UntagResource operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUntagResource. - /// - /// Returns a UntagResourceResult from RedshiftServerless. - /// REST API Reference for UntagResource Operation - public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region UpdateEndpointAccess - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - public virtual UpdateEndpointAccessResponse UpdateEndpointAccess(UpdateEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the UpdateEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateEndpointAccess - /// operation. - /// REST API Reference for UpdateEndpointAccess Operation - public virtual IAsyncResult BeginUpdateEndpointAccess(UpdateEndpointAccessRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateEndpointAccessResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the UpdateEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateEndpointAccess. - /// - /// Returns a UpdateEndpointAccessResult from RedshiftServerless. - /// REST API Reference for UpdateEndpointAccess Operation - public virtual UpdateEndpointAccessResponse EndUpdateEndpointAccess(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region UpdateNamespace - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - public virtual UpdateNamespaceResponse UpdateNamespace(UpdateNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the UpdateNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateNamespace - /// operation. - /// REST API Reference for UpdateNamespace Operation - public virtual IAsyncResult BeginUpdateNamespace(UpdateNamespaceRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateNamespaceResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the UpdateNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateNamespace. - /// - /// Returns a UpdateNamespaceResult from RedshiftServerless. - /// REST API Reference for UpdateNamespace Operation - public virtual UpdateNamespaceResponse EndUpdateNamespace(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region UpdateSnapshot - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - public virtual UpdateSnapshotResponse UpdateSnapshot(UpdateSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the UpdateSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateSnapshot - /// operation. - /// REST API Reference for UpdateSnapshot Operation - public virtual IAsyncResult BeginUpdateSnapshot(UpdateSnapshotRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the UpdateSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateSnapshot. - /// - /// Returns a UpdateSnapshotResult from RedshiftServerless. - /// REST API Reference for UpdateSnapshot Operation - public virtual UpdateSnapshotResponse EndUpdateSnapshot(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region UpdateUsageLimit - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - public virtual UpdateUsageLimitResponse UpdateUsageLimit(UpdateUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the UpdateUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateUsageLimit - /// operation. - /// REST API Reference for UpdateUsageLimit Operation - public virtual IAsyncResult BeginUpdateUsageLimit(UpdateUsageLimitRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateUsageLimitResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the UpdateUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateUsageLimit. - /// - /// Returns a UpdateUsageLimitResult from RedshiftServerless. - /// REST API Reference for UpdateUsageLimit Operation - public virtual UpdateUsageLimitResponse EndUpdateUsageLimit(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - #region UpdateWorkgroup - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - public virtual UpdateWorkgroupResponse UpdateWorkgroup(UpdateWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - /// - /// Initiates the asynchronous execution of the UpdateWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateWorkgroup - /// operation. - /// REST API Reference for UpdateWorkgroup Operation - public virtual IAsyncResult BeginUpdateWorkgroup(UpdateWorkgroupRequest request, AsyncCallback callback, object state) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateWorkgroupResponseUnmarshaller.Instance; - - return BeginInvoke(request, options, callback, state); - } - - /// - /// Finishes the asynchronous execution of the UpdateWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateWorkgroup. - /// - /// Returns a UpdateWorkgroupResult from RedshiftServerless. - /// REST API Reference for UpdateWorkgroup Operation - public virtual UpdateWorkgroupResponse EndUpdateWorkgroup(IAsyncResult asyncResult) - { - return EndInvoke(asyncResult); - } - - #endregion - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/_bcl35/IAmazonRedshiftServerless.cs b/sdk/src/Services/RedshiftServerless/Generated/_bcl35/IAmazonRedshiftServerless.cs deleted file mode 100644 index 0ec74166c2b7..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/_bcl35/IAmazonRedshiftServerless.cs +++ /dev/null @@ -1,2017 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; -using System.Collections.Generic; - -using Amazon.Runtime; -using Amazon.RedshiftServerless.Model; - -namespace Amazon.RedshiftServerless -{ - /// - /// Interface for accessing RedshiftServerless - /// - /// This is prerelease documentation for Amazon Redshift Serverless, which is in preview - /// release. The documentation and the feature are both subject to change. We recommend - /// that you use this feature only in test environments, and not in production environments. - /// For preview terms and conditions, see Beta Service Participation in Amazon - /// Web Services Service Terms. - /// - /// - /// - /// This is an interface reference for Amazon Redshift Serverless. It contains documentation - /// for one of the programming or command line interfaces you can use to manage Amazon - /// Redshift Serverless. - /// - /// - /// - /// Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently - /// scales the underlying resources based on workload demands. Amazon Redshift Serverless - /// adjusts capacity in seconds to deliver consistently high performance and simplified - /// operations for even the most demanding and volatile workloads. Amazon Redshift Serverless - /// lets you focus on using your data to acquire new insights for your business and customers. - /// - /// - /// - /// - /// To learn more about Amazon Redshift Serverless, see What - /// is Amazon Redshift Serverless. - /// - /// - public partial interface IAmazonRedshiftServerless : IAmazonService, IDisposable - { - - -#if BCL45 || AWS_ASYNC_ENUMERABLES_API - /// - /// Paginators for the service - /// - IRedshiftServerlessPaginatorFactory Paginators { get; } -#endif - - - - #region ConvertRecoveryPointToSnapshot - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - ConvertRecoveryPointToSnapshotResponse ConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request); - - /// - /// Initiates the asynchronous execution of the ConvertRecoveryPointToSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndConvertRecoveryPointToSnapshot - /// operation. - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - IAsyncResult BeginConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ConvertRecoveryPointToSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginConvertRecoveryPointToSnapshot. - /// - /// Returns a ConvertRecoveryPointToSnapshotResult from RedshiftServerless. - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - ConvertRecoveryPointToSnapshotResponse EndConvertRecoveryPointToSnapshot(IAsyncResult asyncResult); - - #endregion - - #region CreateEndpointAccess - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - CreateEndpointAccessResponse CreateEndpointAccess(CreateEndpointAccessRequest request); - - /// - /// Initiates the asynchronous execution of the CreateEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateEndpointAccess - /// operation. - /// REST API Reference for CreateEndpointAccess Operation - IAsyncResult BeginCreateEndpointAccess(CreateEndpointAccessRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the CreateEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateEndpointAccess. - /// - /// Returns a CreateEndpointAccessResult from RedshiftServerless. - /// REST API Reference for CreateEndpointAccess Operation - CreateEndpointAccessResponse EndCreateEndpointAccess(IAsyncResult asyncResult); - - #endregion - - #region CreateNamespace - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - CreateNamespaceResponse CreateNamespace(CreateNamespaceRequest request); - - /// - /// Initiates the asynchronous execution of the CreateNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the CreateNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateNamespace - /// operation. - /// REST API Reference for CreateNamespace Operation - IAsyncResult BeginCreateNamespace(CreateNamespaceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the CreateNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateNamespace. - /// - /// Returns a CreateNamespaceResult from RedshiftServerless. - /// REST API Reference for CreateNamespace Operation - CreateNamespaceResponse EndCreateNamespace(IAsyncResult asyncResult); - - #endregion - - #region CreateSnapshot - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request); - - /// - /// Initiates the asynchronous execution of the CreateSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the CreateSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateSnapshot - /// operation. - /// REST API Reference for CreateSnapshot Operation - IAsyncResult BeginCreateSnapshot(CreateSnapshotRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the CreateSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateSnapshot. - /// - /// Returns a CreateSnapshotResult from RedshiftServerless. - /// REST API Reference for CreateSnapshot Operation - CreateSnapshotResponse EndCreateSnapshot(IAsyncResult asyncResult); - - #endregion - - #region CreateUsageLimit - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - CreateUsageLimitResponse CreateUsageLimit(CreateUsageLimitRequest request); - - /// - /// Initiates the asynchronous execution of the CreateUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the CreateUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateUsageLimit - /// operation. - /// REST API Reference for CreateUsageLimit Operation - IAsyncResult BeginCreateUsageLimit(CreateUsageLimitRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the CreateUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateUsageLimit. - /// - /// Returns a CreateUsageLimitResult from RedshiftServerless. - /// REST API Reference for CreateUsageLimit Operation - CreateUsageLimitResponse EndCreateUsageLimit(IAsyncResult asyncResult); - - #endregion - - #region CreateWorkgroup - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - CreateWorkgroupResponse CreateWorkgroup(CreateWorkgroupRequest request); - - /// - /// Initiates the asynchronous execution of the CreateWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the CreateWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndCreateWorkgroup - /// operation. - /// REST API Reference for CreateWorkgroup Operation - IAsyncResult BeginCreateWorkgroup(CreateWorkgroupRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the CreateWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginCreateWorkgroup. - /// - /// Returns a CreateWorkgroupResult from RedshiftServerless. - /// REST API Reference for CreateWorkgroup Operation - CreateWorkgroupResponse EndCreateWorkgroup(IAsyncResult asyncResult); - - #endregion - - #region DeleteEndpointAccess - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - DeleteEndpointAccessResponse DeleteEndpointAccess(DeleteEndpointAccessRequest request); - - /// - /// Initiates the asynchronous execution of the DeleteEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteEndpointAccess - /// operation. - /// REST API Reference for DeleteEndpointAccess Operation - IAsyncResult BeginDeleteEndpointAccess(DeleteEndpointAccessRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the DeleteEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteEndpointAccess. - /// - /// Returns a DeleteEndpointAccessResult from RedshiftServerless. - /// REST API Reference for DeleteEndpointAccess Operation - DeleteEndpointAccessResponse EndDeleteEndpointAccess(IAsyncResult asyncResult); - - #endregion - - #region DeleteNamespace - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - DeleteNamespaceResponse DeleteNamespace(DeleteNamespaceRequest request); - - /// - /// Initiates the asynchronous execution of the DeleteNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteNamespace - /// operation. - /// REST API Reference for DeleteNamespace Operation - IAsyncResult BeginDeleteNamespace(DeleteNamespaceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the DeleteNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteNamespace. - /// - /// Returns a DeleteNamespaceResult from RedshiftServerless. - /// REST API Reference for DeleteNamespace Operation - DeleteNamespaceResponse EndDeleteNamespace(IAsyncResult asyncResult); - - #endregion - - #region DeleteResourcePolicy - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request); - - /// - /// Initiates the asynchronous execution of the DeleteResourcePolicy operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteResourcePolicy - /// operation. - /// REST API Reference for DeleteResourcePolicy Operation - IAsyncResult BeginDeleteResourcePolicy(DeleteResourcePolicyRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the DeleteResourcePolicy operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteResourcePolicy. - /// - /// Returns a DeleteResourcePolicyResult from RedshiftServerless. - /// REST API Reference for DeleteResourcePolicy Operation - DeleteResourcePolicyResponse EndDeleteResourcePolicy(IAsyncResult asyncResult); - - #endregion - - #region DeleteSnapshot - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request); - - /// - /// Initiates the asynchronous execution of the DeleteSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteSnapshot - /// operation. - /// REST API Reference for DeleteSnapshot Operation - IAsyncResult BeginDeleteSnapshot(DeleteSnapshotRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the DeleteSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteSnapshot. - /// - /// Returns a DeleteSnapshotResult from RedshiftServerless. - /// REST API Reference for DeleteSnapshot Operation - DeleteSnapshotResponse EndDeleteSnapshot(IAsyncResult asyncResult); - - #endregion - - #region DeleteUsageLimit - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - DeleteUsageLimitResponse DeleteUsageLimit(DeleteUsageLimitRequest request); - - /// - /// Initiates the asynchronous execution of the DeleteUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteUsageLimit - /// operation. - /// REST API Reference for DeleteUsageLimit Operation - IAsyncResult BeginDeleteUsageLimit(DeleteUsageLimitRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the DeleteUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteUsageLimit. - /// - /// Returns a DeleteUsageLimitResult from RedshiftServerless. - /// REST API Reference for DeleteUsageLimit Operation - DeleteUsageLimitResponse EndDeleteUsageLimit(IAsyncResult asyncResult); - - #endregion - - #region DeleteWorkgroup - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - DeleteWorkgroupResponse DeleteWorkgroup(DeleteWorkgroupRequest request); - - /// - /// Initiates the asynchronous execution of the DeleteWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndDeleteWorkgroup - /// operation. - /// REST API Reference for DeleteWorkgroup Operation - IAsyncResult BeginDeleteWorkgroup(DeleteWorkgroupRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the DeleteWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginDeleteWorkgroup. - /// - /// Returns a DeleteWorkgroupResult from RedshiftServerless. - /// REST API Reference for DeleteWorkgroup Operation - DeleteWorkgroupResponse EndDeleteWorkgroup(IAsyncResult asyncResult); - - #endregion - - #region GetCredentials - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - GetCredentialsResponse GetCredentials(GetCredentialsRequest request); - - /// - /// Initiates the asynchronous execution of the GetCredentials operation. - /// - /// - /// Container for the necessary parameters to execute the GetCredentials operation on AmazonRedshiftServerlessClient. - /// 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 EndGetCredentials - /// operation. - /// REST API Reference for GetCredentials Operation - IAsyncResult BeginGetCredentials(GetCredentialsRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetCredentials operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetCredentials. - /// - /// Returns a GetCredentialsResult from RedshiftServerless. - /// REST API Reference for GetCredentials Operation - GetCredentialsResponse EndGetCredentials(IAsyncResult asyncResult); - - #endregion - - #region GetEndpointAccess - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - GetEndpointAccessResponse GetEndpointAccess(GetEndpointAccessRequest request); - - /// - /// Initiates the asynchronous execution of the GetEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the GetEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndGetEndpointAccess - /// operation. - /// REST API Reference for GetEndpointAccess Operation - IAsyncResult BeginGetEndpointAccess(GetEndpointAccessRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetEndpointAccess. - /// - /// Returns a GetEndpointAccessResult from RedshiftServerless. - /// REST API Reference for GetEndpointAccess Operation - GetEndpointAccessResponse EndGetEndpointAccess(IAsyncResult asyncResult); - - #endregion - - #region GetNamespace - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - GetNamespaceResponse GetNamespace(GetNamespaceRequest request); - - /// - /// Initiates the asynchronous execution of the GetNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the GetNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndGetNamespace - /// operation. - /// REST API Reference for GetNamespace Operation - IAsyncResult BeginGetNamespace(GetNamespaceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetNamespace. - /// - /// Returns a GetNamespaceResult from RedshiftServerless. - /// REST API Reference for GetNamespace Operation - GetNamespaceResponse EndGetNamespace(IAsyncResult asyncResult); - - #endregion - - #region GetRecoveryPoint - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - GetRecoveryPointResponse GetRecoveryPoint(GetRecoveryPointRequest request); - - /// - /// Initiates the asynchronous execution of the GetRecoveryPoint operation. - /// - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint operation on AmazonRedshiftServerlessClient. - /// 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 EndGetRecoveryPoint - /// operation. - /// REST API Reference for GetRecoveryPoint Operation - IAsyncResult BeginGetRecoveryPoint(GetRecoveryPointRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetRecoveryPoint operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetRecoveryPoint. - /// - /// Returns a GetRecoveryPointResult from RedshiftServerless. - /// REST API Reference for GetRecoveryPoint Operation - GetRecoveryPointResponse EndGetRecoveryPoint(IAsyncResult asyncResult); - - #endregion - - #region GetResourcePolicy - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request); - - /// - /// Initiates the asynchronous execution of the GetResourcePolicy operation. - /// - /// - /// Container for the necessary parameters to execute the GetResourcePolicy operation on AmazonRedshiftServerlessClient. - /// 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 EndGetResourcePolicy - /// operation. - /// REST API Reference for GetResourcePolicy Operation - IAsyncResult BeginGetResourcePolicy(GetResourcePolicyRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetResourcePolicy operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetResourcePolicy. - /// - /// Returns a GetResourcePolicyResult from RedshiftServerless. - /// REST API Reference for GetResourcePolicy Operation - GetResourcePolicyResponse EndGetResourcePolicy(IAsyncResult asyncResult); - - #endregion - - #region GetSnapshot - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - GetSnapshotResponse GetSnapshot(GetSnapshotRequest request); - - /// - /// Initiates the asynchronous execution of the GetSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the GetSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndGetSnapshot - /// operation. - /// REST API Reference for GetSnapshot Operation - IAsyncResult BeginGetSnapshot(GetSnapshotRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetSnapshot. - /// - /// Returns a GetSnapshotResult from RedshiftServerless. - /// REST API Reference for GetSnapshot Operation - GetSnapshotResponse EndGetSnapshot(IAsyncResult asyncResult); - - #endregion - - #region GetUsageLimit - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - GetUsageLimitResponse GetUsageLimit(GetUsageLimitRequest request); - - /// - /// Initiates the asynchronous execution of the GetUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the GetUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndGetUsageLimit - /// operation. - /// REST API Reference for GetUsageLimit Operation - IAsyncResult BeginGetUsageLimit(GetUsageLimitRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetUsageLimit. - /// - /// Returns a GetUsageLimitResult from RedshiftServerless. - /// REST API Reference for GetUsageLimit Operation - GetUsageLimitResponse EndGetUsageLimit(IAsyncResult asyncResult); - - #endregion - - #region GetWorkgroup - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - GetWorkgroupResponse GetWorkgroup(GetWorkgroupRequest request); - - /// - /// Initiates the asynchronous execution of the GetWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the GetWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndGetWorkgroup - /// operation. - /// REST API Reference for GetWorkgroup Operation - IAsyncResult BeginGetWorkgroup(GetWorkgroupRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the GetWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginGetWorkgroup. - /// - /// Returns a GetWorkgroupResult from RedshiftServerless. - /// REST API Reference for GetWorkgroup Operation - GetWorkgroupResponse EndGetWorkgroup(IAsyncResult asyncResult); - - #endregion - - #region ListEndpointAccess - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - ListEndpointAccessResponse ListEndpointAccess(ListEndpointAccessRequest request); - - /// - /// Initiates the asynchronous execution of the ListEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the ListEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndListEndpointAccess - /// operation. - /// REST API Reference for ListEndpointAccess Operation - IAsyncResult BeginListEndpointAccess(ListEndpointAccessRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListEndpointAccess. - /// - /// Returns a ListEndpointAccessResult from RedshiftServerless. - /// REST API Reference for ListEndpointAccess Operation - ListEndpointAccessResponse EndListEndpointAccess(IAsyncResult asyncResult); - - #endregion - - #region ListNamespaces - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - ListNamespacesResponse ListNamespaces(ListNamespacesRequest request); - - /// - /// Initiates the asynchronous execution of the ListNamespaces operation. - /// - /// - /// Container for the necessary parameters to execute the ListNamespaces operation on AmazonRedshiftServerlessClient. - /// 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 EndListNamespaces - /// operation. - /// REST API Reference for ListNamespaces Operation - IAsyncResult BeginListNamespaces(ListNamespacesRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListNamespaces operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListNamespaces. - /// - /// Returns a ListNamespacesResult from RedshiftServerless. - /// REST API Reference for ListNamespaces Operation - ListNamespacesResponse EndListNamespaces(IAsyncResult asyncResult); - - #endregion - - #region ListRecoveryPoints - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - ListRecoveryPointsResponse ListRecoveryPoints(ListRecoveryPointsRequest request); - - /// - /// Initiates the asynchronous execution of the ListRecoveryPoints operation. - /// - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints operation on AmazonRedshiftServerlessClient. - /// 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 EndListRecoveryPoints - /// operation. - /// REST API Reference for ListRecoveryPoints Operation - IAsyncResult BeginListRecoveryPoints(ListRecoveryPointsRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListRecoveryPoints operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListRecoveryPoints. - /// - /// Returns a ListRecoveryPointsResult from RedshiftServerless. - /// REST API Reference for ListRecoveryPoints Operation - ListRecoveryPointsResponse EndListRecoveryPoints(IAsyncResult asyncResult); - - #endregion - - #region ListSnapshots - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - ListSnapshotsResponse ListSnapshots(ListSnapshotsRequest request); - - /// - /// Initiates the asynchronous execution of the ListSnapshots operation. - /// - /// - /// Container for the necessary parameters to execute the ListSnapshots operation on AmazonRedshiftServerlessClient. - /// 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 EndListSnapshots - /// operation. - /// REST API Reference for ListSnapshots Operation - IAsyncResult BeginListSnapshots(ListSnapshotsRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListSnapshots operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListSnapshots. - /// - /// Returns a ListSnapshotsResult from RedshiftServerless. - /// REST API Reference for ListSnapshots Operation - ListSnapshotsResponse EndListSnapshots(IAsyncResult asyncResult); - - #endregion - - #region ListTagsForResource - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); - - /// - /// Initiates the asynchronous execution of the ListTagsForResource operation. - /// - /// - /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonRedshiftServerlessClient. - /// 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 EndListTagsForResource - /// operation. - /// REST API Reference for ListTagsForResource Operation - IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListTagsForResource operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListTagsForResource. - /// - /// Returns a ListTagsForResourceResult from RedshiftServerless. - /// REST API Reference for ListTagsForResource Operation - ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); - - #endregion - - #region ListUsageLimits - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - ListUsageLimitsResponse ListUsageLimits(ListUsageLimitsRequest request); - - /// - /// Initiates the asynchronous execution of the ListUsageLimits operation. - /// - /// - /// Container for the necessary parameters to execute the ListUsageLimits operation on AmazonRedshiftServerlessClient. - /// 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 EndListUsageLimits - /// operation. - /// REST API Reference for ListUsageLimits Operation - IAsyncResult BeginListUsageLimits(ListUsageLimitsRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListUsageLimits operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListUsageLimits. - /// - /// Returns a ListUsageLimitsResult from RedshiftServerless. - /// REST API Reference for ListUsageLimits Operation - ListUsageLimitsResponse EndListUsageLimits(IAsyncResult asyncResult); - - #endregion - - #region ListWorkgroups - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - ListWorkgroupsResponse ListWorkgroups(ListWorkgroupsRequest request); - - /// - /// Initiates the asynchronous execution of the ListWorkgroups operation. - /// - /// - /// Container for the necessary parameters to execute the ListWorkgroups operation on AmazonRedshiftServerlessClient. - /// 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 EndListWorkgroups - /// operation. - /// REST API Reference for ListWorkgroups Operation - IAsyncResult BeginListWorkgroups(ListWorkgroupsRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the ListWorkgroups operation. - /// - /// - /// The IAsyncResult returned by the call to BeginListWorkgroups. - /// - /// Returns a ListWorkgroupsResult from RedshiftServerless. - /// REST API Reference for ListWorkgroups Operation - ListWorkgroupsResponse EndListWorkgroups(IAsyncResult asyncResult); - - #endregion - - #region PutResourcePolicy - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request); - - /// - /// Initiates the asynchronous execution of the PutResourcePolicy operation. - /// - /// - /// Container for the necessary parameters to execute the PutResourcePolicy operation on AmazonRedshiftServerlessClient. - /// 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 EndPutResourcePolicy - /// operation. - /// REST API Reference for PutResourcePolicy Operation - IAsyncResult BeginPutResourcePolicy(PutResourcePolicyRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the PutResourcePolicy operation. - /// - /// - /// The IAsyncResult returned by the call to BeginPutResourcePolicy. - /// - /// Returns a PutResourcePolicyResult from RedshiftServerless. - /// REST API Reference for PutResourcePolicy Operation - PutResourcePolicyResponse EndPutResourcePolicy(IAsyncResult asyncResult); - - #endregion - - #region RestoreFromRecoveryPoint - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - RestoreFromRecoveryPointResponse RestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request); - - /// - /// Initiates the asynchronous execution of the RestoreFromRecoveryPoint operation. - /// - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint operation on AmazonRedshiftServerlessClient. - /// 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 EndRestoreFromRecoveryPoint - /// operation. - /// REST API Reference for RestoreFromRecoveryPoint Operation - IAsyncResult BeginRestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the RestoreFromRecoveryPoint operation. - /// - /// - /// The IAsyncResult returned by the call to BeginRestoreFromRecoveryPoint. - /// - /// Returns a RestoreFromRecoveryPointResult from RedshiftServerless. - /// REST API Reference for RestoreFromRecoveryPoint Operation - RestoreFromRecoveryPointResponse EndRestoreFromRecoveryPoint(IAsyncResult asyncResult); - - #endregion - - #region RestoreFromSnapshot - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - RestoreFromSnapshotResponse RestoreFromSnapshot(RestoreFromSnapshotRequest request); - - /// - /// Initiates the asynchronous execution of the RestoreFromSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndRestoreFromSnapshot - /// operation. - /// REST API Reference for RestoreFromSnapshot Operation - IAsyncResult BeginRestoreFromSnapshot(RestoreFromSnapshotRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the RestoreFromSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginRestoreFromSnapshot. - /// - /// Returns a RestoreFromSnapshotResult from RedshiftServerless. - /// REST API Reference for RestoreFromSnapshot Operation - RestoreFromSnapshotResponse EndRestoreFromSnapshot(IAsyncResult asyncResult); - - #endregion - - #region TagResource - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - TagResourceResponse TagResource(TagResourceRequest request); - - /// - /// Initiates the asynchronous execution of the TagResource operation. - /// - /// - /// Container for the necessary parameters to execute the TagResource operation on AmazonRedshiftServerlessClient. - /// 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 EndTagResource - /// operation. - /// REST API Reference for TagResource Operation - IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the TagResource operation. - /// - /// - /// The IAsyncResult returned by the call to BeginTagResource. - /// - /// Returns a TagResourceResult from RedshiftServerless. - /// REST API Reference for TagResource Operation - TagResourceResponse EndTagResource(IAsyncResult asyncResult); - - #endregion - - #region UntagResource - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - UntagResourceResponse UntagResource(UntagResourceRequest request); - - /// - /// Initiates the asynchronous execution of the UntagResource operation. - /// - /// - /// Container for the necessary parameters to execute the UntagResource operation on AmazonRedshiftServerlessClient. - /// 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 EndUntagResource - /// operation. - /// REST API Reference for UntagResource Operation - IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the UntagResource operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUntagResource. - /// - /// Returns a UntagResourceResult from RedshiftServerless. - /// REST API Reference for UntagResource Operation - UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); - - #endregion - - #region UpdateEndpointAccess - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - UpdateEndpointAccessResponse UpdateEndpointAccess(UpdateEndpointAccessRequest request); - - /// - /// Initiates the asynchronous execution of the UpdateEndpointAccess operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateEndpointAccess - /// operation. - /// REST API Reference for UpdateEndpointAccess Operation - IAsyncResult BeginUpdateEndpointAccess(UpdateEndpointAccessRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the UpdateEndpointAccess operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateEndpointAccess. - /// - /// Returns a UpdateEndpointAccessResult from RedshiftServerless. - /// REST API Reference for UpdateEndpointAccess Operation - UpdateEndpointAccessResponse EndUpdateEndpointAccess(IAsyncResult asyncResult); - - #endregion - - #region UpdateNamespace - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - UpdateNamespaceResponse UpdateNamespace(UpdateNamespaceRequest request); - - /// - /// Initiates the asynchronous execution of the UpdateNamespace operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateNamespace operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateNamespace - /// operation. - /// REST API Reference for UpdateNamespace Operation - IAsyncResult BeginUpdateNamespace(UpdateNamespaceRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the UpdateNamespace operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateNamespace. - /// - /// Returns a UpdateNamespaceResult from RedshiftServerless. - /// REST API Reference for UpdateNamespace Operation - UpdateNamespaceResponse EndUpdateNamespace(IAsyncResult asyncResult); - - #endregion - - #region UpdateSnapshot - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - UpdateSnapshotResponse UpdateSnapshot(UpdateSnapshotRequest request); - - /// - /// Initiates the asynchronous execution of the UpdateSnapshot operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateSnapshot operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateSnapshot - /// operation. - /// REST API Reference for UpdateSnapshot Operation - IAsyncResult BeginUpdateSnapshot(UpdateSnapshotRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the UpdateSnapshot operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateSnapshot. - /// - /// Returns a UpdateSnapshotResult from RedshiftServerless. - /// REST API Reference for UpdateSnapshot Operation - UpdateSnapshotResponse EndUpdateSnapshot(IAsyncResult asyncResult); - - #endregion - - #region UpdateUsageLimit - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - UpdateUsageLimitResponse UpdateUsageLimit(UpdateUsageLimitRequest request); - - /// - /// Initiates the asynchronous execution of the UpdateUsageLimit operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateUsageLimit - /// operation. - /// REST API Reference for UpdateUsageLimit Operation - IAsyncResult BeginUpdateUsageLimit(UpdateUsageLimitRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the UpdateUsageLimit operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateUsageLimit. - /// - /// Returns a UpdateUsageLimitResult from RedshiftServerless. - /// REST API Reference for UpdateUsageLimit Operation - UpdateUsageLimitResponse EndUpdateUsageLimit(IAsyncResult asyncResult); - - #endregion - - #region UpdateWorkgroup - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - UpdateWorkgroupResponse UpdateWorkgroup(UpdateWorkgroupRequest request); - - /// - /// Initiates the asynchronous execution of the UpdateWorkgroup operation. - /// - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup operation on AmazonRedshiftServerlessClient. - /// 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 EndUpdateWorkgroup - /// operation. - /// REST API Reference for UpdateWorkgroup Operation - IAsyncResult BeginUpdateWorkgroup(UpdateWorkgroupRequest request, AsyncCallback callback, object state); - - - - /// - /// Finishes the asynchronous execution of the UpdateWorkgroup operation. - /// - /// - /// The IAsyncResult returned by the call to BeginUpdateWorkgroup. - /// - /// Returns a UpdateWorkgroupResult from RedshiftServerless. - /// REST API Reference for UpdateWorkgroup Operation - UpdateWorkgroupResponse EndUpdateWorkgroup(IAsyncResult asyncResult); - - #endregion - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/_bcl45/AmazonRedshiftServerlessClient.cs b/sdk/src/Services/RedshiftServerless/Generated/_bcl45/AmazonRedshiftServerlessClient.cs deleted file mode 100644 index 23f3e93d591f..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/_bcl45/AmazonRedshiftServerlessClient.cs +++ /dev/null @@ -1,2728 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.RedshiftServerless.Model.Internal.MarshallTransformations; -using Amazon.RedshiftServerless.Internal; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Auth; -using Amazon.Runtime.Internal.Transform; - -namespace Amazon.RedshiftServerless -{ - /// - /// Implementation for accessing RedshiftServerless - /// - /// This is prerelease documentation for Amazon Redshift Serverless, which is in preview - /// release. The documentation and the feature are both subject to change. We recommend - /// that you use this feature only in test environments, and not in production environments. - /// For preview terms and conditions, see Beta Service Participation in Amazon - /// Web Services Service Terms. - /// - /// - /// - /// This is an interface reference for Amazon Redshift Serverless. It contains documentation - /// for one of the programming or command line interfaces you can use to manage Amazon - /// Redshift Serverless. - /// - /// - /// - /// Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently - /// scales the underlying resources based on workload demands. Amazon Redshift Serverless - /// adjusts capacity in seconds to deliver consistently high performance and simplified - /// operations for even the most demanding and volatile workloads. Amazon Redshift Serverless - /// lets you focus on using your data to acquire new insights for your business and customers. - /// - /// - /// - /// - /// To learn more about Amazon Redshift Serverless, see What - /// is Amazon Redshift Serverless. - /// - /// - public partial class AmazonRedshiftServerlessClient : AmazonServiceClient, IAmazonRedshiftServerless - { - private static IServiceMetadata serviceMetadata = new AmazonRedshiftServerlessMetadata(); - private IRedshiftServerlessPaginatorFactory _paginators; - - /// - /// Paginators for the service - /// - public IRedshiftServerlessPaginatorFactory Paginators - { - get - { - if (this._paginators == null) - { - this._paginators = new RedshiftServerlessPaginatorFactory(this); - } - return this._paginators; - } - } - #region Constructors - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient() - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonRedshiftServerlessConfig()) { } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient(RegionEndpoint region) - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) { } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(AmazonRedshiftServerlessConfig config) - : base(FallbackCredentialsFactory.GetCredentials(), config) { } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials - /// - /// AWS Credentials - public AmazonRedshiftServerlessClient(AWSCredentials credentials) - : this(credentials, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials - /// - /// AWS Credentials - /// The region to connect. - public AmazonRedshiftServerlessClient(AWSCredentials credentials, RegionEndpoint region) - : this(credentials, new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Credentials - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(AWSCredentials credentials, AmazonRedshiftServerlessConfig clientConfig) - : base(credentials, clientConfig) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey) - : this(awsAccessKeyId, awsSecretAccessKey, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// The region to connect. - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) - : this(awsAccessKeyId, awsSecretAccessKey, new AmazonRedshiftServerlessConfig() {RegionEndpoint=region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID, AWS Secret Key and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonRedshiftServerlessConfig clientConfig) - : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// AWS Session Token - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) - : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) - : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID, AWS Secret Key and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// AWS Session Token - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonRedshiftServerlessConfig 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 ConvertRecoveryPointToSnapshot - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - public virtual ConvertRecoveryPointToSnapshotResponse ConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ConvertRecoveryPointToSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - public virtual Task ConvertRecoveryPointToSnapshotAsync(ConvertRecoveryPointToSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ConvertRecoveryPointToSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateEndpointAccess - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - public virtual CreateEndpointAccessResponse CreateEndpointAccess(CreateEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - public virtual Task CreateEndpointAccessAsync(CreateEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateNamespace - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - public virtual CreateNamespaceResponse CreateNamespace(CreateNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - public virtual Task CreateNamespaceAsync(CreateNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateSnapshot - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - public virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - public virtual Task CreateSnapshotAsync(CreateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateUsageLimit - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - public virtual CreateUsageLimitResponse CreateUsageLimit(CreateUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - public virtual Task CreateUsageLimitAsync(CreateUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateWorkgroup - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - public virtual CreateWorkgroupResponse CreateWorkgroup(CreateWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - public virtual Task CreateWorkgroupAsync(CreateWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteEndpointAccess - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - public virtual DeleteEndpointAccessResponse DeleteEndpointAccess(DeleteEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - public virtual Task DeleteEndpointAccessAsync(DeleteEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteNamespace - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - public virtual DeleteNamespaceResponse DeleteNamespace(DeleteNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - public virtual Task DeleteNamespaceAsync(DeleteNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteResourcePolicy - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - public virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - public virtual Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteSnapshot - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - public virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - public virtual Task DeleteSnapshotAsync(DeleteSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteUsageLimit - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - public virtual DeleteUsageLimitResponse DeleteUsageLimit(DeleteUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - public virtual Task DeleteUsageLimitAsync(DeleteUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteWorkgroup - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - public virtual DeleteWorkgroupResponse DeleteWorkgroup(DeleteWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - public virtual Task DeleteWorkgroupAsync(DeleteWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetCredentials - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - public virtual GetCredentialsResponse GetCredentials(GetCredentialsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetCredentialsRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetCredentialsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - public virtual Task GetCredentialsAsync(GetCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetCredentialsRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetCredentialsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetEndpointAccess - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - public virtual GetEndpointAccessResponse GetEndpointAccess(GetEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - public virtual Task GetEndpointAccessAsync(GetEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetNamespace - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - public virtual GetNamespaceResponse GetNamespace(GetNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - public virtual Task GetNamespaceAsync(GetNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetRecoveryPoint - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - public virtual GetRecoveryPointResponse GetRecoveryPoint(GetRecoveryPointRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetRecoveryPointResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - public virtual Task GetRecoveryPointAsync(GetRecoveryPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetRecoveryPointResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetResourcePolicy - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - public virtual GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - public virtual Task GetResourcePolicyAsync(GetResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetSnapshot - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - public virtual GetSnapshotResponse GetSnapshot(GetSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - public virtual Task GetSnapshotAsync(GetSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetUsageLimit - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - public virtual GetUsageLimitResponse GetUsageLimit(GetUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - public virtual Task GetUsageLimitAsync(GetUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetWorkgroup - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - public virtual GetWorkgroupResponse GetWorkgroup(GetWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - public virtual Task GetWorkgroupAsync(GetWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListEndpointAccess - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - public virtual ListEndpointAccessResponse ListEndpointAccess(ListEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - public virtual Task ListEndpointAccessAsync(ListEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListNamespaces - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - public virtual ListNamespacesResponse ListNamespaces(ListNamespacesRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListNamespacesRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListNamespacesResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - public virtual Task ListNamespacesAsync(ListNamespacesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListNamespacesRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListNamespacesResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListRecoveryPoints - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - public virtual ListRecoveryPointsResponse ListRecoveryPoints(ListRecoveryPointsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListRecoveryPointsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListRecoveryPointsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - public virtual Task ListRecoveryPointsAsync(ListRecoveryPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListRecoveryPointsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListRecoveryPointsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListSnapshots - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - public virtual ListSnapshotsResponse ListSnapshots(ListSnapshotsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListSnapshotsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListSnapshotsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - public virtual Task ListSnapshotsAsync(ListSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListSnapshotsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListSnapshotsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListTagsForResource - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListUsageLimits - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - public virtual ListUsageLimitsResponse ListUsageLimits(ListUsageLimitsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListUsageLimitsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListUsageLimitsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - public virtual Task ListUsageLimitsAsync(ListUsageLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListUsageLimitsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListUsageLimitsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListWorkgroups - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - public virtual ListWorkgroupsResponse ListWorkgroups(ListWorkgroupsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListWorkgroupsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListWorkgroupsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - public virtual Task ListWorkgroupsAsync(ListWorkgroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListWorkgroupsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListWorkgroupsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region PutResourcePolicy - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - public virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - public virtual Task PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region RestoreFromRecoveryPoint - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - public virtual RestoreFromRecoveryPointResponse RestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromRecoveryPointResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - public virtual Task RestoreFromRecoveryPointAsync(RestoreFromRecoveryPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromRecoveryPointResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region RestoreFromSnapshot - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - public virtual RestoreFromSnapshotResponse RestoreFromSnapshot(RestoreFromSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - public virtual Task RestoreFromSnapshotAsync(RestoreFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region TagResource - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - public virtual TagResourceResponse TagResource(TagResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = TagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = TagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UntagResource - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateEndpointAccess - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - public virtual UpdateEndpointAccessResponse UpdateEndpointAccess(UpdateEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - public virtual Task UpdateEndpointAccessAsync(UpdateEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateNamespace - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - public virtual UpdateNamespaceResponse UpdateNamespace(UpdateNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - public virtual Task UpdateNamespaceAsync(UpdateNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateSnapshot - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - public virtual UpdateSnapshotResponse UpdateSnapshot(UpdateSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - public virtual Task UpdateSnapshotAsync(UpdateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateUsageLimit - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - public virtual UpdateUsageLimitResponse UpdateUsageLimit(UpdateUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - public virtual Task UpdateUsageLimitAsync(UpdateUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateWorkgroup - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - public virtual UpdateWorkgroupResponse UpdateWorkgroup(UpdateWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - public virtual Task UpdateWorkgroupAsync(UpdateWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/_bcl45/IAmazonRedshiftServerless.cs b/sdk/src/Services/RedshiftServerless/Generated/_bcl45/IAmazonRedshiftServerless.cs deleted file mode 100644 index 59c43cd5a364..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/_bcl45/IAmazonRedshiftServerless.cs +++ /dev/null @@ -1,2035 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; -using System.Threading; -using System.Threading.Tasks; -using System.Collections.Generic; - -using Amazon.Runtime; -using Amazon.RedshiftServerless.Model; - -namespace Amazon.RedshiftServerless -{ - /// - /// Interface for accessing RedshiftServerless - /// - /// This is prerelease documentation for Amazon Redshift Serverless, which is in preview - /// release. The documentation and the feature are both subject to change. We recommend - /// that you use this feature only in test environments, and not in production environments. - /// For preview terms and conditions, see Beta Service Participation in Amazon - /// Web Services Service Terms. - /// - /// - /// - /// This is an interface reference for Amazon Redshift Serverless. It contains documentation - /// for one of the programming or command line interfaces you can use to manage Amazon - /// Redshift Serverless. - /// - /// - /// - /// Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently - /// scales the underlying resources based on workload demands. Amazon Redshift Serverless - /// adjusts capacity in seconds to deliver consistently high performance and simplified - /// operations for even the most demanding and volatile workloads. Amazon Redshift Serverless - /// lets you focus on using your data to acquire new insights for your business and customers. - /// - /// - /// - /// - /// To learn more about Amazon Redshift Serverless, see What - /// is Amazon Redshift Serverless. - /// - /// - public partial interface IAmazonRedshiftServerless : IAmazonService, IDisposable - { - - /// - /// Paginators for the service - /// - IRedshiftServerlessPaginatorFactory Paginators { get; } - - - #region ConvertRecoveryPointToSnapshot - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - ConvertRecoveryPointToSnapshotResponse ConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request); - - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - Task ConvertRecoveryPointToSnapshotAsync(ConvertRecoveryPointToSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateEndpointAccess - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - CreateEndpointAccessResponse CreateEndpointAccess(CreateEndpointAccessRequest request); - - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - Task CreateEndpointAccessAsync(CreateEndpointAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateNamespace - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - CreateNamespaceResponse CreateNamespace(CreateNamespaceRequest request); - - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - Task CreateNamespaceAsync(CreateNamespaceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateSnapshot - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request); - - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - Task CreateSnapshotAsync(CreateSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateUsageLimit - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - CreateUsageLimitResponse CreateUsageLimit(CreateUsageLimitRequest request); - - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - Task CreateUsageLimitAsync(CreateUsageLimitRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateWorkgroup - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - CreateWorkgroupResponse CreateWorkgroup(CreateWorkgroupRequest request); - - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - Task CreateWorkgroupAsync(CreateWorkgroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteEndpointAccess - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - DeleteEndpointAccessResponse DeleteEndpointAccess(DeleteEndpointAccessRequest request); - - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - Task DeleteEndpointAccessAsync(DeleteEndpointAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteNamespace - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - DeleteNamespaceResponse DeleteNamespace(DeleteNamespaceRequest request); - - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - Task DeleteNamespaceAsync(DeleteNamespaceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteResourcePolicy - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request); - - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteSnapshot - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request); - - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - Task DeleteSnapshotAsync(DeleteSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteUsageLimit - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - DeleteUsageLimitResponse DeleteUsageLimit(DeleteUsageLimitRequest request); - - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - Task DeleteUsageLimitAsync(DeleteUsageLimitRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteWorkgroup - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - DeleteWorkgroupResponse DeleteWorkgroup(DeleteWorkgroupRequest request); - - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - Task DeleteWorkgroupAsync(DeleteWorkgroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetCredentials - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - GetCredentialsResponse GetCredentials(GetCredentialsRequest request); - - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - Task GetCredentialsAsync(GetCredentialsRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetEndpointAccess - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - GetEndpointAccessResponse GetEndpointAccess(GetEndpointAccessRequest request); - - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - Task GetEndpointAccessAsync(GetEndpointAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetNamespace - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - GetNamespaceResponse GetNamespace(GetNamespaceRequest request); - - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - Task GetNamespaceAsync(GetNamespaceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetRecoveryPoint - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - GetRecoveryPointResponse GetRecoveryPoint(GetRecoveryPointRequest request); - - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - Task GetRecoveryPointAsync(GetRecoveryPointRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetResourcePolicy - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request); - - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - Task GetResourcePolicyAsync(GetResourcePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetSnapshot - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - GetSnapshotResponse GetSnapshot(GetSnapshotRequest request); - - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - Task GetSnapshotAsync(GetSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetUsageLimit - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - GetUsageLimitResponse GetUsageLimit(GetUsageLimitRequest request); - - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - Task GetUsageLimitAsync(GetUsageLimitRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetWorkgroup - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - GetWorkgroupResponse GetWorkgroup(GetWorkgroupRequest request); - - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - Task GetWorkgroupAsync(GetWorkgroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListEndpointAccess - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - ListEndpointAccessResponse ListEndpointAccess(ListEndpointAccessRequest request); - - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - Task ListEndpointAccessAsync(ListEndpointAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListNamespaces - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - ListNamespacesResponse ListNamespaces(ListNamespacesRequest request); - - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - Task ListNamespacesAsync(ListNamespacesRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListRecoveryPoints - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - ListRecoveryPointsResponse ListRecoveryPoints(ListRecoveryPointsRequest request); - - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - Task ListRecoveryPointsAsync(ListRecoveryPointsRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListSnapshots - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - ListSnapshotsResponse ListSnapshots(ListSnapshotsRequest request); - - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - Task ListSnapshotsAsync(ListSnapshotsRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListTagsForResource - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); - - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - Task ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListUsageLimits - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - ListUsageLimitsResponse ListUsageLimits(ListUsageLimitsRequest request); - - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - Task ListUsageLimitsAsync(ListUsageLimitsRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListWorkgroups - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - ListWorkgroupsResponse ListWorkgroups(ListWorkgroupsRequest request); - - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - Task ListWorkgroupsAsync(ListWorkgroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region PutResourcePolicy - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request); - - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - Task PutResourcePolicyAsync(PutResourcePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region RestoreFromRecoveryPoint - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - RestoreFromRecoveryPointResponse RestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request); - - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - Task RestoreFromRecoveryPointAsync(RestoreFromRecoveryPointRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region RestoreFromSnapshot - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - RestoreFromSnapshotResponse RestoreFromSnapshot(RestoreFromSnapshotRequest request); - - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - Task RestoreFromSnapshotAsync(RestoreFromSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region TagResource - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - TagResourceResponse TagResource(TagResourceRequest request); - - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - Task TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UntagResource - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - UntagResourceResponse UntagResource(UntagResourceRequest request); - - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - Task UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateEndpointAccess - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - UpdateEndpointAccessResponse UpdateEndpointAccess(UpdateEndpointAccessRequest request); - - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - Task UpdateEndpointAccessAsync(UpdateEndpointAccessRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateNamespace - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - UpdateNamespaceResponse UpdateNamespace(UpdateNamespaceRequest request); - - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - Task UpdateNamespaceAsync(UpdateNamespaceRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateSnapshot - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - UpdateSnapshotResponse UpdateSnapshot(UpdateSnapshotRequest request); - - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - Task UpdateSnapshotAsync(UpdateSnapshotRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateUsageLimit - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - UpdateUsageLimitResponse UpdateUsageLimit(UpdateUsageLimitRequest request); - - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - Task UpdateUsageLimitAsync(UpdateUsageLimitRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateWorkgroup - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - UpdateWorkgroupResponse UpdateWorkgroup(UpdateWorkgroupRequest request); - - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - Task UpdateWorkgroupAsync(UpdateWorkgroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/_netstandard/AmazonRedshiftServerlessClient.cs b/sdk/src/Services/RedshiftServerless/Generated/_netstandard/AmazonRedshiftServerlessClient.cs deleted file mode 100644 index 4910979449ef..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/_netstandard/AmazonRedshiftServerlessClient.cs +++ /dev/null @@ -1,2009 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.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.RedshiftServerless.Model; -using Amazon.RedshiftServerless.Model.Internal.MarshallTransformations; -using Amazon.RedshiftServerless.Internal; -using Amazon.Runtime; -using Amazon.Runtime.Internal; -using Amazon.Runtime.Internal.Auth; -using Amazon.Runtime.Internal.Transform; - -namespace Amazon.RedshiftServerless -{ - /// - /// Implementation for accessing RedshiftServerless - /// - /// This is prerelease documentation for Amazon Redshift Serverless, which is in preview - /// release. The documentation and the feature are both subject to change. We recommend - /// that you use this feature only in test environments, and not in production environments. - /// For preview terms and conditions, see Beta Service Participation in Amazon - /// Web Services Service Terms. - /// - /// - /// - /// This is an interface reference for Amazon Redshift Serverless. It contains documentation - /// for one of the programming or command line interfaces you can use to manage Amazon - /// Redshift Serverless. - /// - /// - /// - /// Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently - /// scales the underlying resources based on workload demands. Amazon Redshift Serverless - /// adjusts capacity in seconds to deliver consistently high performance and simplified - /// operations for even the most demanding and volatile workloads. Amazon Redshift Serverless - /// lets you focus on using your data to acquire new insights for your business and customers. - /// - /// - /// - /// - /// To learn more about Amazon Redshift Serverless, see What - /// is Amazon Redshift Serverless. - /// - /// - public partial class AmazonRedshiftServerlessClient : AmazonServiceClient, IAmazonRedshiftServerless - { - private static IServiceMetadata serviceMetadata = new AmazonRedshiftServerlessMetadata(); - - #region Constructors - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient() - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonRedshiftServerlessConfig()) { } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient(RegionEndpoint region) - : base(FallbackCredentialsFactory.GetCredentials(), new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) { } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(AmazonRedshiftServerlessConfig config) - : base(FallbackCredentialsFactory.GetCredentials(), config) { } - - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials - /// - /// AWS Credentials - public AmazonRedshiftServerlessClient(AWSCredentials credentials) - : this(credentials, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials - /// - /// AWS Credentials - /// The region to connect. - public AmazonRedshiftServerlessClient(AWSCredentials credentials, RegionEndpoint region) - : this(credentials, new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Credentials and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Credentials - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(AWSCredentials credentials, AmazonRedshiftServerlessConfig clientConfig) - : base(credentials, clientConfig) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey) - : this(awsAccessKeyId, awsSecretAccessKey, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// The region to connect. - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) - : this(awsAccessKeyId, awsSecretAccessKey, new AmazonRedshiftServerlessConfig() {RegionEndpoint=region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID, AWS Secret Key and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonRedshiftServerlessConfig clientConfig) - : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID and AWS Secret Key - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// AWS Session Token - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) - : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonRedshiftServerlessConfig()) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient 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 AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) - : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonRedshiftServerlessConfig{RegionEndpoint = region}) - { - } - - /// - /// Constructs AmazonRedshiftServerlessClient with AWS Access Key ID, AWS Secret Key and an - /// AmazonRedshiftServerlessClient Configuration object. - /// - /// AWS Access Key ID - /// AWS Secret Access Key - /// AWS Session Token - /// The AmazonRedshiftServerlessClient Configuration Object - public AmazonRedshiftServerlessClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonRedshiftServerlessConfig clientConfig) - : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) - { - } - - #endregion -#if AWS_ASYNC_ENUMERABLES_API - private IRedshiftServerlessPaginatorFactory _paginators; - - /// - /// Paginators for the service - /// - public IRedshiftServerlessPaginatorFactory Paginators - { - get - { - if (this._paginators == null) - { - this._paginators = new RedshiftServerlessPaginatorFactory(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 ConvertRecoveryPointToSnapshot - - internal virtual ConvertRecoveryPointToSnapshotResponse ConvertRecoveryPointToSnapshot(ConvertRecoveryPointToSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ConvertRecoveryPointToSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - public virtual Task ConvertRecoveryPointToSnapshotAsync(ConvertRecoveryPointToSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ConvertRecoveryPointToSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateEndpointAccess - - internal virtual CreateEndpointAccessResponse CreateEndpointAccess(CreateEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - public virtual Task CreateEndpointAccessAsync(CreateEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateNamespace - - internal virtual CreateNamespaceResponse CreateNamespace(CreateNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - public virtual Task CreateNamespaceAsync(CreateNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateSnapshot - - internal virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - public virtual Task CreateSnapshotAsync(CreateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateUsageLimit - - internal virtual CreateUsageLimitResponse CreateUsageLimit(CreateUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - public virtual Task CreateUsageLimitAsync(CreateUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region CreateWorkgroup - - internal virtual CreateWorkgroupResponse CreateWorkgroup(CreateWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - public virtual Task CreateWorkgroupAsync(CreateWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = CreateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = CreateWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteEndpointAccess - - internal virtual DeleteEndpointAccessResponse DeleteEndpointAccess(DeleteEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - public virtual Task DeleteEndpointAccessAsync(DeleteEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteNamespace - - internal virtual DeleteNamespaceResponse DeleteNamespace(DeleteNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - public virtual Task DeleteNamespaceAsync(DeleteNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteResourcePolicy - - internal virtual DeleteResourcePolicyResponse DeleteResourcePolicy(DeleteResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - public virtual Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteResourcePolicyResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteSnapshot - - internal virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - public virtual Task DeleteSnapshotAsync(DeleteSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteUsageLimit - - internal virtual DeleteUsageLimitResponse DeleteUsageLimit(DeleteUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - public virtual Task DeleteUsageLimitAsync(DeleteUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region DeleteWorkgroup - - internal virtual DeleteWorkgroupResponse DeleteWorkgroup(DeleteWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - public virtual Task DeleteWorkgroupAsync(DeleteWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = DeleteWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = DeleteWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetCredentials - - internal virtual GetCredentialsResponse GetCredentials(GetCredentialsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetCredentialsRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetCredentialsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - public virtual Task GetCredentialsAsync(GetCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetCredentialsRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetCredentialsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetEndpointAccess - - internal virtual GetEndpointAccessResponse GetEndpointAccess(GetEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - public virtual Task GetEndpointAccessAsync(GetEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetNamespace - - internal virtual GetNamespaceResponse GetNamespace(GetNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - public virtual Task GetNamespaceAsync(GetNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetRecoveryPoint - - internal virtual GetRecoveryPointResponse GetRecoveryPoint(GetRecoveryPointRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetRecoveryPointResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - public virtual Task GetRecoveryPointAsync(GetRecoveryPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetRecoveryPointResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetResourcePolicy - - internal virtual GetResourcePolicyResponse GetResourcePolicy(GetResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - public virtual Task GetResourcePolicyAsync(GetResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetResourcePolicyResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetSnapshot - - internal virtual GetSnapshotResponse GetSnapshot(GetSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - public virtual Task GetSnapshotAsync(GetSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetUsageLimit - - internal virtual GetUsageLimitResponse GetUsageLimit(GetUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - public virtual Task GetUsageLimitAsync(GetUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region GetWorkgroup - - internal virtual GetWorkgroupResponse GetWorkgroup(GetWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - public virtual Task GetWorkgroupAsync(GetWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = GetWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = GetWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListEndpointAccess - - internal virtual ListEndpointAccessResponse ListEndpointAccess(ListEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - public virtual Task ListEndpointAccessAsync(ListEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListNamespaces - - internal virtual ListNamespacesResponse ListNamespaces(ListNamespacesRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListNamespacesRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListNamespacesResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - public virtual Task ListNamespacesAsync(ListNamespacesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListNamespacesRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListNamespacesResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListRecoveryPoints - - internal virtual ListRecoveryPointsResponse ListRecoveryPoints(ListRecoveryPointsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListRecoveryPointsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListRecoveryPointsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - public virtual Task ListRecoveryPointsAsync(ListRecoveryPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListRecoveryPointsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListRecoveryPointsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListSnapshots - - internal virtual ListSnapshotsResponse ListSnapshots(ListSnapshotsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListSnapshotsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListSnapshotsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - public virtual Task ListSnapshotsAsync(ListSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListSnapshotsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListSnapshotsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListTagsForResource - - internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListUsageLimits - - internal virtual ListUsageLimitsResponse ListUsageLimits(ListUsageLimitsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListUsageLimitsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListUsageLimitsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - public virtual Task ListUsageLimitsAsync(ListUsageLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListUsageLimitsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListUsageLimitsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region ListWorkgroups - - internal virtual ListWorkgroupsResponse ListWorkgroups(ListWorkgroupsRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListWorkgroupsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListWorkgroupsResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - public virtual Task ListWorkgroupsAsync(ListWorkgroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = ListWorkgroupsRequestMarshaller.Instance; - options.ResponseUnmarshaller = ListWorkgroupsResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region PutResourcePolicy - - internal virtual PutResourcePolicyResponse PutResourcePolicy(PutResourcePolicyRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - public virtual Task PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = PutResourcePolicyRequestMarshaller.Instance; - options.ResponseUnmarshaller = PutResourcePolicyResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region RestoreFromRecoveryPoint - - internal virtual RestoreFromRecoveryPointResponse RestoreFromRecoveryPoint(RestoreFromRecoveryPointRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromRecoveryPointResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - public virtual Task RestoreFromRecoveryPointAsync(RestoreFromRecoveryPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromRecoveryPointRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromRecoveryPointResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region RestoreFromSnapshot - - internal virtual RestoreFromSnapshotResponse RestoreFromSnapshot(RestoreFromSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - public virtual Task RestoreFromSnapshotAsync(RestoreFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = RestoreFromSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = RestoreFromSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region TagResource - - internal virtual TagResourceResponse TagResource(TagResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = TagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = TagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UntagResource - - internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateEndpointAccess - - internal virtual UpdateEndpointAccessResponse UpdateEndpointAccess(UpdateEndpointAccessRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateEndpointAccessResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - public virtual Task UpdateEndpointAccessAsync(UpdateEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateEndpointAccessRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateEndpointAccessResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateNamespace - - internal virtual UpdateNamespaceResponse UpdateNamespace(UpdateNamespaceRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateNamespaceResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - public virtual Task UpdateNamespaceAsync(UpdateNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateNamespaceRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateNamespaceResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateSnapshot - - internal virtual UpdateSnapshotResponse UpdateSnapshot(UpdateSnapshotRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - public virtual Task UpdateSnapshotAsync(UpdateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateUsageLimit - - internal virtual UpdateUsageLimitResponse UpdateUsageLimit(UpdateUsageLimitRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateUsageLimitResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - public virtual Task UpdateUsageLimitAsync(UpdateUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateUsageLimitRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateUsageLimitResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - #region UpdateWorkgroup - - internal virtual UpdateWorkgroupResponse UpdateWorkgroup(UpdateWorkgroupRequest request) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateWorkgroupResponseUnmarshaller.Instance; - - return Invoke(request, options); - } - - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - public virtual Task UpdateWorkgroupAsync(UpdateWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) - { - var options = new InvokeOptions(); - options.RequestMarshaller = UpdateWorkgroupRequestMarshaller.Instance; - options.ResponseUnmarshaller = UpdateWorkgroupResponseUnmarshaller.Instance; - - return InvokeAsync(request, options, cancellationToken); - } - - #endregion - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Generated/_netstandard/IAmazonRedshiftServerless.cs b/sdk/src/Services/RedshiftServerless/Generated/_netstandard/IAmazonRedshiftServerless.cs deleted file mode 100644 index a3acc7a527a8..000000000000 --- a/sdk/src/Services/RedshiftServerless/Generated/_netstandard/IAmazonRedshiftServerless.cs +++ /dev/null @@ -1,1201 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; -using System.Threading; -using System.Threading.Tasks; -using System.Collections.Generic; - -using Amazon.Runtime; -using Amazon.RedshiftServerless.Model; - -namespace Amazon.RedshiftServerless -{ - /// - /// Interface for accessing RedshiftServerless - /// - /// This is prerelease documentation for Amazon Redshift Serverless, which is in preview - /// release. The documentation and the feature are both subject to change. We recommend - /// that you use this feature only in test environments, and not in production environments. - /// For preview terms and conditions, see Beta Service Participation in Amazon - /// Web Services Service Terms. - /// - /// - /// - /// This is an interface reference for Amazon Redshift Serverless. It contains documentation - /// for one of the programming or command line interfaces you can use to manage Amazon - /// Redshift Serverless. - /// - /// - /// - /// Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently - /// scales the underlying resources based on workload demands. Amazon Redshift Serverless - /// adjusts capacity in seconds to deliver consistently high performance and simplified - /// operations for even the most demanding and volatile workloads. Amazon Redshift Serverless - /// lets you focus on using your data to acquire new insights for your business and customers. - /// - /// - /// - /// - /// To learn more about Amazon Redshift Serverless, see What - /// is Amazon Redshift Serverless. - /// - /// - public partial interface IAmazonRedshiftServerless : IAmazonService, IDisposable - { -#if AWS_ASYNC_ENUMERABLES_API - /// - /// Paginators for the service - /// - IRedshiftServerlessPaginatorFactory Paginators { get; } -#endif - - #region ConvertRecoveryPointToSnapshot - - - - /// - /// Converts a recovery point to a snapshot. For more information about recovery points - /// and snapshots, see Working - /// with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the ConvertRecoveryPointToSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ConvertRecoveryPointToSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ConvertRecoveryPointToSnapshot Operation - Task ConvertRecoveryPointToSnapshotAsync(ConvertRecoveryPointToSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateEndpointAccess - - - - /// - /// Creates an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the CreateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateEndpointAccess Operation - Task CreateEndpointAccessAsync(CreateEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateNamespace - - - - /// - /// Creates a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateNamespace Operation - Task CreateNamespaceAsync(CreateNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateSnapshot - - - - /// - /// Creates a snapshot of all databases in a namespace. For more information about snapshots, - /// see - /// Working with snapshots and recovery points. - /// - /// Container for the necessary parameters to execute the CreateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateSnapshot Operation - Task CreateSnapshotAsync(CreateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateUsageLimit - - - - /// - /// Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage - /// limit is identified by the returned usage limit identifier. - /// - /// Container for the necessary parameters to execute the CreateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateUsageLimit Operation - Task CreateUsageLimitAsync(CreateUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region CreateWorkgroup - - - - /// - /// Creates an workgroup in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the CreateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the CreateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for CreateWorkgroup Operation - Task CreateWorkgroupAsync(CreateWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteEndpointAccess - - - - /// - /// Deletes an Amazon Redshift Serverless managed VPC endpoint. - /// - /// Container for the necessary parameters to execute the DeleteEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteEndpointAccess Operation - Task DeleteEndpointAccessAsync(DeleteEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteNamespace - - - - /// - /// Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, - /// you can create a final snapshot that has all of the data within the namespace. - /// - /// Container for the necessary parameters to execute the DeleteNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteNamespace Operation - Task DeleteNamespaceAsync(DeleteNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteResourcePolicy - - - - /// - /// Deletes the specified resource policy. - /// - /// Container for the necessary parameters to execute the DeleteResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteResourcePolicy Operation - Task DeleteResourcePolicyAsync(DeleteResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteSnapshot - - - - /// - /// Deletes a snapshot from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteSnapshot Operation - Task DeleteSnapshotAsync(DeleteSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteUsageLimit - - - - /// - /// Deletes a usage limit from Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the DeleteUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteUsageLimit Operation - Task DeleteUsageLimitAsync(DeleteUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region DeleteWorkgroup - - - - /// - /// Deletes a workgroup. - /// - /// Container for the necessary parameters to execute the DeleteWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the DeleteWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for DeleteWorkgroup Operation - Task DeleteWorkgroupAsync(DeleteWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetCredentials - - - - /// - /// Returns a database user name and temporary password with temporary authorization to - /// log in to Amazon Redshift Serverless. - /// - /// - /// - /// By default, the temporary credentials expire in 900 seconds. You can optionally specify - /// a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes). - /// - ///
 <p> The Identity and Access Management (IAM) user or role that
-        /// runs GetCredentials must have an IAM policy attached that allows access to all necessary
-        /// actions and resources. </p> <p> If the <code>DbName</code>
-        /// parameter is specified, the IAM policy must allow access to the resource dbname for
-        /// the specified database name.</p> 
- ///
- /// Container for the necessary parameters to execute the GetCredentials service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetCredentials service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetCredentials Operation - Task GetCredentialsAsync(GetCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetEndpointAccess - - - - /// - /// Returns information, such as the name, about a VPC endpoint. - /// - /// Container for the necessary parameters to execute the GetEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetEndpointAccess Operation - Task GetEndpointAccessAsync(GetEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetNamespace - - - - /// - /// Returns information about a namespace in Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the GetNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetNamespace service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetNamespace Operation - Task GetNamespaceAsync(GetNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetRecoveryPoint - - - - /// - /// Returns information about a recovery point. - /// - /// Container for the necessary parameters to execute the GetRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetRecoveryPoint Operation - Task GetRecoveryPointAsync(GetRecoveryPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetResourcePolicy - - - - /// - /// Returns a resource policy. - /// - /// Container for the necessary parameters to execute the GetResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetResourcePolicy Operation - Task GetResourcePolicyAsync(GetResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetSnapshot - - - - /// - /// Returns information about a specific snapshot. - /// - /// Container for the necessary parameters to execute the GetSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetSnapshot service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetSnapshot Operation - Task GetSnapshotAsync(GetSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetUsageLimit - - - - /// - /// Returns information about a usage limit. - /// - /// Container for the necessary parameters to execute the GetUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetUsageLimit Operation - Task GetUsageLimitAsync(GetUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region GetWorkgroup - - - - /// - /// Returns information about a specific workgroup. - /// - /// Container for the necessary parameters to execute the GetWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the GetWorkgroup service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for GetWorkgroup Operation - Task GetWorkgroupAsync(GetWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListEndpointAccess - - - - /// - /// Returns an array of EndpointAccess objects and relevant information. - /// - /// Container for the necessary parameters to execute the ListEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListEndpointAccess service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListEndpointAccess Operation - Task ListEndpointAccessAsync(ListEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListNamespaces - - - - /// - /// Returns information about a list of specified namespaces. - /// - /// Container for the necessary parameters to execute the ListNamespaces service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListNamespaces service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListNamespaces Operation - Task ListNamespacesAsync(ListNamespacesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListRecoveryPoints - - - - /// - /// Returns an array of recovery points. - /// - /// Container for the necessary parameters to execute the ListRecoveryPoints service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListRecoveryPoints service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListRecoveryPoints Operation - Task ListRecoveryPointsAsync(ListRecoveryPointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListSnapshots - - - - /// - /// Returns a list of snapshots. - /// - /// Container for the necessary parameters to execute the ListSnapshots service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListSnapshots service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListSnapshots Operation - Task ListSnapshotsAsync(ListSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListTagsForResource - - - - /// - /// Lists the tags assigned to a resource. - /// - /// Container for the necessary parameters to execute the ListTagsForResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListTagsForResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListTagsForResource Operation - Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListUsageLimits - - - - /// - /// Lists all usage limits within Amazon Redshift Serverless. - /// - /// Container for the necessary parameters to execute the ListUsageLimits service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListUsageLimits service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The provided pagination token is invalid. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListUsageLimits Operation - Task ListUsageLimitsAsync(ListUsageLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region ListWorkgroups - - - - /// - /// Returns information about a list of specified workgroups. - /// - /// Container for the necessary parameters to execute the ListWorkgroups service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the ListWorkgroups service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for ListWorkgroups Operation - Task ListWorkgroupsAsync(ListWorkgroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region PutResourcePolicy - - - - /// - /// Creates or updates a resource policy. Currently, you can use policies to share snapshots - /// across Amazon Web Services accounts. - /// - /// Container for the necessary parameters to execute the PutResourcePolicy service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the PutResourcePolicy service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for PutResourcePolicy Operation - Task PutResourcePolicyAsync(PutResourcePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region RestoreFromRecoveryPoint - - - - /// - /// Restore the data from a recovery point. - /// - /// Container for the necessary parameters to execute the RestoreFromRecoveryPoint service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromRecoveryPoint service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromRecoveryPoint Operation - Task RestoreFromRecoveryPointAsync(RestoreFromRecoveryPointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region RestoreFromSnapshot - - - - /// - /// Restores a namespace from a snapshot. - /// - /// Container for the necessary parameters to execute the RestoreFromSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the RestoreFromSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The service limit was exceeded. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for RestoreFromSnapshot Operation - Task RestoreFromSnapshotAsync(RestoreFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region TagResource - - - - /// - /// Assigns one or more tags to a resource. - /// - /// Container for the necessary parameters to execute the TagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the TagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The request exceeded the number of tags allowed for a resource. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for TagResource Operation - Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UntagResource - - - - /// - /// Removes a tag or set of tags from a resource. - /// - /// Container for the necessary parameters to execute the UntagResource service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UntagResource service method, as returned by RedshiftServerless. - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The request was denied due to request throttling. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UntagResource Operation - Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateEndpointAccess - - - - /// - /// Updates an Amazon Redshift Serverless managed endpoint. - /// - /// Container for the necessary parameters to execute the UpdateEndpointAccess service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateEndpointAccess service method, as returned by RedshiftServerless. - /// - /// You do not have sufficient access to perform this action. - /// - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateEndpointAccess Operation - Task UpdateEndpointAccessAsync(UpdateEndpointAccessRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateNamespace - - - - /// - /// Updates a namespace with the specified settings. - /// - /// Container for the necessary parameters to execute the UpdateNamespace service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateNamespace service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateNamespace Operation - Task UpdateNamespaceAsync(UpdateNamespaceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateSnapshot - - - - /// - /// Updates a snapshot. - /// - /// Container for the necessary parameters to execute the UpdateSnapshot service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateSnapshot service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateSnapshot Operation - Task UpdateSnapshotAsync(UpdateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateUsageLimit - - - - /// - /// Update a usage limit in Amazon Redshift Serverless. You can't update the usage type - /// or period of a usage limit. - /// - /// Container for the necessary parameters to execute the UpdateUsageLimit service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateUsageLimit service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateUsageLimit Operation - Task UpdateUsageLimitAsync(UpdateUsageLimitRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - #region UpdateWorkgroup - - - - /// - /// Updates a workgroup with the specified configuration settings. - /// - /// Container for the necessary parameters to execute the UpdateWorkgroup service method. - /// - /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. - /// - /// - /// The response from the UpdateWorkgroup service method, as returned by RedshiftServerless. - /// - /// The submitted action has conflicts. - /// - /// - /// There is an insufficient capacity to perform the action. - /// - /// - /// The request processing has failed because of an unknown error, exception or failure. - /// - /// - /// The resource could not be found. - /// - /// - /// The input failed to satisfy the constraints specified by an AWS service. - /// - /// REST API Reference for UpdateWorkgroup Operation - Task UpdateWorkgroupAsync(UpdateWorkgroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); - - #endregion - - } -} \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/Properties/AssemblyInfo.cs b/sdk/src/Services/RedshiftServerless/Properties/AssemblyInfo.cs deleted file mode 100644 index b2f9e74b839d..000000000000 --- a/sdk/src/Services/RedshiftServerless/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,51 +0,0 @@ -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.RedshiftServerless")] -#if BCL35 -[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Redshift Serverless. Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.")] -#elif BCL45 -[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Redshift Serverless. Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.")] -#elif NETSTANDARD20 -[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Redshift Serverless. Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.")] -#elif NETCOREAPP3_1 -[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Redshift Serverless. Add new API operations for Amazon Redshift Serverless, a new way of using Amazon Redshift without needing to manually manage provisioned clusters. The new operations let you interact with Redshift Serverless resources, such as create snapshots, list VPC endpoints, delete resource policies, and more.")] -#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.7.0.1")] - -[assembly: System.CLSCompliant(true)] - -#if BCL -[assembly: System.Security.AllowPartiallyTrustedCallers] -#endif \ No newline at end of file diff --git a/sdk/src/Services/RedshiftServerless/RedshiftServerless.sln b/sdk/src/Services/RedshiftServerless/RedshiftServerless.sln deleted file mode 100644 index 7a8ca1e08826..000000000000 --- a/sdk/src/Services/RedshiftServerless/RedshiftServerless.sln +++ /dev/null @@ -1,199 +0,0 @@ -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}") = "RedshiftServerless", "RedshiftServerless", "{CD319E95-E3AB-FC9D-48DB-2E22BA64C67B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.Net35", "AWSSDK.RedshiftServerless.Net35.csproj", "{4DDC6731-6D77-4179-BCD4-21379AD1C46C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.Net45", "AWSSDK.RedshiftServerless.Net45.csproj", "{80881F8F-FF3E-449B-A208-20FF57E9D5A8}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.RedshiftServerless.NetStandard", "AWSSDK.RedshiftServerless.NetStandard.csproj", "{46DBEA8F-1C4C-412D-86C2-3F8AFE7048E9}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.RedshiftServerless.Net35", "..\..\..\test\Services\RedshiftServerless\UnitTests\AWSSDK.UnitTests.RedshiftServerless.Net35.csproj", "{C8C4A152-6CE5-4982-94E8-1BEE15B7D242}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.UnitTests.RedshiftServerless.Net45", "..\..\..\test\Services\RedshiftServerless\UnitTests\AWSSDK.UnitTests.RedshiftServerless.Net45.csproj", "{1F1DB639-7669-4BB0-9659-EEC3D75CC53A}" -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.Extensions.CrtIntegration.Net35", "..\..\..\..\extensions\src\AWSSDK.Extensions.CrtIntegration\AWSSDK.Extensions.CrtIntegration.Net35.csproj", "{DDD7FFF7-2F5C-4691-B8F8-67EB3AD17666}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.CrtIntegration.Net45", "..\..\..\..\extensions\src\AWSSDK.Extensions.CrtIntegration\AWSSDK.Extensions.CrtIntegration.Net45.csproj", "{EE7FBAAD-B627-4813-9121-500CFA9436EC}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IdentityManagement.Net35", "..\IdentityManagement\AWSSDK.IdentityManagement.Net35.csproj", "{046120E3-28F7-4671-BE41-3EA51412BC7E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SecurityToken.Net35", "..\SecurityToken\AWSSDK.SecurityToken.Net35.csproj", "{257B88EE-6642-41D5-ACAD-A3F524B67EC3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SimpleNotificationService.Net35", "..\SimpleNotificationService\AWSSDK.SimpleNotificationService.Net35.csproj", "{E9E46729-0277-44ED-9F7D-52B04F0ADD63}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.Net35", "..\S3\AWSSDK.S3.Net35.csproj", "{1957D5DA-F7FE-48AF-9E8A-611A29834AE9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.IdentityManagement.Net45", "..\IdentityManagement\AWSSDK.IdentityManagement.Net45.csproj", "{7C16CD60-2978-42CC-A30A-6CE1E8762DF5}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.Net45", "..\S3\AWSSDK.S3.Net45.csproj", "{21A63C4B-1CD8-4463-B8C7-7A93A84FCE57}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SecurityToken.Net45", "..\SecurityToken\AWSSDK.SecurityToken.Net45.csproj", "{0C89A5B2-4C51-448F-AADA-0AF5057BAE2E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.SimpleNotificationService.Net45", "..\SimpleNotificationService\AWSSDK.SimpleNotificationService.Net45.csproj", "{E565F1AF-65A0-4042-9051-39D531F172E1}" -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 - {4DDC6731-6D77-4179-BCD4-21379AD1C46C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4DDC6731-6D77-4179-BCD4-21379AD1C46C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4DDC6731-6D77-4179-BCD4-21379AD1C46C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4DDC6731-6D77-4179-BCD4-21379AD1C46C}.Release|Any CPU.Build.0 = Release|Any CPU - {80881F8F-FF3E-449B-A208-20FF57E9D5A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {80881F8F-FF3E-449B-A208-20FF57E9D5A8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {80881F8F-FF3E-449B-A208-20FF57E9D5A8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {80881F8F-FF3E-449B-A208-20FF57E9D5A8}.Release|Any CPU.Build.0 = Release|Any CPU - {46DBEA8F-1C4C-412D-86C2-3F8AFE7048E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {46DBEA8F-1C4C-412D-86C2-3F8AFE7048E9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {46DBEA8F-1C4C-412D-86C2-3F8AFE7048E9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {46DBEA8F-1C4C-412D-86C2-3F8AFE7048E9}.Release|Any CPU.Build.0 = Release|Any CPU - {C8C4A152-6CE5-4982-94E8-1BEE15B7D242}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C8C4A152-6CE5-4982-94E8-1BEE15B7D242}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C8C4A152-6CE5-4982-94E8-1BEE15B7D242}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C8C4A152-6CE5-4982-94E8-1BEE15B7D242}.Release|Any CPU.Build.0 = Release|Any CPU - {1F1DB639-7669-4BB0-9659-EEC3D75CC53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1F1DB639-7669-4BB0-9659-EEC3D75CC53A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1F1DB639-7669-4BB0-9659-EEC3D75CC53A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1F1DB639-7669-4BB0-9659-EEC3D75CC53A}.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 - {DDD7FFF7-2F5C-4691-B8F8-67EB3AD17666}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DDD7FFF7-2F5C-4691-B8F8-67EB3AD17666}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DDD7FFF7-2F5C-4691-B8F8-67EB3AD17666}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DDD7FFF7-2F5C-4691-B8F8-67EB3AD17666}.Release|Any CPU.Build.0 = Release|Any CPU - {EE7FBAAD-B627-4813-9121-500CFA9436EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EE7FBAAD-B627-4813-9121-500CFA9436EC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EE7FBAAD-B627-4813-9121-500CFA9436EC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EE7FBAAD-B627-4813-9121-500CFA9436EC}.Release|Any CPU.Build.0 = Release|Any CPU - {046120E3-28F7-4671-BE41-3EA51412BC7E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {046120E3-28F7-4671-BE41-3EA51412BC7E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {046120E3-28F7-4671-BE41-3EA51412BC7E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {046120E3-28F7-4671-BE41-3EA51412BC7E}.Release|Any CPU.Build.0 = Release|Any CPU - {257B88EE-6642-41D5-ACAD-A3F524B67EC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {257B88EE-6642-41D5-ACAD-A3F524B67EC3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {257B88EE-6642-41D5-ACAD-A3F524B67EC3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {257B88EE-6642-41D5-ACAD-A3F524B67EC3}.Release|Any CPU.Build.0 = Release|Any CPU - {E9E46729-0277-44ED-9F7D-52B04F0ADD63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E9E46729-0277-44ED-9F7D-52B04F0ADD63}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E9E46729-0277-44ED-9F7D-52B04F0ADD63}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E9E46729-0277-44ED-9F7D-52B04F0ADD63}.Release|Any CPU.Build.0 = Release|Any CPU - {1957D5DA-F7FE-48AF-9E8A-611A29834AE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1957D5DA-F7FE-48AF-9E8A-611A29834AE9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1957D5DA-F7FE-48AF-9E8A-611A29834AE9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1957D5DA-F7FE-48AF-9E8A-611A29834AE9}.Release|Any CPU.Build.0 = Release|Any CPU - {7C16CD60-2978-42CC-A30A-6CE1E8762DF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7C16CD60-2978-42CC-A30A-6CE1E8762DF5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7C16CD60-2978-42CC-A30A-6CE1E8762DF5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7C16CD60-2978-42CC-A30A-6CE1E8762DF5}.Release|Any CPU.Build.0 = Release|Any CPU - {21A63C4B-1CD8-4463-B8C7-7A93A84FCE57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {21A63C4B-1CD8-4463-B8C7-7A93A84FCE57}.Debug|Any CPU.Build.0 = Debug|Any CPU - {21A63C4B-1CD8-4463-B8C7-7A93A84FCE57}.Release|Any CPU.ActiveCfg = Release|Any CPU - {21A63C4B-1CD8-4463-B8C7-7A93A84FCE57}.Release|Any CPU.Build.0 = Release|Any CPU - {0C89A5B2-4C51-448F-AADA-0AF5057BAE2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0C89A5B2-4C51-448F-AADA-0AF5057BAE2E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0C89A5B2-4C51-448F-AADA-0AF5057BAE2E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0C89A5B2-4C51-448F-AADA-0AF5057BAE2E}.Release|Any CPU.Build.0 = Release|Any CPU - {E565F1AF-65A0-4042-9051-39D531F172E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E565F1AF-65A0-4042-9051-39D531F172E1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E565F1AF-65A0-4042-9051-39D531F172E1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E565F1AF-65A0-4042-9051-39D531F172E1}.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} - {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AB} - {4DDC6731-6D77-4179-BCD4-21379AD1C46C} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} - {80881F8F-FF3E-449B-A208-20FF57E9D5A8} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} - {46DBEA8F-1C4C-412D-86C2-3F8AFE7048E9} = {CD319E95-E3AB-FC9D-48DB-2E22BA64C67B} - {C8C4A152-6CE5-4982-94E8-1BEE15B7D242} = {12EC4E4B-7E2C-4B63-8EF9-7B959F82A89B} - {1F1DB639-7669-4BB0-9659-EEC3D75CC53A} = {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} - {DDD7FFF7-2F5C-4691-B8F8-67EB3AD17666} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {EE7FBAAD-B627-4813-9121-500CFA9436EC} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {046120E3-28F7-4671-BE41-3EA51412BC7E} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {257B88EE-6642-41D5-ACAD-A3F524B67EC3} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {E9E46729-0277-44ED-9F7D-52B04F0ADD63} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {1957D5DA-F7FE-48AF-9E8A-611A29834AE9} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {7C16CD60-2978-42CC-A30A-6CE1E8762DF5} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {21A63C4B-1CD8-4463-B8C7-7A93A84FCE57} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {0C89A5B2-4C51-448F-AADA-0AF5057BAE2E} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - {E565F1AF-65A0-4042-9051-39D531F172E1} = {939EC5C2-8345-43E2-8F97-72EEEBEEA0AC} - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {9CA95EF6-A2F5-4F8E-A83C-0BAA4CC455DD} - EndGlobalSection -EndGlobal \ No newline at end of file diff --git a/sdk/test/Services/RedshiftServerless/UnitTests/AWSSDK.UnitTests.RedshiftServerless.Net35.csproj b/sdk/test/Services/RedshiftServerless/UnitTests/AWSSDK.UnitTests.RedshiftServerless.Net35.csproj deleted file mode 100644 index 2870e12a4391..000000000000 --- a/sdk/test/Services/RedshiftServerless/UnitTests/AWSSDK.UnitTests.RedshiftServerless.Net35.csproj +++ /dev/null @@ -1,54 +0,0 @@ - - - true - net45 - $(DefineConstants);TRACE;BCL;BCL35;AWS_APM_API;DEBUG - portable - true - AWSSDK.UnitTests.RedshiftServerless.Net35 - AWSSDK.UnitTests.RedshiftServerless.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/RedshiftServerless/UnitTests/AWSSDK.UnitTests.RedshiftServerless.Net45.csproj b/sdk/test/Services/RedshiftServerless/UnitTests/AWSSDK.UnitTests.RedshiftServerless.Net45.csproj deleted file mode 100644 index 85feaae4bc13..000000000000 --- a/sdk/test/Services/RedshiftServerless/UnitTests/AWSSDK.UnitTests.RedshiftServerless.Net45.csproj +++ /dev/null @@ -1,50 +0,0 @@ - - - true - net45 - $(DefineConstants);TRACE;BCL;BCL45;ASYNC_AWAIT;DEBUG - portable - true - AWSSDK.UnitTests.RedshiftServerless.Net45 - AWSSDK.UnitTests.RedshiftServerless.Net45 - - false - false - false - false - false - false - false - false - - CS1591 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sdk/test/Services/RedshiftServerless/UnitTests/Generated/Marshalling/RedshiftServerlessMarshallingTests.cs b/sdk/test/Services/RedshiftServerless/UnitTests/Generated/Marshalling/RedshiftServerlessMarshallingTests.cs deleted file mode 100644 index 97f68ca50456..000000000000 --- a/sdk/test/Services/RedshiftServerless/UnitTests/Generated/Marshalling/RedshiftServerlessMarshallingTests.cs +++ /dev/null @@ -1,5778 +0,0 @@ -/* - * 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 redshiftserverless-2021-04-21.normal.json service model. - */ - - -using System; -using System.IO; -using System.Linq; -using System.Text; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -using Amazon.RedshiftServerless; -using Amazon.RedshiftServerless.Model; -using Amazon.RedshiftServerless.Model.Internal.MarshallTransformations; -using Amazon.Runtime.Internal.Transform; - -using ServiceClientGenerator; - -using AWSSDK_DotNet35.UnitTests.TestTools; - -namespace AWSSDK_DotNet35.UnitTests.Marshalling -{ - [TestClass] - public class RedshiftServerlessMarshallingTests - { - static readonly ServiceModel service_model = Utils.LoadServiceModel("redshiftserverless"); - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ConvertRecoveryPointToSnapshotMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ConvertRecoveryPointToSnapshot").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as ConvertRecoveryPointToSnapshotResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ConvertRecoveryPointToSnapshot_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("ConvertRecoveryPointToSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ConvertRecoveryPointToSnapshot_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ConvertRecoveryPointToSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ConvertRecoveryPointToSnapshot_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("ConvertRecoveryPointToSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ConvertRecoveryPointToSnapshot_ServiceQuotaExceededExceptionMarshallTest() - { - var operation = service_model.FindOperation("ConvertRecoveryPointToSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ServiceQuotaExceededException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ServiceQuotaExceededException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ConvertRecoveryPointToSnapshot_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ConvertRecoveryPointToSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ConvertRecoveryPointToSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ConvertRecoveryPointToSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccessMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("CreateEndpointAccess").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.Unmarshall(context) as CreateEndpointAccessResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccess_AccessDeniedExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("AccessDeniedException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","AccessDeniedException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccess_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccess_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccess_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccess_ServiceQuotaExceededExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ServiceQuotaExceededException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ServiceQuotaExceededException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateEndpointAccess_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateNamespaceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateNamespaceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("CreateNamespace").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = CreateNamespaceResponseUnmarshaller.Instance.Unmarshall(context) as CreateNamespaceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateNamespace_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateNamespace_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateNamespace_TooManyTagsExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("TooManyTagsException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","TooManyTagsException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateNamespace_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateSnapshotMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateSnapshotRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("CreateSnapshot").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = CreateSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as CreateSnapshotResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateSnapshot_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateSnapshot_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateSnapshot_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateSnapshot_ServiceQuotaExceededExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ServiceQuotaExceededException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ServiceQuotaExceededException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateSnapshot_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateUsageLimitMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateUsageLimitRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("CreateUsageLimit").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = CreateUsageLimitResponseUnmarshaller.Instance.Unmarshall(context) as CreateUsageLimitResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateUsageLimit_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateUsageLimit_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateUsageLimit_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateUsageLimit_ServiceQuotaExceededExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ServiceQuotaExceededException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ServiceQuotaExceededException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateUsageLimit_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroupMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("CreateWorkgroup").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = CreateWorkgroupResponseUnmarshaller.Instance.Unmarshall(context) as CreateWorkgroupResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroup_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroup_InsufficientCapacityExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InsufficientCapacityException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InsufficientCapacityException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroup_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroup_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroup_TooManyTagsExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("TooManyTagsException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","TooManyTagsException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void CreateWorkgroup_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("CreateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new CreateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = CreateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteEndpointAccessMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteEndpointAccessRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteEndpointAccess").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = DeleteEndpointAccessResponseUnmarshaller.Instance.Unmarshall(context) as DeleteEndpointAccessResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteEndpointAccess_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteEndpointAccess_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteEndpointAccess_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteEndpointAccess_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteNamespaceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteNamespaceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteNamespace").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = DeleteNamespaceResponseUnmarshaller.Instance.Unmarshall(context) as DeleteNamespaceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteNamespace_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteNamespace_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteNamespace_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteNamespace_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteResourcePolicyMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteResourcePolicyRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteResourcePolicy").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = DeleteResourcePolicyResponseUnmarshaller.Instance.Unmarshall(context) as DeleteResourcePolicyResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteResourcePolicy_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteResourcePolicy_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteResourcePolicy_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteSnapshotMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteSnapshotRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteSnapshot").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = DeleteSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as DeleteSnapshotResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteSnapshot_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteSnapshot_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteSnapshot_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteSnapshot_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteUsageLimitMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteUsageLimitRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteUsageLimit").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = DeleteUsageLimitResponseUnmarshaller.Instance.Unmarshall(context) as DeleteUsageLimitResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteUsageLimit_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteUsageLimit_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteUsageLimit_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteUsageLimit_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteWorkgroupMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteWorkgroupRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DeleteWorkgroup").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = DeleteWorkgroupResponseUnmarshaller.Instance.Unmarshall(context) as DeleteWorkgroupResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteWorkgroup_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteWorkgroup_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteWorkgroup_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void DeleteWorkgroup_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("DeleteWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new DeleteWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = DeleteWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetCredentialsMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetCredentialsRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetCredentials").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetCredentialsResponseUnmarshaller.Instance.Unmarshall(context) as GetCredentialsResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetCredentials_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetCredentials"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetCredentialsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetCredentialsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetCredentials_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetCredentials"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetCredentialsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetCredentialsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetCredentials_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetCredentials"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetCredentialsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetCredentialsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetEndpointAccessMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetEndpointAccessRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetEndpointAccess").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetEndpointAccessResponseUnmarshaller.Instance.Unmarshall(context) as GetEndpointAccessResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetEndpointAccess_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetEndpointAccess_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetEndpointAccess_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetEndpointAccess_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetNamespaceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetNamespaceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetNamespace").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetNamespaceResponseUnmarshaller.Instance.Unmarshall(context) as GetNamespaceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetNamespace_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetNamespace_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetNamespace_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetRecoveryPointMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetRecoveryPointRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetRecoveryPoint").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetRecoveryPointResponseUnmarshaller.Instance.Unmarshall(context) as GetRecoveryPointResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetRecoveryPoint_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetRecoveryPoint_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetRecoveryPoint_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetRecoveryPoint_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetResourcePolicyMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetResourcePolicyRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetResourcePolicy").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetResourcePolicyResponseUnmarshaller.Instance.Unmarshall(context) as GetResourcePolicyResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetResourcePolicy_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetResourcePolicy_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetResourcePolicy_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetSnapshotMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetSnapshotRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetSnapshot").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as GetSnapshotResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetSnapshot_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetSnapshot_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetSnapshot_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetUsageLimitMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetUsageLimitRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetUsageLimit").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetUsageLimitResponseUnmarshaller.Instance.Unmarshall(context) as GetUsageLimitResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetUsageLimit_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetUsageLimit_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetUsageLimit_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetUsageLimit_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetWorkgroupMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetWorkgroupRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("GetWorkgroup").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = GetWorkgroupResponseUnmarshaller.Instance.Unmarshall(context) as GetWorkgroupResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetWorkgroup_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetWorkgroup_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void GetWorkgroup_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("GetWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new GetWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = GetWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListEndpointAccessMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListEndpointAccessRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListEndpointAccess").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListEndpointAccessResponseUnmarshaller.Instance.Unmarshall(context) as ListEndpointAccessResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListEndpointAccess_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListEndpointAccess_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListEndpointAccess_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListEndpointAccess_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListNamespacesMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListNamespacesRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListNamespaces").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListNamespacesResponseUnmarshaller.Instance.Unmarshall(context) as ListNamespacesResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListNamespaces_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListNamespaces"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListNamespacesRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListNamespacesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListNamespaces_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListNamespaces"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListNamespacesRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListNamespacesResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListRecoveryPointsMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListRecoveryPointsRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListRecoveryPoints").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListRecoveryPointsResponseUnmarshaller.Instance.Unmarshall(context) as ListRecoveryPointsResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListRecoveryPoints_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListRecoveryPoints"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListRecoveryPointsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListRecoveryPointsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListRecoveryPoints_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListRecoveryPoints"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListRecoveryPointsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListRecoveryPointsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListSnapshotsMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListSnapshotsRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListSnapshots").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListSnapshotsResponseUnmarshaller.Instance.Unmarshall(context) as ListSnapshotsResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListSnapshots_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListSnapshots"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListSnapshotsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListSnapshotsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListSnapshots_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListSnapshots"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListSnapshotsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListSnapshotsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListSnapshots_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListSnapshots"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListSnapshotsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListSnapshotsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListTagsForResourceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListTagsForResourceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListTagsForResource").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListTagsForResourceResponseUnmarshaller.Instance.Unmarshall(context) as ListTagsForResourceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListTagsForResource_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListTagsForResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListTagsForResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListTagsForResource_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListTagsForResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListTagsForResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListTagsForResource_ThrottlingExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListTagsForResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListTagsForResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ThrottlingException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ThrottlingException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListTagsForResource_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListTagsForResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListTagsForResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListTagsForResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListUsageLimitsMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListUsageLimitsRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListUsageLimits").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListUsageLimitsResponseUnmarshaller.Instance.Unmarshall(context) as ListUsageLimitsResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListUsageLimits_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListUsageLimits"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListUsageLimitsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListUsageLimitsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListUsageLimits_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListUsageLimits"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListUsageLimitsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListUsageLimitsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListUsageLimits_InvalidPaginationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListUsageLimits"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListUsageLimitsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InvalidPaginationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InvalidPaginationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListUsageLimitsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListUsageLimits_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListUsageLimits"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListUsageLimitsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListUsageLimitsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListUsageLimits_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListUsageLimits"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListUsageLimitsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListUsageLimitsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListWorkgroupsMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListWorkgroupsRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("ListWorkgroups").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = ListWorkgroupsResponseUnmarshaller.Instance.Unmarshall(context) as ListWorkgroupsResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListWorkgroups_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListWorkgroups"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListWorkgroupsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListWorkgroupsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void ListWorkgroups_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("ListWorkgroups"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new ListWorkgroupsRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = ListWorkgroupsResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void PutResourcePolicyMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new PutResourcePolicyRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("PutResourcePolicy").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = PutResourcePolicyResponseUnmarshaller.Instance.Unmarshall(context) as PutResourcePolicyResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void PutResourcePolicy_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("PutResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new PutResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = PutResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void PutResourcePolicy_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("PutResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new PutResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = PutResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void PutResourcePolicy_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("PutResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new PutResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = PutResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void PutResourcePolicy_ServiceQuotaExceededExceptionMarshallTest() - { - var operation = service_model.FindOperation("PutResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new PutResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ServiceQuotaExceededException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ServiceQuotaExceededException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = PutResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void PutResourcePolicy_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("PutResourcePolicy"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new PutResourcePolicyRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = PutResourcePolicyResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromRecoveryPointMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromRecoveryPointRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("RestoreFromRecoveryPoint").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = RestoreFromRecoveryPointResponseUnmarshaller.Instance.Unmarshall(context) as RestoreFromRecoveryPointResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromRecoveryPoint_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromRecoveryPoint_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromRecoveryPoint_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromRecoveryPoint_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromRecoveryPoint"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromRecoveryPointRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromRecoveryPointResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromSnapshotMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromSnapshotRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("RestoreFromSnapshot").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = RestoreFromSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as RestoreFromSnapshotResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromSnapshot_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromSnapshot_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromSnapshot_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromSnapshot_ServiceQuotaExceededExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ServiceQuotaExceededException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ServiceQuotaExceededException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void RestoreFromSnapshot_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("RestoreFromSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new RestoreFromSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = RestoreFromSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void TagResourceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new TagResourceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("TagResource").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = TagResourceResponseUnmarshaller.Instance.Unmarshall(context) as TagResourceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void TagResource_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("TagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new TagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = TagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void TagResource_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("TagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new TagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = TagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void TagResource_ThrottlingExceptionMarshallTest() - { - var operation = service_model.FindOperation("TagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new TagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ThrottlingException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ThrottlingException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = TagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void TagResource_TooManyTagsExceptionMarshallTest() - { - var operation = service_model.FindOperation("TagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new TagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("TooManyTagsException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","TooManyTagsException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = TagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void TagResource_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("TagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new TagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = TagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UntagResourceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UntagResourceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("UntagResource").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = UntagResourceResponseUnmarshaller.Instance.Unmarshall(context) as UntagResourceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UntagResource_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("UntagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UntagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UntagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UntagResource_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("UntagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UntagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UntagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UntagResource_ThrottlingExceptionMarshallTest() - { - var operation = service_model.FindOperation("UntagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UntagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ThrottlingException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ThrottlingException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UntagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UntagResource_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("UntagResource"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UntagResourceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UntagResourceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateEndpointAccessMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateEndpointAccessRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("UpdateEndpointAccess").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = UpdateEndpointAccessResponseUnmarshaller.Instance.Unmarshall(context) as UpdateEndpointAccessResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateEndpointAccess_AccessDeniedExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("AccessDeniedException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","AccessDeniedException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateEndpointAccess_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateEndpointAccess_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateEndpointAccess_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateEndpointAccess_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateEndpointAccess"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateEndpointAccessRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateEndpointAccessResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateNamespaceMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateNamespaceRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("UpdateNamespace").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = UpdateNamespaceResponseUnmarshaller.Instance.Unmarshall(context) as UpdateNamespaceResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateNamespace_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateNamespace_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateNamespace_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateNamespace_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateNamespace"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateNamespaceRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateNamespaceResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateSnapshotMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateSnapshotRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("UpdateSnapshot").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = UpdateSnapshotResponseUnmarshaller.Instance.Unmarshall(context) as UpdateSnapshotResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateSnapshot_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateSnapshot_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateSnapshot_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateSnapshot_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateSnapshot"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateSnapshotRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateSnapshotResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateUsageLimitMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateUsageLimitRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("UpdateUsageLimit").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = UpdateUsageLimitResponseUnmarshaller.Instance.Unmarshall(context) as UpdateUsageLimitResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateUsageLimit_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateUsageLimit_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateUsageLimit_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateUsageLimit_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateUsageLimit"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateUsageLimitRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateUsageLimitResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateWorkgroupMarshallTest() - { - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateWorkgroupRequestMarshaller(); - - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - Comparer.CompareObjectToJson(request,jsonRequest); - - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"} - } - }; - var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("UpdateWorkgroup").ResponseStructure).Execute(); - webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); - UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); - var response = UpdateWorkgroupResponseUnmarshaller.Instance.Unmarshall(context) as UpdateWorkgroupResponse; - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateWorkgroup_ConflictExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ConflictException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ConflictException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateWorkgroup_InsufficientCapacityExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InsufficientCapacityException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InsufficientCapacityException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateWorkgroup_InternalServerExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("InternalServerException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","InternalServerException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateWorkgroup_ResourceNotFoundExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ResourceNotFoundException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ResourceNotFoundException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - - [TestMethod] - [TestCategory("UnitTest")] - [TestCategory("Json")] - [TestCategory("RedshiftServerless")] - public void UpdateWorkgroup_ValidationExceptionMarshallTest() - { - var operation = service_model.FindOperation("UpdateWorkgroup"); - - var request = InstantiateClassGenerator.Execute(); - var marshaller = new UpdateWorkgroupRequestMarshaller(); - var internalRequest = marshaller.Marshall(request); - var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); - - Comparer.CompareObjectToJson(request,jsonRequest); - - var exception = operation.Exceptions.First(e => e.Name.Equals("ValidationException")); - var jsonResponse = new JsonSampleGenerator(service_model, exception).Execute(); - var webResponse = new WebResponseData - { - Headers = { - {"x-amzn-RequestId", Guid.NewGuid().ToString()}, - {"x-amz-crc32","0"}, - {"x-amzn-ErrorType","ValidationException"}, - {"Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()} - } - }; - var context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), true, webResponse, true); - var response = UpdateWorkgroupResponseUnmarshaller.Instance.UnmarshallException(context, null, System.Net.HttpStatusCode.OK); - - InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); - } - } -} \ No newline at end of file