From b2dfbf733b246f94850c77f6632a107dcf5be1c5 Mon Sep 17 00:00:00 2001 From: Sean McGrail Date: Thu, 23 Jun 2022 11:46:51 -0700 Subject: [PATCH] Remove redshift-serverless --- .../redshiftserverless/2021-04-21/api-2.json | 1687 --- .../redshiftserverless/2021-04-21/docs-2.json | 1075 -- .../2021-04-21/examples-1.json | 5 - .../2021-04-21/paginators-1.json | 40 - service/redshiftserverless/api.go | 9457 ----------------- service/redshiftserverless/doc.go | 46 - service/redshiftserverless/errors.go | 84 - .../redshiftserverlessiface/interface.go | 230 - service/redshiftserverless/service.go | 107 - 9 files changed, 12731 deletions(-) delete mode 100644 models/apis/redshiftserverless/2021-04-21/api-2.json delete mode 100644 models/apis/redshiftserverless/2021-04-21/docs-2.json delete mode 100644 models/apis/redshiftserverless/2021-04-21/examples-1.json delete mode 100644 models/apis/redshiftserverless/2021-04-21/paginators-1.json delete mode 100644 service/redshiftserverless/api.go delete mode 100644 service/redshiftserverless/doc.go delete mode 100644 service/redshiftserverless/errors.go delete mode 100644 service/redshiftserverless/redshiftserverlessiface/interface.go delete mode 100644 service/redshiftserverless/service.go diff --git a/models/apis/redshiftserverless/2021-04-21/api-2.json b/models/apis/redshiftserverless/2021-04-21/api-2.json deleted file mode 100644 index 048287be97..0000000000 --- a/models/apis/redshiftserverless/2021-04-21/api-2.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/models/apis/redshiftserverless/2021-04-21/docs-2.json b/models/apis/redshiftserverless/2021-04-21/docs-2.json deleted file mode 100644 index 358e8aab15..0000000000 --- a/models/apis/redshiftserverless/2021-04-21/docs-2.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/models/apis/redshiftserverless/2021-04-21/examples-1.json b/models/apis/redshiftserverless/2021-04-21/examples-1.json deleted file mode 100644 index 0ea7e3b0bb..0000000000 --- a/models/apis/redshiftserverless/2021-04-21/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/models/apis/redshiftserverless/2021-04-21/paginators-1.json b/models/apis/redshiftserverless/2021-04-21/paginators-1.json deleted file mode 100644 index cf5163d450..0000000000 --- a/models/apis/redshiftserverless/2021-04-21/paginators-1.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/service/redshiftserverless/api.go b/service/redshiftserverless/api.go deleted file mode 100644 index 20138e153a..0000000000 --- a/service/redshiftserverless/api.go +++ /dev/null @@ -1,9457 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package redshiftserverless - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" -) - -const opConvertRecoveryPointToSnapshot = "ConvertRecoveryPointToSnapshot" - -// ConvertRecoveryPointToSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the ConvertRecoveryPointToSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ConvertRecoveryPointToSnapshot for more information on using the ConvertRecoveryPointToSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ConvertRecoveryPointToSnapshotRequest method. -// req, resp := client.ConvertRecoveryPointToSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ConvertRecoveryPointToSnapshot -func (c *RedshiftServerless) ConvertRecoveryPointToSnapshotRequest(input *ConvertRecoveryPointToSnapshotInput) (req *request.Request, output *ConvertRecoveryPointToSnapshotOutput) { - op := &request.Operation{ - Name: opConvertRecoveryPointToSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ConvertRecoveryPointToSnapshotInput{} - } - - output = &ConvertRecoveryPointToSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// ConvertRecoveryPointToSnapshot API operation for Redshift Serverless. -// -// Converts a recovery point to a snapshot. For more information about recovery -// points and snapshots, see Working with snapshots and recovery points (https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html). -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ConvertRecoveryPointToSnapshot for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ServiceQuotaExceededException -// The service limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ConvertRecoveryPointToSnapshot -func (c *RedshiftServerless) ConvertRecoveryPointToSnapshot(input *ConvertRecoveryPointToSnapshotInput) (*ConvertRecoveryPointToSnapshotOutput, error) { - req, out := c.ConvertRecoveryPointToSnapshotRequest(input) - return out, req.Send() -} - -// ConvertRecoveryPointToSnapshotWithContext is the same as ConvertRecoveryPointToSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See ConvertRecoveryPointToSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ConvertRecoveryPointToSnapshotWithContext(ctx aws.Context, input *ConvertRecoveryPointToSnapshotInput, opts ...request.Option) (*ConvertRecoveryPointToSnapshotOutput, error) { - req, out := c.ConvertRecoveryPointToSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateEndpointAccess = "CreateEndpointAccess" - -// CreateEndpointAccessRequest generates a "aws/request.Request" representing the -// client's request for the CreateEndpointAccess operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateEndpointAccess for more information on using the CreateEndpointAccess -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the CreateEndpointAccessRequest method. -// req, resp := client.CreateEndpointAccessRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateEndpointAccess -func (c *RedshiftServerless) CreateEndpointAccessRequest(input *CreateEndpointAccessInput) (req *request.Request, output *CreateEndpointAccessOutput) { - op := &request.Operation{ - Name: opCreateEndpointAccess, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateEndpointAccessInput{} - } - - output = &CreateEndpointAccessOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateEndpointAccess API operation for Redshift Serverless. -// -// Creates an Amazon Redshift Serverless managed VPC endpoint. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation CreateEndpointAccess for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * AccessDeniedException -// You do not have sufficient access to perform this action. -// -// * ServiceQuotaExceededException -// The service limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateEndpointAccess -func (c *RedshiftServerless) CreateEndpointAccess(input *CreateEndpointAccessInput) (*CreateEndpointAccessOutput, error) { - req, out := c.CreateEndpointAccessRequest(input) - return out, req.Send() -} - -// CreateEndpointAccessWithContext is the same as CreateEndpointAccess with the addition of -// the ability to pass a context and additional request options. -// -// See CreateEndpointAccess for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) CreateEndpointAccessWithContext(ctx aws.Context, input *CreateEndpointAccessInput, opts ...request.Option) (*CreateEndpointAccessOutput, error) { - req, out := c.CreateEndpointAccessRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateNamespace = "CreateNamespace" - -// CreateNamespaceRequest generates a "aws/request.Request" representing the -// client's request for the CreateNamespace operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateNamespace for more information on using the CreateNamespace -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the CreateNamespaceRequest method. -// req, resp := client.CreateNamespaceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateNamespace -func (c *RedshiftServerless) CreateNamespaceRequest(input *CreateNamespaceInput) (req *request.Request, output *CreateNamespaceOutput) { - op := &request.Operation{ - Name: opCreateNamespace, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateNamespaceInput{} - } - - output = &CreateNamespaceOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateNamespace API operation for Redshift Serverless. -// -// Creates a namespace in Amazon Redshift Serverless. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation CreateNamespace for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * TooManyTagsException -// The request exceeded the number of tags allowed for a resource. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateNamespace -func (c *RedshiftServerless) CreateNamespace(input *CreateNamespaceInput) (*CreateNamespaceOutput, error) { - req, out := c.CreateNamespaceRequest(input) - return out, req.Send() -} - -// CreateNamespaceWithContext is the same as CreateNamespace with the addition of -// the ability to pass a context and additional request options. -// -// See CreateNamespace for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) CreateNamespaceWithContext(ctx aws.Context, input *CreateNamespaceInput, opts ...request.Option) (*CreateNamespaceOutput, error) { - req, out := c.CreateNamespaceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateSnapshot = "CreateSnapshot" - -// CreateSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the CreateSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateSnapshot for more information on using the CreateSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the CreateSnapshotRequest method. -// req, resp := client.CreateSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateSnapshot -func (c *RedshiftServerless) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput) { - op := &request.Operation{ - Name: opCreateSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateSnapshotInput{} - } - - output = &CreateSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateSnapshot API operation for Redshift Serverless. -// -// Creates a snapshot of all databases in a namespace. For more information -// about snapshots, see Working with snapshots and recovery points (https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html). -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation CreateSnapshot for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ServiceQuotaExceededException -// The service limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateSnapshot -func (c *RedshiftServerless) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error) { - req, out := c.CreateSnapshotRequest(input) - return out, req.Send() -} - -// CreateSnapshotWithContext is the same as CreateSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See CreateSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*CreateSnapshotOutput, error) { - req, out := c.CreateSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateUsageLimit = "CreateUsageLimit" - -// CreateUsageLimitRequest generates a "aws/request.Request" representing the -// client's request for the CreateUsageLimit operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateUsageLimit for more information on using the CreateUsageLimit -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the CreateUsageLimitRequest method. -// req, resp := client.CreateUsageLimitRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateUsageLimit -func (c *RedshiftServerless) CreateUsageLimitRequest(input *CreateUsageLimitInput) (req *request.Request, output *CreateUsageLimitOutput) { - op := &request.Operation{ - Name: opCreateUsageLimit, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateUsageLimitInput{} - } - - output = &CreateUsageLimitOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateUsageLimit API operation for Redshift Serverless. -// -// Creates a usage limit for a specified Amazon Redshift Serverless usage type. -// The usage limit is identified by the returned usage limit identifier. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation CreateUsageLimit for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ServiceQuotaExceededException -// The service limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateUsageLimit -func (c *RedshiftServerless) CreateUsageLimit(input *CreateUsageLimitInput) (*CreateUsageLimitOutput, error) { - req, out := c.CreateUsageLimitRequest(input) - return out, req.Send() -} - -// CreateUsageLimitWithContext is the same as CreateUsageLimit with the addition of -// the ability to pass a context and additional request options. -// -// See CreateUsageLimit for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) CreateUsageLimitWithContext(ctx aws.Context, input *CreateUsageLimitInput, opts ...request.Option) (*CreateUsageLimitOutput, error) { - req, out := c.CreateUsageLimitRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opCreateWorkgroup = "CreateWorkgroup" - -// CreateWorkgroupRequest generates a "aws/request.Request" representing the -// client's request for the CreateWorkgroup operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See CreateWorkgroup for more information on using the CreateWorkgroup -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the CreateWorkgroupRequest method. -// req, resp := client.CreateWorkgroupRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateWorkgroup -func (c *RedshiftServerless) CreateWorkgroupRequest(input *CreateWorkgroupInput) (req *request.Request, output *CreateWorkgroupOutput) { - op := &request.Operation{ - Name: opCreateWorkgroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &CreateWorkgroupInput{} - } - - output = &CreateWorkgroupOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateWorkgroup API operation for Redshift Serverless. -// -// Creates an workgroup in Amazon Redshift Serverless. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation CreateWorkgroup for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * InsufficientCapacityException -// There is an insufficient capacity to perform the action. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * TooManyTagsException -// The request exceeded the number of tags allowed for a resource. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/CreateWorkgroup -func (c *RedshiftServerless) CreateWorkgroup(input *CreateWorkgroupInput) (*CreateWorkgroupOutput, error) { - req, out := c.CreateWorkgroupRequest(input) - return out, req.Send() -} - -// CreateWorkgroupWithContext is the same as CreateWorkgroup with the addition of -// the ability to pass a context and additional request options. -// -// See CreateWorkgroup for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) CreateWorkgroupWithContext(ctx aws.Context, input *CreateWorkgroupInput, opts ...request.Option) (*CreateWorkgroupOutput, error) { - req, out := c.CreateWorkgroupRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteEndpointAccess = "DeleteEndpointAccess" - -// DeleteEndpointAccessRequest generates a "aws/request.Request" representing the -// client's request for the DeleteEndpointAccess operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteEndpointAccess for more information on using the DeleteEndpointAccess -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the DeleteEndpointAccessRequest method. -// req, resp := client.DeleteEndpointAccessRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteEndpointAccess -func (c *RedshiftServerless) DeleteEndpointAccessRequest(input *DeleteEndpointAccessInput) (req *request.Request, output *DeleteEndpointAccessOutput) { - op := &request.Operation{ - Name: opDeleteEndpointAccess, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteEndpointAccessInput{} - } - - output = &DeleteEndpointAccessOutput{} - req = c.newRequest(op, input, output) - return -} - -// DeleteEndpointAccess API operation for Redshift Serverless. -// -// Deletes an Amazon Redshift Serverless managed VPC endpoint. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation DeleteEndpointAccess for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteEndpointAccess -func (c *RedshiftServerless) DeleteEndpointAccess(input *DeleteEndpointAccessInput) (*DeleteEndpointAccessOutput, error) { - req, out := c.DeleteEndpointAccessRequest(input) - return out, req.Send() -} - -// DeleteEndpointAccessWithContext is the same as DeleteEndpointAccess with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteEndpointAccess for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) DeleteEndpointAccessWithContext(ctx aws.Context, input *DeleteEndpointAccessInput, opts ...request.Option) (*DeleteEndpointAccessOutput, error) { - req, out := c.DeleteEndpointAccessRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteNamespace = "DeleteNamespace" - -// DeleteNamespaceRequest generates a "aws/request.Request" representing the -// client's request for the DeleteNamespace operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteNamespace for more information on using the DeleteNamespace -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the DeleteNamespaceRequest method. -// req, resp := client.DeleteNamespaceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteNamespace -func (c *RedshiftServerless) DeleteNamespaceRequest(input *DeleteNamespaceInput) (req *request.Request, output *DeleteNamespaceOutput) { - op := &request.Operation{ - Name: opDeleteNamespace, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteNamespaceInput{} - } - - output = &DeleteNamespaceOutput{} - req = c.newRequest(op, input, output) - return -} - -// DeleteNamespace API operation for Redshift Serverless. -// -// 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. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation DeleteNamespace for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteNamespace -func (c *RedshiftServerless) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNamespaceOutput, error) { - req, out := c.DeleteNamespaceRequest(input) - return out, req.Send() -} - -// DeleteNamespaceWithContext is the same as DeleteNamespace with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteNamespace for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) DeleteNamespaceWithContext(ctx aws.Context, input *DeleteNamespaceInput, opts ...request.Option) (*DeleteNamespaceOutput, error) { - req, out := c.DeleteNamespaceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteResourcePolicy = "DeleteResourcePolicy" - -// DeleteResourcePolicyRequest generates a "aws/request.Request" representing the -// client's request for the DeleteResourcePolicy operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteResourcePolicy for more information on using the DeleteResourcePolicy -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the DeleteResourcePolicyRequest method. -// req, resp := client.DeleteResourcePolicyRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteResourcePolicy -func (c *RedshiftServerless) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (req *request.Request, output *DeleteResourcePolicyOutput) { - op := &request.Operation{ - Name: opDeleteResourcePolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteResourcePolicyInput{} - } - - output = &DeleteResourcePolicyOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// DeleteResourcePolicy API operation for Redshift Serverless. -// -// Deletes the specified resource policy. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation DeleteResourcePolicy for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteResourcePolicy -func (c *RedshiftServerless) DeleteResourcePolicy(input *DeleteResourcePolicyInput) (*DeleteResourcePolicyOutput, error) { - req, out := c.DeleteResourcePolicyRequest(input) - return out, req.Send() -} - -// DeleteResourcePolicyWithContext is the same as DeleteResourcePolicy with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteResourcePolicy for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) DeleteResourcePolicyWithContext(ctx aws.Context, input *DeleteResourcePolicyInput, opts ...request.Option) (*DeleteResourcePolicyOutput, error) { - req, out := c.DeleteResourcePolicyRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteSnapshot = "DeleteSnapshot" - -// DeleteSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteSnapshot for more information on using the DeleteSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the DeleteSnapshotRequest method. -// req, resp := client.DeleteSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteSnapshot -func (c *RedshiftServerless) DeleteSnapshotRequest(input *DeleteSnapshotInput) (req *request.Request, output *DeleteSnapshotOutput) { - op := &request.Operation{ - Name: opDeleteSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteSnapshotInput{} - } - - output = &DeleteSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// DeleteSnapshot API operation for Redshift Serverless. -// -// Deletes a snapshot from Amazon Redshift Serverless. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation DeleteSnapshot for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteSnapshot -func (c *RedshiftServerless) DeleteSnapshot(input *DeleteSnapshotInput) (*DeleteSnapshotOutput, error) { - req, out := c.DeleteSnapshotRequest(input) - return out, req.Send() -} - -// DeleteSnapshotWithContext is the same as DeleteSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) DeleteSnapshotWithContext(ctx aws.Context, input *DeleteSnapshotInput, opts ...request.Option) (*DeleteSnapshotOutput, error) { - req, out := c.DeleteSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteUsageLimit = "DeleteUsageLimit" - -// DeleteUsageLimitRequest generates a "aws/request.Request" representing the -// client's request for the DeleteUsageLimit operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteUsageLimit for more information on using the DeleteUsageLimit -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the DeleteUsageLimitRequest method. -// req, resp := client.DeleteUsageLimitRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteUsageLimit -func (c *RedshiftServerless) DeleteUsageLimitRequest(input *DeleteUsageLimitInput) (req *request.Request, output *DeleteUsageLimitOutput) { - op := &request.Operation{ - Name: opDeleteUsageLimit, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteUsageLimitInput{} - } - - output = &DeleteUsageLimitOutput{} - req = c.newRequest(op, input, output) - return -} - -// DeleteUsageLimit API operation for Redshift Serverless. -// -// Deletes a usage limit from Amazon Redshift Serverless. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation DeleteUsageLimit for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteUsageLimit -func (c *RedshiftServerless) DeleteUsageLimit(input *DeleteUsageLimitInput) (*DeleteUsageLimitOutput, error) { - req, out := c.DeleteUsageLimitRequest(input) - return out, req.Send() -} - -// DeleteUsageLimitWithContext is the same as DeleteUsageLimit with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteUsageLimit for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) DeleteUsageLimitWithContext(ctx aws.Context, input *DeleteUsageLimitInput, opts ...request.Option) (*DeleteUsageLimitOutput, error) { - req, out := c.DeleteUsageLimitRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDeleteWorkgroup = "DeleteWorkgroup" - -// DeleteWorkgroupRequest generates a "aws/request.Request" representing the -// client's request for the DeleteWorkgroup operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteWorkgroup for more information on using the DeleteWorkgroup -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the DeleteWorkgroupRequest method. -// req, resp := client.DeleteWorkgroupRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteWorkgroup -func (c *RedshiftServerless) DeleteWorkgroupRequest(input *DeleteWorkgroupInput) (req *request.Request, output *DeleteWorkgroupOutput) { - op := &request.Operation{ - Name: opDeleteWorkgroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &DeleteWorkgroupInput{} - } - - output = &DeleteWorkgroupOutput{} - req = c.newRequest(op, input, output) - return -} - -// DeleteWorkgroup API operation for Redshift Serverless. -// -// Deletes a workgroup. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation DeleteWorkgroup for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/DeleteWorkgroup -func (c *RedshiftServerless) DeleteWorkgroup(input *DeleteWorkgroupInput) (*DeleteWorkgroupOutput, error) { - req, out := c.DeleteWorkgroupRequest(input) - return out, req.Send() -} - -// DeleteWorkgroupWithContext is the same as DeleteWorkgroup with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteWorkgroup for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) DeleteWorkgroupWithContext(ctx aws.Context, input *DeleteWorkgroupInput, opts ...request.Option) (*DeleteWorkgroupOutput, error) { - req, out := c.DeleteWorkgroupRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetCredentials = "GetCredentials" - -// GetCredentialsRequest generates a "aws/request.Request" representing the -// client's request for the GetCredentials operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetCredentials for more information on using the GetCredentials -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetCredentialsRequest method. -// req, resp := client.GetCredentialsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetCredentials -func (c *RedshiftServerless) GetCredentialsRequest(input *GetCredentialsInput) (req *request.Request, output *GetCredentialsOutput) { - op := &request.Operation{ - Name: opGetCredentials, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetCredentialsInput{} - } - - output = &GetCredentialsOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetCredentials API operation for Redshift Serverless. -// -// 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). -// -//

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.

If the DbName parameter is specified, -// the IAM policy must allow access to the resource dbname for the specified -// database name.

-// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetCredentials for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetCredentials -func (c *RedshiftServerless) GetCredentials(input *GetCredentialsInput) (*GetCredentialsOutput, error) { - req, out := c.GetCredentialsRequest(input) - return out, req.Send() -} - -// GetCredentialsWithContext is the same as GetCredentials with the addition of -// the ability to pass a context and additional request options. -// -// See GetCredentials for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetCredentialsWithContext(ctx aws.Context, input *GetCredentialsInput, opts ...request.Option) (*GetCredentialsOutput, error) { - req, out := c.GetCredentialsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetEndpointAccess = "GetEndpointAccess" - -// GetEndpointAccessRequest generates a "aws/request.Request" representing the -// client's request for the GetEndpointAccess operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetEndpointAccess for more information on using the GetEndpointAccess -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetEndpointAccessRequest method. -// req, resp := client.GetEndpointAccessRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetEndpointAccess -func (c *RedshiftServerless) GetEndpointAccessRequest(input *GetEndpointAccessInput) (req *request.Request, output *GetEndpointAccessOutput) { - op := &request.Operation{ - Name: opGetEndpointAccess, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetEndpointAccessInput{} - } - - output = &GetEndpointAccessOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetEndpointAccess API operation for Redshift Serverless. -// -// Returns information, such as the name, about a VPC endpoint. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetEndpointAccess for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetEndpointAccess -func (c *RedshiftServerless) GetEndpointAccess(input *GetEndpointAccessInput) (*GetEndpointAccessOutput, error) { - req, out := c.GetEndpointAccessRequest(input) - return out, req.Send() -} - -// GetEndpointAccessWithContext is the same as GetEndpointAccess with the addition of -// the ability to pass a context and additional request options. -// -// See GetEndpointAccess for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetEndpointAccessWithContext(ctx aws.Context, input *GetEndpointAccessInput, opts ...request.Option) (*GetEndpointAccessOutput, error) { - req, out := c.GetEndpointAccessRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetNamespace = "GetNamespace" - -// GetNamespaceRequest generates a "aws/request.Request" representing the -// client's request for the GetNamespace operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetNamespace for more information on using the GetNamespace -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetNamespaceRequest method. -// req, resp := client.GetNamespaceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetNamespace -func (c *RedshiftServerless) GetNamespaceRequest(input *GetNamespaceInput) (req *request.Request, output *GetNamespaceOutput) { - op := &request.Operation{ - Name: opGetNamespace, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetNamespaceInput{} - } - - output = &GetNamespaceOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetNamespace API operation for Redshift Serverless. -// -// Returns information about a namespace in Amazon Redshift Serverless. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetNamespace for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetNamespace -func (c *RedshiftServerless) GetNamespace(input *GetNamespaceInput) (*GetNamespaceOutput, error) { - req, out := c.GetNamespaceRequest(input) - return out, req.Send() -} - -// GetNamespaceWithContext is the same as GetNamespace with the addition of -// the ability to pass a context and additional request options. -// -// See GetNamespace for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetNamespaceWithContext(ctx aws.Context, input *GetNamespaceInput, opts ...request.Option) (*GetNamespaceOutput, error) { - req, out := c.GetNamespaceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetRecoveryPoint = "GetRecoveryPoint" - -// GetRecoveryPointRequest generates a "aws/request.Request" representing the -// client's request for the GetRecoveryPoint operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetRecoveryPoint for more information on using the GetRecoveryPoint -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetRecoveryPointRequest method. -// req, resp := client.GetRecoveryPointRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetRecoveryPoint -func (c *RedshiftServerless) GetRecoveryPointRequest(input *GetRecoveryPointInput) (req *request.Request, output *GetRecoveryPointOutput) { - op := &request.Operation{ - Name: opGetRecoveryPoint, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetRecoveryPointInput{} - } - - output = &GetRecoveryPointOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetRecoveryPoint API operation for Redshift Serverless. -// -// Returns information about a recovery point. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetRecoveryPoint for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetRecoveryPoint -func (c *RedshiftServerless) GetRecoveryPoint(input *GetRecoveryPointInput) (*GetRecoveryPointOutput, error) { - req, out := c.GetRecoveryPointRequest(input) - return out, req.Send() -} - -// GetRecoveryPointWithContext is the same as GetRecoveryPoint with the addition of -// the ability to pass a context and additional request options. -// -// See GetRecoveryPoint for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetRecoveryPointWithContext(ctx aws.Context, input *GetRecoveryPointInput, opts ...request.Option) (*GetRecoveryPointOutput, error) { - req, out := c.GetRecoveryPointRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetResourcePolicy = "GetResourcePolicy" - -// GetResourcePolicyRequest generates a "aws/request.Request" representing the -// client's request for the GetResourcePolicy operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetResourcePolicy for more information on using the GetResourcePolicy -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetResourcePolicyRequest method. -// req, resp := client.GetResourcePolicyRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetResourcePolicy -func (c *RedshiftServerless) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req *request.Request, output *GetResourcePolicyOutput) { - op := &request.Operation{ - Name: opGetResourcePolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetResourcePolicyInput{} - } - - output = &GetResourcePolicyOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetResourcePolicy API operation for Redshift Serverless. -// -// Returns a resource policy. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetResourcePolicy for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetResourcePolicy -func (c *RedshiftServerless) GetResourcePolicy(input *GetResourcePolicyInput) (*GetResourcePolicyOutput, error) { - req, out := c.GetResourcePolicyRequest(input) - return out, req.Send() -} - -// GetResourcePolicyWithContext is the same as GetResourcePolicy with the addition of -// the ability to pass a context and additional request options. -// -// See GetResourcePolicy for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetResourcePolicyWithContext(ctx aws.Context, input *GetResourcePolicyInput, opts ...request.Option) (*GetResourcePolicyOutput, error) { - req, out := c.GetResourcePolicyRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetSnapshot = "GetSnapshot" - -// GetSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the GetSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetSnapshot for more information on using the GetSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetSnapshotRequest method. -// req, resp := client.GetSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetSnapshot -func (c *RedshiftServerless) GetSnapshotRequest(input *GetSnapshotInput) (req *request.Request, output *GetSnapshotOutput) { - op := &request.Operation{ - Name: opGetSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetSnapshotInput{} - } - - output = &GetSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetSnapshot API operation for Redshift Serverless. -// -// Returns information about a specific snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetSnapshot for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetSnapshot -func (c *RedshiftServerless) GetSnapshot(input *GetSnapshotInput) (*GetSnapshotOutput, error) { - req, out := c.GetSnapshotRequest(input) - return out, req.Send() -} - -// GetSnapshotWithContext is the same as GetSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See GetSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetSnapshotWithContext(ctx aws.Context, input *GetSnapshotInput, opts ...request.Option) (*GetSnapshotOutput, error) { - req, out := c.GetSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetUsageLimit = "GetUsageLimit" - -// GetUsageLimitRequest generates a "aws/request.Request" representing the -// client's request for the GetUsageLimit operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetUsageLimit for more information on using the GetUsageLimit -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetUsageLimitRequest method. -// req, resp := client.GetUsageLimitRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetUsageLimit -func (c *RedshiftServerless) GetUsageLimitRequest(input *GetUsageLimitInput) (req *request.Request, output *GetUsageLimitOutput) { - op := &request.Operation{ - Name: opGetUsageLimit, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetUsageLimitInput{} - } - - output = &GetUsageLimitOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetUsageLimit API operation for Redshift Serverless. -// -// Returns information about a usage limit. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetUsageLimit for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetUsageLimit -func (c *RedshiftServerless) GetUsageLimit(input *GetUsageLimitInput) (*GetUsageLimitOutput, error) { - req, out := c.GetUsageLimitRequest(input) - return out, req.Send() -} - -// GetUsageLimitWithContext is the same as GetUsageLimit with the addition of -// the ability to pass a context and additional request options. -// -// See GetUsageLimit for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetUsageLimitWithContext(ctx aws.Context, input *GetUsageLimitInput, opts ...request.Option) (*GetUsageLimitOutput, error) { - req, out := c.GetUsageLimitRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetWorkgroup = "GetWorkgroup" - -// GetWorkgroupRequest generates a "aws/request.Request" representing the -// client's request for the GetWorkgroup operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetWorkgroup for more information on using the GetWorkgroup -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the GetWorkgroupRequest method. -// req, resp := client.GetWorkgroupRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetWorkgroup -func (c *RedshiftServerless) GetWorkgroupRequest(input *GetWorkgroupInput) (req *request.Request, output *GetWorkgroupOutput) { - op := &request.Operation{ - Name: opGetWorkgroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &GetWorkgroupInput{} - } - - output = &GetWorkgroupOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetWorkgroup API operation for Redshift Serverless. -// -// Returns information about a specific workgroup. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation GetWorkgroup for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/GetWorkgroup -func (c *RedshiftServerless) GetWorkgroup(input *GetWorkgroupInput) (*GetWorkgroupOutput, error) { - req, out := c.GetWorkgroupRequest(input) - return out, req.Send() -} - -// GetWorkgroupWithContext is the same as GetWorkgroup with the addition of -// the ability to pass a context and additional request options. -// -// See GetWorkgroup for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) GetWorkgroupWithContext(ctx aws.Context, input *GetWorkgroupInput, opts ...request.Option) (*GetWorkgroupOutput, error) { - req, out := c.GetWorkgroupRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opListEndpointAccess = "ListEndpointAccess" - -// ListEndpointAccessRequest generates a "aws/request.Request" representing the -// client's request for the ListEndpointAccess operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListEndpointAccess for more information on using the ListEndpointAccess -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListEndpointAccessRequest method. -// req, resp := client.ListEndpointAccessRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListEndpointAccess -func (c *RedshiftServerless) ListEndpointAccessRequest(input *ListEndpointAccessInput) (req *request.Request, output *ListEndpointAccessOutput) { - op := &request.Operation{ - Name: opListEndpointAccess, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListEndpointAccessInput{} - } - - output = &ListEndpointAccessOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListEndpointAccess API operation for Redshift Serverless. -// -// Returns an array of EndpointAccess objects and relevant information. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListEndpointAccess for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListEndpointAccess -func (c *RedshiftServerless) ListEndpointAccess(input *ListEndpointAccessInput) (*ListEndpointAccessOutput, error) { - req, out := c.ListEndpointAccessRequest(input) - return out, req.Send() -} - -// ListEndpointAccessWithContext is the same as ListEndpointAccess with the addition of -// the ability to pass a context and additional request options. -// -// See ListEndpointAccess for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListEndpointAccessWithContext(ctx aws.Context, input *ListEndpointAccessInput, opts ...request.Option) (*ListEndpointAccessOutput, error) { - req, out := c.ListEndpointAccessRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListEndpointAccessPages iterates over the pages of a ListEndpointAccess operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListEndpointAccess method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListEndpointAccess operation. -// pageNum := 0 -// err := client.ListEndpointAccessPages(params, -// func(page *redshiftserverless.ListEndpointAccessOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *RedshiftServerless) ListEndpointAccessPages(input *ListEndpointAccessInput, fn func(*ListEndpointAccessOutput, bool) bool) error { - return c.ListEndpointAccessPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListEndpointAccessPagesWithContext same as ListEndpointAccessPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListEndpointAccessPagesWithContext(ctx aws.Context, input *ListEndpointAccessInput, fn func(*ListEndpointAccessOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListEndpointAccessInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListEndpointAccessRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListEndpointAccessOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListNamespaces = "ListNamespaces" - -// ListNamespacesRequest generates a "aws/request.Request" representing the -// client's request for the ListNamespaces operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListNamespaces for more information on using the ListNamespaces -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListNamespacesRequest method. -// req, resp := client.ListNamespacesRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListNamespaces -func (c *RedshiftServerless) ListNamespacesRequest(input *ListNamespacesInput) (req *request.Request, output *ListNamespacesOutput) { - op := &request.Operation{ - Name: opListNamespaces, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListNamespacesInput{} - } - - output = &ListNamespacesOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListNamespaces API operation for Redshift Serverless. -// -// Returns information about a list of specified namespaces. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListNamespaces for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListNamespaces -func (c *RedshiftServerless) ListNamespaces(input *ListNamespacesInput) (*ListNamespacesOutput, error) { - req, out := c.ListNamespacesRequest(input) - return out, req.Send() -} - -// ListNamespacesWithContext is the same as ListNamespaces with the addition of -// the ability to pass a context and additional request options. -// -// See ListNamespaces for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListNamespacesWithContext(ctx aws.Context, input *ListNamespacesInput, opts ...request.Option) (*ListNamespacesOutput, error) { - req, out := c.ListNamespacesRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListNamespacesPages iterates over the pages of a ListNamespaces operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListNamespaces method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListNamespaces operation. -// pageNum := 0 -// err := client.ListNamespacesPages(params, -// func(page *redshiftserverless.ListNamespacesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *RedshiftServerless) ListNamespacesPages(input *ListNamespacesInput, fn func(*ListNamespacesOutput, bool) bool) error { - return c.ListNamespacesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListNamespacesPagesWithContext same as ListNamespacesPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListNamespacesPagesWithContext(ctx aws.Context, input *ListNamespacesInput, fn func(*ListNamespacesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListNamespacesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListNamespacesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListNamespacesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRecoveryPoints = "ListRecoveryPoints" - -// ListRecoveryPointsRequest generates a "aws/request.Request" representing the -// client's request for the ListRecoveryPoints operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListRecoveryPoints for more information on using the ListRecoveryPoints -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListRecoveryPointsRequest method. -// req, resp := client.ListRecoveryPointsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListRecoveryPoints -func (c *RedshiftServerless) ListRecoveryPointsRequest(input *ListRecoveryPointsInput) (req *request.Request, output *ListRecoveryPointsOutput) { - op := &request.Operation{ - Name: opListRecoveryPoints, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListRecoveryPointsInput{} - } - - output = &ListRecoveryPointsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListRecoveryPoints API operation for Redshift Serverless. -// -// Returns an array of recovery points. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListRecoveryPoints for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListRecoveryPoints -func (c *RedshiftServerless) ListRecoveryPoints(input *ListRecoveryPointsInput) (*ListRecoveryPointsOutput, error) { - req, out := c.ListRecoveryPointsRequest(input) - return out, req.Send() -} - -// ListRecoveryPointsWithContext is the same as ListRecoveryPoints with the addition of -// the ability to pass a context and additional request options. -// -// See ListRecoveryPoints for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListRecoveryPointsWithContext(ctx aws.Context, input *ListRecoveryPointsInput, opts ...request.Option) (*ListRecoveryPointsOutput, error) { - req, out := c.ListRecoveryPointsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListRecoveryPointsPages iterates over the pages of a ListRecoveryPoints operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListRecoveryPoints method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListRecoveryPoints operation. -// pageNum := 0 -// err := client.ListRecoveryPointsPages(params, -// func(page *redshiftserverless.ListRecoveryPointsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *RedshiftServerless) ListRecoveryPointsPages(input *ListRecoveryPointsInput, fn func(*ListRecoveryPointsOutput, bool) bool) error { - return c.ListRecoveryPointsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListRecoveryPointsPagesWithContext same as ListRecoveryPointsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListRecoveryPointsPagesWithContext(ctx aws.Context, input *ListRecoveryPointsInput, fn func(*ListRecoveryPointsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListRecoveryPointsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListRecoveryPointsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListRecoveryPointsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListSnapshots = "ListSnapshots" - -// ListSnapshotsRequest generates a "aws/request.Request" representing the -// client's request for the ListSnapshots operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListSnapshots for more information on using the ListSnapshots -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListSnapshotsRequest method. -// req, resp := client.ListSnapshotsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListSnapshots -func (c *RedshiftServerless) ListSnapshotsRequest(input *ListSnapshotsInput) (req *request.Request, output *ListSnapshotsOutput) { - op := &request.Operation{ - Name: opListSnapshots, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListSnapshotsInput{} - } - - output = &ListSnapshotsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListSnapshots API operation for Redshift Serverless. -// -// Returns a list of snapshots. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListSnapshots for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListSnapshots -func (c *RedshiftServerless) ListSnapshots(input *ListSnapshotsInput) (*ListSnapshotsOutput, error) { - req, out := c.ListSnapshotsRequest(input) - return out, req.Send() -} - -// ListSnapshotsWithContext is the same as ListSnapshots with the addition of -// the ability to pass a context and additional request options. -// -// See ListSnapshots for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListSnapshotsWithContext(ctx aws.Context, input *ListSnapshotsInput, opts ...request.Option) (*ListSnapshotsOutput, error) { - req, out := c.ListSnapshotsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListSnapshotsPages iterates over the pages of a ListSnapshots operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListSnapshots method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListSnapshots operation. -// pageNum := 0 -// err := client.ListSnapshotsPages(params, -// func(page *redshiftserverless.ListSnapshotsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *RedshiftServerless) ListSnapshotsPages(input *ListSnapshotsInput, fn func(*ListSnapshotsOutput, bool) bool) error { - return c.ListSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListSnapshotsPagesWithContext same as ListSnapshotsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListSnapshotsPagesWithContext(ctx aws.Context, input *ListSnapshotsInput, fn func(*ListSnapshotsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListSnapshotsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListSnapshotsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListSnapshotsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTagsForResource for more information on using the ListTagsForResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListTagsForResource -func (c *RedshiftServerless) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { - op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &ListTagsForResourceInput{} - } - - output = &ListTagsForResourceOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListTagsForResource API operation for Redshift Serverless. -// -// Lists the tags assigned to a resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListTagsForResource for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListTagsForResource -func (c *RedshiftServerless) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - return out, req.Send() -} - -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of -// the ability to pass a context and additional request options. -// -// See ListTagsForResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opListUsageLimits = "ListUsageLimits" - -// ListUsageLimitsRequest generates a "aws/request.Request" representing the -// client's request for the ListUsageLimits operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListUsageLimits for more information on using the ListUsageLimits -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListUsageLimitsRequest method. -// req, resp := client.ListUsageLimitsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListUsageLimits -func (c *RedshiftServerless) ListUsageLimitsRequest(input *ListUsageLimitsInput) (req *request.Request, output *ListUsageLimitsOutput) { - op := &request.Operation{ - Name: opListUsageLimits, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListUsageLimitsInput{} - } - - output = &ListUsageLimitsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListUsageLimits API operation for Redshift Serverless. -// -// Lists all usage limits within Amazon Redshift Serverless. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListUsageLimits for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * InvalidPaginationException -// The provided pagination token is invalid. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListUsageLimits -func (c *RedshiftServerless) ListUsageLimits(input *ListUsageLimitsInput) (*ListUsageLimitsOutput, error) { - req, out := c.ListUsageLimitsRequest(input) - return out, req.Send() -} - -// ListUsageLimitsWithContext is the same as ListUsageLimits with the addition of -// the ability to pass a context and additional request options. -// -// See ListUsageLimits for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListUsageLimitsWithContext(ctx aws.Context, input *ListUsageLimitsInput, opts ...request.Option) (*ListUsageLimitsOutput, error) { - req, out := c.ListUsageLimitsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListUsageLimitsPages iterates over the pages of a ListUsageLimits operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListUsageLimits method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListUsageLimits operation. -// pageNum := 0 -// err := client.ListUsageLimitsPages(params, -// func(page *redshiftserverless.ListUsageLimitsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *RedshiftServerless) ListUsageLimitsPages(input *ListUsageLimitsInput, fn func(*ListUsageLimitsOutput, bool) bool) error { - return c.ListUsageLimitsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListUsageLimitsPagesWithContext same as ListUsageLimitsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListUsageLimitsPagesWithContext(ctx aws.Context, input *ListUsageLimitsInput, fn func(*ListUsageLimitsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListUsageLimitsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListUsageLimitsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListUsageLimitsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListWorkgroups = "ListWorkgroups" - -// ListWorkgroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListWorkgroups operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListWorkgroups for more information on using the ListWorkgroups -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListWorkgroupsRequest method. -// req, resp := client.ListWorkgroupsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListWorkgroups -func (c *RedshiftServerless) ListWorkgroupsRequest(input *ListWorkgroupsInput) (req *request.Request, output *ListWorkgroupsOutput) { - op := &request.Operation{ - Name: opListWorkgroups, - HTTPMethod: "POST", - HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListWorkgroupsInput{} - } - - output = &ListWorkgroupsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListWorkgroups API operation for Redshift Serverless. -// -// Returns information about a list of specified workgroups. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation ListWorkgroups for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/ListWorkgroups -func (c *RedshiftServerless) ListWorkgroups(input *ListWorkgroupsInput) (*ListWorkgroupsOutput, error) { - req, out := c.ListWorkgroupsRequest(input) - return out, req.Send() -} - -// ListWorkgroupsWithContext is the same as ListWorkgroups with the addition of -// the ability to pass a context and additional request options. -// -// See ListWorkgroups for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListWorkgroupsWithContext(ctx aws.Context, input *ListWorkgroupsInput, opts ...request.Option) (*ListWorkgroupsOutput, error) { - req, out := c.ListWorkgroupsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListWorkgroupsPages iterates over the pages of a ListWorkgroups operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListWorkgroups method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListWorkgroups operation. -// pageNum := 0 -// err := client.ListWorkgroupsPages(params, -// func(page *redshiftserverless.ListWorkgroupsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *RedshiftServerless) ListWorkgroupsPages(input *ListWorkgroupsInput, fn func(*ListWorkgroupsOutput, bool) bool) error { - return c.ListWorkgroupsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListWorkgroupsPagesWithContext same as ListWorkgroupsPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) ListWorkgroupsPagesWithContext(ctx aws.Context, input *ListWorkgroupsInput, fn func(*ListWorkgroupsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListWorkgroupsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListWorkgroupsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListWorkgroupsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opPutResourcePolicy = "PutResourcePolicy" - -// PutResourcePolicyRequest generates a "aws/request.Request" representing the -// client's request for the PutResourcePolicy operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See PutResourcePolicy for more information on using the PutResourcePolicy -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the PutResourcePolicyRequest method. -// req, resp := client.PutResourcePolicyRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/PutResourcePolicy -func (c *RedshiftServerless) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *request.Request, output *PutResourcePolicyOutput) { - op := &request.Operation{ - Name: opPutResourcePolicy, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &PutResourcePolicyInput{} - } - - output = &PutResourcePolicyOutput{} - req = c.newRequest(op, input, output) - return -} - -// PutResourcePolicy API operation for Redshift Serverless. -// -// Creates or updates a resource policy. Currently, you can use policies to -// share snapshots across Amazon Web Services accounts. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation PutResourcePolicy for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ServiceQuotaExceededException -// The service limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/PutResourcePolicy -func (c *RedshiftServerless) PutResourcePolicy(input *PutResourcePolicyInput) (*PutResourcePolicyOutput, error) { - req, out := c.PutResourcePolicyRequest(input) - return out, req.Send() -} - -// PutResourcePolicyWithContext is the same as PutResourcePolicy with the addition of -// the ability to pass a context and additional request options. -// -// See PutResourcePolicy for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) PutResourcePolicyWithContext(ctx aws.Context, input *PutResourcePolicyInput, opts ...request.Option) (*PutResourcePolicyOutput, error) { - req, out := c.PutResourcePolicyRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opRestoreFromRecoveryPoint = "RestoreFromRecoveryPoint" - -// RestoreFromRecoveryPointRequest generates a "aws/request.Request" representing the -// client's request for the RestoreFromRecoveryPoint operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See RestoreFromRecoveryPoint for more information on using the RestoreFromRecoveryPoint -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the RestoreFromRecoveryPointRequest method. -// req, resp := client.RestoreFromRecoveryPointRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/RestoreFromRecoveryPoint -func (c *RedshiftServerless) RestoreFromRecoveryPointRequest(input *RestoreFromRecoveryPointInput) (req *request.Request, output *RestoreFromRecoveryPointOutput) { - op := &request.Operation{ - Name: opRestoreFromRecoveryPoint, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RestoreFromRecoveryPointInput{} - } - - output = &RestoreFromRecoveryPointOutput{} - req = c.newRequest(op, input, output) - return -} - -// RestoreFromRecoveryPoint API operation for Redshift Serverless. -// -// Restore the data from a recovery point. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation RestoreFromRecoveryPoint for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/RestoreFromRecoveryPoint -func (c *RedshiftServerless) RestoreFromRecoveryPoint(input *RestoreFromRecoveryPointInput) (*RestoreFromRecoveryPointOutput, error) { - req, out := c.RestoreFromRecoveryPointRequest(input) - return out, req.Send() -} - -// RestoreFromRecoveryPointWithContext is the same as RestoreFromRecoveryPoint with the addition of -// the ability to pass a context and additional request options. -// -// See RestoreFromRecoveryPoint for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) RestoreFromRecoveryPointWithContext(ctx aws.Context, input *RestoreFromRecoveryPointInput, opts ...request.Option) (*RestoreFromRecoveryPointOutput, error) { - req, out := c.RestoreFromRecoveryPointRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opRestoreFromSnapshot = "RestoreFromSnapshot" - -// RestoreFromSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the RestoreFromSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See RestoreFromSnapshot for more information on using the RestoreFromSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the RestoreFromSnapshotRequest method. -// req, resp := client.RestoreFromSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/RestoreFromSnapshot -func (c *RedshiftServerless) RestoreFromSnapshotRequest(input *RestoreFromSnapshotInput) (req *request.Request, output *RestoreFromSnapshotOutput) { - op := &request.Operation{ - Name: opRestoreFromSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &RestoreFromSnapshotInput{} - } - - output = &RestoreFromSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// RestoreFromSnapshot API operation for Redshift Serverless. -// -// Restores a namespace from a snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation RestoreFromSnapshot for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ServiceQuotaExceededException -// The service limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/RestoreFromSnapshot -func (c *RedshiftServerless) RestoreFromSnapshot(input *RestoreFromSnapshotInput) (*RestoreFromSnapshotOutput, error) { - req, out := c.RestoreFromSnapshotRequest(input) - return out, req.Send() -} - -// RestoreFromSnapshotWithContext is the same as RestoreFromSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See RestoreFromSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) RestoreFromSnapshotWithContext(ctx aws.Context, input *RestoreFromSnapshotInput, opts ...request.Option) (*RestoreFromSnapshotOutput, error) { - req, out := c.RestoreFromSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opTagResource = "TagResource" - -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See TagResource for more information on using the TagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/TagResource -func (c *RedshiftServerless) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { - op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &TagResourceInput{} - } - - output = &TagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// TagResource API operation for Redshift Serverless. -// -// Assigns one or more tags to a resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation TagResource for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * TooManyTagsException -// The request exceeded the number of tags allowed for a resource. -// -// * ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/TagResource -func (c *RedshiftServerless) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - return out, req.Send() -} - -// TagResourceWithContext is the same as TagResource with the addition of -// the ability to pass a context and additional request options. -// -// See TagResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUntagResource = "UntagResource" - -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UntagResource for more information on using the UntagResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UntagResource -func (c *RedshiftServerless) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { - op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UntagResourceInput{} - } - - output = &UntagResourceOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UntagResource API operation for Redshift Serverless. -// -// Removes a tag or set of tags from a resource. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation UntagResource for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * ThrottlingException -// The request was denied due to request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UntagResource -func (c *RedshiftServerless) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) - return out, req.Send() -} - -// UntagResourceWithContext is the same as UntagResource with the addition of -// the ability to pass a context and additional request options. -// -// See UntagResource for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateEndpointAccess = "UpdateEndpointAccess" - -// UpdateEndpointAccessRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEndpointAccess operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateEndpointAccess for more information on using the UpdateEndpointAccess -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UpdateEndpointAccessRequest method. -// req, resp := client.UpdateEndpointAccessRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateEndpointAccess -func (c *RedshiftServerless) UpdateEndpointAccessRequest(input *UpdateEndpointAccessInput) (req *request.Request, output *UpdateEndpointAccessOutput) { - op := &request.Operation{ - Name: opUpdateEndpointAccess, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateEndpointAccessInput{} - } - - output = &UpdateEndpointAccessOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateEndpointAccess API operation for Redshift Serverless. -// -// Updates an Amazon Redshift Serverless managed endpoint. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation UpdateEndpointAccess for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// * AccessDeniedException -// You do not have sufficient access to perform this action. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateEndpointAccess -func (c *RedshiftServerless) UpdateEndpointAccess(input *UpdateEndpointAccessInput) (*UpdateEndpointAccessOutput, error) { - req, out := c.UpdateEndpointAccessRequest(input) - return out, req.Send() -} - -// UpdateEndpointAccessWithContext is the same as UpdateEndpointAccess with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateEndpointAccess for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) UpdateEndpointAccessWithContext(ctx aws.Context, input *UpdateEndpointAccessInput, opts ...request.Option) (*UpdateEndpointAccessOutput, error) { - req, out := c.UpdateEndpointAccessRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateNamespace = "UpdateNamespace" - -// UpdateNamespaceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateNamespace operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateNamespace for more information on using the UpdateNamespace -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UpdateNamespaceRequest method. -// req, resp := client.UpdateNamespaceRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateNamespace -func (c *RedshiftServerless) UpdateNamespaceRequest(input *UpdateNamespaceInput) (req *request.Request, output *UpdateNamespaceOutput) { - op := &request.Operation{ - Name: opUpdateNamespace, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateNamespaceInput{} - } - - output = &UpdateNamespaceOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateNamespace API operation for Redshift Serverless. -// -// Updates a namespace with the specified settings. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation UpdateNamespace for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateNamespace -func (c *RedshiftServerless) UpdateNamespace(input *UpdateNamespaceInput) (*UpdateNamespaceOutput, error) { - req, out := c.UpdateNamespaceRequest(input) - return out, req.Send() -} - -// UpdateNamespaceWithContext is the same as UpdateNamespace with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateNamespace for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) UpdateNamespaceWithContext(ctx aws.Context, input *UpdateNamespaceInput, opts ...request.Option) (*UpdateNamespaceOutput, error) { - req, out := c.UpdateNamespaceRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateSnapshot = "UpdateSnapshot" - -// UpdateSnapshotRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSnapshot operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateSnapshot for more information on using the UpdateSnapshot -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UpdateSnapshotRequest method. -// req, resp := client.UpdateSnapshotRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateSnapshot -func (c *RedshiftServerless) UpdateSnapshotRequest(input *UpdateSnapshotInput) (req *request.Request, output *UpdateSnapshotOutput) { - op := &request.Operation{ - Name: opUpdateSnapshot, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateSnapshotInput{} - } - - output = &UpdateSnapshotOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateSnapshot API operation for Redshift Serverless. -// -// Updates a snapshot. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation UpdateSnapshot for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateSnapshot -func (c *RedshiftServerless) UpdateSnapshot(input *UpdateSnapshotInput) (*UpdateSnapshotOutput, error) { - req, out := c.UpdateSnapshotRequest(input) - return out, req.Send() -} - -// UpdateSnapshotWithContext is the same as UpdateSnapshot with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateSnapshot for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) UpdateSnapshotWithContext(ctx aws.Context, input *UpdateSnapshotInput, opts ...request.Option) (*UpdateSnapshotOutput, error) { - req, out := c.UpdateSnapshotRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateUsageLimit = "UpdateUsageLimit" - -// UpdateUsageLimitRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUsageLimit operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateUsageLimit for more information on using the UpdateUsageLimit -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UpdateUsageLimitRequest method. -// req, resp := client.UpdateUsageLimitRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateUsageLimit -func (c *RedshiftServerless) UpdateUsageLimitRequest(input *UpdateUsageLimitInput) (req *request.Request, output *UpdateUsageLimitOutput) { - op := &request.Operation{ - Name: opUpdateUsageLimit, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateUsageLimitInput{} - } - - output = &UpdateUsageLimitOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateUsageLimit API operation for Redshift Serverless. -// -// Update a usage limit in Amazon Redshift Serverless. You can't update the -// usage type or period of a usage limit. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation UpdateUsageLimit for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateUsageLimit -func (c *RedshiftServerless) UpdateUsageLimit(input *UpdateUsageLimitInput) (*UpdateUsageLimitOutput, error) { - req, out := c.UpdateUsageLimitRequest(input) - return out, req.Send() -} - -// UpdateUsageLimitWithContext is the same as UpdateUsageLimit with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateUsageLimit for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) UpdateUsageLimitWithContext(ctx aws.Context, input *UpdateUsageLimitInput, opts ...request.Option) (*UpdateUsageLimitOutput, error) { - req, out := c.UpdateUsageLimitRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateWorkgroup = "UpdateWorkgroup" - -// UpdateWorkgroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateWorkgroup operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateWorkgroup for more information on using the UpdateWorkgroup -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the UpdateWorkgroupRequest method. -// req, resp := client.UpdateWorkgroupRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateWorkgroup -func (c *RedshiftServerless) UpdateWorkgroupRequest(input *UpdateWorkgroupInput) (req *request.Request, output *UpdateWorkgroupOutput) { - op := &request.Operation{ - Name: opUpdateWorkgroup, - HTTPMethod: "POST", - HTTPPath: "/", - } - - if input == nil { - input = &UpdateWorkgroupInput{} - } - - output = &UpdateWorkgroupOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateWorkgroup API operation for Redshift Serverless. -// -// Updates a workgroup with the specified configuration settings. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Redshift Serverless's -// API operation UpdateWorkgroup for usage and error information. -// -// Returned Error Types: -// * InternalServerException -// The request processing has failed because of an unknown error, exception -// or failure. -// -// * InsufficientCapacityException -// There is an insufficient capacity to perform the action. -// -// * ResourceNotFoundException -// The resource could not be found. -// -// * ConflictException -// The submitted action has conflicts. -// -// * ValidationException -// The input failed to satisfy the constraints specified by an AWS service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21/UpdateWorkgroup -func (c *RedshiftServerless) UpdateWorkgroup(input *UpdateWorkgroupInput) (*UpdateWorkgroupOutput, error) { - req, out := c.UpdateWorkgroupRequest(input) - return out, req.Send() -} - -// UpdateWorkgroupWithContext is the same as UpdateWorkgroup with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateWorkgroup for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *RedshiftServerless) UpdateWorkgroupWithContext(ctx aws.Context, input *UpdateWorkgroupInput, opts ...request.Option) (*UpdateWorkgroupOutput, error) { - req, out := c.UpdateWorkgroupRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// You do not have sufficient access to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"code" type:"string"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() -} - -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} - -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} - -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID -} - -// An array of key-value pairs to set for advanced control over Amazon Redshift -// Serverless. -type ConfigParameter struct { - _ struct{} `type:"structure"` - - // The key of the parameter. The options are datestyle, enable_user_activity_logging, - // query_group, search_path, and max_query_execution_time. - ParameterKey *string `locationName:"parameterKey" type:"string"` - - // The value of the parameter to set. - ParameterValue *string `locationName:"parameterValue" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConfigParameter) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConfigParameter) GoString() string { - return s.String() -} - -// SetParameterKey sets the ParameterKey field's value. -func (s *ConfigParameter) SetParameterKey(v string) *ConfigParameter { - s.ParameterKey = &v - return s -} - -// SetParameterValue sets the ParameterValue field's value. -func (s *ConfigParameter) SetParameterValue(v string) *ConfigParameter { - s.ParameterValue = &v - return s -} - -// The submitted action has conflicts. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) GoString() string { - return s.String() -} - -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} - -type ConvertRecoveryPointToSnapshotInput struct { - _ struct{} `type:"structure"` - - // The unique identifier of the recovery point. - // - // RecoveryPointId is a required field - RecoveryPointId *string `locationName:"recoveryPointId" type:"string" required:"true"` - - // How long to retain the snapshot. - RetentionPeriod *int64 `locationName:"retentionPeriod" type:"integer"` - - // The name of the snapshot. - // - // SnapshotName is a required field - SnapshotName *string `locationName:"snapshotName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConvertRecoveryPointToSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConvertRecoveryPointToSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConvertRecoveryPointToSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConvertRecoveryPointToSnapshotInput"} - if s.RecoveryPointId == nil { - invalidParams.Add(request.NewErrParamRequired("RecoveryPointId")) - } - if s.SnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRecoveryPointId sets the RecoveryPointId field's value. -func (s *ConvertRecoveryPointToSnapshotInput) SetRecoveryPointId(v string) *ConvertRecoveryPointToSnapshotInput { - s.RecoveryPointId = &v - return s -} - -// SetRetentionPeriod sets the RetentionPeriod field's value. -func (s *ConvertRecoveryPointToSnapshotInput) SetRetentionPeriod(v int64) *ConvertRecoveryPointToSnapshotInput { - s.RetentionPeriod = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *ConvertRecoveryPointToSnapshotInput) SetSnapshotName(v string) *ConvertRecoveryPointToSnapshotInput { - s.SnapshotName = &v - return s -} - -type ConvertRecoveryPointToSnapshotOutput struct { - _ struct{} `type:"structure"` - - // The snapshot converted from the recovery point. - Snapshot *Snapshot `locationName:"snapshot" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConvertRecoveryPointToSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConvertRecoveryPointToSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *ConvertRecoveryPointToSnapshotOutput) SetSnapshot(v *Snapshot) *ConvertRecoveryPointToSnapshotOutput { - s.Snapshot = v - return s -} - -type CreateEndpointAccessInput struct { - _ struct{} `type:"structure"` - - // 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. - // - // EndpointName is a required field - EndpointName *string `locationName:"endpointName" type:"string" required:"true"` - - // The unique identifers of subnets from which Amazon Redshift Serverless chooses - // one to deploy a VPC endpoint. - // - // SubnetIds is a required field - SubnetIds []*string `locationName:"subnetIds" type:"list" required:"true"` - - // The unique identifiers of the security group that defines the ports, protocols, - // and sources for inbound traffic that you are authorizing into your endpoint. - VpcSecurityGroupIds []*string `locationName:"vpcSecurityGroupIds" type:"list"` - - // The name of the workgroup to associate with the VPC endpoint. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateEndpointAccessInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateEndpointAccessInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEndpointAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEndpointAccessInput"} - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) - } - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEndpointName sets the EndpointName field's value. -func (s *CreateEndpointAccessInput) SetEndpointName(v string) *CreateEndpointAccessInput { - s.EndpointName = &v - return s -} - -// SetSubnetIds sets the SubnetIds field's value. -func (s *CreateEndpointAccessInput) SetSubnetIds(v []*string) *CreateEndpointAccessInput { - s.SubnetIds = v - return s -} - -// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. -func (s *CreateEndpointAccessInput) SetVpcSecurityGroupIds(v []*string) *CreateEndpointAccessInput { - s.VpcSecurityGroupIds = v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *CreateEndpointAccessInput) SetWorkgroupName(v string) *CreateEndpointAccessInput { - s.WorkgroupName = &v - return s -} - -type CreateEndpointAccessOutput struct { - _ struct{} `type:"structure"` - - // The created VPC endpoint. - Endpoint *EndpointAccess `locationName:"endpoint" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateEndpointAccessOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateEndpointAccessOutput) GoString() string { - return s.String() -} - -// SetEndpoint sets the Endpoint field's value. -func (s *CreateEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *CreateEndpointAccessOutput { - s.Endpoint = v - return s -} - -type CreateNamespaceInput struct { - _ struct{} `type:"structure"` - - // The password of the administrator for the first database created in the namespace. - // - // AdminUserPassword is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateNamespaceInput's - // String and GoString methods. - AdminUserPassword *string `locationName:"adminUserPassword" type:"string" sensitive:"true"` - - // The username of the administrator for the first database created in the namespace. - // - // AdminUsername is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateNamespaceInput's - // String and GoString methods. - AdminUsername *string `locationName:"adminUsername" type:"string" sensitive:"true"` - - // The name of the first database created in the namespace. - DbName *string `locationName:"dbName" type:"string"` - - // The Amazon Resource Name (ARN) of the IAM role to set as a default in the - // namespace. - DefaultIamRoleArn *string `locationName:"defaultIamRoleArn" type:"string"` - - // A list of IAM roles to associate with the namespace. - IamRoles []*string `locationName:"iamRoles" type:"list"` - - // The ID of the Amazon Web Services Key Management Service key used to encrypt - // your data. - KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - - // The types of logs the namespace can export. Available export types are userlog, - // connectionlog, and useractivitylog. - LogExports []*string `locationName:"logExports" type:"list" enum:"LogExport"` - - // The name of the namespace. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` - - // A list of tag instances. - Tags []*Tag `locationName:"tags" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateNamespaceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateNamespaceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateNamespaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateNamespaceInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAdminUserPassword sets the AdminUserPassword field's value. -func (s *CreateNamespaceInput) SetAdminUserPassword(v string) *CreateNamespaceInput { - s.AdminUserPassword = &v - return s -} - -// SetAdminUsername sets the AdminUsername field's value. -func (s *CreateNamespaceInput) SetAdminUsername(v string) *CreateNamespaceInput { - s.AdminUsername = &v - return s -} - -// SetDbName sets the DbName field's value. -func (s *CreateNamespaceInput) SetDbName(v string) *CreateNamespaceInput { - s.DbName = &v - return s -} - -// SetDefaultIamRoleArn sets the DefaultIamRoleArn field's value. -func (s *CreateNamespaceInput) SetDefaultIamRoleArn(v string) *CreateNamespaceInput { - s.DefaultIamRoleArn = &v - return s -} - -// SetIamRoles sets the IamRoles field's value. -func (s *CreateNamespaceInput) SetIamRoles(v []*string) *CreateNamespaceInput { - s.IamRoles = v - return s -} - -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *CreateNamespaceInput) SetKmsKeyId(v string) *CreateNamespaceInput { - s.KmsKeyId = &v - return s -} - -// SetLogExports sets the LogExports field's value. -func (s *CreateNamespaceInput) SetLogExports(v []*string) *CreateNamespaceInput { - s.LogExports = v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *CreateNamespaceInput) SetNamespaceName(v string) *CreateNamespaceInput { - s.NamespaceName = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateNamespaceInput) SetTags(v []*Tag) *CreateNamespaceInput { - s.Tags = v - return s -} - -type CreateNamespaceOutput struct { - _ struct{} `type:"structure"` - - // The created namespace object. - Namespace *Namespace `locationName:"namespace" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateNamespaceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateNamespaceOutput) GoString() string { - return s.String() -} - -// SetNamespace sets the Namespace field's value. -func (s *CreateNamespaceOutput) SetNamespace(v *Namespace) *CreateNamespaceOutput { - s.Namespace = v - return s -} - -type CreateSnapshotInput struct { - _ struct{} `type:"structure"` - - // The namespace to create a snapshot for. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" type:"string" required:"true"` - - // How long to retain the created snapshot. - RetentionPeriod *int64 `locationName:"retentionPeriod" type:"integer"` - - // The name of the snapshot. - // - // SnapshotName is a required field - SnapshotName *string `locationName:"snapshotName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSnapshotInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.SnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *CreateSnapshotInput) SetNamespaceName(v string) *CreateSnapshotInput { - s.NamespaceName = &v - return s -} - -// SetRetentionPeriod sets the RetentionPeriod field's value. -func (s *CreateSnapshotInput) SetRetentionPeriod(v int64) *CreateSnapshotInput { - s.RetentionPeriod = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *CreateSnapshotInput) SetSnapshotName(v string) *CreateSnapshotInput { - s.SnapshotName = &v - return s -} - -type CreateSnapshotOutput struct { - _ struct{} `type:"structure"` - - // The created snapshot object. - Snapshot *Snapshot `locationName:"snapshot" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *CreateSnapshotOutput) SetSnapshot(v *Snapshot) *CreateSnapshotOutput { - s.Snapshot = v - return s -} - -type CreateUsageLimitInput struct { - _ struct{} `type:"structure"` - - // 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. - // - // Amount is a required field - Amount *int64 `locationName:"amount" type:"long" required:"true"` - - // The action that Amazon Redshift Serverless takes when the limit is reached. - // The default is log. - BreachAction *string `locationName:"breachAction" type:"string" enum:"UsageLimitBreachAction"` - - // The time period that the amount applies to. A weekly period begins on Sunday. - // The default is monthly. - Period *string `locationName:"period" type:"string" enum:"UsageLimitPeriod"` - - // The Amazon Resource Name (ARN) of the Amazon Redshift Serverless resource - // to create the usage limit for. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` - - // The type of Amazon Redshift Serverless usage to create a usage limit for. - // - // UsageType is a required field - UsageType *string `locationName:"usageType" type:"string" required:"true" enum:"UsageLimitUsageType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateUsageLimitInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateUsageLimitInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUsageLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUsageLimitInput"} - if s.Amount == nil { - invalidParams.Add(request.NewErrParamRequired("Amount")) - } - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.UsageType == nil { - invalidParams.Add(request.NewErrParamRequired("UsageType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAmount sets the Amount field's value. -func (s *CreateUsageLimitInput) SetAmount(v int64) *CreateUsageLimitInput { - s.Amount = &v - return s -} - -// SetBreachAction sets the BreachAction field's value. -func (s *CreateUsageLimitInput) SetBreachAction(v string) *CreateUsageLimitInput { - s.BreachAction = &v - return s -} - -// SetPeriod sets the Period field's value. -func (s *CreateUsageLimitInput) SetPeriod(v string) *CreateUsageLimitInput { - s.Period = &v - return s -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *CreateUsageLimitInput) SetResourceArn(v string) *CreateUsageLimitInput { - s.ResourceArn = &v - return s -} - -// SetUsageType sets the UsageType field's value. -func (s *CreateUsageLimitInput) SetUsageType(v string) *CreateUsageLimitInput { - s.UsageType = &v - return s -} - -type CreateUsageLimitOutput struct { - _ struct{} `type:"structure"` - - // The returned usage limit object. - UsageLimit *UsageLimit `locationName:"usageLimit" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateUsageLimitOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateUsageLimitOutput) GoString() string { - return s.String() -} - -// SetUsageLimit sets the UsageLimit field's value. -func (s *CreateUsageLimitOutput) SetUsageLimit(v *UsageLimit) *CreateUsageLimitOutput { - s.UsageLimit = v - return s -} - -type CreateWorkgroupInput struct { - _ struct{} `type:"structure"` - - // The base data warehouse capacity of the workgroup in Redshift Processing - // Units (RPUs). - BaseCapacity *int64 `locationName:"baseCapacity" type:"integer"` - - // 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. - ConfigParameters []*ConfigParameter `locationName:"configParameters" type:"list"` - - // 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. - EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` - - // The name of the namespace to associate with the workgroup. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` - - // A value that specifies whether the workgroup can be accessed from a public - // network. - PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` - - // An array of security group IDs to associate with the workgroup. - SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` - - // An array of VPC subnet IDs to associate with the workgroup. - SubnetIds []*string `locationName:"subnetIds" type:"list"` - - // A array of tag instances. - Tags []*Tag `locationName:"tags" type:"list"` - - // The name of the created workgroup. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateWorkgroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateWorkgroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWorkgroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWorkgroupInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetBaseCapacity sets the BaseCapacity field's value. -func (s *CreateWorkgroupInput) SetBaseCapacity(v int64) *CreateWorkgroupInput { - s.BaseCapacity = &v - return s -} - -// SetConfigParameters sets the ConfigParameters field's value. -func (s *CreateWorkgroupInput) SetConfigParameters(v []*ConfigParameter) *CreateWorkgroupInput { - s.ConfigParameters = v - return s -} - -// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. -func (s *CreateWorkgroupInput) SetEnhancedVpcRouting(v bool) *CreateWorkgroupInput { - s.EnhancedVpcRouting = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *CreateWorkgroupInput) SetNamespaceName(v string) *CreateWorkgroupInput { - s.NamespaceName = &v - return s -} - -// SetPubliclyAccessible sets the PubliclyAccessible field's value. -func (s *CreateWorkgroupInput) SetPubliclyAccessible(v bool) *CreateWorkgroupInput { - s.PubliclyAccessible = &v - return s -} - -// SetSecurityGroupIds sets the SecurityGroupIds field's value. -func (s *CreateWorkgroupInput) SetSecurityGroupIds(v []*string) *CreateWorkgroupInput { - s.SecurityGroupIds = v - return s -} - -// SetSubnetIds sets the SubnetIds field's value. -func (s *CreateWorkgroupInput) SetSubnetIds(v []*string) *CreateWorkgroupInput { - s.SubnetIds = v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateWorkgroupInput) SetTags(v []*Tag) *CreateWorkgroupInput { - s.Tags = v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *CreateWorkgroupInput) SetWorkgroupName(v string) *CreateWorkgroupInput { - s.WorkgroupName = &v - return s -} - -type CreateWorkgroupOutput struct { - _ struct{} `type:"structure"` - - // The created workgroup object. - Workgroup *Workgroup `locationName:"workgroup" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateWorkgroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateWorkgroupOutput) GoString() string { - return s.String() -} - -// SetWorkgroup sets the Workgroup field's value. -func (s *CreateWorkgroupOutput) SetWorkgroup(v *Workgroup) *CreateWorkgroupOutput { - s.Workgroup = v - return s -} - -type DeleteEndpointAccessInput struct { - _ struct{} `type:"structure"` - - // The name of the VPC endpoint to delete. - // - // EndpointName is a required field - EndpointName *string `locationName:"endpointName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteEndpointAccessInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteEndpointAccessInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEndpointAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointAccessInput"} - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEndpointName sets the EndpointName field's value. -func (s *DeleteEndpointAccessInput) SetEndpointName(v string) *DeleteEndpointAccessInput { - s.EndpointName = &v - return s -} - -type DeleteEndpointAccessOutput struct { - _ struct{} `type:"structure"` - - // The deleted VPC endpoint. - Endpoint *EndpointAccess `locationName:"endpoint" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteEndpointAccessOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteEndpointAccessOutput) GoString() string { - return s.String() -} - -// SetEndpoint sets the Endpoint field's value. -func (s *DeleteEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *DeleteEndpointAccessOutput { - s.Endpoint = v - return s -} - -type DeleteNamespaceInput struct { - _ struct{} `type:"structure"` - - // The name of the snapshot to be created before the namespace is deleted. - FinalSnapshotName *string `locationName:"finalSnapshotName" type:"string"` - - // How long to retain the final snapshot. - FinalSnapshotRetentionPeriod *int64 `locationName:"finalSnapshotRetentionPeriod" type:"integer"` - - // The name of the namespace to delete. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteNamespaceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteNamespaceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteNamespaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteNamespaceInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFinalSnapshotName sets the FinalSnapshotName field's value. -func (s *DeleteNamespaceInput) SetFinalSnapshotName(v string) *DeleteNamespaceInput { - s.FinalSnapshotName = &v - return s -} - -// SetFinalSnapshotRetentionPeriod sets the FinalSnapshotRetentionPeriod field's value. -func (s *DeleteNamespaceInput) SetFinalSnapshotRetentionPeriod(v int64) *DeleteNamespaceInput { - s.FinalSnapshotRetentionPeriod = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *DeleteNamespaceInput) SetNamespaceName(v string) *DeleteNamespaceInput { - s.NamespaceName = &v - return s -} - -type DeleteNamespaceOutput struct { - _ struct{} `type:"structure"` - - // The deleted namespace object. - // - // Namespace is a required field - Namespace *Namespace `locationName:"namespace" type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteNamespaceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteNamespaceOutput) GoString() string { - return s.String() -} - -// SetNamespace sets the Namespace field's value. -func (s *DeleteNamespaceOutput) SetNamespace(v *Namespace) *DeleteNamespaceOutput { - s.Namespace = v - return s -} - -type DeleteResourcePolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the policy to delete. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteResourcePolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteResourcePolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteResourcePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteResourcePolicyInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *DeleteResourcePolicyInput) SetResourceArn(v string) *DeleteResourcePolicyInput { - s.ResourceArn = &v - return s -} - -type DeleteResourcePolicyOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteResourcePolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteResourcePolicyOutput) GoString() string { - return s.String() -} - -type DeleteSnapshotInput struct { - _ struct{} `type:"structure"` - - // The name of the snapshot to be deleted. - // - // SnapshotName is a required field - SnapshotName *string `locationName:"snapshotName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSnapshotInput"} - if s.SnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *DeleteSnapshotInput) SetSnapshotName(v string) *DeleteSnapshotInput { - s.SnapshotName = &v - return s -} - -type DeleteSnapshotOutput struct { - _ struct{} `type:"structure"` - - // The deleted snapshot object. - Snapshot *Snapshot `locationName:"snapshot" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *DeleteSnapshotOutput) SetSnapshot(v *Snapshot) *DeleteSnapshotOutput { - s.Snapshot = v - return s -} - -type DeleteUsageLimitInput struct { - _ struct{} `type:"structure"` - - // The unique identifier of the usage limit to delete. - // - // UsageLimitId is a required field - UsageLimitId *string `locationName:"usageLimitId" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteUsageLimitInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteUsageLimitInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUsageLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUsageLimitInput"} - if s.UsageLimitId == nil { - invalidParams.Add(request.NewErrParamRequired("UsageLimitId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetUsageLimitId sets the UsageLimitId field's value. -func (s *DeleteUsageLimitInput) SetUsageLimitId(v string) *DeleteUsageLimitInput { - s.UsageLimitId = &v - return s -} - -type DeleteUsageLimitOutput struct { - _ struct{} `type:"structure"` - - // The deleted usage limit object. - UsageLimit *UsageLimit `locationName:"usageLimit" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteUsageLimitOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteUsageLimitOutput) GoString() string { - return s.String() -} - -// SetUsageLimit sets the UsageLimit field's value. -func (s *DeleteUsageLimitOutput) SetUsageLimit(v *UsageLimit) *DeleteUsageLimitOutput { - s.UsageLimit = v - return s -} - -type DeleteWorkgroupInput struct { - _ struct{} `type:"structure"` - - // The name of the workgroup to be deleted. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteWorkgroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteWorkgroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteWorkgroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteWorkgroupInput"} - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *DeleteWorkgroupInput) SetWorkgroupName(v string) *DeleteWorkgroupInput { - s.WorkgroupName = &v - return s -} - -type DeleteWorkgroupOutput struct { - _ struct{} `type:"structure"` - - // The deleted workgroup object. - // - // Workgroup is a required field - Workgroup *Workgroup `locationName:"workgroup" type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteWorkgroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteWorkgroupOutput) GoString() string { - return s.String() -} - -// SetWorkgroup sets the Workgroup field's value. -func (s *DeleteWorkgroupOutput) SetWorkgroup(v *Workgroup) *DeleteWorkgroupOutput { - s.Workgroup = v - return s -} - -// The VPC endpoint object. -type Endpoint struct { - _ struct{} `type:"structure"` - - // The DNS address of the VPC endpoint. - Address *string `locationName:"address" type:"string"` - - // The port that Amazon Redshift Serverless listens on. - Port *int64 `locationName:"port" type:"integer"` - - // An array of VpcEndpoint objects. - VpcEndpoints []*VpcEndpoint `locationName:"vpcEndpoints" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Endpoint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Endpoint) GoString() string { - return s.String() -} - -// SetAddress sets the Address field's value. -func (s *Endpoint) SetAddress(v string) *Endpoint { - s.Address = &v - return s -} - -// SetPort sets the Port field's value. -func (s *Endpoint) SetPort(v int64) *Endpoint { - s.Port = &v - return s -} - -// SetVpcEndpoints sets the VpcEndpoints field's value. -func (s *Endpoint) SetVpcEndpoints(v []*VpcEndpoint) *Endpoint { - s.VpcEndpoints = v - return s -} - -// Information about an Amazon Redshift Serverless VPC endpoint. -type EndpointAccess struct { - _ struct{} `type:"structure"` - - // The DNS address of the endpoint. - Address *string `locationName:"address" type:"string"` - - // The Amazon Resource Name (ARN) of the VPC endpoint. - EndpointArn *string `locationName:"endpointArn" type:"string"` - - // The time that the endpoint was created. - EndpointCreateTime *time.Time `locationName:"endpointCreateTime" type:"timestamp" timestampFormat:"iso8601"` - - // The name of the VPC endpoint. - EndpointName *string `locationName:"endpointName" type:"string"` - - // The status of the VPC endpoint. - EndpointStatus *string `locationName:"endpointStatus" type:"string"` - - // The port number on which Amazon Redshift Serverless accepts incoming connections. - Port *int64 `locationName:"port" type:"integer"` - - // The unique identifier of subnets where Amazon Redshift Serverless choose - // to deploy the VPC endpoint. - SubnetIds []*string `locationName:"subnetIds" type:"list"` - - // The connection endpoint for connecting to Amazon Redshift Serverless. - VpcEndpoint *VpcEndpoint `locationName:"vpcEndpoint" type:"structure"` - - // The security groups associated with the endpoint. - VpcSecurityGroups []*VpcSecurityGroupMembership `locationName:"vpcSecurityGroups" type:"list"` - - // The name of the workgroup associated with the endpoint. - WorkgroupName *string `locationName:"workgroupName" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s EndpointAccess) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s EndpointAccess) GoString() string { - return s.String() -} - -// SetAddress sets the Address field's value. -func (s *EndpointAccess) SetAddress(v string) *EndpointAccess { - s.Address = &v - return s -} - -// SetEndpointArn sets the EndpointArn field's value. -func (s *EndpointAccess) SetEndpointArn(v string) *EndpointAccess { - s.EndpointArn = &v - return s -} - -// SetEndpointCreateTime sets the EndpointCreateTime field's value. -func (s *EndpointAccess) SetEndpointCreateTime(v time.Time) *EndpointAccess { - s.EndpointCreateTime = &v - return s -} - -// SetEndpointName sets the EndpointName field's value. -func (s *EndpointAccess) SetEndpointName(v string) *EndpointAccess { - s.EndpointName = &v - return s -} - -// SetEndpointStatus sets the EndpointStatus field's value. -func (s *EndpointAccess) SetEndpointStatus(v string) *EndpointAccess { - s.EndpointStatus = &v - return s -} - -// SetPort sets the Port field's value. -func (s *EndpointAccess) SetPort(v int64) *EndpointAccess { - s.Port = &v - return s -} - -// SetSubnetIds sets the SubnetIds field's value. -func (s *EndpointAccess) SetSubnetIds(v []*string) *EndpointAccess { - s.SubnetIds = v - return s -} - -// SetVpcEndpoint sets the VpcEndpoint field's value. -func (s *EndpointAccess) SetVpcEndpoint(v *VpcEndpoint) *EndpointAccess { - s.VpcEndpoint = v - return s -} - -// SetVpcSecurityGroups sets the VpcSecurityGroups field's value. -func (s *EndpointAccess) SetVpcSecurityGroups(v []*VpcSecurityGroupMembership) *EndpointAccess { - s.VpcSecurityGroups = v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *EndpointAccess) SetWorkgroupName(v string) *EndpointAccess { - s.WorkgroupName = &v - return s -} - -type GetCredentialsInput struct { - _ struct{} `type:"structure"` - - // 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 (https://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) - // in the Amazon Redshift Database Developer Guide - DbName *string `locationName:"dbName" type:"string"` - - // The number of seconds until the returned temporary password expires. The - // minimum is 900 seconds, and the maximum is 3600 seconds. - DurationSeconds *int64 `locationName:"durationSeconds" type:"integer"` - - // The name of the workgroup associated with the database. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetCredentialsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetCredentialsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCredentialsInput"} - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDbName sets the DbName field's value. -func (s *GetCredentialsInput) SetDbName(v string) *GetCredentialsInput { - s.DbName = &v - return s -} - -// SetDurationSeconds sets the DurationSeconds field's value. -func (s *GetCredentialsInput) SetDurationSeconds(v int64) *GetCredentialsInput { - s.DurationSeconds = &v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *GetCredentialsInput) SetWorkgroupName(v string) *GetCredentialsInput { - s.WorkgroupName = &v - return s -} - -type GetCredentialsOutput struct { - _ struct{} `type:"structure"` - - // A temporary password that authorizes the user name returned by DbUser to - // log on to the database DbName. - // - // DbPassword is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by GetCredentialsOutput's - // String and GoString methods. - DbPassword *string `locationName:"dbPassword" type:"string" sensitive:"true"` - - // 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. - // - // DbUser is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by GetCredentialsOutput's - // String and GoString methods. - DbUser *string `locationName:"dbUser" type:"string" sensitive:"true"` - - // The date and time the password in DbPassword expires. - Expiration *time.Time `locationName:"expiration" type:"timestamp"` - - // The date and time of when the DbUser and DbPassword authorization refreshes. - NextRefreshTime *time.Time `locationName:"nextRefreshTime" type:"timestamp"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetCredentialsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetCredentialsOutput) GoString() string { - return s.String() -} - -// SetDbPassword sets the DbPassword field's value. -func (s *GetCredentialsOutput) SetDbPassword(v string) *GetCredentialsOutput { - s.DbPassword = &v - return s -} - -// SetDbUser sets the DbUser field's value. -func (s *GetCredentialsOutput) SetDbUser(v string) *GetCredentialsOutput { - s.DbUser = &v - return s -} - -// SetExpiration sets the Expiration field's value. -func (s *GetCredentialsOutput) SetExpiration(v time.Time) *GetCredentialsOutput { - s.Expiration = &v - return s -} - -// SetNextRefreshTime sets the NextRefreshTime field's value. -func (s *GetCredentialsOutput) SetNextRefreshTime(v time.Time) *GetCredentialsOutput { - s.NextRefreshTime = &v - return s -} - -type GetEndpointAccessInput struct { - _ struct{} `type:"structure"` - - // The name of the VPC endpoint to return information for. - // - // EndpointName is a required field - EndpointName *string `locationName:"endpointName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetEndpointAccessInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetEndpointAccessInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetEndpointAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEndpointAccessInput"} - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEndpointName sets the EndpointName field's value. -func (s *GetEndpointAccessInput) SetEndpointName(v string) *GetEndpointAccessInput { - s.EndpointName = &v - return s -} - -type GetEndpointAccessOutput struct { - _ struct{} `type:"structure"` - - // The returned VPC endpoint. - Endpoint *EndpointAccess `locationName:"endpoint" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetEndpointAccessOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetEndpointAccessOutput) GoString() string { - return s.String() -} - -// SetEndpoint sets the Endpoint field's value. -func (s *GetEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *GetEndpointAccessOutput { - s.Endpoint = v - return s -} - -type GetNamespaceInput struct { - _ struct{} `type:"structure"` - - // The name of the namespace to retrieve information for. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetNamespaceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetNamespaceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetNamespaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetNamespaceInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *GetNamespaceInput) SetNamespaceName(v string) *GetNamespaceInput { - s.NamespaceName = &v - return s -} - -type GetNamespaceOutput struct { - _ struct{} `type:"structure"` - - // The returned namespace object. - // - // Namespace is a required field - Namespace *Namespace `locationName:"namespace" type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetNamespaceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetNamespaceOutput) GoString() string { - return s.String() -} - -// SetNamespace sets the Namespace field's value. -func (s *GetNamespaceOutput) SetNamespace(v *Namespace) *GetNamespaceOutput { - s.Namespace = v - return s -} - -type GetRecoveryPointInput struct { - _ struct{} `type:"structure"` - - // The unique identifier of the recovery point to return information for. - // - // RecoveryPointId is a required field - RecoveryPointId *string `locationName:"recoveryPointId" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRecoveryPointInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRecoveryPointInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetRecoveryPointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRecoveryPointInput"} - if s.RecoveryPointId == nil { - invalidParams.Add(request.NewErrParamRequired("RecoveryPointId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRecoveryPointId sets the RecoveryPointId field's value. -func (s *GetRecoveryPointInput) SetRecoveryPointId(v string) *GetRecoveryPointInput { - s.RecoveryPointId = &v - return s -} - -type GetRecoveryPointOutput struct { - _ struct{} `type:"structure"` - - // The returned recovery point object. - RecoveryPoint *RecoveryPoint `locationName:"recoveryPoint" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRecoveryPointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetRecoveryPointOutput) GoString() string { - return s.String() -} - -// SetRecoveryPoint sets the RecoveryPoint field's value. -func (s *GetRecoveryPointOutput) SetRecoveryPoint(v *RecoveryPoint) *GetRecoveryPointOutput { - s.RecoveryPoint = v - return s -} - -type GetResourcePolicyInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource to return. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourcePolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourcePolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourcePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourcePolicyInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *GetResourcePolicyInput) SetResourceArn(v string) *GetResourcePolicyInput { - s.ResourceArn = &v - return s -} - -type GetResourcePolicyOutput struct { - _ struct{} `type:"structure"` - - // The returned resource policy. - ResourcePolicy *ResourcePolicy `locationName:"resourcePolicy" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourcePolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetResourcePolicyOutput) GoString() string { - return s.String() -} - -// SetResourcePolicy sets the ResourcePolicy field's value. -func (s *GetResourcePolicyOutput) SetResourcePolicy(v *ResourcePolicy) *GetResourcePolicyOutput { - s.ResourcePolicy = v - return s -} - -type GetSnapshotInput struct { - _ struct{} `type:"structure"` - - // The owner Amazon Web Services account of a snapshot shared with another user. - OwnerAccount *string `locationName:"ownerAccount" type:"string"` - - // The Amazon Resource Name (ARN) of the snapshot to return. - SnapshotArn *string `locationName:"snapshotArn" type:"string"` - - // The name of the snapshot to return. - SnapshotName *string `locationName:"snapshotName" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotInput) GoString() string { - return s.String() -} - -// SetOwnerAccount sets the OwnerAccount field's value. -func (s *GetSnapshotInput) SetOwnerAccount(v string) *GetSnapshotInput { - s.OwnerAccount = &v - return s -} - -// SetSnapshotArn sets the SnapshotArn field's value. -func (s *GetSnapshotInput) SetSnapshotArn(v string) *GetSnapshotInput { - s.SnapshotArn = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *GetSnapshotInput) SetSnapshotName(v string) *GetSnapshotInput { - s.SnapshotName = &v - return s -} - -type GetSnapshotOutput struct { - _ struct{} `type:"structure"` - - // The returned snapshot object. - Snapshot *Snapshot `locationName:"snapshot" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *GetSnapshotOutput) SetSnapshot(v *Snapshot) *GetSnapshotOutput { - s.Snapshot = v - return s -} - -type GetUsageLimitInput struct { - _ struct{} `type:"structure"` - - // The unique identifier of the usage limit to return information for. - // - // UsageLimitId is a required field - UsageLimitId *string `locationName:"usageLimitId" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetUsageLimitInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetUsageLimitInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetUsageLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUsageLimitInput"} - if s.UsageLimitId == nil { - invalidParams.Add(request.NewErrParamRequired("UsageLimitId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetUsageLimitId sets the UsageLimitId field's value. -func (s *GetUsageLimitInput) SetUsageLimitId(v string) *GetUsageLimitInput { - s.UsageLimitId = &v - return s -} - -type GetUsageLimitOutput struct { - _ struct{} `type:"structure"` - - // The returned usage limit object. - UsageLimit *UsageLimit `locationName:"usageLimit" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetUsageLimitOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetUsageLimitOutput) GoString() string { - return s.String() -} - -// SetUsageLimit sets the UsageLimit field's value. -func (s *GetUsageLimitOutput) SetUsageLimit(v *UsageLimit) *GetUsageLimitOutput { - s.UsageLimit = v - return s -} - -type GetWorkgroupInput struct { - _ struct{} `type:"structure"` - - // The name of the workgroup to return information for. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetWorkgroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetWorkgroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWorkgroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWorkgroupInput"} - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *GetWorkgroupInput) SetWorkgroupName(v string) *GetWorkgroupInput { - s.WorkgroupName = &v - return s -} - -type GetWorkgroupOutput struct { - _ struct{} `type:"structure"` - - // The returned workgroup object. - // - // Workgroup is a required field - Workgroup *Workgroup `locationName:"workgroup" type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetWorkgroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetWorkgroupOutput) GoString() string { - return s.String() -} - -// SetWorkgroup sets the Workgroup field's value. -func (s *GetWorkgroupOutput) SetWorkgroup(v *Workgroup) *GetWorkgroupOutput { - s.Workgroup = v - return s -} - -// There is an insufficient capacity to perform the action. -type InsufficientCapacityException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InsufficientCapacityException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InsufficientCapacityException) GoString() string { - return s.String() -} - -func newErrorInsufficientCapacityException(v protocol.ResponseMetadata) error { - return &InsufficientCapacityException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InsufficientCapacityException) Code() string { - return "InsufficientCapacityException" -} - -// Message returns the exception's message. -func (s *InsufficientCapacityException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InsufficientCapacityException) OrigErr() error { - return nil -} - -func (s *InsufficientCapacityException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InsufficientCapacityException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InsufficientCapacityException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The request processing has failed because of an unknown error, exception -// or failure. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { - return s.String() -} - -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil -} - -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The provided pagination token is invalid. -type InvalidPaginationException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InvalidPaginationException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InvalidPaginationException) GoString() string { - return s.String() -} - -func newErrorInvalidPaginationException(v protocol.ResponseMetadata) error { - return &InvalidPaginationException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidPaginationException) Code() string { - return "InvalidPaginationException" -} - -// Message returns the exception's message. -func (s *InvalidPaginationException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidPaginationException) OrigErr() error { - return nil -} - -func (s *InvalidPaginationException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidPaginationException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InvalidPaginationException) RequestID() string { - return s.RespMetadata.RequestID -} - -type ListEndpointAccessInput struct { - _ struct{} `type:"structure"` - - // An optional parameter that specifies the maximum number of results to return. - // You can use nextToken to get the next page of results. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` - - // The unique identifier of the virtual private cloud with access to Amazon - // Redshift Serverless. - VpcId *string `locationName:"vpcId" type:"string"` - - // The name of the workgroup associated with the VPC endpoint to return. - WorkgroupName *string `locationName:"workgroupName" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListEndpointAccessInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListEndpointAccessInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListEndpointAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEndpointAccessInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListEndpointAccessInput) SetMaxResults(v int64) *ListEndpointAccessInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListEndpointAccessInput) SetNextToken(v string) *ListEndpointAccessInput { - s.NextToken = &v - return s -} - -// SetVpcId sets the VpcId field's value. -func (s *ListEndpointAccessInput) SetVpcId(v string) *ListEndpointAccessInput { - s.VpcId = &v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *ListEndpointAccessInput) SetWorkgroupName(v string) *ListEndpointAccessInput { - s.WorkgroupName = &v - return s -} - -type ListEndpointAccessOutput struct { - _ struct{} `type:"structure"` - - // The returned VPC endpoints. - // - // Endpoints is a required field - Endpoints []*EndpointAccess `locationName:"endpoints" type:"list" required:"true"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListEndpointAccessOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListEndpointAccessOutput) GoString() string { - return s.String() -} - -// SetEndpoints sets the Endpoints field's value. -func (s *ListEndpointAccessOutput) SetEndpoints(v []*EndpointAccess) *ListEndpointAccessOutput { - s.Endpoints = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListEndpointAccessOutput) SetNextToken(v string) *ListEndpointAccessOutput { - s.NextToken = &v - return s -} - -type ListNamespacesInput struct { - _ struct{} `type:"structure"` - - // An optional parameter that specifies the maximum number of results to return. - // You can use nextToken to get the next page of results. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListNamespacesInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListNamespacesInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListNamespacesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListNamespacesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListNamespacesInput) SetMaxResults(v int64) *ListNamespacesInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListNamespacesInput) SetNextToken(v string) *ListNamespacesInput { - s.NextToken = &v - return s -} - -type ListNamespacesOutput struct { - _ struct{} `type:"structure"` - - // The list of returned namespaces. - // - // Namespaces is a required field - Namespaces []*Namespace `locationName:"namespaces" type:"list" required:"true"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListNamespacesOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListNamespacesOutput) GoString() string { - return s.String() -} - -// SetNamespaces sets the Namespaces field's value. -func (s *ListNamespacesOutput) SetNamespaces(v []*Namespace) *ListNamespacesOutput { - s.Namespaces = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListNamespacesOutput) SetNextToken(v string) *ListNamespacesOutput { - s.NextToken = &v - return s -} - -type ListRecoveryPointsInput struct { - _ struct{} `type:"structure"` - - // The time when creation of the recovery point finished. - EndTime *time.Time `locationName:"endTime" type:"timestamp"` - - // An optional parameter that specifies the maximum number of results to return. - // You can use nextToken to get the next page of results. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // The name of the namespace to list recovery points for. - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` - - // The time when the recovery point's creation was initiated. - StartTime *time.Time `locationName:"startTime" type:"timestamp"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRecoveryPointsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRecoveryPointsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRecoveryPointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRecoveryPointsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEndTime sets the EndTime field's value. -func (s *ListRecoveryPointsInput) SetEndTime(v time.Time) *ListRecoveryPointsInput { - s.EndTime = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListRecoveryPointsInput) SetMaxResults(v int64) *ListRecoveryPointsInput { - s.MaxResults = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *ListRecoveryPointsInput) SetNamespaceName(v string) *ListRecoveryPointsInput { - s.NamespaceName = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListRecoveryPointsInput) SetNextToken(v string) *ListRecoveryPointsInput { - s.NextToken = &v - return s -} - -// SetStartTime sets the StartTime field's value. -func (s *ListRecoveryPointsInput) SetStartTime(v time.Time) *ListRecoveryPointsInput { - s.StartTime = &v - return s -} - -type ListRecoveryPointsOutput struct { - _ struct{} `type:"structure"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` - - // The returned recovery point objects. - RecoveryPoints []*RecoveryPoint `locationName:"recoveryPoints" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRecoveryPointsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListRecoveryPointsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListRecoveryPointsOutput) SetNextToken(v string) *ListRecoveryPointsOutput { - s.NextToken = &v - return s -} - -// SetRecoveryPoints sets the RecoveryPoints field's value. -func (s *ListRecoveryPointsOutput) SetRecoveryPoints(v []*RecoveryPoint) *ListRecoveryPointsOutput { - s.RecoveryPoints = v - return s -} - -type ListSnapshotsInput struct { - _ struct{} `type:"structure"` - - // The timestamp showing when the snapshot creation finished. - EndTime *time.Time `locationName:"endTime" type:"timestamp"` - - // An optional parameter that specifies the maximum number of results to return. - // You can use nextToken to get the next page of results. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // The Amazon Resource Name (ARN) of the namespace from which to list all snapshots. - NamespaceArn *string `locationName:"namespaceArn" type:"string"` - - // The namespace from which to list all snapshots. - NamespaceName *string `locationName:"namespaceName" type:"string"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` - - // The owner Amazon Web Services account of the snapshot. - OwnerAccount *string `locationName:"ownerAccount" type:"string"` - - // The time when the creation of the snapshot was initiated. - StartTime *time.Time `locationName:"startTime" type:"timestamp"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSnapshotsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSnapshotsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEndTime sets the EndTime field's value. -func (s *ListSnapshotsInput) SetEndTime(v time.Time) *ListSnapshotsInput { - s.EndTime = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListSnapshotsInput) SetMaxResults(v int64) *ListSnapshotsInput { - s.MaxResults = &v - return s -} - -// SetNamespaceArn sets the NamespaceArn field's value. -func (s *ListSnapshotsInput) SetNamespaceArn(v string) *ListSnapshotsInput { - s.NamespaceArn = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *ListSnapshotsInput) SetNamespaceName(v string) *ListSnapshotsInput { - s.NamespaceName = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListSnapshotsInput) SetNextToken(v string) *ListSnapshotsInput { - s.NextToken = &v - return s -} - -// SetOwnerAccount sets the OwnerAccount field's value. -func (s *ListSnapshotsInput) SetOwnerAccount(v string) *ListSnapshotsInput { - s.OwnerAccount = &v - return s -} - -// SetStartTime sets the StartTime field's value. -func (s *ListSnapshotsInput) SetStartTime(v time.Time) *ListSnapshotsInput { - s.StartTime = &v - return s -} - -type ListSnapshotsOutput struct { - _ struct{} `type:"structure"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` - - // All of the returned snapshot objects. - Snapshots []*Snapshot `locationName:"snapshots" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListSnapshotsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListSnapshotsOutput) SetNextToken(v string) *ListSnapshotsOutput { - s.NextToken = &v - return s -} - -// SetSnapshots sets the Snapshots field's value. -func (s *ListSnapshotsOutput) SetSnapshots(v []*Snapshot) *ListSnapshotsOutput { - s.Snapshots = v - return s -} - -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource to list tags for. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v - return s -} - -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A map of the key-value pairs assigned to the resource. - Tags []*Tag `locationName:"tags" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListTagsForResourceOutput) GoString() string { - return s.String() -} - -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v - return s -} - -type ListUsageLimitsInput struct { - _ struct{} `type:"structure"` - - // 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. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // 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. - NextToken *string `locationName:"nextToken" min:"8" type:"string"` - - // The Amazon Resource Name (ARN) associated with the resource whose usage limits - // you want to list. - ResourceArn *string `locationName:"resourceArn" type:"string"` - - // The Amazon Redshift Serverless feature whose limits you want to see. - UsageType *string `locationName:"usageType" type:"string" enum:"UsageLimitUsageType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListUsageLimitsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListUsageLimitsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsageLimitsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsageLimitsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.NextToken != nil && len(*s.NextToken) < 8 { - invalidParams.Add(request.NewErrParamMinLen("NextToken", 8)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListUsageLimitsInput) SetMaxResults(v int64) *ListUsageLimitsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListUsageLimitsInput) SetNextToken(v string) *ListUsageLimitsInput { - s.NextToken = &v - return s -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *ListUsageLimitsInput) SetResourceArn(v string) *ListUsageLimitsInput { - s.ResourceArn = &v - return s -} - -// SetUsageType sets the UsageType field's value. -func (s *ListUsageLimitsInput) SetUsageType(v string) *ListUsageLimitsInput { - s.UsageType = &v - return s -} - -type ListUsageLimitsOutput struct { - _ struct{} `type:"structure"` - - // 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. - NextToken *string `locationName:"nextToken" min:"8" type:"string"` - - // An array of returned usage limit objects. - UsageLimits []*UsageLimit `locationName:"usageLimits" min:"1" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListUsageLimitsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListUsageLimitsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListUsageLimitsOutput) SetNextToken(v string) *ListUsageLimitsOutput { - s.NextToken = &v - return s -} - -// SetUsageLimits sets the UsageLimits field's value. -func (s *ListUsageLimitsOutput) SetUsageLimits(v []*UsageLimit) *ListUsageLimitsOutput { - s.UsageLimits = v - return s -} - -type ListWorkgroupsInput struct { - _ struct{} `type:"structure"` - - // An optional parameter that specifies the maximum number of results to return. - // You can use nextToken to get the next page of results. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListWorkgroupsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListWorkgroupsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListWorkgroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListWorkgroupsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListWorkgroupsInput) SetMaxResults(v int64) *ListWorkgroupsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListWorkgroupsInput) SetNextToken(v string) *ListWorkgroupsInput { - s.NextToken = &v - return s -} - -type ListWorkgroupsOutput struct { - _ struct{} `type:"structure"` - - // 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. - NextToken *string `locationName:"nextToken" type:"string"` - - // The returned array of workgroups. - // - // Workgroups is a required field - Workgroups []*Workgroup `locationName:"workgroups" type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListWorkgroupsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListWorkgroupsOutput) GoString() string { - return s.String() -} - -// SetNextToken sets the NextToken field's value. -func (s *ListWorkgroupsOutput) SetNextToken(v string) *ListWorkgroupsOutput { - s.NextToken = &v - return s -} - -// SetWorkgroups sets the Workgroups field's value. -func (s *ListWorkgroupsOutput) SetWorkgroups(v []*Workgroup) *ListWorkgroupsOutput { - s.Workgroups = v - return s -} - -// A collection of database objects and users. -type Namespace struct { - _ struct{} `type:"structure"` - - // The username of the administrator for the first database created in the namespace. - // - // AdminUsername is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Namespace's - // String and GoString methods. - AdminUsername *string `locationName:"adminUsername" type:"string" sensitive:"true"` - - // The date of when the namespace was created. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"iso8601"` - - // The name of the first database created in the namespace. - DbName *string `locationName:"dbName" type:"string"` - - // The Amazon Resource Name (ARN) of the IAM role to set as a default in the - // namespace. - DefaultIamRoleArn *string `locationName:"defaultIamRoleArn" type:"string"` - - // A list of IAM roles to associate with the namespace. - IamRoles []*string `locationName:"iamRoles" type:"list"` - - // The ID of the Amazon Web Services Key Management Service key used to encrypt - // your data. - KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - - // The types of logs the namespace can export. Available export types are User - // log, Connection log, and User activity log. - LogExports []*string `locationName:"logExports" type:"list" enum:"LogExport"` - - // The Amazon Resource Name (ARN) associated with a namespace. - NamespaceArn *string `locationName:"namespaceArn" type:"string"` - - // The unique identifier of a namespace. - NamespaceId *string `locationName:"namespaceId" type:"string"` - - // 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 (https://docs.aws.amazon.com/redshift/latest/dg/r_pg_keywords.html) - // in the Amazon Redshift Database Developer Guide. - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string"` - - // The status of the namespace. - Status *string `locationName:"status" type:"string" enum:"NamespaceStatus"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Namespace) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Namespace) GoString() string { - return s.String() -} - -// SetAdminUsername sets the AdminUsername field's value. -func (s *Namespace) SetAdminUsername(v string) *Namespace { - s.AdminUsername = &v - return s -} - -// SetCreationDate sets the CreationDate field's value. -func (s *Namespace) SetCreationDate(v time.Time) *Namespace { - s.CreationDate = &v - return s -} - -// SetDbName sets the DbName field's value. -func (s *Namespace) SetDbName(v string) *Namespace { - s.DbName = &v - return s -} - -// SetDefaultIamRoleArn sets the DefaultIamRoleArn field's value. -func (s *Namespace) SetDefaultIamRoleArn(v string) *Namespace { - s.DefaultIamRoleArn = &v - return s -} - -// SetIamRoles sets the IamRoles field's value. -func (s *Namespace) SetIamRoles(v []*string) *Namespace { - s.IamRoles = v - return s -} - -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *Namespace) SetKmsKeyId(v string) *Namespace { - s.KmsKeyId = &v - return s -} - -// SetLogExports sets the LogExports field's value. -func (s *Namespace) SetLogExports(v []*string) *Namespace { - s.LogExports = v - return s -} - -// SetNamespaceArn sets the NamespaceArn field's value. -func (s *Namespace) SetNamespaceArn(v string) *Namespace { - s.NamespaceArn = &v - return s -} - -// SetNamespaceId sets the NamespaceId field's value. -func (s *Namespace) SetNamespaceId(v string) *Namespace { - s.NamespaceId = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *Namespace) SetNamespaceName(v string) *Namespace { - s.NamespaceName = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *Namespace) SetStatus(v string) *Namespace { - s.Status = &v - return s -} - -// Contains information about a network interface in an Amazon Redshift Serverless -// managed VPC endpoint. -type NetworkInterface struct { - _ struct{} `type:"structure"` - - // The availability Zone. - AvailabilityZone *string `locationName:"availabilityZone" type:"string"` - - // The unique identifier of the network interface. - NetworkInterfaceId *string `locationName:"networkInterfaceId" type:"string"` - - // The IPv4 address of the network interface within the subnet. - PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` - - // The unique identifier of the subnet. - SubnetId *string `locationName:"subnetId" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s NetworkInterface) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s NetworkInterface) GoString() string { - return s.String() -} - -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *NetworkInterface) SetAvailabilityZone(v string) *NetworkInterface { - s.AvailabilityZone = &v - return s -} - -// SetNetworkInterfaceId sets the NetworkInterfaceId field's value. -func (s *NetworkInterface) SetNetworkInterfaceId(v string) *NetworkInterface { - s.NetworkInterfaceId = &v - return s -} - -// SetPrivateIpAddress sets the PrivateIpAddress field's value. -func (s *NetworkInterface) SetPrivateIpAddress(v string) *NetworkInterface { - s.PrivateIpAddress = &v - return s -} - -// SetSubnetId sets the SubnetId field's value. -func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { - s.SubnetId = &v - return s -} - -type PutResourcePolicyInput struct { - _ struct{} `type:"structure"` - - // 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\" }]}" - // - // Policy is a required field - Policy *string `locationName:"policy" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the account to create or update a resource - // policy for. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutResourcePolicyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutResourcePolicyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutResourcePolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutResourcePolicyInput"} - if s.Policy == nil { - invalidParams.Add(request.NewErrParamRequired("Policy")) - } - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetPolicy sets the Policy field's value. -func (s *PutResourcePolicyInput) SetPolicy(v string) *PutResourcePolicyInput { - s.Policy = &v - return s -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *PutResourcePolicyInput) SetResourceArn(v string) *PutResourcePolicyInput { - s.ResourceArn = &v - return s -} - -type PutResourcePolicyOutput struct { - _ struct{} `type:"structure"` - - // The policy that was created or updated. - ResourcePolicy *ResourcePolicy `locationName:"resourcePolicy" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutResourcePolicyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutResourcePolicyOutput) GoString() string { - return s.String() -} - -// SetResourcePolicy sets the ResourcePolicy field's value. -func (s *PutResourcePolicyOutput) SetResourcePolicy(v *ResourcePolicy) *PutResourcePolicyOutput { - s.ResourcePolicy = v - return s -} - -// The automatically created recovery point of a namespace. Recovery points -// are created every 30 minutes and kept for 24 hours. -type RecoveryPoint struct { - _ struct{} `type:"structure"` - - // The name of the namespace the recovery point is associated with. - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string"` - - // The time the recovery point is created. - RecoveryPointCreateTime *time.Time `locationName:"recoveryPointCreateTime" type:"timestamp" timestampFormat:"iso8601"` - - // The unique identifier of the recovery point. - RecoveryPointId *string `locationName:"recoveryPointId" type:"string"` - - // The total size of the data in the recovery point in megabytes. - TotalSizeInMegaBytes *float64 `locationName:"totalSizeInMegaBytes" type:"double"` - - // The name of the workgroup the recovery point is associated with. - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RecoveryPoint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RecoveryPoint) GoString() string { - return s.String() -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *RecoveryPoint) SetNamespaceName(v string) *RecoveryPoint { - s.NamespaceName = &v - return s -} - -// SetRecoveryPointCreateTime sets the RecoveryPointCreateTime field's value. -func (s *RecoveryPoint) SetRecoveryPointCreateTime(v time.Time) *RecoveryPoint { - s.RecoveryPointCreateTime = &v - return s -} - -// SetRecoveryPointId sets the RecoveryPointId field's value. -func (s *RecoveryPoint) SetRecoveryPointId(v string) *RecoveryPoint { - s.RecoveryPointId = &v - return s -} - -// SetTotalSizeInMegaBytes sets the TotalSizeInMegaBytes field's value. -func (s *RecoveryPoint) SetTotalSizeInMegaBytes(v float64) *RecoveryPoint { - s.TotalSizeInMegaBytes = &v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *RecoveryPoint) SetWorkgroupName(v string) *RecoveryPoint { - s.WorkgroupName = &v - return s -} - -// The resource could not be found. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` - - // The name of the resource that could not be found. - ResourceName *string `locationName:"resourceName" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { - return s.String() -} - -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" -} - -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil -} - -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The resource policy object. Currently, you can use policies to share snapshots -// across Amazon Web Services accounts. -type ResourcePolicy struct { - _ struct{} `type:"structure"` - - // The resource policy. - Policy *string `locationName:"policy" type:"string"` - - // The Amazon Resource Name (ARN) of the policy. - ResourceArn *string `locationName:"resourceArn" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourcePolicy) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourcePolicy) GoString() string { - return s.String() -} - -// SetPolicy sets the Policy field's value. -func (s *ResourcePolicy) SetPolicy(v string) *ResourcePolicy { - s.Policy = &v - return s -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *ResourcePolicy) SetResourceArn(v string) *ResourcePolicy { - s.ResourceArn = &v - return s -} - -type RestoreFromRecoveryPointInput struct { - _ struct{} `type:"structure"` - - // The name of the namespace to restore data into. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` - - // The unique identifier of the recovery point to restore from. - // - // RecoveryPointId is a required field - RecoveryPointId *string `locationName:"recoveryPointId" type:"string" required:"true"` - - // The name of the workgroup used to restore data. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromRecoveryPointInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromRecoveryPointInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreFromRecoveryPointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreFromRecoveryPointInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - if s.RecoveryPointId == nil { - invalidParams.Add(request.NewErrParamRequired("RecoveryPointId")) - } - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *RestoreFromRecoveryPointInput) SetNamespaceName(v string) *RestoreFromRecoveryPointInput { - s.NamespaceName = &v - return s -} - -// SetRecoveryPointId sets the RecoveryPointId field's value. -func (s *RestoreFromRecoveryPointInput) SetRecoveryPointId(v string) *RestoreFromRecoveryPointInput { - s.RecoveryPointId = &v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *RestoreFromRecoveryPointInput) SetWorkgroupName(v string) *RestoreFromRecoveryPointInput { - s.WorkgroupName = &v - return s -} - -type RestoreFromRecoveryPointOutput struct { - _ struct{} `type:"structure"` - - // The namespace that data was restored into. - Namespace *Namespace `locationName:"namespace" type:"structure"` - - // The unique identifier of the recovery point used for the restore. - RecoveryPointId *string `locationName:"recoveryPointId" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromRecoveryPointOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromRecoveryPointOutput) GoString() string { - return s.String() -} - -// SetNamespace sets the Namespace field's value. -func (s *RestoreFromRecoveryPointOutput) SetNamespace(v *Namespace) *RestoreFromRecoveryPointOutput { - s.Namespace = v - return s -} - -// SetRecoveryPointId sets the RecoveryPointId field's value. -func (s *RestoreFromRecoveryPointOutput) SetRecoveryPointId(v string) *RestoreFromRecoveryPointOutput { - s.RecoveryPointId = &v - return s -} - -type RestoreFromSnapshotInput struct { - _ struct{} `type:"structure"` - - // The name of the namespace to restore the snapshot to. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` - - // The Amazon Web Services account that owns the snapshot. - OwnerAccount *string `locationName:"ownerAccount" type:"string"` - - // The Amazon Resource Name (ARN) of the snapshot to restore from. - SnapshotArn *string `locationName:"snapshotArn" type:"string"` - - // The name of the snapshot to restore from. - SnapshotName *string `locationName:"snapshotName" type:"string"` - - // The name of the workgroup used to restore the snapshot. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreFromSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreFromSnapshotInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *RestoreFromSnapshotInput) SetNamespaceName(v string) *RestoreFromSnapshotInput { - s.NamespaceName = &v - return s -} - -// SetOwnerAccount sets the OwnerAccount field's value. -func (s *RestoreFromSnapshotInput) SetOwnerAccount(v string) *RestoreFromSnapshotInput { - s.OwnerAccount = &v - return s -} - -// SetSnapshotArn sets the SnapshotArn field's value. -func (s *RestoreFromSnapshotInput) SetSnapshotArn(v string) *RestoreFromSnapshotInput { - s.SnapshotArn = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *RestoreFromSnapshotInput) SetSnapshotName(v string) *RestoreFromSnapshotInput { - s.SnapshotName = &v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *RestoreFromSnapshotInput) SetWorkgroupName(v string) *RestoreFromSnapshotInput { - s.WorkgroupName = &v - return s -} - -type RestoreFromSnapshotOutput struct { - _ struct{} `type:"structure"` - - // A collection of database objects and users. - Namespace *Namespace `locationName:"namespace" type:"structure"` - - // The owner Amazon Web Services; account of the snapshot that was restored. - OwnerAccount *string `locationName:"ownerAccount" type:"string"` - - // The name of the snapshot used to restore the namespace. - SnapshotName *string `locationName:"snapshotName" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s RestoreFromSnapshotOutput) GoString() string { - return s.String() -} - -// SetNamespace sets the Namespace field's value. -func (s *RestoreFromSnapshotOutput) SetNamespace(v *Namespace) *RestoreFromSnapshotOutput { - s.Namespace = v - return s -} - -// SetOwnerAccount sets the OwnerAccount field's value. -func (s *RestoreFromSnapshotOutput) SetOwnerAccount(v string) *RestoreFromSnapshotOutput { - s.OwnerAccount = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *RestoreFromSnapshotOutput) SetSnapshotName(v string) *RestoreFromSnapshotOutput { - s.SnapshotName = &v - return s -} - -// The service limit was exceeded. -type ServiceQuotaExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) GoString() string { - return s.String() -} - -func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { - return &ServiceQuotaExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceQuotaExceededException) Code() string { - return "ServiceQuotaExceededException" -} - -// Message returns the exception's message. -func (s *ServiceQuotaExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceQuotaExceededException) OrigErr() error { - return nil -} - -func (s *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceQuotaExceededException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServiceQuotaExceededException) RequestID() string { - return s.RespMetadata.RequestID -} - -// A snapshot object that contains databases. -type Snapshot struct { - _ struct{} `type:"structure"` - - // All of the Amazon Web Services accounts that have access to restore a snapshot - // to a provisioned cluster. - AccountsWithProvisionedRestoreAccess []*string `locationName:"accountsWithProvisionedRestoreAccess" type:"list"` - - // All of the Amazon Web Services accounts that have access to restore a snapshot - // to a namespace. - AccountsWithRestoreAccess []*string `locationName:"accountsWithRestoreAccess" type:"list"` - - // The size of the incremental backup in megabytes. - ActualIncrementalBackupSizeInMegaBytes *float64 `locationName:"actualIncrementalBackupSizeInMegaBytes" type:"double"` - - // The username of the database within a snapshot. - AdminUsername *string `locationName:"adminUsername" type:"string"` - - // The size in megabytes of the data that has been backed up to a snapshot. - BackupProgressInMegaBytes *float64 `locationName:"backupProgressInMegaBytes" type:"double"` - - // The rate at which data is backed up into a snapshot in megabytes per second. - CurrentBackupRateInMegaBytesPerSecond *float64 `locationName:"currentBackupRateInMegaBytesPerSecond" type:"double"` - - // The amount of time it took to back up data into a snapshot. - ElapsedTimeInSeconds *int64 `locationName:"elapsedTimeInSeconds" type:"long"` - - // The estimated amount of seconds until the snapshot completes backup. - EstimatedSecondsToCompletion *int64 `locationName:"estimatedSecondsToCompletion" type:"long"` - - // The unique identifier of the KMS key used to encrypt the snapshot. - KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - - // The Amazon Resource Name (ARN) of the namespace the snapshot was created - // from. - NamespaceArn *string `locationName:"namespaceArn" type:"string"` - - // The name of the namepsace. - NamespaceName *string `locationName:"namespaceName" type:"string"` - - // The owner Amazon Web Services; account of the snapshot. - OwnerAccount *string `locationName:"ownerAccount" type:"string"` - - // The Amazon Resource Name (ARN) of the snapshot. - SnapshotArn *string `locationName:"snapshotArn" type:"string"` - - // The timestamp of when the snapshot was created. - SnapshotCreateTime *time.Time `locationName:"snapshotCreateTime" type:"timestamp" timestampFormat:"iso8601"` - - // The name of the snapshot. - SnapshotName *string `locationName:"snapshotName" type:"string"` - - // The amount of days until the snapshot is deleted. - SnapshotRemainingDays *int64 `locationName:"snapshotRemainingDays" type:"integer"` - - // The period of time, in days, of how long the snapshot is retained. - SnapshotRetentionPeriod *int64 `locationName:"snapshotRetentionPeriod" type:"integer"` - - // The timestamp of when data within the snapshot started getting retained. - SnapshotRetentionStartTime *time.Time `locationName:"snapshotRetentionStartTime" type:"timestamp" timestampFormat:"iso8601"` - - // The status of the snapshot. - Status *string `locationName:"status" type:"string" enum:"SnapshotStatus"` - - // The total size, in megabytes, of how big the snapshot is. - TotalBackupSizeInMegaBytes *float64 `locationName:"totalBackupSizeInMegaBytes" type:"double"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Snapshot) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Snapshot) GoString() string { - return s.String() -} - -// SetAccountsWithProvisionedRestoreAccess sets the AccountsWithProvisionedRestoreAccess field's value. -func (s *Snapshot) SetAccountsWithProvisionedRestoreAccess(v []*string) *Snapshot { - s.AccountsWithProvisionedRestoreAccess = v - return s -} - -// SetAccountsWithRestoreAccess sets the AccountsWithRestoreAccess field's value. -func (s *Snapshot) SetAccountsWithRestoreAccess(v []*string) *Snapshot { - s.AccountsWithRestoreAccess = v - return s -} - -// SetActualIncrementalBackupSizeInMegaBytes sets the ActualIncrementalBackupSizeInMegaBytes field's value. -func (s *Snapshot) SetActualIncrementalBackupSizeInMegaBytes(v float64) *Snapshot { - s.ActualIncrementalBackupSizeInMegaBytes = &v - return s -} - -// SetAdminUsername sets the AdminUsername field's value. -func (s *Snapshot) SetAdminUsername(v string) *Snapshot { - s.AdminUsername = &v - return s -} - -// SetBackupProgressInMegaBytes sets the BackupProgressInMegaBytes field's value. -func (s *Snapshot) SetBackupProgressInMegaBytes(v float64) *Snapshot { - s.BackupProgressInMegaBytes = &v - return s -} - -// SetCurrentBackupRateInMegaBytesPerSecond sets the CurrentBackupRateInMegaBytesPerSecond field's value. -func (s *Snapshot) SetCurrentBackupRateInMegaBytesPerSecond(v float64) *Snapshot { - s.CurrentBackupRateInMegaBytesPerSecond = &v - return s -} - -// SetElapsedTimeInSeconds sets the ElapsedTimeInSeconds field's value. -func (s *Snapshot) SetElapsedTimeInSeconds(v int64) *Snapshot { - s.ElapsedTimeInSeconds = &v - return s -} - -// SetEstimatedSecondsToCompletion sets the EstimatedSecondsToCompletion field's value. -func (s *Snapshot) SetEstimatedSecondsToCompletion(v int64) *Snapshot { - s.EstimatedSecondsToCompletion = &v - return s -} - -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *Snapshot) SetKmsKeyId(v string) *Snapshot { - s.KmsKeyId = &v - return s -} - -// SetNamespaceArn sets the NamespaceArn field's value. -func (s *Snapshot) SetNamespaceArn(v string) *Snapshot { - s.NamespaceArn = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *Snapshot) SetNamespaceName(v string) *Snapshot { - s.NamespaceName = &v - return s -} - -// SetOwnerAccount sets the OwnerAccount field's value. -func (s *Snapshot) SetOwnerAccount(v string) *Snapshot { - s.OwnerAccount = &v - return s -} - -// SetSnapshotArn sets the SnapshotArn field's value. -func (s *Snapshot) SetSnapshotArn(v string) *Snapshot { - s.SnapshotArn = &v - return s -} - -// SetSnapshotCreateTime sets the SnapshotCreateTime field's value. -func (s *Snapshot) SetSnapshotCreateTime(v time.Time) *Snapshot { - s.SnapshotCreateTime = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *Snapshot) SetSnapshotName(v string) *Snapshot { - s.SnapshotName = &v - return s -} - -// SetSnapshotRemainingDays sets the SnapshotRemainingDays field's value. -func (s *Snapshot) SetSnapshotRemainingDays(v int64) *Snapshot { - s.SnapshotRemainingDays = &v - return s -} - -// SetSnapshotRetentionPeriod sets the SnapshotRetentionPeriod field's value. -func (s *Snapshot) SetSnapshotRetentionPeriod(v int64) *Snapshot { - s.SnapshotRetentionPeriod = &v - return s -} - -// SetSnapshotRetentionStartTime sets the SnapshotRetentionStartTime field's value. -func (s *Snapshot) SetSnapshotRetentionStartTime(v time.Time) *Snapshot { - s.SnapshotRetentionStartTime = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *Snapshot) SetStatus(v string) *Snapshot { - s.Status = &v - return s -} - -// SetTotalBackupSizeInMegaBytes sets the TotalBackupSizeInMegaBytes field's value. -func (s *Snapshot) SetTotalBackupSizeInMegaBytes(v float64) *Snapshot { - s.TotalBackupSizeInMegaBytes = &v - return s -} - -// A map of key-value pairs. -type Tag struct { - _ struct{} `type:"structure"` - - // The key to use in the tag. - // - // Key is a required field - Key *string `locationName:"key" min:"1" type:"string" required:"true"` - - // The value of the tag. - // - // Value is a required field - Value *string `locationName:"value" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Tag) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Tag) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKey sets the Key field's value. -func (s *Tag) SetKey(v string) *Tag { - s.Key = &v - return s -} - -// SetValue sets the Value field's value. -func (s *Tag) SetValue(v string) *Tag { - s.Value = &v - return s -} - -type TagResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource to tag. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` - - // The map of the key-value pairs used to tag the resource. - // - // Tags is a required field - Tags []*Tag `locationName:"tags" type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { - s.ResourceArn = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { - s.Tags = v - return s -} - -type TagResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TagResourceOutput) GoString() string { - return s.String() -} - -// The request was denied due to request throttling. -type ThrottlingException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Code_ *string `locationName:"code" type:"string"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ThrottlingException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ThrottlingException) GoString() string { - return s.String() -} - -func newErrorThrottlingException(v protocol.ResponseMetadata) error { - return &ThrottlingException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ThrottlingException) Code() string { - return "ThrottlingException" -} - -// Message returns the exception's message. -func (s *ThrottlingException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottlingException) OrigErr() error { - return nil -} - -func (s *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottlingException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ThrottlingException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The request exceeded the number of tags allowed for a resource. -type TooManyTagsException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` - - // The name of the resource that exceeded the number of tags allowed for a resource. - ResourceName *string `locationName:"resourceName" min:"1" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TooManyTagsException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s TooManyTagsException) GoString() string { - return s.String() -} - -func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { - return &TooManyTagsException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *TooManyTagsException) Code() string { - return "TooManyTagsException" -} - -// Message returns the exception's message. -func (s *TooManyTagsException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *TooManyTagsException) OrigErr() error { - return nil -} - -func (s *TooManyTagsException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *TooManyTagsException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *TooManyTagsException) RequestID() string { - return s.RespMetadata.RequestID -} - -type UntagResourceInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the resource to remove tags from. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` - - // The tag or set of tags to remove from the resource. - // - // TagKeys is a required field - TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UntagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { - s.ResourceArn = &v - return s -} - -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v - return s -} - -type UntagResourceOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UntagResourceOutput) GoString() string { - return s.String() -} - -type UpdateEndpointAccessInput struct { - _ struct{} `type:"structure"` - - // The name of the VPC endpoint to update. - // - // EndpointName is a required field - EndpointName *string `locationName:"endpointName" type:"string" required:"true"` - - // The list of VPC security groups associated with the endpoint after the endpoint - // is modified. - VpcSecurityGroupIds []*string `locationName:"vpcSecurityGroupIds" type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateEndpointAccessInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateEndpointAccessInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateEndpointAccessInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointAccessInput"} - if s.EndpointName == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEndpointName sets the EndpointName field's value. -func (s *UpdateEndpointAccessInput) SetEndpointName(v string) *UpdateEndpointAccessInput { - s.EndpointName = &v - return s -} - -// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. -func (s *UpdateEndpointAccessInput) SetVpcSecurityGroupIds(v []*string) *UpdateEndpointAccessInput { - s.VpcSecurityGroupIds = v - return s -} - -type UpdateEndpointAccessOutput struct { - _ struct{} `type:"structure"` - - // The updated VPC endpoint. - Endpoint *EndpointAccess `locationName:"endpoint" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateEndpointAccessOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateEndpointAccessOutput) GoString() string { - return s.String() -} - -// SetEndpoint sets the Endpoint field's value. -func (s *UpdateEndpointAccessOutput) SetEndpoint(v *EndpointAccess) *UpdateEndpointAccessOutput { - s.Endpoint = v - return s -} - -type UpdateNamespaceInput struct { - _ struct{} `type:"structure"` - - // The password of the administrator for the first database created in the namespace. - // - // AdminUserPassword is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdateNamespaceInput's - // String and GoString methods. - AdminUserPassword *string `locationName:"adminUserPassword" type:"string" sensitive:"true"` - - // The username of the administrator for the first database created in the namespace. - // - // AdminUsername is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by UpdateNamespaceInput's - // String and GoString methods. - AdminUsername *string `locationName:"adminUsername" type:"string" sensitive:"true"` - - // The Amazon Resource Name (ARN) of the IAM role to set as a default in the - // namespace. - DefaultIamRoleArn *string `locationName:"defaultIamRoleArn" type:"string"` - - // A list of IAM roles to associate with the namespace. - IamRoles []*string `locationName:"iamRoles" type:"list"` - - // The ID of the Amazon Web Services Key Management Service key used to encrypt - // your data. - KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - - // The types of logs the namespace can export. The export types are userlog, - // connectionlog, and useractivitylog. - LogExports []*string `locationName:"logExports" type:"list" enum:"LogExport"` - - // The name of the namespace. - // - // NamespaceName is a required field - NamespaceName *string `locationName:"namespaceName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateNamespaceInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateNamespaceInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateNamespaceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateNamespaceInput"} - if s.NamespaceName == nil { - invalidParams.Add(request.NewErrParamRequired("NamespaceName")) - } - if s.NamespaceName != nil && len(*s.NamespaceName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("NamespaceName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAdminUserPassword sets the AdminUserPassword field's value. -func (s *UpdateNamespaceInput) SetAdminUserPassword(v string) *UpdateNamespaceInput { - s.AdminUserPassword = &v - return s -} - -// SetAdminUsername sets the AdminUsername field's value. -func (s *UpdateNamespaceInput) SetAdminUsername(v string) *UpdateNamespaceInput { - s.AdminUsername = &v - return s -} - -// SetDefaultIamRoleArn sets the DefaultIamRoleArn field's value. -func (s *UpdateNamespaceInput) SetDefaultIamRoleArn(v string) *UpdateNamespaceInput { - s.DefaultIamRoleArn = &v - return s -} - -// SetIamRoles sets the IamRoles field's value. -func (s *UpdateNamespaceInput) SetIamRoles(v []*string) *UpdateNamespaceInput { - s.IamRoles = v - return s -} - -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *UpdateNamespaceInput) SetKmsKeyId(v string) *UpdateNamespaceInput { - s.KmsKeyId = &v - return s -} - -// SetLogExports sets the LogExports field's value. -func (s *UpdateNamespaceInput) SetLogExports(v []*string) *UpdateNamespaceInput { - s.LogExports = v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *UpdateNamespaceInput) SetNamespaceName(v string) *UpdateNamespaceInput { - s.NamespaceName = &v - return s -} - -type UpdateNamespaceOutput struct { - _ struct{} `type:"structure"` - - // A list of tag instances. - // - // Namespace is a required field - Namespace *Namespace `locationName:"namespace" type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateNamespaceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateNamespaceOutput) GoString() string { - return s.String() -} - -// SetNamespace sets the Namespace field's value. -func (s *UpdateNamespaceOutput) SetNamespace(v *Namespace) *UpdateNamespaceOutput { - s.Namespace = v - return s -} - -type UpdateSnapshotInput struct { - _ struct{} `type:"structure"` - - // The new retention period of the snapshot. - RetentionPeriod *int64 `locationName:"retentionPeriod" type:"integer"` - - // The name of the snapshot. - // - // SnapshotName is a required field - SnapshotName *string `locationName:"snapshotName" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateSnapshotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateSnapshotInput"} - if s.SnapshotName == nil { - invalidParams.Add(request.NewErrParamRequired("SnapshotName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRetentionPeriod sets the RetentionPeriod field's value. -func (s *UpdateSnapshotInput) SetRetentionPeriod(v int64) *UpdateSnapshotInput { - s.RetentionPeriod = &v - return s -} - -// SetSnapshotName sets the SnapshotName field's value. -func (s *UpdateSnapshotInput) SetSnapshotName(v string) *UpdateSnapshotInput { - s.SnapshotName = &v - return s -} - -type UpdateSnapshotOutput struct { - _ struct{} `type:"structure"` - - // The updated snapshot object. - Snapshot *Snapshot `locationName:"snapshot" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateSnapshotOutput) GoString() string { - return s.String() -} - -// SetSnapshot sets the Snapshot field's value. -func (s *UpdateSnapshotOutput) SetSnapshot(v *Snapshot) *UpdateSnapshotOutput { - s.Snapshot = v - return s -} - -type UpdateUsageLimitInput struct { - _ struct{} `type:"structure"` - - // The new limit amount. For more information about this parameter. - Amount *int64 `locationName:"amount" type:"long"` - - // The new action that Amazon Redshift Serverless takes when the limit is reached. - BreachAction *string `locationName:"breachAction" type:"string" enum:"UsageLimitBreachAction"` - - // The identifier of the usage limit to update. - // - // UsageLimitId is a required field - UsageLimitId *string `locationName:"usageLimitId" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateUsageLimitInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateUsageLimitInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateUsageLimitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateUsageLimitInput"} - if s.UsageLimitId == nil { - invalidParams.Add(request.NewErrParamRequired("UsageLimitId")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAmount sets the Amount field's value. -func (s *UpdateUsageLimitInput) SetAmount(v int64) *UpdateUsageLimitInput { - s.Amount = &v - return s -} - -// SetBreachAction sets the BreachAction field's value. -func (s *UpdateUsageLimitInput) SetBreachAction(v string) *UpdateUsageLimitInput { - s.BreachAction = &v - return s -} - -// SetUsageLimitId sets the UsageLimitId field's value. -func (s *UpdateUsageLimitInput) SetUsageLimitId(v string) *UpdateUsageLimitInput { - s.UsageLimitId = &v - return s -} - -type UpdateUsageLimitOutput struct { - _ struct{} `type:"structure"` - - // The updated usage limit object. - UsageLimit *UsageLimit `locationName:"usageLimit" type:"structure"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateUsageLimitOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateUsageLimitOutput) GoString() string { - return s.String() -} - -// SetUsageLimit sets the UsageLimit field's value. -func (s *UpdateUsageLimitOutput) SetUsageLimit(v *UsageLimit) *UpdateUsageLimitOutput { - s.UsageLimit = v - return s -} - -type UpdateWorkgroupInput struct { - _ struct{} `type:"structure"` - - // The new base data warehouse capacity in Redshift Processing Units (RPUs). - BaseCapacity *int64 `locationName:"baseCapacity" type:"integer"` - - // 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. - ConfigParameters []*ConfigParameter `locationName:"configParameters" type:"list"` - - // 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. - EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` - - // A value that specifies whether the workgroup can be accessible from a public - // network. - PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` - - // An array of security group IDs to associate with the workgroup. - SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` - - // An array of VPC subnet IDs to associate with the workgroup. - SubnetIds []*string `locationName:"subnetIds" type:"list"` - - // The name of the workgroup to update. - // - // WorkgroupName is a required field - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateWorkgroupInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateWorkgroupInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateWorkgroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateWorkgroupInput"} - if s.WorkgroupName == nil { - invalidParams.Add(request.NewErrParamRequired("WorkgroupName")) - } - if s.WorkgroupName != nil && len(*s.WorkgroupName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("WorkgroupName", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetBaseCapacity sets the BaseCapacity field's value. -func (s *UpdateWorkgroupInput) SetBaseCapacity(v int64) *UpdateWorkgroupInput { - s.BaseCapacity = &v - return s -} - -// SetConfigParameters sets the ConfigParameters field's value. -func (s *UpdateWorkgroupInput) SetConfigParameters(v []*ConfigParameter) *UpdateWorkgroupInput { - s.ConfigParameters = v - return s -} - -// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. -func (s *UpdateWorkgroupInput) SetEnhancedVpcRouting(v bool) *UpdateWorkgroupInput { - s.EnhancedVpcRouting = &v - return s -} - -// SetPubliclyAccessible sets the PubliclyAccessible field's value. -func (s *UpdateWorkgroupInput) SetPubliclyAccessible(v bool) *UpdateWorkgroupInput { - s.PubliclyAccessible = &v - return s -} - -// SetSecurityGroupIds sets the SecurityGroupIds field's value. -func (s *UpdateWorkgroupInput) SetSecurityGroupIds(v []*string) *UpdateWorkgroupInput { - s.SecurityGroupIds = v - return s -} - -// SetSubnetIds sets the SubnetIds field's value. -func (s *UpdateWorkgroupInput) SetSubnetIds(v []*string) *UpdateWorkgroupInput { - s.SubnetIds = v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *UpdateWorkgroupInput) SetWorkgroupName(v string) *UpdateWorkgroupInput { - s.WorkgroupName = &v - return s -} - -type UpdateWorkgroupOutput struct { - _ struct{} `type:"structure"` - - // The updated workgroup object. - // - // Workgroup is a required field - Workgroup *Workgroup `locationName:"workgroup" type:"structure" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateWorkgroupOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateWorkgroupOutput) GoString() string { - return s.String() -} - -// SetWorkgroup sets the Workgroup field's value. -func (s *UpdateWorkgroupOutput) SetWorkgroup(v *Workgroup) *UpdateWorkgroupOutput { - s.Workgroup = v - return s -} - -// The usage limit object. -type UsageLimit struct { - _ struct{} `type:"structure"` - - // 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. - Amount *int64 `locationName:"amount" type:"long"` - - // The action that Amazon Redshift Serverless takes when the limit is reached. - BreachAction *string `locationName:"breachAction" type:"string" enum:"UsageLimitBreachAction"` - - // The time period that the amount applies to. A weekly period begins on Sunday. - // The default is monthly. - Period *string `locationName:"period" type:"string" enum:"UsageLimitPeriod"` - - // The Amazon Resource Name (ARN) that identifies the Amazon Redshift Serverless - // resource. - ResourceArn *string `locationName:"resourceArn" type:"string"` - - // The Amazon Resource Name (ARN) of the resource associated with the usage - // limit. - UsageLimitArn *string `locationName:"usageLimitArn" type:"string"` - - // The identifier of the usage limit. - UsageLimitId *string `locationName:"usageLimitId" type:"string"` - - // The Amazon Redshift Serverless feature to limit. - UsageType *string `locationName:"usageType" type:"string" enum:"UsageLimitUsageType"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UsageLimit) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UsageLimit) GoString() string { - return s.String() -} - -// SetAmount sets the Amount field's value. -func (s *UsageLimit) SetAmount(v int64) *UsageLimit { - s.Amount = &v - return s -} - -// SetBreachAction sets the BreachAction field's value. -func (s *UsageLimit) SetBreachAction(v string) *UsageLimit { - s.BreachAction = &v - return s -} - -// SetPeriod sets the Period field's value. -func (s *UsageLimit) SetPeriod(v string) *UsageLimit { - s.Period = &v - return s -} - -// SetResourceArn sets the ResourceArn field's value. -func (s *UsageLimit) SetResourceArn(v string) *UsageLimit { - s.ResourceArn = &v - return s -} - -// SetUsageLimitArn sets the UsageLimitArn field's value. -func (s *UsageLimit) SetUsageLimitArn(v string) *UsageLimit { - s.UsageLimitArn = &v - return s -} - -// SetUsageLimitId sets the UsageLimitId field's value. -func (s *UsageLimit) SetUsageLimitId(v string) *UsageLimit { - s.UsageLimitId = &v - return s -} - -// SetUsageType sets the UsageType field's value. -func (s *UsageLimit) SetUsageType(v string) *UsageLimit { - s.UsageType = &v - return s -} - -// The input failed to satisfy the constraints specified by an AWS service. -type ValidationException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ValidationException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ValidationException) GoString() string { - return s.String() -} - -func newErrorValidationException(v protocol.ResponseMetadata) error { - return &ValidationException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ValidationException) Code() string { - return "ValidationException" -} - -// Message returns the exception's message. -func (s *ValidationException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ValidationException) OrigErr() error { - return nil -} - -func (s *ValidationException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ValidationException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ValidationException) RequestID() string { - return s.RespMetadata.RequestID -} - -// The connection endpoint for connecting to Amazon Redshift Serverless through -// the proxy. -type VpcEndpoint struct { - _ struct{} `type:"structure"` - - // One or more network interfaces of the endpoint. Also known as an interface - // endpoint. - NetworkInterfaces []*NetworkInterface `locationName:"networkInterfaces" type:"list"` - - // The connection endpoint ID for connecting to Amazon Redshift Serverless. - VpcEndpointId *string `locationName:"vpcEndpointId" type:"string"` - - // The VPC identifier that the endpoint is associated with. - VpcId *string `locationName:"vpcId" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s VpcEndpoint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s VpcEndpoint) GoString() string { - return s.String() -} - -// SetNetworkInterfaces sets the NetworkInterfaces field's value. -func (s *VpcEndpoint) SetNetworkInterfaces(v []*NetworkInterface) *VpcEndpoint { - s.NetworkInterfaces = v - return s -} - -// SetVpcEndpointId sets the VpcEndpointId field's value. -func (s *VpcEndpoint) SetVpcEndpointId(v string) *VpcEndpoint { - s.VpcEndpointId = &v - return s -} - -// SetVpcId sets the VpcId field's value. -func (s *VpcEndpoint) SetVpcId(v string) *VpcEndpoint { - s.VpcId = &v - return s -} - -// Describes the members of a VPC security group. -type VpcSecurityGroupMembership struct { - _ struct{} `type:"structure"` - - // The status of the VPC security group. - Status *string `locationName:"status" type:"string"` - - // The unique identifier of the VPC security group. - VpcSecurityGroupId *string `locationName:"vpcSecurityGroupId" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s VpcSecurityGroupMembership) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s VpcSecurityGroupMembership) GoString() string { - return s.String() -} - -// SetStatus sets the Status field's value. -func (s *VpcSecurityGroupMembership) SetStatus(v string) *VpcSecurityGroupMembership { - s.Status = &v - return s -} - -// SetVpcSecurityGroupId sets the VpcSecurityGroupId field's value. -func (s *VpcSecurityGroupMembership) SetVpcSecurityGroupId(v string) *VpcSecurityGroupMembership { - s.VpcSecurityGroupId = &v - return s -} - -// The collection of computing resources from which an endpoint is created. -type Workgroup struct { - _ struct{} `type:"structure"` - - // The base data warehouse capacity of the workgroup in Redshift Processing - // Units (RPUs). - BaseCapacity *int64 `locationName:"baseCapacity" type:"integer"` - - // 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. - ConfigParameters []*ConfigParameter `locationName:"configParameters" type:"list"` - - // The creation date of the workgroup. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp" timestampFormat:"iso8601"` - - // The endpoint that is created from the workgroup. - Endpoint *Endpoint `locationName:"endpoint" type:"structure"` - - // The value that specifies whether to enable enhanced virtual private cloud - // (VPC) routing, which forces Amazon Redshift Serverless to route traffic through - // your VPC. - EnhancedVpcRouting *bool `locationName:"enhancedVpcRouting" type:"boolean"` - - // The namespace the workgroup is associated with. - NamespaceName *string `locationName:"namespaceName" type:"string"` - - // A value that specifies whether the workgroup can be accessible from a public - // network - PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` - - // An array of security group IDs to associate with the workgroup. - SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` - - // The status of the workgroup. - Status *string `locationName:"status" type:"string" enum:"WorkgroupStatus"` - - // An array of subnet IDs the workgroup is associated with. - SubnetIds []*string `locationName:"subnetIds" type:"list"` - - // The Amazon Resource Name (ARN) that links to the workgroup. - WorkgroupArn *string `locationName:"workgroupArn" type:"string"` - - // The unique identifier of the workgroup. - WorkgroupId *string `locationName:"workgroupId" type:"string"` - - // The name of the workgroup. - WorkgroupName *string `locationName:"workgroupName" min:"3" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Workgroup) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Workgroup) GoString() string { - return s.String() -} - -// SetBaseCapacity sets the BaseCapacity field's value. -func (s *Workgroup) SetBaseCapacity(v int64) *Workgroup { - s.BaseCapacity = &v - return s -} - -// SetConfigParameters sets the ConfigParameters field's value. -func (s *Workgroup) SetConfigParameters(v []*ConfigParameter) *Workgroup { - s.ConfigParameters = v - return s -} - -// SetCreationDate sets the CreationDate field's value. -func (s *Workgroup) SetCreationDate(v time.Time) *Workgroup { - s.CreationDate = &v - return s -} - -// SetEndpoint sets the Endpoint field's value. -func (s *Workgroup) SetEndpoint(v *Endpoint) *Workgroup { - s.Endpoint = v - return s -} - -// SetEnhancedVpcRouting sets the EnhancedVpcRouting field's value. -func (s *Workgroup) SetEnhancedVpcRouting(v bool) *Workgroup { - s.EnhancedVpcRouting = &v - return s -} - -// SetNamespaceName sets the NamespaceName field's value. -func (s *Workgroup) SetNamespaceName(v string) *Workgroup { - s.NamespaceName = &v - return s -} - -// SetPubliclyAccessible sets the PubliclyAccessible field's value. -func (s *Workgroup) SetPubliclyAccessible(v bool) *Workgroup { - s.PubliclyAccessible = &v - return s -} - -// SetSecurityGroupIds sets the SecurityGroupIds field's value. -func (s *Workgroup) SetSecurityGroupIds(v []*string) *Workgroup { - s.SecurityGroupIds = v - return s -} - -// SetStatus sets the Status field's value. -func (s *Workgroup) SetStatus(v string) *Workgroup { - s.Status = &v - return s -} - -// SetSubnetIds sets the SubnetIds field's value. -func (s *Workgroup) SetSubnetIds(v []*string) *Workgroup { - s.SubnetIds = v - return s -} - -// SetWorkgroupArn sets the WorkgroupArn field's value. -func (s *Workgroup) SetWorkgroupArn(v string) *Workgroup { - s.WorkgroupArn = &v - return s -} - -// SetWorkgroupId sets the WorkgroupId field's value. -func (s *Workgroup) SetWorkgroupId(v string) *Workgroup { - s.WorkgroupId = &v - return s -} - -// SetWorkgroupName sets the WorkgroupName field's value. -func (s *Workgroup) SetWorkgroupName(v string) *Workgroup { - s.WorkgroupName = &v - return s -} - -const ( - // LogExportUseractivitylog is a LogExport enum value - LogExportUseractivitylog = "useractivitylog" - - // LogExportUserlog is a LogExport enum value - LogExportUserlog = "userlog" - - // LogExportConnectionlog is a LogExport enum value - LogExportConnectionlog = "connectionlog" -) - -// LogExport_Values returns all elements of the LogExport enum -func LogExport_Values() []string { - return []string{ - LogExportUseractivitylog, - LogExportUserlog, - LogExportConnectionlog, - } -} - -const ( - // NamespaceStatusAvailable is a NamespaceStatus enum value - NamespaceStatusAvailable = "AVAILABLE" - - // NamespaceStatusModifying is a NamespaceStatus enum value - NamespaceStatusModifying = "MODIFYING" - - // NamespaceStatusDeleting is a NamespaceStatus enum value - NamespaceStatusDeleting = "DELETING" -) - -// NamespaceStatus_Values returns all elements of the NamespaceStatus enum -func NamespaceStatus_Values() []string { - return []string{ - NamespaceStatusAvailable, - NamespaceStatusModifying, - NamespaceStatusDeleting, - } -} - -const ( - // SnapshotStatusAvailable is a SnapshotStatus enum value - SnapshotStatusAvailable = "AVAILABLE" - - // SnapshotStatusCreating is a SnapshotStatus enum value - SnapshotStatusCreating = "CREATING" - - // SnapshotStatusDeleted is a SnapshotStatus enum value - SnapshotStatusDeleted = "DELETED" - - // SnapshotStatusCancelled is a SnapshotStatus enum value - SnapshotStatusCancelled = "CANCELLED" - - // SnapshotStatusFailed is a SnapshotStatus enum value - SnapshotStatusFailed = "FAILED" - - // SnapshotStatusCopying is a SnapshotStatus enum value - SnapshotStatusCopying = "COPYING" -) - -// SnapshotStatus_Values returns all elements of the SnapshotStatus enum -func SnapshotStatus_Values() []string { - return []string{ - SnapshotStatusAvailable, - SnapshotStatusCreating, - SnapshotStatusDeleted, - SnapshotStatusCancelled, - SnapshotStatusFailed, - SnapshotStatusCopying, - } -} - -const ( - // UsageLimitBreachActionLog is a UsageLimitBreachAction enum value - UsageLimitBreachActionLog = "log" - - // UsageLimitBreachActionEmitMetric is a UsageLimitBreachAction enum value - UsageLimitBreachActionEmitMetric = "emit-metric" - - // UsageLimitBreachActionDeactivate is a UsageLimitBreachAction enum value - UsageLimitBreachActionDeactivate = "deactivate" -) - -// UsageLimitBreachAction_Values returns all elements of the UsageLimitBreachAction enum -func UsageLimitBreachAction_Values() []string { - return []string{ - UsageLimitBreachActionLog, - UsageLimitBreachActionEmitMetric, - UsageLimitBreachActionDeactivate, - } -} - -const ( - // UsageLimitPeriodDaily is a UsageLimitPeriod enum value - UsageLimitPeriodDaily = "daily" - - // UsageLimitPeriodWeekly is a UsageLimitPeriod enum value - UsageLimitPeriodWeekly = "weekly" - - // UsageLimitPeriodMonthly is a UsageLimitPeriod enum value - UsageLimitPeriodMonthly = "monthly" -) - -// UsageLimitPeriod_Values returns all elements of the UsageLimitPeriod enum -func UsageLimitPeriod_Values() []string { - return []string{ - UsageLimitPeriodDaily, - UsageLimitPeriodWeekly, - UsageLimitPeriodMonthly, - } -} - -const ( - // UsageLimitUsageTypeServerlessCompute is a UsageLimitUsageType enum value - UsageLimitUsageTypeServerlessCompute = "serverless-compute" - - // UsageLimitUsageTypeCrossRegionDatasharing is a UsageLimitUsageType enum value - UsageLimitUsageTypeCrossRegionDatasharing = "cross-region-datasharing" -) - -// UsageLimitUsageType_Values returns all elements of the UsageLimitUsageType enum -func UsageLimitUsageType_Values() []string { - return []string{ - UsageLimitUsageTypeServerlessCompute, - UsageLimitUsageTypeCrossRegionDatasharing, - } -} - -const ( - // WorkgroupStatusCreating is a WorkgroupStatus enum value - WorkgroupStatusCreating = "CREATING" - - // WorkgroupStatusAvailable is a WorkgroupStatus enum value - WorkgroupStatusAvailable = "AVAILABLE" - - // WorkgroupStatusModifying is a WorkgroupStatus enum value - WorkgroupStatusModifying = "MODIFYING" - - // WorkgroupStatusDeleting is a WorkgroupStatus enum value - WorkgroupStatusDeleting = "DELETING" -) - -// WorkgroupStatus_Values returns all elements of the WorkgroupStatus enum -func WorkgroupStatus_Values() []string { - return []string{ - WorkgroupStatusCreating, - WorkgroupStatusAvailable, - WorkgroupStatusModifying, - WorkgroupStatusDeleting, - } -} diff --git a/service/redshiftserverless/doc.go b/service/redshiftserverless/doc.go deleted file mode 100644 index d1541d1e95..0000000000 --- a/service/redshiftserverless/doc.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -// Package redshiftserverless provides the client and types for making API -// requests to Redshift Serverless. -// -// 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 (https://docs.aws.amazon.com/https:/aws.amazon.com/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 (https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html). -// -// See https://docs.aws.amazon.com/goto/WebAPI/redshiftserverless-2021-04-21 for more information on this service. -// -// See redshiftserverless package documentation for more information. -// https://docs.aws.amazon.com/sdk-for-go/api/service/redshiftserverless/ -// -// Using the Client -// -// To contact Redshift Serverless with the SDK use the New function to create -// a new service client. With that client you can make API requests to the service. -// These clients are safe to use concurrently. -// -// See the SDK's documentation for more information on how to use the SDK. -// https://docs.aws.amazon.com/sdk-for-go/api/ -// -// See aws.Config documentation for more information on configuring SDK clients. -// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config -// -// See the Redshift Serverless client RedshiftServerless for more -// information on creating client for this service. -// https://docs.aws.amazon.com/sdk-for-go/api/service/redshiftserverless/#New -package redshiftserverless diff --git a/service/redshiftserverless/errors.go b/service/redshiftserverless/errors.go deleted file mode 100644 index 79aa2ea94e..0000000000 --- a/service/redshiftserverless/errors.go +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package redshiftserverless - -import ( - "github.com/aws/aws-sdk-go/private/protocol" -) - -const ( - - // ErrCodeAccessDeniedException for service response error code - // "AccessDeniedException". - // - // You do not have sufficient access to perform this action. - ErrCodeAccessDeniedException = "AccessDeniedException" - - // ErrCodeConflictException for service response error code - // "ConflictException". - // - // The submitted action has conflicts. - ErrCodeConflictException = "ConflictException" - - // ErrCodeInsufficientCapacityException for service response error code - // "InsufficientCapacityException". - // - // There is an insufficient capacity to perform the action. - ErrCodeInsufficientCapacityException = "InsufficientCapacityException" - - // ErrCodeInternalServerException for service response error code - // "InternalServerException". - // - // The request processing has failed because of an unknown error, exception - // or failure. - ErrCodeInternalServerException = "InternalServerException" - - // ErrCodeInvalidPaginationException for service response error code - // "InvalidPaginationException". - // - // The provided pagination token is invalid. - ErrCodeInvalidPaginationException = "InvalidPaginationException" - - // ErrCodeResourceNotFoundException for service response error code - // "ResourceNotFoundException". - // - // The resource could not be found. - ErrCodeResourceNotFoundException = "ResourceNotFoundException" - - // ErrCodeServiceQuotaExceededException for service response error code - // "ServiceQuotaExceededException". - // - // The service limit was exceeded. - ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" - - // ErrCodeThrottlingException for service response error code - // "ThrottlingException". - // - // The request was denied due to request throttling. - ErrCodeThrottlingException = "ThrottlingException" - - // ErrCodeTooManyTagsException for service response error code - // "TooManyTagsException". - // - // The request exceeded the number of tags allowed for a resource. - ErrCodeTooManyTagsException = "TooManyTagsException" - - // ErrCodeValidationException for service response error code - // "ValidationException". - // - // The input failed to satisfy the constraints specified by an AWS service. - ErrCodeValidationException = "ValidationException" -) - -var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "AccessDeniedException": newErrorAccessDeniedException, - "ConflictException": newErrorConflictException, - "InsufficientCapacityException": newErrorInsufficientCapacityException, - "InternalServerException": newErrorInternalServerException, - "InvalidPaginationException": newErrorInvalidPaginationException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, - "ThrottlingException": newErrorThrottlingException, - "TooManyTagsException": newErrorTooManyTagsException, - "ValidationException": newErrorValidationException, -} diff --git a/service/redshiftserverless/redshiftserverlessiface/interface.go b/service/redshiftserverless/redshiftserverlessiface/interface.go deleted file mode 100644 index 0006e8e5c3..0000000000 --- a/service/redshiftserverless/redshiftserverlessiface/interface.go +++ /dev/null @@ -1,230 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -// Package redshiftserverlessiface provides an interface to enable mocking the Redshift Serverless service client -// for testing your code. -// -// It is important to note that this interface will have breaking changes -// when the service model is updated and adds new API operations, paginators, -// and waiters. -package redshiftserverlessiface - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/redshiftserverless" -) - -// RedshiftServerlessAPI provides an interface to enable mocking the -// redshiftserverless.RedshiftServerless service client's API operation, -// paginators, and waiters. This make unit testing your code that calls out -// to the SDK's service client's calls easier. -// -// The best way to use this interface is so the SDK's service client's calls -// can be stubbed out for unit testing your code with the SDK without needing -// to inject custom request handlers into the SDK's request pipeline. -// -// // myFunc uses an SDK service client to make a request to -// // Redshift Serverless. -// func myFunc(svc redshiftserverlessiface.RedshiftServerlessAPI) bool { -// // Make svc.ConvertRecoveryPointToSnapshot request -// } -// -// func main() { -// sess := session.New() -// svc := redshiftserverless.New(sess) -// -// myFunc(svc) -// } -// -// In your _test.go file: -// -// // Define a mock struct to be used in your unit tests of myFunc. -// type mockRedshiftServerlessClient struct { -// redshiftserverlessiface.RedshiftServerlessAPI -// } -// func (m *mockRedshiftServerlessClient) ConvertRecoveryPointToSnapshot(input *redshiftserverless.ConvertRecoveryPointToSnapshotInput) (*redshiftserverless.ConvertRecoveryPointToSnapshotOutput, error) { -// // mock response/functionality -// } -// -// func TestMyFunc(t *testing.T) { -// // Setup Test -// mockSvc := &mockRedshiftServerlessClient{} -// -// myfunc(mockSvc) -// -// // Verify myFunc's functionality -// } -// -// It is important to note that this interface will have breaking changes -// when the service model is updated and adds new API operations, paginators, -// and waiters. Its suggested to use the pattern above for testing, or using -// tooling to generate mocks to satisfy the interfaces. -type RedshiftServerlessAPI interface { - ConvertRecoveryPointToSnapshot(*redshiftserverless.ConvertRecoveryPointToSnapshotInput) (*redshiftserverless.ConvertRecoveryPointToSnapshotOutput, error) - ConvertRecoveryPointToSnapshotWithContext(aws.Context, *redshiftserverless.ConvertRecoveryPointToSnapshotInput, ...request.Option) (*redshiftserverless.ConvertRecoveryPointToSnapshotOutput, error) - ConvertRecoveryPointToSnapshotRequest(*redshiftserverless.ConvertRecoveryPointToSnapshotInput) (*request.Request, *redshiftserverless.ConvertRecoveryPointToSnapshotOutput) - - CreateEndpointAccess(*redshiftserverless.CreateEndpointAccessInput) (*redshiftserverless.CreateEndpointAccessOutput, error) - CreateEndpointAccessWithContext(aws.Context, *redshiftserverless.CreateEndpointAccessInput, ...request.Option) (*redshiftserverless.CreateEndpointAccessOutput, error) - CreateEndpointAccessRequest(*redshiftserverless.CreateEndpointAccessInput) (*request.Request, *redshiftserverless.CreateEndpointAccessOutput) - - CreateNamespace(*redshiftserverless.CreateNamespaceInput) (*redshiftserverless.CreateNamespaceOutput, error) - CreateNamespaceWithContext(aws.Context, *redshiftserverless.CreateNamespaceInput, ...request.Option) (*redshiftserverless.CreateNamespaceOutput, error) - CreateNamespaceRequest(*redshiftserverless.CreateNamespaceInput) (*request.Request, *redshiftserverless.CreateNamespaceOutput) - - CreateSnapshot(*redshiftserverless.CreateSnapshotInput) (*redshiftserverless.CreateSnapshotOutput, error) - CreateSnapshotWithContext(aws.Context, *redshiftserverless.CreateSnapshotInput, ...request.Option) (*redshiftserverless.CreateSnapshotOutput, error) - CreateSnapshotRequest(*redshiftserverless.CreateSnapshotInput) (*request.Request, *redshiftserverless.CreateSnapshotOutput) - - CreateUsageLimit(*redshiftserverless.CreateUsageLimitInput) (*redshiftserverless.CreateUsageLimitOutput, error) - CreateUsageLimitWithContext(aws.Context, *redshiftserverless.CreateUsageLimitInput, ...request.Option) (*redshiftserverless.CreateUsageLimitOutput, error) - CreateUsageLimitRequest(*redshiftserverless.CreateUsageLimitInput) (*request.Request, *redshiftserverless.CreateUsageLimitOutput) - - CreateWorkgroup(*redshiftserverless.CreateWorkgroupInput) (*redshiftserverless.CreateWorkgroupOutput, error) - CreateWorkgroupWithContext(aws.Context, *redshiftserverless.CreateWorkgroupInput, ...request.Option) (*redshiftserverless.CreateWorkgroupOutput, error) - CreateWorkgroupRequest(*redshiftserverless.CreateWorkgroupInput) (*request.Request, *redshiftserverless.CreateWorkgroupOutput) - - DeleteEndpointAccess(*redshiftserverless.DeleteEndpointAccessInput) (*redshiftserverless.DeleteEndpointAccessOutput, error) - DeleteEndpointAccessWithContext(aws.Context, *redshiftserverless.DeleteEndpointAccessInput, ...request.Option) (*redshiftserverless.DeleteEndpointAccessOutput, error) - DeleteEndpointAccessRequest(*redshiftserverless.DeleteEndpointAccessInput) (*request.Request, *redshiftserverless.DeleteEndpointAccessOutput) - - DeleteNamespace(*redshiftserverless.DeleteNamespaceInput) (*redshiftserverless.DeleteNamespaceOutput, error) - DeleteNamespaceWithContext(aws.Context, *redshiftserverless.DeleteNamespaceInput, ...request.Option) (*redshiftserverless.DeleteNamespaceOutput, error) - DeleteNamespaceRequest(*redshiftserverless.DeleteNamespaceInput) (*request.Request, *redshiftserverless.DeleteNamespaceOutput) - - DeleteResourcePolicy(*redshiftserverless.DeleteResourcePolicyInput) (*redshiftserverless.DeleteResourcePolicyOutput, error) - DeleteResourcePolicyWithContext(aws.Context, *redshiftserverless.DeleteResourcePolicyInput, ...request.Option) (*redshiftserverless.DeleteResourcePolicyOutput, error) - DeleteResourcePolicyRequest(*redshiftserverless.DeleteResourcePolicyInput) (*request.Request, *redshiftserverless.DeleteResourcePolicyOutput) - - DeleteSnapshot(*redshiftserverless.DeleteSnapshotInput) (*redshiftserverless.DeleteSnapshotOutput, error) - DeleteSnapshotWithContext(aws.Context, *redshiftserverless.DeleteSnapshotInput, ...request.Option) (*redshiftserverless.DeleteSnapshotOutput, error) - DeleteSnapshotRequest(*redshiftserverless.DeleteSnapshotInput) (*request.Request, *redshiftserverless.DeleteSnapshotOutput) - - DeleteUsageLimit(*redshiftserverless.DeleteUsageLimitInput) (*redshiftserverless.DeleteUsageLimitOutput, error) - DeleteUsageLimitWithContext(aws.Context, *redshiftserverless.DeleteUsageLimitInput, ...request.Option) (*redshiftserverless.DeleteUsageLimitOutput, error) - DeleteUsageLimitRequest(*redshiftserverless.DeleteUsageLimitInput) (*request.Request, *redshiftserverless.DeleteUsageLimitOutput) - - DeleteWorkgroup(*redshiftserverless.DeleteWorkgroupInput) (*redshiftserverless.DeleteWorkgroupOutput, error) - DeleteWorkgroupWithContext(aws.Context, *redshiftserverless.DeleteWorkgroupInput, ...request.Option) (*redshiftserverless.DeleteWorkgroupOutput, error) - DeleteWorkgroupRequest(*redshiftserverless.DeleteWorkgroupInput) (*request.Request, *redshiftserverless.DeleteWorkgroupOutput) - - GetCredentials(*redshiftserverless.GetCredentialsInput) (*redshiftserverless.GetCredentialsOutput, error) - GetCredentialsWithContext(aws.Context, *redshiftserverless.GetCredentialsInput, ...request.Option) (*redshiftserverless.GetCredentialsOutput, error) - GetCredentialsRequest(*redshiftserverless.GetCredentialsInput) (*request.Request, *redshiftserverless.GetCredentialsOutput) - - GetEndpointAccess(*redshiftserverless.GetEndpointAccessInput) (*redshiftserverless.GetEndpointAccessOutput, error) - GetEndpointAccessWithContext(aws.Context, *redshiftserverless.GetEndpointAccessInput, ...request.Option) (*redshiftserverless.GetEndpointAccessOutput, error) - GetEndpointAccessRequest(*redshiftserverless.GetEndpointAccessInput) (*request.Request, *redshiftserverless.GetEndpointAccessOutput) - - GetNamespace(*redshiftserverless.GetNamespaceInput) (*redshiftserverless.GetNamespaceOutput, error) - GetNamespaceWithContext(aws.Context, *redshiftserverless.GetNamespaceInput, ...request.Option) (*redshiftserverless.GetNamespaceOutput, error) - GetNamespaceRequest(*redshiftserverless.GetNamespaceInput) (*request.Request, *redshiftserverless.GetNamespaceOutput) - - GetRecoveryPoint(*redshiftserverless.GetRecoveryPointInput) (*redshiftserverless.GetRecoveryPointOutput, error) - GetRecoveryPointWithContext(aws.Context, *redshiftserverless.GetRecoveryPointInput, ...request.Option) (*redshiftserverless.GetRecoveryPointOutput, error) - GetRecoveryPointRequest(*redshiftserverless.GetRecoveryPointInput) (*request.Request, *redshiftserverless.GetRecoveryPointOutput) - - GetResourcePolicy(*redshiftserverless.GetResourcePolicyInput) (*redshiftserverless.GetResourcePolicyOutput, error) - GetResourcePolicyWithContext(aws.Context, *redshiftserverless.GetResourcePolicyInput, ...request.Option) (*redshiftserverless.GetResourcePolicyOutput, error) - GetResourcePolicyRequest(*redshiftserverless.GetResourcePolicyInput) (*request.Request, *redshiftserverless.GetResourcePolicyOutput) - - GetSnapshot(*redshiftserverless.GetSnapshotInput) (*redshiftserverless.GetSnapshotOutput, error) - GetSnapshotWithContext(aws.Context, *redshiftserverless.GetSnapshotInput, ...request.Option) (*redshiftserverless.GetSnapshotOutput, error) - GetSnapshotRequest(*redshiftserverless.GetSnapshotInput) (*request.Request, *redshiftserverless.GetSnapshotOutput) - - GetUsageLimit(*redshiftserverless.GetUsageLimitInput) (*redshiftserverless.GetUsageLimitOutput, error) - GetUsageLimitWithContext(aws.Context, *redshiftserverless.GetUsageLimitInput, ...request.Option) (*redshiftserverless.GetUsageLimitOutput, error) - GetUsageLimitRequest(*redshiftserverless.GetUsageLimitInput) (*request.Request, *redshiftserverless.GetUsageLimitOutput) - - GetWorkgroup(*redshiftserverless.GetWorkgroupInput) (*redshiftserverless.GetWorkgroupOutput, error) - GetWorkgroupWithContext(aws.Context, *redshiftserverless.GetWorkgroupInput, ...request.Option) (*redshiftserverless.GetWorkgroupOutput, error) - GetWorkgroupRequest(*redshiftserverless.GetWorkgroupInput) (*request.Request, *redshiftserverless.GetWorkgroupOutput) - - ListEndpointAccess(*redshiftserverless.ListEndpointAccessInput) (*redshiftserverless.ListEndpointAccessOutput, error) - ListEndpointAccessWithContext(aws.Context, *redshiftserverless.ListEndpointAccessInput, ...request.Option) (*redshiftserverless.ListEndpointAccessOutput, error) - ListEndpointAccessRequest(*redshiftserverless.ListEndpointAccessInput) (*request.Request, *redshiftserverless.ListEndpointAccessOutput) - - ListEndpointAccessPages(*redshiftserverless.ListEndpointAccessInput, func(*redshiftserverless.ListEndpointAccessOutput, bool) bool) error - ListEndpointAccessPagesWithContext(aws.Context, *redshiftserverless.ListEndpointAccessInput, func(*redshiftserverless.ListEndpointAccessOutput, bool) bool, ...request.Option) error - - ListNamespaces(*redshiftserverless.ListNamespacesInput) (*redshiftserverless.ListNamespacesOutput, error) - ListNamespacesWithContext(aws.Context, *redshiftserverless.ListNamespacesInput, ...request.Option) (*redshiftserverless.ListNamespacesOutput, error) - ListNamespacesRequest(*redshiftserverless.ListNamespacesInput) (*request.Request, *redshiftserverless.ListNamespacesOutput) - - ListNamespacesPages(*redshiftserverless.ListNamespacesInput, func(*redshiftserverless.ListNamespacesOutput, bool) bool) error - ListNamespacesPagesWithContext(aws.Context, *redshiftserverless.ListNamespacesInput, func(*redshiftserverless.ListNamespacesOutput, bool) bool, ...request.Option) error - - ListRecoveryPoints(*redshiftserverless.ListRecoveryPointsInput) (*redshiftserverless.ListRecoveryPointsOutput, error) - ListRecoveryPointsWithContext(aws.Context, *redshiftserverless.ListRecoveryPointsInput, ...request.Option) (*redshiftserverless.ListRecoveryPointsOutput, error) - ListRecoveryPointsRequest(*redshiftserverless.ListRecoveryPointsInput) (*request.Request, *redshiftserverless.ListRecoveryPointsOutput) - - ListRecoveryPointsPages(*redshiftserverless.ListRecoveryPointsInput, func(*redshiftserverless.ListRecoveryPointsOutput, bool) bool) error - ListRecoveryPointsPagesWithContext(aws.Context, *redshiftserverless.ListRecoveryPointsInput, func(*redshiftserverless.ListRecoveryPointsOutput, bool) bool, ...request.Option) error - - ListSnapshots(*redshiftserverless.ListSnapshotsInput) (*redshiftserverless.ListSnapshotsOutput, error) - ListSnapshotsWithContext(aws.Context, *redshiftserverless.ListSnapshotsInput, ...request.Option) (*redshiftserverless.ListSnapshotsOutput, error) - ListSnapshotsRequest(*redshiftserverless.ListSnapshotsInput) (*request.Request, *redshiftserverless.ListSnapshotsOutput) - - ListSnapshotsPages(*redshiftserverless.ListSnapshotsInput, func(*redshiftserverless.ListSnapshotsOutput, bool) bool) error - ListSnapshotsPagesWithContext(aws.Context, *redshiftserverless.ListSnapshotsInput, func(*redshiftserverless.ListSnapshotsOutput, bool) bool, ...request.Option) error - - ListTagsForResource(*redshiftserverless.ListTagsForResourceInput) (*redshiftserverless.ListTagsForResourceOutput, error) - ListTagsForResourceWithContext(aws.Context, *redshiftserverless.ListTagsForResourceInput, ...request.Option) (*redshiftserverless.ListTagsForResourceOutput, error) - ListTagsForResourceRequest(*redshiftserverless.ListTagsForResourceInput) (*request.Request, *redshiftserverless.ListTagsForResourceOutput) - - ListUsageLimits(*redshiftserverless.ListUsageLimitsInput) (*redshiftserverless.ListUsageLimitsOutput, error) - ListUsageLimitsWithContext(aws.Context, *redshiftserverless.ListUsageLimitsInput, ...request.Option) (*redshiftserverless.ListUsageLimitsOutput, error) - ListUsageLimitsRequest(*redshiftserverless.ListUsageLimitsInput) (*request.Request, *redshiftserverless.ListUsageLimitsOutput) - - ListUsageLimitsPages(*redshiftserverless.ListUsageLimitsInput, func(*redshiftserverless.ListUsageLimitsOutput, bool) bool) error - ListUsageLimitsPagesWithContext(aws.Context, *redshiftserverless.ListUsageLimitsInput, func(*redshiftserverless.ListUsageLimitsOutput, bool) bool, ...request.Option) error - - ListWorkgroups(*redshiftserverless.ListWorkgroupsInput) (*redshiftserverless.ListWorkgroupsOutput, error) - ListWorkgroupsWithContext(aws.Context, *redshiftserverless.ListWorkgroupsInput, ...request.Option) (*redshiftserverless.ListWorkgroupsOutput, error) - ListWorkgroupsRequest(*redshiftserverless.ListWorkgroupsInput) (*request.Request, *redshiftserverless.ListWorkgroupsOutput) - - ListWorkgroupsPages(*redshiftserverless.ListWorkgroupsInput, func(*redshiftserverless.ListWorkgroupsOutput, bool) bool) error - ListWorkgroupsPagesWithContext(aws.Context, *redshiftserverless.ListWorkgroupsInput, func(*redshiftserverless.ListWorkgroupsOutput, bool) bool, ...request.Option) error - - PutResourcePolicy(*redshiftserverless.PutResourcePolicyInput) (*redshiftserverless.PutResourcePolicyOutput, error) - PutResourcePolicyWithContext(aws.Context, *redshiftserverless.PutResourcePolicyInput, ...request.Option) (*redshiftserverless.PutResourcePolicyOutput, error) - PutResourcePolicyRequest(*redshiftserverless.PutResourcePolicyInput) (*request.Request, *redshiftserverless.PutResourcePolicyOutput) - - RestoreFromRecoveryPoint(*redshiftserverless.RestoreFromRecoveryPointInput) (*redshiftserverless.RestoreFromRecoveryPointOutput, error) - RestoreFromRecoveryPointWithContext(aws.Context, *redshiftserverless.RestoreFromRecoveryPointInput, ...request.Option) (*redshiftserverless.RestoreFromRecoveryPointOutput, error) - RestoreFromRecoveryPointRequest(*redshiftserverless.RestoreFromRecoveryPointInput) (*request.Request, *redshiftserverless.RestoreFromRecoveryPointOutput) - - RestoreFromSnapshot(*redshiftserverless.RestoreFromSnapshotInput) (*redshiftserverless.RestoreFromSnapshotOutput, error) - RestoreFromSnapshotWithContext(aws.Context, *redshiftserverless.RestoreFromSnapshotInput, ...request.Option) (*redshiftserverless.RestoreFromSnapshotOutput, error) - RestoreFromSnapshotRequest(*redshiftserverless.RestoreFromSnapshotInput) (*request.Request, *redshiftserverless.RestoreFromSnapshotOutput) - - TagResource(*redshiftserverless.TagResourceInput) (*redshiftserverless.TagResourceOutput, error) - TagResourceWithContext(aws.Context, *redshiftserverless.TagResourceInput, ...request.Option) (*redshiftserverless.TagResourceOutput, error) - TagResourceRequest(*redshiftserverless.TagResourceInput) (*request.Request, *redshiftserverless.TagResourceOutput) - - UntagResource(*redshiftserverless.UntagResourceInput) (*redshiftserverless.UntagResourceOutput, error) - UntagResourceWithContext(aws.Context, *redshiftserverless.UntagResourceInput, ...request.Option) (*redshiftserverless.UntagResourceOutput, error) - UntagResourceRequest(*redshiftserverless.UntagResourceInput) (*request.Request, *redshiftserverless.UntagResourceOutput) - - UpdateEndpointAccess(*redshiftserverless.UpdateEndpointAccessInput) (*redshiftserverless.UpdateEndpointAccessOutput, error) - UpdateEndpointAccessWithContext(aws.Context, *redshiftserverless.UpdateEndpointAccessInput, ...request.Option) (*redshiftserverless.UpdateEndpointAccessOutput, error) - UpdateEndpointAccessRequest(*redshiftserverless.UpdateEndpointAccessInput) (*request.Request, *redshiftserverless.UpdateEndpointAccessOutput) - - UpdateNamespace(*redshiftserverless.UpdateNamespaceInput) (*redshiftserverless.UpdateNamespaceOutput, error) - UpdateNamespaceWithContext(aws.Context, *redshiftserverless.UpdateNamespaceInput, ...request.Option) (*redshiftserverless.UpdateNamespaceOutput, error) - UpdateNamespaceRequest(*redshiftserverless.UpdateNamespaceInput) (*request.Request, *redshiftserverless.UpdateNamespaceOutput) - - UpdateSnapshot(*redshiftserverless.UpdateSnapshotInput) (*redshiftserverless.UpdateSnapshotOutput, error) - UpdateSnapshotWithContext(aws.Context, *redshiftserverless.UpdateSnapshotInput, ...request.Option) (*redshiftserverless.UpdateSnapshotOutput, error) - UpdateSnapshotRequest(*redshiftserverless.UpdateSnapshotInput) (*request.Request, *redshiftserverless.UpdateSnapshotOutput) - - UpdateUsageLimit(*redshiftserverless.UpdateUsageLimitInput) (*redshiftserverless.UpdateUsageLimitOutput, error) - UpdateUsageLimitWithContext(aws.Context, *redshiftserverless.UpdateUsageLimitInput, ...request.Option) (*redshiftserverless.UpdateUsageLimitOutput, error) - UpdateUsageLimitRequest(*redshiftserverless.UpdateUsageLimitInput) (*request.Request, *redshiftserverless.UpdateUsageLimitOutput) - - UpdateWorkgroup(*redshiftserverless.UpdateWorkgroupInput) (*redshiftserverless.UpdateWorkgroupOutput, error) - UpdateWorkgroupWithContext(aws.Context, *redshiftserverless.UpdateWorkgroupInput, ...request.Option) (*redshiftserverless.UpdateWorkgroupOutput, error) - UpdateWorkgroupRequest(*redshiftserverless.UpdateWorkgroupInput) (*request.Request, *redshiftserverless.UpdateWorkgroupOutput) -} - -var _ RedshiftServerlessAPI = (*redshiftserverless.RedshiftServerless)(nil) diff --git a/service/redshiftserverless/service.go b/service/redshiftserverless/service.go deleted file mode 100644 index 9ce6f8281f..0000000000 --- a/service/redshiftserverless/service.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package redshiftserverless - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/signer/v4" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" -) - -// RedshiftServerless provides the API operation methods for making requests to -// Redshift Serverless. See this package's package overview docs -// for details on the service. -// -// RedshiftServerless methods are safe to use concurrently. It is not safe to -// modify mutate any of the struct's properties though. -type RedshiftServerless struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// Service information constants -const ( - ServiceName = "RedshiftServerless" // Name of service. - EndpointsID = "redshift-serverless" // ID to lookup a service endpoint with. - ServiceID = "RedshiftServerless" // ServiceID is a unique identifier of a specific service. -) - -// New creates a new instance of the RedshiftServerless client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// mySession := session.Must(session.NewSession()) -// -// // Create a RedshiftServerless client from just a session. -// svc := redshiftserverless.New(mySession) -// -// // Create a RedshiftServerless client with additional configuration -// svc := redshiftserverless.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *RedshiftServerless { - c := p.ClientConfig(EndpointsID, cfgs...) - if c.SigningNameDerived || len(c.SigningName) == 0 { - c.SigningName = "redshift-serverless" - } - return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *RedshiftServerless { - svc := &RedshiftServerless{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - ServiceID: ServiceID, - SigningName: signingName, - SigningRegion: signingRegion, - PartitionID: partitionID, - Endpoint: endpoint, - APIVersion: "2021-04-21", - ResolvedRegion: resolvedRegion, - JSONVersion: "1.1", - TargetPrefix: "RedshiftServerless", - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) - svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed( - protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), - ) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a RedshiftServerless operation and runs any -// custom request initialization. -func (c *RedshiftServerless) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -}