From 5fccf1aab357bcc4433f03eec9d806fff0308063 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Wed, 8 Jun 2022 13:01:10 -0700 Subject: [PATCH] Release v1.44.30 (2022-06-08) (#4431) Release v1.44.30 (2022-06-08) === ### Service Client Updates * `service/dms`: Updates service API, documentation, and paginators * This release adds DMS Fleet Advisor APIs and exposes functionality for DMS Fleet Advisor. It adds functionality to create and modify fleet advisor instances, and to collect and analyze information about the local data infrastructure. * `service/iam`: Updates service documentation * Documentation updates for AWS Identity and Access Management (IAM). * `service/m2`: Updates service API, documentation, paginators, and examples * `service/neptune`: Updates service API and documentation * This release adds support for Neptune to be configured as a global database, with a primary DB cluster in one region, and up to five secondary DB clusters in other regions. * `service/redshift`: Updates service API and documentation * Adds new API GetClusterCredentialsWithIAM to return temporary credentials. * `service/redshift-serverless`: Adds new service --- CHANGELOG.md | 15 + aws/endpoints/defaults.go | 62 + aws/version.go | 2 +- models/apis/dms/2016-01-01/api-2.json | 420 + models/apis/dms/2016-01-01/docs-2.json | 328 +- models/apis/dms/2016-01-01/paginators-1.json | 25 + models/apis/iam/2010-05-08/docs-2.json | 4 +- models/apis/m2/2021-04-28/api-2.json | 2379 ++++ models/apis/m2/2021-04-28/docs-2.json | 1236 ++ models/apis/m2/2021-04-28/examples-1.json | 5 + models/apis/m2/2021-04-28/paginators-1.json | 58 + models/apis/neptune/2014-10-31/api-2.json | 305 +- models/apis/neptune/2014-10-31/docs-2.json | 165 +- .../redshift-serverless/2021-04-21/api-2.json | 1687 +++ .../2021-04-21/docs-2.json | 1075 ++ .../2021-04-21/examples-1.json | 5 + .../2021-04-21/paginators-1.json | 40 + models/apis/redshift/2012-12-01/api-2.json | 34 + models/apis/redshift/2012-12-01/docs-2.json | 26 +- models/endpoints/endpoints.json | 26 + service/databasemigrationservice/api.go | 8987 ++++++++----- .../interface.go | 51 + service/databasemigrationservice/errors.go | 14 + service/iam/api.go | 8 +- service/m2/api.go | 10875 ++++++++++++++++ service/m2/doc.go | 33 + service/m2/errors.go | 63 + service/m2/m2iface/interface.go | 219 + service/m2/service.go | 105 + service/neptune/api.go | 1503 ++- service/neptune/errors.go | 28 + service/neptune/neptuneiface/interface.go | 24 + service/redshift/api.go | 229 +- service/redshift/redshiftiface/interface.go | 4 + service/redshiftserverless/api.go | 9456 ++++++++++++++ service/redshiftserverless/doc.go | 46 + service/redshiftserverless/errors.go | 84 + .../redshiftserverlessiface/interface.go | 230 + service/redshiftserverless/service.go | 107 + 39 files changed, 36932 insertions(+), 3031 deletions(-) create mode 100644 models/apis/m2/2021-04-28/api-2.json create mode 100644 models/apis/m2/2021-04-28/docs-2.json create mode 100644 models/apis/m2/2021-04-28/examples-1.json create mode 100644 models/apis/m2/2021-04-28/paginators-1.json create mode 100644 models/apis/redshift-serverless/2021-04-21/api-2.json create mode 100644 models/apis/redshift-serverless/2021-04-21/docs-2.json create mode 100644 models/apis/redshift-serverless/2021-04-21/examples-1.json create mode 100644 models/apis/redshift-serverless/2021-04-21/paginators-1.json create mode 100644 service/m2/api.go create mode 100644 service/m2/doc.go create mode 100644 service/m2/errors.go create mode 100644 service/m2/m2iface/interface.go create mode 100644 service/m2/service.go create mode 100644 service/redshiftserverless/api.go create mode 100644 service/redshiftserverless/doc.go create mode 100644 service/redshiftserverless/errors.go create mode 100644 service/redshiftserverless/redshiftserverlessiface/interface.go create mode 100644 service/redshiftserverless/service.go diff --git a/CHANGELOG.md b/CHANGELOG.md index bdc941b3f33..df2b4ad46a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,18 @@ +Release v1.44.30 (2022-06-08) +=== + +### Service Client Updates +* `service/dms`: Updates service API, documentation, and paginators + * This release adds DMS Fleet Advisor APIs and exposes functionality for DMS Fleet Advisor. It adds functionality to create and modify fleet advisor instances, and to collect and analyze information about the local data infrastructure. +* `service/iam`: Updates service documentation + * Documentation updates for AWS Identity and Access Management (IAM). +* `service/m2`: Updates service API, documentation, paginators, and examples +* `service/neptune`: Updates service API and documentation + * This release adds support for Neptune to be configured as a global database, with a primary DB cluster in one region, and up to five secondary DB clusters in other regions. +* `service/redshift`: Updates service API and documentation + * Adds new API GetClusterCredentialsWithIAM to return temporary credentials. +* `service/redshift-serverless`: Adds new service + Release v1.44.29 (2022-06-07) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 1f6e5a8718d..2ffaa28c8b2 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -13313,6 +13313,31 @@ var awsPartition = partition{ }: endpoint{}, }, }, + "m2": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "ap-southeast-2", + }: endpoint{}, + endpointKey{ + Region: "ca-central-1", + }: endpoint{}, + endpointKey{ + Region: "eu-central-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-1", + }: endpoint{}, + endpointKey{ + Region: "sa-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-west-2", + }: endpoint{}, + }, + }, "machinelearning": service{ Endpoints: serviceEndpoints{ endpointKey{ @@ -16704,6 +16729,43 @@ var awsPartition = partition{ }, }, }, + "redshift-serverless": service{ + Endpoints: serviceEndpoints{ + endpointKey{ + Region: "ap-northeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-northeast-2", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-1", + }: endpoint{}, + endpointKey{ + Region: "ap-southeast-2", + }: endpoint{}, + endpointKey{ + Region: "eu-central-1", + }: endpoint{}, + endpointKey{ + Region: "eu-north-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-1", + }: endpoint{}, + endpointKey{ + Region: "eu-west-2", + }: endpoint{}, + endpointKey{ + Region: "us-east-1", + }: endpoint{}, + endpointKey{ + Region: "us-east-2", + }: endpoint{}, + endpointKey{ + Region: "us-west-2", + }: endpoint{}, + }, + }, "rekognition": service{ Endpoints: serviceEndpoints{ endpointKey{ diff --git a/aws/version.go b/aws/version.go index 00be939d278..60c6c6ba211 100644 --- a/aws/version.go +++ b/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go" // SDKVersion is the version of this SDK -const SDKVersion = "1.44.29" +const SDKVersion = "1.44.30" diff --git a/models/apis/dms/2016-01-01/api-2.json b/models/apis/dms/2016-01-01/api-2.json index f582abe5ef1..bc4c47174ec 100644 --- a/models/apis/dms/2016-01-01/api-2.json +++ b/models/apis/dms/2016-01-01/api-2.json @@ -89,6 +89,22 @@ {"shape":"KMSThrottlingFault"} ] }, + "CreateFleetAdvisorCollector":{ + "name":"CreateFleetAdvisorCollector", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateFleetAdvisorCollectorRequest"}, + "output":{"shape":"CreateFleetAdvisorCollectorResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"}, + {"shape":"AccessDeniedFault"}, + {"shape":"S3AccessDeniedFault"}, + {"shape":"S3ResourceNotFoundFault"}, + {"shape":"ResourceQuotaExceededFault"} + ] + }, "CreateReplicationInstance":{ "name":"CreateReplicationInstance", "http":{ @@ -197,6 +213,31 @@ {"shape":"InvalidResourceStateFault"} ] }, + "DeleteFleetAdvisorCollector":{ + "name":"DeleteFleetAdvisorCollector", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteCollectorRequest"}, + "errors":[ + {"shape":"InvalidResourceStateFault"}, + {"shape":"CollectorNotFoundFault"} + ] + }, + "DeleteFleetAdvisorDatabases":{ + "name":"DeleteFleetAdvisorDatabases", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteFleetAdvisorDatabasesRequest"}, + "output":{"shape":"DeleteFleetAdvisorDatabasesResponse"}, + "errors":[ + {"shape":"ResourceNotFoundFault"}, + {"shape":"InvalidOperationFault"} + ] + }, "DeleteReplicationInstance":{ "name":"DeleteReplicationInstance", "http":{ @@ -357,6 +398,66 @@ "input":{"shape":"DescribeEventsMessage"}, "output":{"shape":"DescribeEventsResponse"} }, + "DescribeFleetAdvisorCollectors":{ + "name":"DescribeFleetAdvisorCollectors", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFleetAdvisorCollectorsRequest"}, + "output":{"shape":"DescribeFleetAdvisorCollectorsResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"} + ] + }, + "DescribeFleetAdvisorDatabases":{ + "name":"DescribeFleetAdvisorDatabases", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFleetAdvisorDatabasesRequest"}, + "output":{"shape":"DescribeFleetAdvisorDatabasesResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"} + ] + }, + "DescribeFleetAdvisorLsaAnalysis":{ + "name":"DescribeFleetAdvisorLsaAnalysis", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFleetAdvisorLsaAnalysisRequest"}, + "output":{"shape":"DescribeFleetAdvisorLsaAnalysisResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"} + ] + }, + "DescribeFleetAdvisorSchemaObjectSummary":{ + "name":"DescribeFleetAdvisorSchemaObjectSummary", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFleetAdvisorSchemaObjectSummaryRequest"}, + "output":{"shape":"DescribeFleetAdvisorSchemaObjectSummaryResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"} + ] + }, + "DescribeFleetAdvisorSchemas":{ + "name":"DescribeFleetAdvisorSchemas", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeFleetAdvisorSchemasRequest"}, + "output":{"shape":"DescribeFleetAdvisorSchemasResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"} + ] + }, "DescribeOrderableReplicationInstances":{ "name":"DescribeOrderableReplicationInstances", "http":{ @@ -683,6 +784,18 @@ {"shape":"ResourceNotFoundFault"} ] }, + "RunFleetAdvisorLsaAnalysis":{ + "name":"RunFleetAdvisorLsaAnalysis", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "output":{"shape":"RunFleetAdvisorLsaAnalysisResponse"}, + "errors":[ + {"shape":"InvalidResourceStateFault"}, + {"shape":"ResourceNotFoundFault"} + ] + }, "StartReplicationTask":{ "name":"StartReplicationTask", "http":{ @@ -903,6 +1016,62 @@ "byte" ] }, + "CollectorHealthCheck":{ + "type":"structure", + "members":{ + "CollectorStatus":{"shape":"CollectorStatus"}, + "LocalCollectorS3Access":{"shape":"BooleanOptional"}, + "WebCollectorS3Access":{"shape":"BooleanOptional"}, + "WebCollectorGrantedRoleBasedAccess":{"shape":"BooleanOptional"} + } + }, + "CollectorNotFoundFault":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, + "CollectorResponse":{ + "type":"structure", + "members":{ + "CollectorReferencedId":{"shape":"String"}, + "CollectorName":{"shape":"String"}, + "CollectorVersion":{"shape":"String"}, + "VersionStatus":{"shape":"VersionStatus"}, + "Description":{"shape":"String"}, + "S3BucketName":{"shape":"String"}, + "ServiceAccessRoleArn":{"shape":"String"}, + "CollectorHealthCheck":{"shape":"CollectorHealthCheck"}, + "LastDataReceived":{"shape":"String"}, + "RegisteredDate":{"shape":"String"}, + "CreatedDate":{"shape":"String"}, + "ModifiedDate":{"shape":"String"}, + "InventoryData":{"shape":"InventoryData"} + } + }, + "CollectorResponses":{ + "type":"list", + "member":{"shape":"CollectorResponse"} + }, + "CollectorShortInfoResponse":{ + "type":"structure", + "members":{ + "CollectorReferencedId":{"shape":"String"}, + "CollectorName":{"shape":"String"} + } + }, + "CollectorStatus":{ + "type":"string", + "enum":[ + "UNREGISTERED", + "ACTIVE" + ] + }, + "CollectorsList":{ + "type":"list", + "member":{"shape":"CollectorShortInfoResponse"} + }, "CompressionTypeValue":{ "type":"string", "enum":[ @@ -997,6 +1166,30 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "CreateFleetAdvisorCollectorRequest":{ + "type":"structure", + "required":[ + "CollectorName", + "ServiceAccessRoleArn", + "S3BucketName" + ], + "members":{ + "CollectorName":{"shape":"String"}, + "Description":{"shape":"String"}, + "ServiceAccessRoleArn":{"shape":"String"}, + "S3BucketName":{"shape":"String"} + } + }, + "CreateFleetAdvisorCollectorResponse":{ + "type":"structure", + "members":{ + "CollectorReferencedId":{"shape":"String"}, + "CollectorName":{"shape":"String"}, + "Description":{"shape":"String"}, + "ServiceAccessRoleArn":{"shape":"String"}, + "S3BucketName":{"shape":"String"} + } + }, "CreateReplicationInstanceMessage":{ "type":"structure", "required":[ @@ -1086,6 +1279,43 @@ "parquet" ] }, + "DatabaseInstanceSoftwareDetailsResponse":{ + "type":"structure", + "members":{ + "Engine":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "EngineEdition":{"shape":"String"}, + "ServicePack":{"shape":"String"}, + "SupportLevel":{"shape":"String"}, + "OsArchitecture":{"shape":"IntegerOptional"}, + "Tooltip":{"shape":"String"} + } + }, + "DatabaseList":{ + "type":"list", + "member":{"shape":"DatabaseResponse"} + }, + "DatabaseResponse":{ + "type":"structure", + "members":{ + "DatabaseId":{"shape":"String"}, + "DatabaseName":{"shape":"String"}, + "IpAddress":{"shape":"String"}, + "NumberOfSchemas":{"shape":"LongOptional"}, + "Server":{"shape":"ServerShortInfoResponse"}, + "SoftwareDetails":{"shape":"DatabaseInstanceSoftwareDetailsResponse"}, + "Collectors":{"shape":"CollectorsList"} + } + }, + "DatabaseShortInfoResponse":{ + "type":"structure", + "members":{ + "DatabaseId":{"shape":"String"}, + "DatabaseName":{"shape":"String"}, + "DatabaseIpAddress":{"shape":"String"}, + "DatabaseEngine":{"shape":"String"} + } + }, "DatePartitionDelimiterValue":{ "type":"string", "enum":[ @@ -1118,6 +1348,13 @@ "Certificate":{"shape":"Certificate"} } }, + "DeleteCollectorRequest":{ + "type":"structure", + "required":["CollectorReferencedId"], + "members":{ + "CollectorReferencedId":{"shape":"String"} + } + }, "DeleteConnectionMessage":{ "type":"structure", "required":[ @@ -1161,6 +1398,19 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "DeleteFleetAdvisorDatabasesRequest":{ + "type":"structure", + "required":["DatabaseIds"], + "members":{ + "DatabaseIds":{"shape":"StringList"} + } + }, + "DeleteFleetAdvisorDatabasesResponse":{ + "type":"structure", + "members":{ + "DatabaseIds":{"shape":"StringList"} + } + }, "DeleteReplicationInstanceMessage":{ "type":"structure", "required":["ReplicationInstanceArn"], @@ -1369,6 +1619,80 @@ "Events":{"shape":"EventList"} } }, + "DescribeFleetAdvisorCollectorsRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorCollectorsResponse":{ + "type":"structure", + "members":{ + "Collectors":{"shape":"CollectorResponses"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorDatabasesRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorDatabasesResponse":{ + "type":"structure", + "members":{ + "Databases":{"shape":"DatabaseList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorLsaAnalysisRequest":{ + "type":"structure", + "members":{ + "MaxRecords":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorLsaAnalysisResponse":{ + "type":"structure", + "members":{ + "Analysis":{"shape":"FleetAdvisorLsaAnalysisResponseList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorSchemaObjectSummaryRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorSchemaObjectSummaryResponse":{ + "type":"structure", + "members":{ + "FleetAdvisorSchemaObjects":{"shape":"FleetAdvisorSchemaObjectList"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorSchemasRequest":{ + "type":"structure", + "members":{ + "Filters":{"shape":"FilterList"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeFleetAdvisorSchemasResponse":{ + "type":"structure", + "members":{ + "FleetAdvisorSchemas":{"shape":"FleetAdvisorSchemaList"}, + "NextToken":{"shape":"String"} + } + }, "DescribeOrderableReplicationInstancesMessage":{ "type":"structure", "members":{ @@ -1587,6 +1911,7 @@ "SecretsManagerSecretId":{"shape":"String"} } }, + "DoubleOptional":{"type":"double"}, "DynamoDbSettings":{ "type":"structure", "required":["ServiceAccessRoleArn"], @@ -1768,6 +2093,35 @@ "type":"list", "member":{"shape":"String"} }, + "FleetAdvisorLsaAnalysisResponse":{ + "type":"structure", + "members":{ + "LsaAnalysisId":{"shape":"String"}, + "Status":{"shape":"String"} + } + }, + "FleetAdvisorLsaAnalysisResponseList":{ + "type":"list", + "member":{"shape":"FleetAdvisorLsaAnalysisResponse"} + }, + "FleetAdvisorSchemaList":{ + "type":"list", + "member":{"shape":"SchemaResponse"} + }, + "FleetAdvisorSchemaObjectList":{ + "type":"list", + "member":{"shape":"FleetAdvisorSchemaObjectResponse"} + }, + "FleetAdvisorSchemaObjectResponse":{ + "type":"structure", + "members":{ + "SchemaId":{"shape":"String"}, + "ObjectType":{"shape":"String"}, + "NumberOfObjects":{"shape":"LongOptional"}, + "CodeLineCount":{"shape":"LongOptional"}, + "CodeSize":{"shape":"LongOptional"} + } + }, "GcpMySQLSettings":{ "type":"structure", "members":{ @@ -1846,6 +2200,13 @@ }, "exception":true }, + "InvalidOperationFault":{ + "type":"structure", + "members":{ + "message":{"shape":"ExceptionMessage"} + }, + "exception":true + }, "InvalidResourceStateFault":{ "type":"structure", "members":{ @@ -1860,6 +2221,13 @@ }, "exception":true }, + "InventoryData":{ + "type":"structure", + "members":{ + "NumberOfDatabases":{"shape":"IntegerOptional"}, + "NumberOfSchemas":{"shape":"IntegerOptional"} + } + }, "KMSAccessDeniedFault":{ "type":"structure", "members":{ @@ -1974,6 +2342,7 @@ } }, "Long":{"type":"long"}, + "LongOptional":{"type":"long"}, "MessageFormatValue":{ "type":"string", "enum":[ @@ -2711,6 +3080,13 @@ }, "exception":true }, + "RunFleetAdvisorLsaAnalysisResponse":{ + "type":"structure", + "members":{ + "LsaAnalysisId":{"shape":"String"}, + "Status":{"shape":"String"} + } + }, "S3AccessDeniedFault":{ "type":"structure", "members":{ @@ -2794,10 +3170,42 @@ "type":"list", "member":{"shape":"String"} }, + "SchemaResponse":{ + "type":"structure", + "members":{ + "CodeLineCount":{"shape":"LongOptional"}, + "CodeSize":{"shape":"LongOptional"}, + "Complexity":{"shape":"String"}, + "Server":{"shape":"ServerShortInfoResponse"}, + "DatabaseInstance":{"shape":"DatabaseShortInfoResponse"}, + "SchemaId":{"shape":"String"}, + "SchemaName":{"shape":"String"}, + "OriginalSchema":{"shape":"SchemaShortInfoResponse"}, + "Similarity":{"shape":"DoubleOptional"} + } + }, + "SchemaShortInfoResponse":{ + "type":"structure", + "members":{ + "SchemaId":{"shape":"String"}, + "SchemaName":{"shape":"String"}, + "DatabaseId":{"shape":"String"}, + "DatabaseName":{"shape":"String"}, + "DatabaseIpAddress":{"shape":"String"} + } + }, "SecretString":{ "type":"string", "sensitive":true }, + "ServerShortInfoResponse":{ + "type":"structure", + "members":{ + "ServerId":{"shape":"String"}, + "IpAddress":{"shape":"String"}, + "ServerName":{"shape":"String"} + } + }, "SourceIdsList":{ "type":"list", "member":{"shape":"String"} @@ -2901,6 +3309,10 @@ "exception":true }, "String":{"type":"string"}, + "StringList":{ + "type":"list", + "member":{"shape":"String"} + }, "Subnet":{ "type":"structure", "members":{ @@ -3037,6 +3449,14 @@ }, "exception":true }, + "VersionStatus":{ + "type":"string", + "enum":[ + "UP_TO_DATE", + "OUTDATED", + "UNSUPPORTED" + ] + }, "VpcSecurityGroupIdList":{ "type":"list", "member":{"shape":"String"} diff --git a/models/apis/dms/2016-01-01/docs-2.json b/models/apis/dms/2016-01-01/docs-2.json index 4d9d0d444fe..2d1df35689c 100644 --- a/models/apis/dms/2016-01-01/docs-2.json +++ b/models/apis/dms/2016-01-01/docs-2.json @@ -7,6 +7,7 @@ "CancelReplicationTaskAssessmentRun": "

Cancels a single premigration assessment run.

This operation prevents any individual assessments from running if they haven't started running. It also attempts to cancel any individual assessments that are currently running.

", "CreateEndpoint": "

Creates an endpoint using the provided settings.

For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on the CreateEndpoint API call. Specifying DatabaseName when you create a MySQL endpoint replicates all the task tables to this single database. For MySQL endpoints, you specify the database only when you specify the schema in the table-mapping rules of the DMS task.

", "CreateEventSubscription": "

Creates an DMS event notification subscription.

You can specify the type of source (SourceType) you want to be notified of, provide a list of DMS source IDs (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. If you specify both the SourceType and SourceIds, such as SourceType = replication-instance and SourceIdentifier = my-replinstance, you will be notified of all the replication instance events for the specified source. If you specify a SourceType but don't specify a SourceIdentifier, you receive notice of the events for that source type for all your DMS sources. If you don't specify either SourceType nor SourceIdentifier, you will be notified of events generated from all DMS sources belonging to your customer account.

For more information about DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

", + "CreateFleetAdvisorCollector": "

Creates a Fleet Advisor collector using the specified parameters.

", "CreateReplicationInstance": "

Creates the replication instance using the specified parameters.

DMS requires that your account have certain roles with appropriate permissions before you can create a replication instance. For information on the required roles, see Creating the IAM Roles to Use With the CLI and DMS API. For information on the required permissions, see IAM Permissions Needed to Use DMS.

", "CreateReplicationSubnetGroup": "

Creates a replication subnet group given a list of the subnet IDs in a VPC.

The VPC needs to have at least one subnet in at least two availability zones in the Amazon Web Services Region, otherwise the service will throw a ReplicationSubnetGroupDoesNotCoverEnoughAZs exception.

", "CreateReplicationTask": "

Creates a replication task using the specified parameters.

", @@ -14,6 +15,8 @@ "DeleteConnection": "

Deletes the connection between a replication instance and an endpoint.

", "DeleteEndpoint": "

Deletes the specified endpoint.

All tasks associated with the endpoint must be deleted before you can delete the endpoint.

", "DeleteEventSubscription": "

Deletes an DMS event subscription.

", + "DeleteFleetAdvisorCollector": "

Deletes the specified Fleet Advisor collector.

", + "DeleteFleetAdvisorDatabases": "

Deletes the specified Fleet Advisor collector databases.

", "DeleteReplicationInstance": "

Deletes the specified replication instance.

You must delete any migration tasks that are associated with the replication instance before you can delete it.

", "DeleteReplicationSubnetGroup": "

Deletes a subnet group.

", "DeleteReplicationTask": "

Deletes the specified replication task.

", @@ -28,6 +31,11 @@ "DescribeEventCategories": "

Lists categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in Working with Events and Notifications in the Database Migration Service User Guide.

", "DescribeEventSubscriptions": "

Lists all the event subscriptions for a customer account. The description of a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify SubscriptionName, this action lists the description for that subscription.

", "DescribeEvents": "

Lists events for a given source identifier and source type. You can also specify a start and end time. For more information on DMS events, see Working with Events and Notifications in the Database Migration Service User Guide.

", + "DescribeFleetAdvisorCollectors": "

Returns a list of the Fleet Advisor collectors in your account.

", + "DescribeFleetAdvisorDatabases": "

Returns a list of Fleet Advisor databases in your account.

", + "DescribeFleetAdvisorLsaAnalysis": "

Provides descriptions of large-scale assessment (LSA) analyses produced by your Fleet Advisor collectors.

", + "DescribeFleetAdvisorSchemaObjectSummary": "

Provides descriptions of the schemas discovered by your Fleet Advisor collectors.

", + "DescribeFleetAdvisorSchemas": "

Returns a list of schemas detected by Fleet Advisor Collectors in your account.

", "DescribeOrderableReplicationInstances": "

Returns information about the replication instance types that can be created in the specified region.

", "DescribePendingMaintenanceActions": "

For internal use only

", "DescribeRefreshSchemasStatus": "

Returns the status of the RefreshSchemas operation.

", @@ -52,6 +60,7 @@ "RefreshSchemas": "

Populates the schema for the specified endpoint. This is an asynchronous operation and can take several minutes. You can check the status of this operation by calling the DescribeRefreshSchemasStatus operation.

", "ReloadTables": "

Reloads the target database table with the source data.

You can only use this operation with a task in the RUNNING state, otherwise the service will throw an InvalidResourceStateFault exception.

", "RemoveTagsFromResource": "

Removes metadata tags from an DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see Tag data type description.

", + "RunFleetAdvisorLsaAnalysis": "

Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector in your account.

", "StartReplicationTask": "

Starts the replication task.

For more information about DMS tasks, see Working with Migration Tasks in the Database Migration Service User Guide.

", "StartReplicationTaskAssessment": "

Starts the replication task assessment for unsupported data types in the source database.

You can only use this operation for a task if the following conditions are true:

If either of these conditions are not met, an InvalidResourceStateFault error will result.

For information about DMS task assessments, see Creating a task assessment report in the Database Migration Service User Guide.

", "StartReplicationTaskAssessmentRun": "

Starts a new premigration assessment run for one or more individual assessments of a migration task.

The assessments that you can specify depend on the source and target database engine and the migration type defined for the given task. To run this operation, your migration task must already be created. After you run this operation, you can review the status of each individual assessment. You can also run the migration task manually after the assessment run and its individual assessments complete.

", @@ -141,6 +150,9 @@ "BooleanOptional": { "base": null, "refs": { + "CollectorHealthCheck$LocalCollectorS3Access": "

Whether the local collector can access its Amazon S3 bucket.

", + "CollectorHealthCheck$WebCollectorS3Access": "

Whether the web collector can access its Amazon S3 bucket.

", + "CollectorHealthCheck$WebCollectorGrantedRoleBasedAccess": "

Whether the role that you provided when creating the Fleet Advisor collector has sufficient permissions to access the Fleet Advisor web collector.

", "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, or set to false to create the subscription but not activate it.

", "CreateReplicationInstanceMessage$MultiAZ": "

Specifies whether the replication instance is a Multi-AZ deployment. You can't set the AvailabilityZone parameter if the Multi-AZ parameter is set to true.

", "CreateReplicationInstanceMessage$AutoMinorVersionUpgrade": "

A value that indicates whether minor engine upgrades are applied automatically to the replication instance during the maintenance window. This parameter defaults to true.

Default: true

", @@ -259,6 +271,47 @@ "OracleSettings$CharLengthSemantics": "

Specifies whether the length of a character column is in bytes or in characters. To indicate that the character column length is in characters, set this attribute to CHAR. Otherwise, the character column length is in bytes.

Example: charLengthSemantics=CHAR;

" } }, + "CollectorHealthCheck": { + "base": "

Describes the last Fleet Advisor collector health check.

", + "refs": { + "CollectorResponse$CollectorHealthCheck": null + } + }, + "CollectorNotFoundFault": { + "base": "

The specified collector doesn't exist.

", + "refs": { + } + }, + "CollectorResponse": { + "base": "

Describes a Fleet Advisor collector.

", + "refs": { + "CollectorResponses$member": null + } + }, + "CollectorResponses": { + "base": null, + "refs": { + "DescribeFleetAdvisorCollectorsResponse$Collectors": "

Provides descriptions of the Fleet Advisor collectors, including the collectors' name and ID, and the latest inventory data.

" + } + }, + "CollectorShortInfoResponse": { + "base": "

Briefly describes a Fleet Advisor collector.

", + "refs": { + "CollectorsList$member": null + } + }, + "CollectorStatus": { + "base": null, + "refs": { + "CollectorHealthCheck$CollectorStatus": "

The status of the Fleet Advisor collector.

" + } + }, + "CollectorsList": { + "base": null, + "refs": { + "DatabaseResponse$Collectors": "

A list of collectors associated with the database.

" + } + }, "CompressionTypeValue": { "base": null, "refs": { @@ -299,6 +352,16 @@ "refs": { } }, + "CreateFleetAdvisorCollectorRequest": { + "base": null, + "refs": { + } + }, + "CreateFleetAdvisorCollectorResponse": { + "base": null, + "refs": { + } + }, "CreateReplicationInstanceMessage": { "base": "

", "refs": { @@ -335,6 +398,30 @@ "S3Settings$DataFormat": "

The format of the data that you want to use for output. You can choose one of the following:

" } }, + "DatabaseInstanceSoftwareDetailsResponse": { + "base": "

Describes an inventory database instance for a Fleet Advisor collector.

", + "refs": { + "DatabaseResponse$SoftwareDetails": "

The software details of a database in a Fleet Advisor collector inventory, such as database engine and version.

" + } + }, + "DatabaseList": { + "base": null, + "refs": { + "DescribeFleetAdvisorDatabasesResponse$Databases": "

Provides descriptions of the Fleet Advisor collector databases, including the database's collector, ID, and name.

" + } + }, + "DatabaseResponse": { + "base": "

Describes a database in a Fleet Advisor collector inventory.

", + "refs": { + "DatabaseList$member": null + } + }, + "DatabaseShortInfoResponse": { + "base": "

Describes a database in a Fleet Advisor collector inventory.

", + "refs": { + "SchemaResponse$DatabaseInstance": "

The database for a schema in a Fleet Advisor collector inventory.

" + } + }, "DatePartitionDelimiterValue": { "base": null, "refs": { @@ -357,6 +444,11 @@ "refs": { } }, + "DeleteCollectorRequest": { + "base": null, + "refs": { + } + }, "DeleteConnectionMessage": { "base": "

", "refs": { @@ -387,6 +479,16 @@ "refs": { } }, + "DeleteFleetAdvisorDatabasesRequest": { + "base": null, + "refs": { + } + }, + "DeleteFleetAdvisorDatabasesResponse": { + "base": null, + "refs": { + } + }, "DeleteReplicationInstanceMessage": { "base": "

", "refs": { @@ -527,6 +629,56 @@ "refs": { } }, + "DescribeFleetAdvisorCollectorsRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorCollectorsResponse": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorDatabasesRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorDatabasesResponse": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorLsaAnalysisRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorLsaAnalysisResponse": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorSchemaObjectSummaryRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorSchemaObjectSummaryResponse": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorSchemasRequest": { + "base": null, + "refs": { + } + }, + "DescribeFleetAdvisorSchemasResponse": { + "base": null, + "refs": { + } + }, "DescribeOrderableReplicationInstancesMessage": { "base": "

", "refs": { @@ -671,6 +823,12 @@ "ModifyEndpointMessage$DocDbSettings": "

Settings in JSON format for the source DocumentDB endpoint. For more information about the available settings, see the configuration properties section in Using DocumentDB as a Target for Database Migration Service in the Database Migration Service User Guide.

" } }, + "DoubleOptional": { + "base": null, + "refs": { + "SchemaResponse$Similarity": "

The similarity value for a schema in a Fleet Advisor collector inventory. A higher similarity value indicates that a schema is likely to be a duplicate.

" + } + }, "DynamoDbSettings": { "base": "

Provides the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role used to define an Amazon DynamoDB target endpoint.

", "refs": { @@ -793,8 +951,10 @@ "base": null, "refs": { "AccessDeniedFault$message": "

", + "CollectorNotFoundFault$message": null, "InsufficientResourceCapacityFault$message": "

", "InvalidCertificateFault$message": null, + "InvalidOperationFault$message": null, "InvalidResourceStateFault$message": "

", "InvalidSubnet$message": "

", "KMSAccessDeniedFault$message": null, @@ -839,6 +999,10 @@ "DescribeEventCategoriesMessage$Filters": "

Filters applied to the event categories.

", "DescribeEventSubscriptionsMessage$Filters": "

Filters applied to event subscriptions.

Valid filter names: event-subscription-arn | event-subscription-id

", "DescribeEventsMessage$Filters": "

Filters applied to events. The only valid filter is replication-instance-id.

", + "DescribeFleetAdvisorCollectorsRequest$Filters": "

If you specify any of the following filters, the output includes information for only those collectors that meet the filter criteria:

An example is: describe-fleet-advisor-collectors --filter Name=\"collector-referenced-id\",Values=\"d4610ac5-e323-4ad9-bc50-eaf7249dfe9d\"

", + "DescribeFleetAdvisorDatabasesRequest$Filters": "

If you specify any of the following filters, the output includes information for only those databases that meet the filter criteria:

An example is: describe-fleet-advisor-databases --filter Name=\"database-id\",Values=\"d4610ac5-e323-4ad9-bc50-eaf7249dfe9d\"

", + "DescribeFleetAdvisorSchemaObjectSummaryRequest$Filters": "

If you specify any of the following filters, the output includes information for only those schema objects that meet the filter criteria:

Example: describe-fleet-advisor-schema-object-summary --filter Name=\"schema-id\",Values=\"50\"

", + "DescribeFleetAdvisorSchemasRequest$Filters": "

If you specify any of the following filters, the output includes information for only those schemas that meet the filter criteria:

An example is: describe-fleet-advisor-schemas --filter Name=\"schema-id\",Values=\"50\"

", "DescribePendingMaintenanceActionsMessage$Filters": "

", "DescribeReplicationInstancesMessage$Filters": "

Filters applied to replication instances.

Valid filter names: replication-instance-arn | replication-instance-id | replication-instance-class | engine-version

", "DescribeReplicationSubnetGroupsMessage$Filters": "

Filters applied to replication subnet groups.

Valid filter names: replication-subnet-group-id

", @@ -854,6 +1018,36 @@ "Filter$Values": "

The filter value, which can specify one or more values used to narrow the returned results.

" } }, + "FleetAdvisorLsaAnalysisResponse": { + "base": "

Describes a large-scale assessment (LSA) analysis run by a Fleet Advisor collector.

", + "refs": { + "FleetAdvisorLsaAnalysisResponseList$member": null + } + }, + "FleetAdvisorLsaAnalysisResponseList": { + "base": null, + "refs": { + "DescribeFleetAdvisorLsaAnalysisResponse$Analysis": "

A list of FleetAdvisorLsaAnalysisResponse objects.

" + } + }, + "FleetAdvisorSchemaList": { + "base": null, + "refs": { + "DescribeFleetAdvisorSchemasResponse$FleetAdvisorSchemas": "

A collection of SchemaResponse objects.

" + } + }, + "FleetAdvisorSchemaObjectList": { + "base": null, + "refs": { + "DescribeFleetAdvisorSchemaObjectSummaryResponse$FleetAdvisorSchemaObjects": "

A collection of FleetAdvisorSchemaObjectResponse objects.

" + } + }, + "FleetAdvisorSchemaObjectResponse": { + "base": "

Describes a schema object in a Fleet Advisor collector inventory.

", + "refs": { + "FleetAdvisorSchemaObjectList$member": null + } + }, "GcpMySQLSettings": { "base": "

Settings in JSON format for the source GCP MySQL endpoint.

", "refs": { @@ -928,6 +1122,7 @@ "Certificate$KeyLength": "

The key length of the cryptographic algorithm being used.

", "CreateEndpointMessage$Port": "

The port used by the endpoint database.

", "CreateReplicationInstanceMessage$AllocatedStorage": "

The amount of storage (in gigabytes) to be initially allocated for the replication instance.

", + "DatabaseInstanceSoftwareDetailsResponse$OsArchitecture": "

The operating system architecture of the database.

", "DescribeApplicableIndividualAssessmentsMessage$MaxRecords": "

Maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

", "DescribeCertificatesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 10

", "DescribeConnectionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", @@ -937,6 +1132,11 @@ "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribeEventsMessage$Duration": "

The duration of the events to be listed.

", "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeFleetAdvisorCollectorsRequest$MaxRecords": "

Sets the maximum number of records returned in the response.

", + "DescribeFleetAdvisorDatabasesRequest$MaxRecords": "

Sets the maximum number of records returned in the response.

", + "DescribeFleetAdvisorLsaAnalysisRequest$MaxRecords": "

Sets the maximum number of records returned in the response.

", + "DescribeFleetAdvisorSchemaObjectSummaryRequest$MaxRecords": "

Sets the maximum number of records returned in the response.

", + "DescribeFleetAdvisorSchemasRequest$MaxRecords": "

Sets the maximum number of records returned in the response.

", "DescribeOrderableReplicationInstancesMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribePendingMaintenanceActionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribeReplicationInstanceTaskLogsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", @@ -961,6 +1161,8 @@ "GcpMySQLSettings$Port": "

", "IBMDb2Settings$Port": "

Endpoint TCP port. The default value is 50000.

", "IBMDb2Settings$MaxKBytesPerRead": "

Maximum number of bytes per read, as a NUMBER value. The default is 64 KB.

", + "InventoryData$NumberOfDatabases": "

The number of databases in the Fleet Advisor collector inventory.

", + "InventoryData$NumberOfSchemas": "

The number of schemas in the Fleet Advisor collector inventory.

", "KafkaSettings$MessageMaxBytes": "

The maximum size in bytes for records created on the endpoint The default is 1,000,000.

", "MicrosoftSQLServerSettings$Port": "

Endpoint TCP port.

", "MicrosoftSQLServerSettings$BcpPacketSize": "

The maximum size of the packets (in bytes) used to transfer data using BCP.

", @@ -1008,6 +1210,11 @@ "refs": { } }, + "InvalidOperationFault": { + "base": "

The action or operation requested isn't valid.

", + "refs": { + } + }, "InvalidResourceStateFault": { "base": "

The resource is in a state that prevents it from being used for database migration.

", "refs": { @@ -1018,6 +1225,12 @@ "refs": { } }, + "InventoryData": { + "base": "

Describes a Fleet Advisor collector inventory.

", + "refs": { + "CollectorResponse$InventoryData": null + } + }, "KMSAccessDeniedFault": { "base": "

The ciphertext references a key that doesn't exist or that the DMS account doesn't have access to.

", "refs": { @@ -1110,6 +1323,17 @@ "TableStatistics$ValidationSuspendedRecords": "

The number of records that couldn't be validated.

" } }, + "LongOptional": { + "base": null, + "refs": { + "DatabaseResponse$NumberOfSchemas": "

The number of schemas in a Fleet Advisor collector inventory database.

", + "FleetAdvisorSchemaObjectResponse$NumberOfObjects": "

The number of objects in a schema object in a Fleet Advisor collector inventory.

", + "FleetAdvisorSchemaObjectResponse$CodeLineCount": "

The number of lines of code in a schema object in a Fleet Advisor collector inventory.

", + "FleetAdvisorSchemaObjectResponse$CodeSize": "

The size level of the code in a schema object in a Fleet Advisor collector inventory.

", + "SchemaResponse$CodeLineCount": "

The number of lines of code in a schema in a Fleet Advisor collector inventory.

", + "SchemaResponse$CodeSize": "

The size level of the code in a schema in a Fleet Advisor collector inventory.

" + } + }, "MessageFormatValue": { "base": null, "refs": { @@ -1543,6 +1767,11 @@ "refs": { } }, + "RunFleetAdvisorLsaAnalysisResponse": { + "base": null, + "refs": { + } + }, "S3AccessDeniedFault": { "base": "

Insufficient privileges are preventing access to an Amazon S3 object.

", "refs": { @@ -1583,6 +1812,18 @@ "DescribeSchemasResponse$Schemas": "

The described schema.

" } }, + "SchemaResponse": { + "base": "

Describes a schema in a Fleet Advisor collector inventory.

", + "refs": { + "FleetAdvisorSchemaList$member": null + } + }, + "SchemaShortInfoResponse": { + "base": "

Describes a schema in a Fleet Advisor collector inventory.

", + "refs": { + "SchemaResponse$OriginalSchema": null + } + }, "SecretString": { "base": null, "refs": { @@ -1606,6 +1847,13 @@ "SybaseSettings$Password": "

Endpoint connection password.

" } }, + "ServerShortInfoResponse": { + "base": "

Describes a server in a Fleet Advisor collector inventory.

", + "refs": { + "DatabaseResponse$Server": "

The server name of a database in a Fleet Advisor collector inventory.

", + "SchemaResponse$Server": "

The database server for a schema in a Fleet Advisor collector inventory.

" + } + }, "SourceIdsList": { "base": null, "refs": { @@ -1694,6 +1942,18 @@ "Certificate$CertificateArn": "

The Amazon Resource Name (ARN) for the certificate.

", "Certificate$CertificateOwner": "

The owner of the certificate.

", "Certificate$SigningAlgorithm": "

The signing algorithm for the certificate.

", + "CollectorResponse$CollectorReferencedId": "

The reference ID of the Fleet Advisor collector.

", + "CollectorResponse$CollectorName": "

The name of the Fleet Advisor collector .

", + "CollectorResponse$CollectorVersion": "

The version of your Fleet Advisor collector, in semantic versioning format, for example 1.0.2

", + "CollectorResponse$Description": "

A summary description of the Fleet Advisor collector.

", + "CollectorResponse$S3BucketName": "

The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.

", + "CollectorResponse$ServiceAccessRoleArn": "

The IAM role that grants permissions to access the specified Amazon S3 bucket.

", + "CollectorResponse$LastDataReceived": "

The timestamp of the last time the collector received data, in the following format: 2022-01-24T19:04:02.596113Z

", + "CollectorResponse$RegisteredDate": "

The timestamp when DMS registered the collector, in the following format: 2022-01-24T19:04:02.596113Z

", + "CollectorResponse$CreatedDate": "

The timestamp when you created the collector, in the following format: 2022-01-24T19:04:02.596113Z

", + "CollectorResponse$ModifiedDate": "

The timestamp when DMS last modified the collector, in the following format: 2022-01-24T19:04:02.596113Z

", + "CollectorShortInfoResponse$CollectorReferencedId": "

The reference ID of the Fleet Advisor collector.

", + "CollectorShortInfoResponse$CollectorName": "

The name of the Fleet Advisor collector.

", "Connection$ReplicationInstanceArn": "

The ARN of the replication instance.

", "Connection$EndpointArn": "

The ARN string that uniquely identifies the endpoint.

", "Connection$Status": "

The connection status. This parameter can return one of the following values:

", @@ -1704,7 +1964,7 @@ "CreateEndpointMessage$EngineName": "

The type of engine for the endpoint. Valid values, depending on the EndpointType value, include \"mysql\", \"oracle\", \"postgres\", \"mariadb\", \"aurora\", \"aurora-postgresql\", \"opensearch\", \"redshift\", \"s3\", \"db2\", \"azuredb\", \"sybase\", \"dynamodb\", \"mongodb\", \"kinesis\", \"kafka\", \"elasticsearch\", \"docdb\", \"sqlserver\", and \"neptune\".

", "CreateEndpointMessage$Username": "

The user name to be used to log in to the endpoint database.

", "CreateEndpointMessage$ServerName": "

The name of the server where the endpoint database resides.

", - "CreateEndpointMessage$DatabaseName": "

The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName.

", + "CreateEndpointMessage$DatabaseName": "

The name of the endpoint database. For a MySQL source or target endpoint, do not specify DatabaseName. To migrate to a specific database, use this setting and targetDbType.

", "CreateEndpointMessage$ExtraConnectionAttributes": "

Additional attributes associated with the connection. Each attribute is specified as a name-value pair associated by an equal sign (=). Multiple attributes are separated by a semicolon (;) with no additional white space. For information on the attributes available for connecting your source or target endpoint, see Working with DMS Endpoints in the Database Migration Service User Guide.

", "CreateEndpointMessage$KmsKeyId": "

An KMS key identifier that is used to encrypt the connection parameters for the endpoint.

If you don't specify a value for the KmsKeyId parameter, then DMS uses your default encryption key.

KMS creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key for each Amazon Web Services Region.

", "CreateEndpointMessage$CertificateArn": "

The Amazon Resource Name (ARN) for the certificate.

", @@ -1714,6 +1974,15 @@ "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the DMS event notification subscription. This name must be less than 255 characters.

", "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", "CreateEventSubscriptionMessage$SourceType": "

The type of DMS resource that generates the events. For example, if you want to be notified of events generated by a replication instance, you set this parameter to replication-instance. If this value isn't specified, all events are returned.

Valid values: replication-instance | replication-task

", + "CreateFleetAdvisorCollectorRequest$CollectorName": "

The name of your Fleet Advisor collector (for example, sample-collector).

", + "CreateFleetAdvisorCollectorRequest$Description": "

A summary description of your Fleet Advisor collector.

", + "CreateFleetAdvisorCollectorRequest$ServiceAccessRoleArn": "

The IAM role that grants permissions to access the specified Amazon S3 bucket.

", + "CreateFleetAdvisorCollectorRequest$S3BucketName": "

The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory metadata.

", + "CreateFleetAdvisorCollectorResponse$CollectorReferencedId": "

The unique ID of the new Fleet Advisor collector, for example: 22fda70c-40d5-4acf-b233-a495bd8eb7f5

", + "CreateFleetAdvisorCollectorResponse$CollectorName": "

The name of the new Fleet Advisor collector.

", + "CreateFleetAdvisorCollectorResponse$Description": "

A summary description of the Fleet Advisor collector.

", + "CreateFleetAdvisorCollectorResponse$ServiceAccessRoleArn": "

The IAM role that grants permissions to access the specified Amazon S3 bucket.

", + "CreateFleetAdvisorCollectorResponse$S3BucketName": "

The Amazon S3 bucket that the collector uses to store inventory metadata.

", "CreateReplicationInstanceMessage$ReplicationInstanceIdentifier": "

The replication instance identifier. This parameter is stored as a lowercase string.

Constraints:

Example: myrepinstance

", "CreateReplicationInstanceMessage$ReplicationInstanceClass": "

The compute and memory capacity of the replication instance as defined for the specified replication instance class. For example to specify the instance class dms.c4.large, set this parameter to \"dms.c4.large\".

For more information on the settings and capacities for the available replication instance classes, see Selecting the right DMS replication instance for your migration.

", "CreateReplicationInstanceMessage$AvailabilityZone": "

The Availability Zone where the replication instance will be created. The default value is a random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region, for example: us-east-1d

", @@ -1735,7 +2004,21 @@ "CreateReplicationTaskMessage$CdcStopPosition": "

Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.

Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 “

", "CreateReplicationTaskMessage$TaskData": "

Supplemental information that the task requires to migrate the data for certain source and target endpoints. For more information, see Specifying Supplemental Data for Task Settings in the Database Migration Service User Guide.

", "CreateReplicationTaskMessage$ResourceIdentifier": "

A friendly name for the resource identifier at the end of the EndpointArn response parameter that is returned in the created Endpoint object. The value for this parameter can have up to 31 characters. It can contain only ASCII letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. For example, this value might result in the EndpointArn value arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. If you don't specify a ResourceIdentifier value, DMS generates a default identifier value for the end of EndpointArn.

", + "DatabaseInstanceSoftwareDetailsResponse$Engine": "

The database engine of a database in a Fleet Advisor collector inventory, for example Microsoft SQL Server.

", + "DatabaseInstanceSoftwareDetailsResponse$EngineVersion": "

The database engine version of a database in a Fleet Advisor collector inventory, for example 2019.

", + "DatabaseInstanceSoftwareDetailsResponse$EngineEdition": "

The database engine edition of a database in a Fleet Advisor collector inventory, for example Express.

", + "DatabaseInstanceSoftwareDetailsResponse$ServicePack": "

The service pack level of the database.

", + "DatabaseInstanceSoftwareDetailsResponse$SupportLevel": "

The support level of the database, for example Mainstream support.

", + "DatabaseInstanceSoftwareDetailsResponse$Tooltip": "

Information about the database engine software, for example Mainstream support ends on November 14th, 2024.

", + "DatabaseResponse$DatabaseId": "

The ID of a database in a Fleet Advisor collector inventory.

", + "DatabaseResponse$DatabaseName": "

The name of a database in a Fleet Advisor collector inventory.

", + "DatabaseResponse$IpAddress": "

The IP address of a database in a Fleet Advisor collector inventory.

", + "DatabaseShortInfoResponse$DatabaseId": "

The ID of a database in a Fleet Advisor collector inventory.

", + "DatabaseShortInfoResponse$DatabaseName": "

The name of a database in a Fleet Advisor collector inventory.

", + "DatabaseShortInfoResponse$DatabaseIpAddress": "

The IP address of a database in a Fleet Advisor collector inventory.

", + "DatabaseShortInfoResponse$DatabaseEngine": "

The database engine of a database in a Fleet Advisor collector inventory, for example PostgreSQL.

", "DeleteCertificateMessage$CertificateArn": "

The Amazon Resource Name (ARN) of the certificate.

", + "DeleteCollectorRequest$CollectorReferencedId": "

The reference ID of the Fleet Advisor collector to delete.

", "DeleteConnectionMessage$EndpointArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

", "DeleteConnectionMessage$ReplicationInstanceArn": "

The Amazon Resource Name (ARN) of the replication instance.

", "DeleteEndpointMessage$EndpointArn": "

The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.

", @@ -1769,6 +2052,16 @@ "DescribeEventsMessage$SourceIdentifier": "

The identifier of an event source.

", "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeEventsResponse$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeFleetAdvisorCollectorsRequest$NextToken": "

If NextToken is returned by a previous response, 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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorCollectorsResponse$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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorDatabasesRequest$NextToken": "

If NextToken is returned by a previous response, 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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorDatabasesResponse$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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorLsaAnalysisRequest$NextToken": "

If NextToken is returned by a previous response, 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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorLsaAnalysisResponse$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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorSchemaObjectSummaryRequest$NextToken": "

If NextToken is returned by a previous response, 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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorSchemaObjectSummaryResponse$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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorSchemasRequest$NextToken": "

If NextToken is returned by a previous response, 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. Keep all other arguments unchanged.

", + "DescribeFleetAdvisorSchemasResponse$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. Keep all other arguments unchanged.

", "DescribeOrderableReplicationInstancesMessage$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribeOrderableReplicationInstancesResponse$Marker": "

An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", "DescribePendingMaintenanceActionsMessage$ReplicationInstanceArn": "

The Amazon Resource Name (ARN) of the replication instance.

", @@ -1843,6 +2136,10 @@ "ExcludeTestList$member": null, "Filter$Name": "

The name of the filter as specified for a Describe* or similar operation.

", "FilterValueList$member": null, + "FleetAdvisorLsaAnalysisResponse$LsaAnalysisId": "

The ID of an LSA analysis run by a Fleet Advisor collector.

", + "FleetAdvisorLsaAnalysisResponse$Status": "

The status of an LSA analysis run by a Fleet Advisor collector.

", + "FleetAdvisorSchemaObjectResponse$SchemaId": "

The ID of a schema object in a Fleet Advisor collector inventory.

", + "FleetAdvisorSchemaObjectResponse$ObjectType": "

The type of the schema object, as reported by the database engine. Examples include the following:

", "GcpMySQLSettings$AfterConnectScript": "

Specifies a script to run immediately after DMS connects to the endpoint. The migration task continues running regardless if the SQL statement succeeds or fails.

For this parameter, provide the code of the script itself, not the name of a file containing the script.

", "GcpMySQLSettings$DatabaseName": "

Database name for the endpoint. For a MySQL source or target endpoint, don't explicitly specify the database using the DatabaseName request parameter on either the CreateEndpoint or ModifyEndpoint API call. Specifying DatabaseName when you create or modify a MySQL endpoint replicates all the task tables to this single database. For MySQL endpoints, you specify the database only when you specify the schema in the table-mapping rules of the DMS task.

", "GcpMySQLSettings$ServerName": "

Endpoint TCP port.

", @@ -2035,6 +2332,8 @@ "ReplicationTaskIndividualAssessment$IndividualAssessmentName": "

Name of this individual assessment.

", "ReplicationTaskIndividualAssessment$Status": "

Individual assessment status.

This status can have one of the following values:

", "ResourcePendingMaintenanceActions$ResourceIdentifier": "

The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN) for DMS in the DMS documentation.

", + "RunFleetAdvisorLsaAnalysisResponse$LsaAnalysisId": "

The ID of the LSA analysis run.

", + "RunFleetAdvisorLsaAnalysisResponse$Status": "

The status of the LSA analysis, for example COMPLETED.

", "S3Settings$ServiceAccessRoleArn": "

The Amazon Resource Name (ARN) used by the service to access the IAM role. The role must allow the iam:PassRole action. It is a required parameter that enables DMS to write and read objects from an S3 bucket.

", "S3Settings$ExternalTableDefinition": "

Specifies how tables are defined in the S3 source files only.

", "S3Settings$CsvRowDelimiter": "

The delimiter used to separate rows in the .csv file for both source and target. The default is a carriage return (\\n).

", @@ -2048,6 +2347,17 @@ "S3Settings$CsvNullValue": "

An optional parameter that specifies how DMS treats null values. While handling the null value, you can use this parameter to pass a user-defined string as null when writing to the target. For example, when target columns are not nullable, you can use this option to differentiate between the empty string value and the null value. So, if you set this parameter value to the empty string (\"\" or ''), DMS treats the empty string as the null value instead of NULL.

The default value is NULL. Valid values include any valid string.

", "S3Settings$DatePartitionTimezone": "

When creating an S3 target endpoint, set DatePartitionTimezone to convert the current UTC time into a specified time zone. The conversion occurs when a date partition folder is created and a CDC filename is generated. The time zone format is Area/Location. Use this parameter when DatePartitionedEnabled is set to true, as shown in the following example.

s3-settings='{\"DatePartitionEnabled\": true, \"DatePartitionSequence\": \"YYYYMMDDHH\", \"DatePartitionDelimiter\": \"SLASH\", \"DatePartitionTimezone\":\"Asia/Seoul\", \"BucketName\": \"dms-nattarat-test\"}'

", "SchemaList$member": null, + "SchemaResponse$Complexity": "

The complexity level of the code in a schema in a Fleet Advisor collector inventory.

", + "SchemaResponse$SchemaId": "

The ID of a schema in a Fleet Advisor collector inventory.

", + "SchemaResponse$SchemaName": "

The name of a schema in a Fleet Advisor collector inventory.

", + "SchemaShortInfoResponse$SchemaId": "

The ID of a schema in a Fleet Advisor collector inventory.

", + "SchemaShortInfoResponse$SchemaName": "

The name of a schema in a Fleet Advisor collector inventory.

", + "SchemaShortInfoResponse$DatabaseId": "

The ID of a database in a Fleet Advisor collector inventory.

", + "SchemaShortInfoResponse$DatabaseName": "

The name of a database in a Fleet Advisor collector inventory.

", + "SchemaShortInfoResponse$DatabaseIpAddress": "

The IP address of a database in a Fleet Advisor collector inventory.

", + "ServerShortInfoResponse$ServerId": "

The ID of a server in a Fleet Advisor collector inventory.

", + "ServerShortInfoResponse$IpAddress": "

The IP address of a server in a Fleet Advisor collector inventory.

", + "ServerShortInfoResponse$ServerName": "

The name address of a server in a Fleet Advisor collector inventory.

", "SourceIdsList$member": null, "StartReplicationTaskAssessmentMessage$ReplicationTaskArn": "

The Amazon Resource Name (ARN) of the replication task.

", "StartReplicationTaskAssessmentRunMessage$ReplicationTaskArn": "

Amazon Resource Name (ARN) of the migration task associated with the premigration assessment run that you want to start.

", @@ -2061,6 +2371,7 @@ "StartReplicationTaskMessage$CdcStartPosition": "

Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.

The value can be in date, checkpoint, or LSN/SCN format.

Date Example: --cdc-start-position “2018-03-08T12:12:12”

Checkpoint Example: --cdc-start-position \"checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93\"

LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”

When you use this task setting with a source PostgreSQL database, a logical replication slot should already be created and associated with the source endpoint. You can verify this by setting the slotName extra connection attribute to the name of this logical replication slot. For more information, see Extra Connection Attributes When Using PostgreSQL as a Source for DMS.

", "StartReplicationTaskMessage$CdcStopPosition": "

Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or commit time.

Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12”

Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 “

", "StopReplicationTaskMessage$ReplicationTaskArn": "

The Amazon Resource Name(ARN) of the replication task to be stopped.

", + "StringList$member": null, "Subnet$SubnetIdentifier": "

The subnet identifier.

", "Subnet$SubnetStatus": "

The status of the subnet.

", "SubnetIdentifierList$member": null, @@ -2089,6 +2400,13 @@ "VpcSecurityGroupMembership$Status": "

The status of the VPC security group.

" } }, + "StringList": { + "base": null, + "refs": { + "DeleteFleetAdvisorDatabasesRequest$DatabaseIds": "

The IDs of the Fleet Advisor collector databases to delete.

", + "DeleteFleetAdvisorDatabasesResponse$DatabaseIds": "

The IDs of the databases that the operation deleted.

" + } + }, "Subnet": { "base": "

In response to a request by the DescribeReplicationSubnetGroups operation, this object identifies a subnet by its given Availability Zone, subnet identifier, and status.

", "refs": { @@ -2213,7 +2531,7 @@ "base": null, "refs": { "GcpMySQLSettings$TargetDbType": "

Specifies where to migrate source tables on the target, either to a single database or multiple databases.

Example: targetDbType=MULTIPLE_DATABASES

", - "MySQLSettings$TargetDbType": "

Specifies where to migrate source tables on the target, either to a single database or multiple databases.

Example: targetDbType=MULTIPLE_DATABASES

" + "MySQLSettings$TargetDbType": "

Specifies where to migrate source tables on the target, either to a single database or multiple databases. If you specify SPECIFIC_DATABASE, specify the database name using the DatabaseName parameter of the Endpoint object.

Example: targetDbType=MULTIPLE_DATABASES

" } }, "TestConnectionMessage": { @@ -2231,6 +2549,12 @@ "refs": { } }, + "VersionStatus": { + "base": null, + "refs": { + "CollectorResponse$VersionStatus": "

Whether the collector version is up to date.

" + } + }, "VpcSecurityGroupIdList": { "base": null, "refs": { diff --git a/models/apis/dms/2016-01-01/paginators-1.json b/models/apis/dms/2016-01-01/paginators-1.json index 148e66ecf6d..3edda069e55 100644 --- a/models/apis/dms/2016-01-01/paginators-1.json +++ b/models/apis/dms/2016-01-01/paginators-1.json @@ -40,6 +40,31 @@ "output_token": "Marker", "limit_key": "MaxRecords" }, + "DescribeFleetAdvisorCollectors": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxRecords" + }, + "DescribeFleetAdvisorDatabases": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxRecords" + }, + "DescribeFleetAdvisorLsaAnalysis": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxRecords" + }, + "DescribeFleetAdvisorSchemaObjectSummary": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxRecords" + }, + "DescribeFleetAdvisorSchemas": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxRecords" + }, "DescribeOrderableReplicationInstances": { "input_token": "Marker", "output_token": "Marker", diff --git a/models/apis/iam/2010-05-08/docs-2.json b/models/apis/iam/2010-05-08/docs-2.json index 65025974418..e1178a51590 100644 --- a/models/apis/iam/2010-05-08/docs-2.json +++ b/models/apis/iam/2010-05-08/docs-2.json @@ -3170,9 +3170,9 @@ "roleMaxSessionDurationType": { "base": null, "refs": { - "CreateRoleRequest$MaxSessionDuration": "

The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.

Anyone who assumes the role from the or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. For more information, see Using IAM roles in the IAM User Guide.

", + "CreateRoleRequest$MaxSessionDuration": "

The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.

Anyone who assumes the role from the or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. For more information, see Using IAM roles in the IAM User Guide.

", "Role$MaxSessionDuration": "

The maximum session duration (in seconds) for the specified role. Anyone who uses the CLI, or API to assume the role can specify the duration using the optional DurationSeconds API parameter or duration-seconds CLI parameter.

", - "UpdateRoleRequest$MaxSessionDuration": "

The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default maximum of one hour is applied. This setting can have a value from 1 hour to 12 hours.

Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. For more information, see Using IAM roles in the IAM User Guide.

" + "UpdateRoleRequest$MaxSessionDuration": "

The maximum session duration (in seconds) that you want to set for the specified role. If you do not specify a value for this setting, the default value of one hour is applied. This setting can have a value from 1 hour to 12 hours.

Anyone who assumes the role from the CLI or API can use the DurationSeconds API parameter or the duration-seconds CLI parameter to request a longer session. The MaxSessionDuration setting determines the maximum duration that can be requested using the DurationSeconds parameter. If users don't specify a value for the DurationSeconds parameter, their security credentials are valid for one hour by default. This applies when you use the AssumeRole* API operations or the assume-role* CLI operations but does not apply when you use those operations to create a console URL. For more information, see Using IAM roles in the IAM User Guide.

" } }, "roleNameType": { diff --git a/models/apis/m2/2021-04-28/api-2.json b/models/apis/m2/2021-04-28/api-2.json new file mode 100644 index 00000000000..a967c20f300 --- /dev/null +++ b/models/apis/m2/2021-04-28/api-2.json @@ -0,0 +1,2379 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2021-04-28", + "endpointPrefix":"m2", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"AWSMainframeModernization", + "serviceId":"m2", + "signatureVersion":"v4", + "signingName":"m2", + "uid":"m2-2021-04-28" + }, + "operations":{ + "CancelBatchJobExecution":{ + "name":"CancelBatchJobExecution", + "http":{ + "method":"POST", + "requestUri":"/applications/{applicationId}/batch-job-executions/{executionId}/cancel", + "responseCode":200 + }, + "input":{"shape":"CancelBatchJobExecutionRequest"}, + "output":{"shape":"CancelBatchJobExecutionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "CreateApplication":{ + "name":"CreateApplication", + "http":{ + "method":"POST", + "requestUri":"/applications", + "responseCode":200 + }, + "input":{"shape":"CreateApplicationRequest"}, + "output":{"shape":"CreateApplicationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "CreateDataSetImportTask":{ + "name":"CreateDataSetImportTask", + "http":{ + "method":"POST", + "requestUri":"/applications/{applicationId}/dataset-import-task", + "responseCode":200 + }, + "input":{"shape":"CreateDataSetImportTaskRequest"}, + "output":{"shape":"CreateDataSetImportTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "CreateDeployment":{ + "name":"CreateDeployment", + "http":{ + "method":"POST", + "requestUri":"/applications/{applicationId}/deployments", + "responseCode":200 + }, + "input":{"shape":"CreateDeploymentRequest"}, + "output":{"shape":"CreateDeploymentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ], + "idempotent":true + }, + "CreateEnvironment":{ + "name":"CreateEnvironment", + "http":{ + "method":"POST", + "requestUri":"/environments", + "responseCode":200 + }, + "input":{"shape":"CreateEnvironmentRequest"}, + "output":{"shape":"CreateEnvironmentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "DeleteApplication":{ + "name":"DeleteApplication", + "http":{ + "method":"DELETE", + "requestUri":"/applications/{applicationId}", + "responseCode":200 + }, + "input":{"shape":"DeleteApplicationRequest"}, + "output":{"shape":"DeleteApplicationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "DeleteApplicationFromEnvironment":{ + "name":"DeleteApplicationFromEnvironment", + "http":{ + "method":"DELETE", + "requestUri":"/applications/{applicationId}/environment/{environmentId}", + "responseCode":200 + }, + "input":{"shape":"DeleteApplicationFromEnvironmentRequest"}, + "output":{"shape":"DeleteApplicationFromEnvironmentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "DeleteEnvironment":{ + "name":"DeleteEnvironment", + "http":{ + "method":"DELETE", + "requestUri":"/environments/{environmentId}", + "responseCode":200 + }, + "input":{"shape":"DeleteEnvironmentRequest"}, + "output":{"shape":"DeleteEnvironmentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ], + "idempotent":true + }, + "GetApplication":{ + "name":"GetApplication", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}", + "responseCode":200 + }, + "input":{"shape":"GetApplicationRequest"}, + "output":{"shape":"GetApplicationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetApplicationVersion":{ + "name":"GetApplicationVersion", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/versions/{applicationVersion}", + "responseCode":200 + }, + "input":{"shape":"GetApplicationVersionRequest"}, + "output":{"shape":"GetApplicationVersionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetBatchJobExecution":{ + "name":"GetBatchJobExecution", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/batch-job-executions/{executionId}", + "responseCode":200 + }, + "input":{"shape":"GetBatchJobExecutionRequest"}, + "output":{"shape":"GetBatchJobExecutionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetDataSetDetails":{ + "name":"GetDataSetDetails", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/datasets/{dataSetName}", + "responseCode":200 + }, + "input":{"shape":"GetDataSetDetailsRequest"}, + "output":{"shape":"GetDataSetDetailsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetDataSetImportTask":{ + "name":"GetDataSetImportTask", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/dataset-import-tasks/{taskId}", + "responseCode":200 + }, + "input":{"shape":"GetDataSetImportTaskRequest"}, + "output":{"shape":"GetDataSetImportTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetDeployment":{ + "name":"GetDeployment", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/deployments/{deploymentId}", + "responseCode":200 + }, + "input":{"shape":"GetDeploymentRequest"}, + "output":{"shape":"GetDeploymentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "GetEnvironment":{ + "name":"GetEnvironment", + "http":{ + "method":"GET", + "requestUri":"/environments/{environmentId}", + "responseCode":200 + }, + "input":{"shape":"GetEnvironmentRequest"}, + "output":{"shape":"GetEnvironmentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListApplicationVersions":{ + "name":"ListApplicationVersions", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/versions", + "responseCode":200 + }, + "input":{"shape":"ListApplicationVersionsRequest"}, + "output":{"shape":"ListApplicationVersionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListApplications":{ + "name":"ListApplications", + "http":{ + "method":"GET", + "requestUri":"/applications", + "responseCode":200 + }, + "input":{"shape":"ListApplicationsRequest"}, + "output":{"shape":"ListApplicationsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListBatchJobDefinitions":{ + "name":"ListBatchJobDefinitions", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/batch-job-definitions", + "responseCode":200 + }, + "input":{"shape":"ListBatchJobDefinitionsRequest"}, + "output":{"shape":"ListBatchJobDefinitionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListBatchJobExecutions":{ + "name":"ListBatchJobExecutions", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/batch-job-executions", + "responseCode":200 + }, + "input":{"shape":"ListBatchJobExecutionsRequest"}, + "output":{"shape":"ListBatchJobExecutionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListDataSetImportHistory":{ + "name":"ListDataSetImportHistory", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/dataset-import-tasks", + "responseCode":200 + }, + "input":{"shape":"ListDataSetImportHistoryRequest"}, + "output":{"shape":"ListDataSetImportHistoryResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListDataSets":{ + "name":"ListDataSets", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/datasets", + "responseCode":200 + }, + "input":{"shape":"ListDataSetsRequest"}, + "output":{"shape":"ListDataSetsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListDeployments":{ + "name":"ListDeployments", + "http":{ + "method":"GET", + "requestUri":"/applications/{applicationId}/deployments", + "responseCode":200 + }, + "input":{"shape":"ListDeploymentsRequest"}, + "output":{"shape":"ListDeploymentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "ListEngineVersions":{ + "name":"ListEngineVersions", + "http":{ + "method":"GET", + "requestUri":"/engine-versions", + "responseCode":200 + }, + "input":{"shape":"ListEngineVersionsRequest"}, + "output":{"shape":"ListEngineVersionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListEnvironments":{ + "name":"ListEnvironments", + "http":{ + "method":"GET", + "requestUri":"/environments", + "responseCode":200 + }, + "input":{"shape":"ListEnvironmentsRequest"}, + "output":{"shape":"ListEnvironmentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "StartApplication":{ + "name":"StartApplication", + "http":{ + "method":"POST", + "requestUri":"/applications/{applicationId}/start", + "responseCode":200 + }, + "input":{"shape":"StartApplicationRequest"}, + "output":{"shape":"StartApplicationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "StartBatchJob":{ + "name":"StartBatchJob", + "http":{ + "method":"POST", + "requestUri":"/applications/{applicationId}/batch-job", + "responseCode":200 + }, + "input":{"shape":"StartBatchJobRequest"}, + "output":{"shape":"StartBatchJobResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "StopApplication":{ + "name":"StopApplication", + "http":{ + "method":"POST", + "requestUri":"/applications/{applicationId}/stop", + "responseCode":200 + }, + "input":{"shape":"StopApplicationRequest"}, + "output":{"shape":"StopApplicationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateApplication":{ + "name":"UpdateApplication", + "http":{ + "method":"PATCH", + "requestUri":"/applications/{applicationId}", + "responseCode":200 + }, + "input":{"shape":"UpdateApplicationRequest"}, + "output":{"shape":"UpdateApplicationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UpdateEnvironment":{ + "name":"UpdateEnvironment", + "http":{ + "method":"PATCH", + "requestUri":"/environments/{environmentId}", + "responseCode":200 + }, + "input":{"shape":"UpdateEnvironmentRequest"}, + "output":{"shape":"UpdateEnvironmentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "AlternateKey":{ + "type":"structure", + "required":[ + "length", + "offset" + ], + "members":{ + "allowDuplicates":{"shape":"Boolean"}, + "length":{"shape":"Integer"}, + "name":{"shape":"String"}, + "offset":{"shape":"Integer"} + } + }, + "AlternateKeyList":{ + "type":"list", + "member":{"shape":"AlternateKey"} + }, + "ApplicationDeploymentLifecycle":{ + "type":"string", + "enum":[ + "Deploying", + "Deployed" + ] + }, + "ApplicationLifecycle":{ + "type":"string", + "enum":[ + "Creating", + "Created", + "Available", + "Ready", + "Starting", + "Running", + "Stopping", + "Stopped", + "Failed", + "Deleting" + ] + }, + "ApplicationSummary":{ + "type":"structure", + "required":[ + "applicationArn", + "applicationId", + "applicationVersion", + "creationTime", + "engineType", + "name", + "status" + ], + "members":{ + "applicationArn":{"shape":"Arn"}, + "applicationId":{"shape":"Identifier"}, + "applicationVersion":{"shape":"Version"}, + "creationTime":{"shape":"Timestamp"}, + "deploymentStatus":{"shape":"ApplicationDeploymentLifecycle"}, + "description":{"shape":"EntityDescription"}, + "engineType":{"shape":"EngineType"}, + "environmentId":{"shape":"Identifier"}, + "lastStartTime":{"shape":"Timestamp"}, + "name":{"shape":"EntityName"}, + "status":{"shape":"ApplicationLifecycle"}, + "versionStatus":{"shape":"ApplicationVersionLifecycle"} + } + }, + "ApplicationSummaryList":{ + "type":"list", + "member":{"shape":"ApplicationSummary"} + }, + "ApplicationVersionLifecycle":{ + "type":"string", + "enum":[ + "Creating", + "Available", + "Failed" + ] + }, + "ApplicationVersionSummary":{ + "type":"structure", + "required":[ + "applicationVersion", + "creationTime", + "status" + ], + "members":{ + "applicationVersion":{"shape":"Version"}, + "creationTime":{"shape":"Timestamp"}, + "status":{"shape":"ApplicationVersionLifecycle"}, + "statusReason":{"shape":"String"} + } + }, + "ApplicationVersionSummaryList":{ + "type":"list", + "member":{"shape":"ApplicationVersionSummary"} + }, + "Arn":{ + "type":"string", + "pattern":"^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+=,@.-]{0,1023}$" + }, + "ArnList":{ + "type":"list", + "member":{"shape":"Arn"}, + "min":1 + }, + "BatchJobDefinition":{ + "type":"structure", + "members":{ + "fileBatchJobDefinition":{"shape":"FileBatchJobDefinition"}, + "scriptBatchJobDefinition":{"shape":"ScriptBatchJobDefinition"} + }, + "union":true + }, + "BatchJobDefinitions":{ + "type":"list", + "member":{"shape":"BatchJobDefinition"} + }, + "BatchJobExecutionStatus":{ + "type":"string", + "enum":[ + "Submitting", + "Holding", + "Dispatching", + "Running", + "Cancelling", + "Cancelled", + "Succeeded", + "Failed", + "Succeeded With Warning" + ] + }, + "BatchJobExecutionSummary":{ + "type":"structure", + "required":[ + "applicationId", + "executionId", + "startTime", + "status" + ], + "members":{ + "applicationId":{"shape":"Identifier"}, + "endTime":{"shape":"Timestamp"}, + "executionId":{"shape":"Identifier"}, + "jobId":{"shape":"String100"}, + "jobName":{"shape":"String100"}, + "jobType":{"shape":"BatchJobType"}, + "startTime":{"shape":"Timestamp"}, + "status":{"shape":"BatchJobExecutionStatus"} + } + }, + "BatchJobExecutionSummaryList":{ + "type":"list", + "member":{"shape":"BatchJobExecutionSummary"} + }, + "BatchJobIdentifier":{ + "type":"structure", + "members":{ + "fileBatchJobIdentifier":{"shape":"FileBatchJobIdentifier"}, + "scriptBatchJobIdentifier":{"shape":"ScriptBatchJobIdentifier"} + }, + "union":true + }, + "BatchJobParametersMap":{ + "type":"map", + "key":{"shape":"BatchParamKey"}, + "value":{"shape":"BatchParamValue"}, + "max":500, + "min":0 + }, + "BatchJobType":{ + "type":"string", + "enum":[ + "VSE", + "JES2", + "JES3" + ] + }, + "BatchParamKey":{ + "type":"string", + "max":8, + "min":1, + "pattern":"^[A-Za-z][A-Za-z0-9]{1,7}$" + }, + "BatchParamValue":{ + "type":"string", + "max":44, + "min":0 + }, + "Boolean":{"type":"boolean"}, + "CancelBatchJobExecutionRequest":{ + "type":"structure", + "required":[ + "applicationId", + "executionId" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "executionId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"executionId" + } + } + }, + "CancelBatchJobExecutionResponse":{ + "type":"structure", + "members":{ + } + }, + "CapacityValue":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ConflictException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "resourceId":{"shape":"String"}, + "resourceType":{"shape":"String"} + }, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CreateApplicationRequest":{ + "type":"structure", + "required":[ + "definition", + "engineType", + "name" + ], + "members":{ + "clientToken":{ + "shape":"String", + "idempotencyToken":true + }, + "definition":{"shape":"Definition"}, + "description":{"shape":"EntityDescription"}, + "engineType":{"shape":"EngineType"}, + "name":{"shape":"EntityName"}, + "tags":{"shape":"TagMap"} + } + }, + "CreateApplicationResponse":{ + "type":"structure", + "required":[ + "applicationArn", + "applicationId", + "applicationVersion" + ], + "members":{ + "applicationArn":{"shape":"Arn"}, + "applicationId":{"shape":"Identifier"}, + "applicationVersion":{"shape":"Version"} + } + }, + "CreateDataSetImportTaskRequest":{ + "type":"structure", + "required":[ + "applicationId", + "importConfig" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "clientToken":{ + "shape":"String", + "idempotencyToken":true + }, + "importConfig":{"shape":"DataSetImportConfig"} + } + }, + "CreateDataSetImportTaskResponse":{ + "type":"structure", + "required":["taskId"], + "members":{ + "taskId":{"shape":"Identifier"} + } + }, + "CreateDeploymentRequest":{ + "type":"structure", + "required":[ + "applicationId", + "applicationVersion", + "environmentId" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "applicationVersion":{"shape":"Version"}, + "clientToken":{ + "shape":"String", + "idempotencyToken":true + }, + "environmentId":{"shape":"Identifier"} + } + }, + "CreateDeploymentResponse":{ + "type":"structure", + "required":["deploymentId"], + "members":{ + "deploymentId":{"shape":"Identifier"} + } + }, + "CreateEnvironmentRequest":{ + "type":"structure", + "required":[ + "engineType", + "instanceType", + "name" + ], + "members":{ + "clientToken":{ + "shape":"String", + "idempotencyToken":true + }, + "description":{"shape":"EntityDescription"}, + "engineType":{"shape":"EngineType"}, + "engineVersion":{"shape":"EngineVersion"}, + "highAvailabilityConfig":{"shape":"HighAvailabilityConfig"}, + "instanceType":{"shape":"String20"}, + "name":{"shape":"EntityName"}, + "preferredMaintenanceWindow":{"shape":"String50"}, + "publiclyAccessible":{"shape":"Boolean"}, + "securityGroupIds":{"shape":"String50List"}, + "storageConfigurations":{"shape":"StorageConfigurationList"}, + "subnetIds":{"shape":"String50List"}, + "tags":{"shape":"TagMap"} + } + }, + "CreateEnvironmentResponse":{ + "type":"structure", + "required":["environmentId"], + "members":{ + "environmentId":{"shape":"Identifier"} + } + }, + "DataSet":{ + "type":"structure", + "required":[ + "datasetName", + "datasetOrg", + "recordLength" + ], + "members":{ + "datasetName":{"shape":"String"}, + "datasetOrg":{"shape":"DatasetOrgAttributes"}, + "recordLength":{"shape":"RecordLength"}, + "relativePath":{"shape":"String"}, + "storageType":{"shape":"String"} + } + }, + "DataSetImportConfig":{ + "type":"structure", + "members":{ + "dataSets":{"shape":"DataSetImportList"}, + "s3Location":{"shape":"String2000"} + }, + "union":true + }, + "DataSetImportItem":{ + "type":"structure", + "required":[ + "dataSet", + "externalLocation" + ], + "members":{ + "dataSet":{"shape":"DataSet"}, + "externalLocation":{"shape":"ExternalLocation"} + } + }, + "DataSetImportList":{ + "type":"list", + "member":{"shape":"DataSetImportItem"}, + "max":100, + "min":1 + }, + "DataSetImportSummary":{ + "type":"structure", + "required":[ + "failed", + "inProgress", + "pending", + "succeeded", + "total" + ], + "members":{ + "failed":{"shape":"Integer"}, + "inProgress":{"shape":"Integer"}, + "pending":{"shape":"Integer"}, + "succeeded":{"shape":"Integer"}, + "total":{"shape":"Integer"} + } + }, + "DataSetImportTask":{ + "type":"structure", + "required":[ + "status", + "summary", + "taskId" + ], + "members":{ + "status":{"shape":"DataSetTaskLifecycle"}, + "summary":{"shape":"DataSetImportSummary"}, + "taskId":{"shape":"Identifier"} + } + }, + "DataSetImportTaskList":{ + "type":"list", + "member":{"shape":"DataSetImportTask"} + }, + "DataSetSummary":{ + "type":"structure", + "required":["dataSetName"], + "members":{ + "creationTime":{"shape":"Timestamp"}, + "dataSetName":{"shape":"String200"}, + "dataSetOrg":{"shape":"String20"}, + "format":{"shape":"String20"}, + "lastReferencedTime":{"shape":"Timestamp"}, + "lastUpdatedTime":{"shape":"Timestamp"} + } + }, + "DataSetTaskLifecycle":{ + "type":"string", + "enum":[ + "Creating", + "Running", + "Completed" + ] + }, + "DataSetsSummaryList":{ + "type":"list", + "member":{"shape":"DataSetSummary"} + }, + "DatasetDetailOrgAttributes":{ + "type":"structure", + "members":{ + "gdg":{"shape":"GdgDetailAttributes"}, + "vsam":{"shape":"VsamDetailAttributes"} + }, + "union":true + }, + "DatasetOrgAttributes":{ + "type":"structure", + "members":{ + "gdg":{"shape":"GdgAttributes"}, + "vsam":{"shape":"VsamAttributes"} + }, + "union":true + }, + "Definition":{ + "type":"structure", + "members":{ + "content":{"shape":"StringFree65000"}, + "s3Location":{"shape":"String2000"} + }, + "union":true + }, + "DeleteApplicationFromEnvironmentRequest":{ + "type":"structure", + "required":[ + "applicationId", + "environmentId" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "environmentId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"environmentId" + } + } + }, + "DeleteApplicationFromEnvironmentResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + } + } + }, + "DeleteApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteEnvironmentRequest":{ + "type":"structure", + "required":["environmentId"], + "members":{ + "environmentId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"environmentId" + } + } + }, + "DeleteEnvironmentResponse":{ + "type":"structure", + "members":{ + } + }, + "DeployedVersionSummary":{ + "type":"structure", + "required":[ + "applicationVersion", + "status" + ], + "members":{ + "applicationVersion":{"shape":"Version"}, + "status":{"shape":"DeploymentLifecycle"}, + "statusReason":{"shape":"String"} + } + }, + "DeploymentLifecycle":{ + "type":"string", + "enum":[ + "Deploying", + "Succeeded", + "Failed" + ] + }, + "DeploymentList":{ + "type":"list", + "member":{"shape":"DeploymentSummary"} + }, + "DeploymentSummary":{ + "type":"structure", + "required":[ + "applicationId", + "applicationVersion", + "creationTime", + "deploymentId", + "environmentId", + "status" + ], + "members":{ + "applicationId":{"shape":"Identifier"}, + "applicationVersion":{"shape":"Version"}, + "creationTime":{"shape":"Timestamp"}, + "deploymentId":{"shape":"Identifier"}, + "environmentId":{"shape":"Identifier"}, + "status":{"shape":"DeploymentLifecycle"}, + "statusReason":{"shape":"String"} + } + }, + "EfsStorageConfiguration":{ + "type":"structure", + "required":[ + "fileSystemId", + "mountPoint" + ], + "members":{ + "fileSystemId":{ + "shape":"String200", + "locationName":"file-system-id" + }, + "mountPoint":{ + "shape":"String200", + "locationName":"mount-point" + } + } + }, + "EngineType":{ + "type":"string", + "enum":[ + "microfocus", + "bluage" + ] + }, + "EngineVersion":{ + "type":"string", + "pattern":"^\\S{1,10}$" + }, + "EngineVersionsSummary":{ + "type":"structure", + "required":[ + "engineType", + "engineVersion" + ], + "members":{ + "engineType":{"shape":"String"}, + "engineVersion":{"shape":"String"} + } + }, + "EngineVersionsSummaryList":{ + "type":"list", + "member":{"shape":"EngineVersionsSummary"} + }, + "EntityDescription":{ + "type":"string", + "max":500, + "min":0 + }, + "EntityName":{ + "type":"string", + "pattern":"^[A-Za-z0-9][A-Za-z0-9_\\-]{1,59}$" + }, + "EntityNameList":{ + "type":"list", + "member":{"shape":"EntityName"}, + "max":10, + "min":1 + }, + "EnvironmentLifecycle":{ + "type":"string", + "enum":[ + "Creating", + "Available", + "Deleting", + "Failed" + ] + }, + "EnvironmentSummary":{ + "type":"structure", + "required":[ + "creationTime", + "engineType", + "engineVersion", + "environmentArn", + "environmentId", + "instanceType", + "name", + "status" + ], + "members":{ + "creationTime":{"shape":"Timestamp"}, + "engineType":{"shape":"EngineType"}, + "engineVersion":{"shape":"EngineVersion"}, + "environmentArn":{"shape":"Arn"}, + "environmentId":{"shape":"Identifier"}, + "instanceType":{"shape":"String20"}, + "name":{"shape":"EntityName"}, + "status":{"shape":"EnvironmentLifecycle"} + } + }, + "EnvironmentSummaryList":{ + "type":"list", + "member":{"shape":"EnvironmentSummary"} + }, + "ExternalLocation":{ + "type":"structure", + "members":{ + "s3Location":{"shape":"String2000"} + }, + "union":true + }, + "FileBatchJobDefinition":{ + "type":"structure", + "required":["fileName"], + "members":{ + "fileName":{"shape":"String"}, + "folderPath":{"shape":"String"} + } + }, + "FileBatchJobIdentifier":{ + "type":"structure", + "required":["fileName"], + "members":{ + "fileName":{"shape":"String"}, + "folderPath":{"shape":"String"} + } + }, + "FsxStorageConfiguration":{ + "type":"structure", + "required":[ + "fileSystemId", + "mountPoint" + ], + "members":{ + "fileSystemId":{ + "shape":"String200", + "locationName":"file-system-id" + }, + "mountPoint":{ + "shape":"String200", + "locationName":"mount-point" + } + } + }, + "GdgAttributes":{ + "type":"structure", + "members":{ + "limit":{"shape":"Integer"}, + "rollDisposition":{"shape":"String"} + } + }, + "GdgDetailAttributes":{ + "type":"structure", + "members":{ + "limit":{"shape":"Integer"}, + "rollDisposition":{"shape":"String50"} + } + }, + "GetApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + } + } + }, + "GetApplicationResponse":{ + "type":"structure", + "required":[ + "applicationArn", + "applicationId", + "creationTime", + "engineType", + "latestVersion", + "name", + "status" + ], + "members":{ + "applicationArn":{"shape":"Arn"}, + "applicationId":{"shape":"Identifier"}, + "creationTime":{"shape":"Timestamp"}, + "deployedVersion":{"shape":"DeployedVersionSummary"}, + "description":{"shape":"EntityDescription"}, + "engineType":{"shape":"EngineType"}, + "environmentId":{"shape":"Identifier"}, + "lastStartTime":{"shape":"Timestamp"}, + "latestVersion":{"shape":"ApplicationVersionSummary"}, + "listenerArns":{"shape":"ArnList"}, + "listenerPorts":{"shape":"PortList"}, + "loadBalancerDnsName":{"shape":"String100"}, + "logGroups":{"shape":"LogGroupSummaries"}, + "name":{"shape":"EntityName"}, + "status":{"shape":"ApplicationLifecycle"}, + "statusReason":{"shape":"String"}, + "tags":{"shape":"TagMap"}, + "targetGroupArns":{"shape":"ArnList"} + } + }, + "GetApplicationVersionRequest":{ + "type":"structure", + "required":[ + "applicationId", + "applicationVersion" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "applicationVersion":{ + "shape":"Version", + "location":"uri", + "locationName":"applicationVersion" + } + } + }, + "GetApplicationVersionResponse":{ + "type":"structure", + "required":[ + "applicationVersion", + "creationTime", + "definitionContent", + "name", + "status" + ], + "members":{ + "applicationVersion":{"shape":"Version"}, + "creationTime":{"shape":"Timestamp"}, + "definitionContent":{"shape":"StringFree65000"}, + "description":{"shape":"EntityDescription"}, + "name":{"shape":"EntityName"}, + "status":{"shape":"ApplicationVersionLifecycle"}, + "statusReason":{"shape":"String"} + } + }, + "GetBatchJobExecutionRequest":{ + "type":"structure", + "required":[ + "applicationId", + "executionId" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "executionId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"executionId" + } + } + }, + "GetBatchJobExecutionResponse":{ + "type":"structure", + "required":[ + "applicationId", + "executionId", + "startTime", + "status" + ], + "members":{ + "applicationId":{"shape":"Identifier"}, + "endTime":{"shape":"Timestamp"}, + "executionId":{"shape":"Identifier"}, + "jobId":{"shape":"String100"}, + "jobName":{"shape":"String100"}, + "jobType":{"shape":"BatchJobType"}, + "jobUser":{"shape":"String100"}, + "startTime":{"shape":"Timestamp"}, + "status":{"shape":"BatchJobExecutionStatus"}, + "statusReason":{"shape":"String"} + } + }, + "GetDataSetDetailsRequest":{ + "type":"structure", + "required":[ + "applicationId", + "dataSetName" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "dataSetName":{ + "shape":"String200", + "location":"uri", + "locationName":"dataSetName" + } + } + }, + "GetDataSetDetailsResponse":{ + "type":"structure", + "required":["dataSetName"], + "members":{ + "blocksize":{ + "shape":"Integer", + "box":true + }, + "creationTime":{"shape":"Timestamp"}, + "dataSetName":{"shape":"String200"}, + "dataSetOrg":{"shape":"DatasetDetailOrgAttributes"}, + "lastReferencedTime":{"shape":"Timestamp"}, + "lastUpdatedTime":{"shape":"Timestamp"}, + "location":{"shape":"String2000"}, + "recordLength":{ + "shape":"Integer", + "box":true + } + } + }, + "GetDataSetImportTaskRequest":{ + "type":"structure", + "required":[ + "applicationId", + "taskId" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "taskId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"taskId" + } + } + }, + "GetDataSetImportTaskResponse":{ + "type":"structure", + "required":[ + "status", + "taskId" + ], + "members":{ + "status":{"shape":"DataSetTaskLifecycle"}, + "summary":{"shape":"DataSetImportSummary"}, + "taskId":{"shape":"Identifier"} + } + }, + "GetDeploymentRequest":{ + "type":"structure", + "required":[ + "applicationId", + "deploymentId" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "deploymentId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"deploymentId" + } + } + }, + "GetDeploymentResponse":{ + "type":"structure", + "required":[ + "applicationId", + "applicationVersion", + "creationTime", + "deploymentId", + "environmentId", + "status" + ], + "members":{ + "applicationId":{"shape":"Identifier"}, + "applicationVersion":{"shape":"Version"}, + "creationTime":{"shape":"Timestamp"}, + "deploymentId":{"shape":"Identifier"}, + "environmentId":{"shape":"Identifier"}, + "status":{"shape":"DeploymentLifecycle"}, + "statusReason":{"shape":"String"} + } + }, + "GetEnvironmentRequest":{ + "type":"structure", + "required":["environmentId"], + "members":{ + "environmentId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"environmentId" + } + } + }, + "GetEnvironmentResponse":{ + "type":"structure", + "required":[ + "creationTime", + "engineType", + "engineVersion", + "environmentArn", + "environmentId", + "instanceType", + "name", + "securityGroupIds", + "status", + "subnetIds", + "vpcId" + ], + "members":{ + "actualCapacity":{"shape":"CapacityValue"}, + "creationTime":{"shape":"Timestamp"}, + "description":{"shape":"EntityDescription"}, + "engineType":{"shape":"EngineType"}, + "engineVersion":{"shape":"EngineVersion"}, + "environmentArn":{"shape":"Arn"}, + "environmentId":{"shape":"Identifier"}, + "highAvailabilityConfig":{"shape":"HighAvailabilityConfig"}, + "instanceType":{"shape":"String20"}, + "loadBalancerArn":{"shape":"String"}, + "name":{"shape":"EntityName"}, + "pendingMaintenance":{"shape":"PendingMaintenance"}, + "preferredMaintenanceWindow":{"shape":"String"}, + "publiclyAccessible":{"shape":"Boolean"}, + "securityGroupIds":{"shape":"String50List"}, + "status":{"shape":"EnvironmentLifecycle"}, + "statusReason":{"shape":"String"}, + "storageConfigurations":{"shape":"StorageConfigurationList"}, + "subnetIds":{"shape":"String50List"}, + "tags":{"shape":"TagMap"}, + "vpcId":{"shape":"String50"} + } + }, + "HighAvailabilityConfig":{ + "type":"structure", + "required":["desiredCapacity"], + "members":{ + "desiredCapacity":{"shape":"CapacityValue"} + } + }, + "Identifier":{ + "type":"string", + "pattern":"^\\S{1,80}$" + }, + "IdentifierList":{ + "type":"list", + "member":{"shape":"Identifier"}, + "max":10, + "min":1 + }, + "Integer":{"type":"integer"}, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "retryAfterSeconds":{ + "shape":"Integer", + "location":"header", + "locationName":"Retry-After" + } + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "ListApplicationVersionsRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListApplicationVersionsResponse":{ + "type":"structure", + "required":["applicationVersions"], + "members":{ + "applicationVersions":{"shape":"ApplicationVersionSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListApplicationsRequest":{ + "type":"structure", + "members":{ + "environmentId":{ + "shape":"Identifier", + "location":"querystring", + "locationName":"environmentId" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "names":{ + "shape":"EntityNameList", + "location":"querystring", + "locationName":"names" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListApplicationsResponse":{ + "type":"structure", + "required":["applications"], + "members":{ + "applications":{"shape":"ApplicationSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListBatchJobDefinitionsRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "prefix":{ + "shape":"String", + "location":"querystring", + "locationName":"prefix" + } + } + }, + "ListBatchJobDefinitionsResponse":{ + "type":"structure", + "required":["batchJobDefinitions"], + "members":{ + "batchJobDefinitions":{"shape":"BatchJobDefinitions"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListBatchJobExecutionsRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "executionIds":{ + "shape":"IdentifierList", + "location":"querystring", + "locationName":"executionIds" + }, + "jobName":{ + "shape":"String100", + "location":"querystring", + "locationName":"jobName" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "startedAfter":{ + "shape":"Timestamp", + "location":"querystring", + "locationName":"startedAfter" + }, + "startedBefore":{ + "shape":"Timestamp", + "location":"querystring", + "locationName":"startedBefore" + }, + "status":{ + "shape":"BatchJobExecutionStatus", + "location":"querystring", + "locationName":"status" + } + } + }, + "ListBatchJobExecutionsResponse":{ + "type":"structure", + "required":["batchJobExecutions"], + "members":{ + "batchJobExecutions":{"shape":"BatchJobExecutionSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListDataSetImportHistoryRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDataSetImportHistoryResponse":{ + "type":"structure", + "required":["dataSetImportTasks"], + "members":{ + "dataSetImportTasks":{"shape":"DataSetImportTaskList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListDataSetsRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "prefix":{ + "shape":"String200", + "location":"querystring", + "locationName":"prefix" + } + } + }, + "ListDataSetsResponse":{ + "type":"structure", + "required":["dataSets"], + "members":{ + "dataSets":{"shape":"DataSetsSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListDeploymentsRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDeploymentsResponse":{ + "type":"structure", + "required":["deployments"], + "members":{ + "deployments":{"shape":"DeploymentList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListEngineVersionsRequest":{ + "type":"structure", + "members":{ + "engineType":{ + "shape":"EngineType", + "location":"querystring", + "locationName":"engineType" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListEngineVersionsResponse":{ + "type":"structure", + "required":["engineVersions"], + "members":{ + "engineVersions":{"shape":"EngineVersionsSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListEnvironmentsRequest":{ + "type":"structure", + "members":{ + "engineType":{ + "shape":"EngineType", + "location":"querystring", + "locationName":"engineType" + }, + "maxResults":{ + "shape":"MaxResults", + "box":true, + "location":"querystring", + "locationName":"maxResults" + }, + "names":{ + "shape":"EntityNameList", + "location":"querystring", + "locationName":"names" + }, + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListEnvironmentsResponse":{ + "type":"structure", + "required":["environments"], + "members":{ + "environments":{"shape":"EnvironmentSummaryList"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"Arn", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["tags"], + "members":{ + "tags":{"shape":"TagMap"} + } + }, + "LogGroupIdentifier":{ + "type":"string", + "max":512, + "min":1 + }, + "LogGroupSummaries":{ + "type":"list", + "member":{"shape":"LogGroupSummary"} + }, + "LogGroupSummary":{ + "type":"structure", + "required":[ + "logGroupName", + "logType" + ], + "members":{ + "logGroupName":{"shape":"LogGroupIdentifier"}, + "logType":{"shape":"String20"} + } + }, + "MaintenanceSchedule":{ + "type":"structure", + "members":{ + "endTime":{"shape":"Timestamp"}, + "startTime":{"shape":"Timestamp"} + } + }, + "MaxResults":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "NextToken":{ + "type":"string", + "pattern":"^\\S{1,2000}$" + }, + "PendingMaintenance":{ + "type":"structure", + "members":{ + "engineVersion":{"shape":"String"}, + "schedule":{"shape":"MaintenanceSchedule"} + } + }, + "PortList":{ + "type":"list", + "member":{"shape":"Integer"}, + "min":1 + }, + "PrimaryKey":{ + "type":"structure", + "required":[ + "length", + "offset" + ], + "members":{ + "length":{"shape":"Integer"}, + "name":{"shape":"String"}, + "offset":{"shape":"Integer"} + } + }, + "RecordLength":{ + "type":"structure", + "required":[ + "max", + "min" + ], + "members":{ + "max":{"shape":"Integer"}, + "min":{"shape":"Integer"} + } + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "resourceId":{"shape":"String"}, + "resourceType":{"shape":"String"} + }, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "ScriptBatchJobDefinition":{ + "type":"structure", + "required":["scriptName"], + "members":{ + "scriptName":{"shape":"String"} + } + }, + "ScriptBatchJobIdentifier":{ + "type":"structure", + "required":["scriptName"], + "members":{ + "scriptName":{"shape":"String"} + } + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "quotaCode":{"shape":"String"}, + "resourceId":{"shape":"String"}, + "resourceType":{"shape":"String"}, + "serviceCode":{"shape":"String"} + }, + "error":{ + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, + "StartApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + } + } + }, + "StartApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "StartBatchJobRequest":{ + "type":"structure", + "required":[ + "applicationId", + "batchJobIdentifier" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "batchJobIdentifier":{"shape":"BatchJobIdentifier"}, + "jobParams":{"shape":"BatchJobParametersMap"} + } + }, + "StartBatchJobResponse":{ + "type":"structure", + "required":["executionId"], + "members":{ + "executionId":{"shape":"Identifier"} + } + }, + "StopApplicationRequest":{ + "type":"structure", + "required":["applicationId"], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "forceStop":{"shape":"Boolean"} + } + }, + "StopApplicationResponse":{ + "type":"structure", + "members":{ + } + }, + "StorageConfiguration":{ + "type":"structure", + "members":{ + "efs":{"shape":"EfsStorageConfiguration"}, + "fsx":{"shape":"FsxStorageConfiguration"} + }, + "union":true + }, + "StorageConfigurationList":{ + "type":"list", + "member":{"shape":"StorageConfiguration"} + }, + "String":{"type":"string"}, + "String100":{ + "type":"string", + "pattern":"^\\S{1,100}$" + }, + "String20":{ + "type":"string", + "pattern":"^\\S{1,20}$" + }, + "String200":{ + "type":"string", + "pattern":"^\\S{1,200}$" + }, + "String2000":{ + "type":"string", + "pattern":"^\\S{1,2000}$" + }, + "String50":{ + "type":"string", + "pattern":"^\\S{1,50}$" + }, + "String50List":{ + "type":"list", + "member":{"shape":"String50"} + }, + "StringFree65000":{ + "type":"string", + "max":65000, + "min":1 + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(?!aws:).+$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"} + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tags" + ], + "members":{ + "resourceArn":{ + "shape":"Arn", + "location":"uri", + "locationName":"resourceArn" + }, + "tags":{"shape":"TagMap"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "ThrottlingException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "quotaCode":{"shape":"String"}, + "retryAfterSeconds":{ + "shape":"Integer", + "location":"header", + "locationName":"Retry-After" + }, + "serviceCode":{"shape":"String"} + }, + "error":{ + "httpStatusCode":429, + "senderFault":true + }, + "exception":true, + "retryable":{"throttling":true} + }, + "Timestamp":{"type":"timestamp"}, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "tagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"Arn", + "location":"uri", + "locationName":"resourceArn" + }, + "tagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateApplicationRequest":{ + "type":"structure", + "required":[ + "applicationId", + "currentApplicationVersion" + ], + "members":{ + "applicationId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"applicationId" + }, + "currentApplicationVersion":{"shape":"Version"}, + "definition":{"shape":"Definition"}, + "description":{"shape":"EntityDescription"} + } + }, + "UpdateApplicationResponse":{ + "type":"structure", + "required":["applicationVersion"], + "members":{ + "applicationVersion":{"shape":"Version"} + } + }, + "UpdateEnvironmentRequest":{ + "type":"structure", + "required":["environmentId"], + "members":{ + "applyDuringMaintenanceWindow":{"shape":"Boolean"}, + "desiredCapacity":{ + "shape":"CapacityValue", + "box":true + }, + "engineVersion":{"shape":"EngineVersion"}, + "environmentId":{ + "shape":"Identifier", + "location":"uri", + "locationName":"environmentId" + }, + "instanceType":{"shape":"String20"}, + "preferredMaintenanceWindow":{"shape":"String"} + } + }, + "UpdateEnvironmentResponse":{ + "type":"structure", + "required":["environmentId"], + "members":{ + "environmentId":{"shape":"Identifier"} + } + }, + "ValidationException":{ + "type":"structure", + "required":["message"], + "members":{ + "fieldList":{"shape":"ValidationExceptionFieldList"}, + "message":{"shape":"String"}, + "reason":{"shape":"ValidationExceptionReason"} + }, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ValidationExceptionField":{ + "type":"structure", + "required":[ + "message", + "name" + ], + "members":{ + "message":{"shape":"String"}, + "name":{"shape":"String"} + } + }, + "ValidationExceptionFieldList":{ + "type":"list", + "member":{"shape":"ValidationExceptionField"} + }, + "ValidationExceptionReason":{ + "type":"string", + "enum":[ + "unknownOperation", + "cannotParse", + "fieldValidationFailed", + "other" + ] + }, + "Version":{ + "type":"integer", + "box":true, + "min":1 + }, + "VsamAttributes":{ + "type":"structure", + "required":["format"], + "members":{ + "alternateKeys":{"shape":"AlternateKeyList"}, + "compressed":{"shape":"Boolean"}, + "encoding":{"shape":"String"}, + "format":{"shape":"String"}, + "primaryKey":{"shape":"PrimaryKey"} + } + }, + "VsamDetailAttributes":{ + "type":"structure", + "members":{ + "alternateKeys":{"shape":"AlternateKeyList"}, + "cacheAtStartup":{ + "shape":"Boolean", + "box":true + }, + "compressed":{ + "shape":"Boolean", + "box":true + }, + "encoding":{"shape":"String20"}, + "primaryKey":{"shape":"PrimaryKey"}, + "recordFormat":{"shape":"String20"} + } + } + } +} diff --git a/models/apis/m2/2021-04-28/docs-2.json b/models/apis/m2/2021-04-28/docs-2.json new file mode 100644 index 00000000000..2b907849d52 --- /dev/null +++ b/models/apis/m2/2021-04-28/docs-2.json @@ -0,0 +1,1236 @@ +{ + "version": "2.0", + "service": "

Amazon Web Services Mainframe Modernization provides tools and resources to help you plan and implement migration and modernization from mainframes to Amazon Web Services managed runtime environments. It provides tools for analyzing existing mainframe applications, developing or updating mainframe applications using COBOL or PL/I, and implementing an automated pipeline for continuous integration and continuous delivery (CI/CD) of the applications.

", + "operations": { + "CancelBatchJobExecution": "

Cancels the running of a specific batch job execution.

", + "CreateApplication": "

Creates a new application with given parameters. Requires an existing environment and application definition file.

", + "CreateDataSetImportTask": "

Starts a data set import task for a specific application.

", + "CreateDeployment": "

Creates and starts a deployment to deploy an application into an environment.

", + "CreateEnvironment": "

Creates a runtime environment for a given runtime engine.

", + "DeleteApplication": "

Deletes a specific application. You cannot delete a running application.

", + "DeleteApplicationFromEnvironment": "

Deletes a specific application from a specified environment where it has been previously deployed. You cannot delete an environment using DeleteEnvironment, if any application has ever been deployed to it. This API removes the association of the application with the environment so you can delete the environment smoothly.

", + "DeleteEnvironment": "

Deletes a specific environment. The environment cannot contain deployed applications. If it does, you must delete those applications before you delete the environment.

", + "GetApplication": "

Describes the details of a specific application.

", + "GetApplicationVersion": "

Returns details about a specific version of a specific application.

", + "GetBatchJobExecution": "

Gets the details of a specific batch job execution for a specific application.

", + "GetDataSetDetails": "

Gets the details of a specific data set.

", + "GetDataSetImportTask": "

Gets the status of a data set import task initiated with the CreateDataSetImportTask operation.

", + "GetDeployment": "

Gets details of a specific deployment with a given deployment identifier.

", + "GetEnvironment": "

Describes a specific runtime environment.

", + "ListApplicationVersions": "

Returns a list of the application versions for a specific application.

", + "ListApplications": "

Lists the applications associated with a specific Amazon Web Services account. You can provide the unique identifier of a specific environment in a query parameter to see all applications associated with that environment.

", + "ListBatchJobDefinitions": "

Lists all the available batch job definitions based on the batch job resources uploaded during the application creation. The listed batch job definitions can then be used to start a batch job.

", + "ListBatchJobExecutions": "

Lists historical, current, and scheduled batch job executions for a specific application.

", + "ListDataSetImportHistory": "

Lists the data set imports for the specified application.

", + "ListDataSets": "

Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data sets are associated with applications deployed on environments. This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask.

", + "ListDeployments": "

Returns a list of all deployments of a specific application. A deployment is a combination of a specific application and a specific version of that application. Each deployment is mapped to a particular application version.

", + "ListEngineVersions": "

Lists the available engine versions.

", + "ListEnvironments": "

Lists the runtime environments.

", + "ListTagsForResource": "

Lists the tags for the specified resource.

", + "StartApplication": "

Starts an application that is currently stopped.

", + "StartBatchJob": "

Starts a batch job and returns the unique identifier of this execution of the batch job. The associated application must be running in order to start the batch job.

", + "StopApplication": "

Stops a running application.

", + "TagResource": "

Adds one or more tags to the specified resource.

", + "UntagResource": "

Removes one or more tags from the specified resource.

", + "UpdateApplication": "

Updates an application and creates a new version.

", + "UpdateEnvironment": "

Updates the configuration details for a specific environment.

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

The account or role doesn't have the right permissions to make the request.

", + "refs": { + } + }, + "AlternateKey": { + "base": "

Defines an alternate key. This value is optional. A legacy data set might not have any alternate key defined but if those alternate keys definitions exist, provide them, as some applications will make use of them.

", + "refs": { + "AlternateKeyList$member": null + } + }, + "AlternateKeyList": { + "base": null, + "refs": { + "VsamAttributes$alternateKeys": "

The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.

", + "VsamDetailAttributes$alternateKeys": "

The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.

" + } + }, + "ApplicationDeploymentLifecycle": { + "base": null, + "refs": { + "ApplicationSummary$deploymentStatus": "

Indicates whether there is an ongoing deployment or if the application has ever deployed successfully.

" + } + }, + "ApplicationLifecycle": { + "base": null, + "refs": { + "ApplicationSummary$status": "

The status of the application.

", + "GetApplicationResponse$status": "

The status of the application.

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

A subset of the possible application attributes. Used in the application list.

", + "refs": { + "ApplicationSummaryList$member": null + } + }, + "ApplicationSummaryList": { + "base": null, + "refs": { + "ListApplicationsResponse$applications": "

Returns a list of summary details for all the applications in an environment.

" + } + }, + "ApplicationVersionLifecycle": { + "base": null, + "refs": { + "ApplicationSummary$versionStatus": "

Indicates the status of the latest version of the application.

", + "ApplicationVersionSummary$status": "

The status of the application.

", + "GetApplicationVersionResponse$status": "

The status of the application version.

" + } + }, + "ApplicationVersionSummary": { + "base": "

Defines an application version summary.

", + "refs": { + "ApplicationVersionSummaryList$member": null, + "GetApplicationResponse$latestVersion": "

The latest version of the application.

" + } + }, + "ApplicationVersionSummaryList": { + "base": null, + "refs": { + "ListApplicationVersionsResponse$applicationVersions": "

The list of application versions.

" + } + }, + "Arn": { + "base": null, + "refs": { + "ApplicationSummary$applicationArn": "

The Amazon Resource Name (ARN) of the application.

", + "ArnList$member": null, + "CreateApplicationResponse$applicationArn": "

The Amazon Resource Name (ARN) of the application.

", + "EnvironmentSummary$environmentArn": "

The Amazon Resource Name (ARN) of a particular runtime environment.

", + "GetApplicationResponse$applicationArn": "

The Amazon Resource Name (ARN) of the application.

", + "GetEnvironmentResponse$environmentArn": "

The Amazon Resource Name (ARN) of the runtime environment.

", + "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

" + } + }, + "ArnList": { + "base": null, + "refs": { + "GetApplicationResponse$listenerArns": "

The Amazon Resource Name (ARN) for the network load balancer listener created in your Amazon Web Services account. Amazon Web Services Mainframe Modernization creates this listener on your behalf the first time you deploy an application.

", + "GetApplicationResponse$targetGroupArns": "

Returns the Amazon Resource Names (ARNs) of the target groups that are attached to the network load balancer.

" + } + }, + "BatchJobDefinition": { + "base": "

Defines the details of a batch job.

", + "refs": { + "BatchJobDefinitions$member": null + } + }, + "BatchJobDefinitions": { + "base": null, + "refs": { + "ListBatchJobDefinitionsResponse$batchJobDefinitions": "

The list of batch job definitions.

" + } + }, + "BatchJobExecutionStatus": { + "base": null, + "refs": { + "BatchJobExecutionSummary$status": "

The status of a particular batch job execution.

", + "GetBatchJobExecutionResponse$status": "

The status of the batch job execution.

", + "ListBatchJobExecutionsRequest$status": "

The status of the batch job executions.

" + } + }, + "BatchJobExecutionSummary": { + "base": "

A subset of the possible batch job attributes. Used in the batch job list.

", + "refs": { + "BatchJobExecutionSummaryList$member": null + } + }, + "BatchJobExecutionSummaryList": { + "base": null, + "refs": { + "ListBatchJobExecutionsResponse$batchJobExecutions": "

Returns a list of batch job executions for an application.

" + } + }, + "BatchJobIdentifier": { + "base": "

Identifies a specific batch job.

", + "refs": { + "StartBatchJobRequest$batchJobIdentifier": "

The unique identifier of the batch job.

" + } + }, + "BatchJobParametersMap": { + "base": "

Job parameters are optional. Can contain up to 500 entries.

", + "refs": { + "StartBatchJobRequest$jobParams": "

The collection of batch job parameters. For details about limits for keys and values, see Coding variables in JCL.

" + } + }, + "BatchJobType": { + "base": null, + "refs": { + "BatchJobExecutionSummary$jobType": "

The type of a particular batch job execution.

", + "GetBatchJobExecutionResponse$jobType": "

The type of job.

" + } + }, + "BatchParamKey": { + "base": "

Parameter key: the first character must be alphabetic. Can be of up to 8 alphanumeric characters.

", + "refs": { + "BatchJobParametersMap$key": null + } + }, + "BatchParamValue": { + "base": "

Parameter value can be of up to 44 alphanumeric characters.

", + "refs": { + "BatchJobParametersMap$value": null + } + }, + "Boolean": { + "base": null, + "refs": { + "AlternateKey$allowDuplicates": "

Indicates whether the alternate key values are supposed to be unique for the given data set.

", + "CreateEnvironmentRequest$publiclyAccessible": "

Specifies whether the environment is publicly accessible.

", + "GetEnvironmentResponse$publiclyAccessible": "

Whether applications running in this runtime environment are publicly accessible.

", + "StopApplicationRequest$forceStop": "

Stopping an application process can take a long time. Setting this parameter to true lets you force stop the application so you don't need to wait until the process finishes to apply another action on the application. The default value is false.

", + "UpdateEnvironmentRequest$applyDuringMaintenanceWindow": "

Indicates whether to update the environment during the maintenance window. The default is false. Currently, Amazon Web Services Mainframe Modernization accepts the engineVersion parameter only if applyDuringMaintenanceWindow is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, it will fail if applyDuringMaintenanceWindow is set to true.

", + "VsamAttributes$compressed": "

Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.

", + "VsamDetailAttributes$cacheAtStartup": "

If set to True, enforces loading the data set into cache before it’s used by the application.

", + "VsamDetailAttributes$compressed": "

Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.

" + } + }, + "CancelBatchJobExecutionRequest": { + "base": null, + "refs": { + } + }, + "CancelBatchJobExecutionResponse": { + "base": null, + "refs": { + } + }, + "CapacityValue": { + "base": null, + "refs": { + "GetEnvironmentResponse$actualCapacity": "

The number of instances included in the runtime environment. A standalone runtime environment has a maxiumum of one instance. Currently, a high availability runtime environment has a maximum of two instances.

", + "HighAvailabilityConfig$desiredCapacity": "

The number of instances in a high availability configuration.

", + "UpdateEnvironmentRequest$desiredCapacity": "

The desired capacity for the environment to update.

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

The parameters provided in the request conflict with existing resources.

", + "refs": { + } + }, + "CreateApplicationRequest": { + "base": null, + "refs": { + } + }, + "CreateApplicationResponse": { + "base": null, + "refs": { + } + }, + "CreateDataSetImportTaskRequest": { + "base": null, + "refs": { + } + }, + "CreateDataSetImportTaskResponse": { + "base": null, + "refs": { + } + }, + "CreateDeploymentRequest": { + "base": null, + "refs": { + } + }, + "CreateDeploymentResponse": { + "base": null, + "refs": { + } + }, + "CreateEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "CreateEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "DataSet": { + "base": "

Defines a data set.

", + "refs": { + "DataSetImportItem$dataSet": "

The data set.

" + } + }, + "DataSetImportConfig": { + "base": "

Identifies one or more data sets you want to import with the CreateDataSetImportTask operation.

", + "refs": { + "CreateDataSetImportTaskRequest$importConfig": "

The data set import task configuration.

" + } + }, + "DataSetImportItem": { + "base": "

Identifies a specific data set to import from an external location.

", + "refs": { + "DataSetImportList$member": null + } + }, + "DataSetImportList": { + "base": null, + "refs": { + "DataSetImportConfig$dataSets": "

The data sets.

" + } + }, + "DataSetImportSummary": { + "base": "

Represents a summary of data set imports.

", + "refs": { + "DataSetImportTask$summary": "

A summary of the data set import task.

", + "GetDataSetImportTaskResponse$summary": "

A summary of the status of the task.

" + } + }, + "DataSetImportTask": { + "base": "

Contains information about a data set import task.

", + "refs": { + "DataSetImportTaskList$member": null + } + }, + "DataSetImportTaskList": { + "base": null, + "refs": { + "ListDataSetImportHistoryResponse$dataSetImportTasks": "

The data set import tasks.

" + } + }, + "DataSetSummary": { + "base": "

A subset of the possible data set attributes.

", + "refs": { + "DataSetsSummaryList$member": null + } + }, + "DataSetTaskLifecycle": { + "base": null, + "refs": { + "DataSetImportTask$status": "

The status of the data set import task.

", + "GetDataSetImportTaskResponse$status": "

The status of the task.

" + } + }, + "DataSetsSummaryList": { + "base": null, + "refs": { + "ListDataSetsResponse$dataSets": "

The list of data sets, containing ionformation including the creating time, the data set name, the data set organization, the data set format, and the last time the data set was referenced or updated.

" + } + }, + "DatasetDetailOrgAttributes": { + "base": "

Additional details about the data set. Different attributes correspond to different data set organizations. The values are populated based on datasetOrg, storageType and backend (Blu Age or Micro Focus).

", + "refs": { + "GetDataSetDetailsResponse$dataSetOrg": "

The type of data set. Possible values include VSAM, IS, PS, GDG, PO, PS, or unknown.

" + } + }, + "DatasetOrgAttributes": { + "base": "

Additional details about the data set. Different attributes correspond to different data set organizations. The values are populated based on datasetOrg, storageType and backend (Blu Age or Micro Focus).

", + "refs": { + "DataSet$datasetOrg": "

The type of dataset. Possible values include VSAM, IS, PS, GDG, PO, PS, UNKNOWN etc.

" + } + }, + "Definition": { + "base": "

The application definition for a particular application.

", + "refs": { + "CreateApplicationRequest$definition": "

The application definition for this application. You can specify either inline JSON or an S3 bucket location.

", + "UpdateApplicationRequest$definition": "

The application definition for this application. You can specify either inline JSON or an S3 bucket location.

" + } + }, + "DeleteApplicationFromEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationFromEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "DeleteApplicationRequest": { + "base": null, + "refs": { + } + }, + "DeleteApplicationResponse": { + "base": null, + "refs": { + } + }, + "DeleteEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "DeleteEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "DeployedVersionSummary": { + "base": "

Contains a summary of a deployed application.

", + "refs": { + "GetApplicationResponse$deployedVersion": "

The version of the application that is deployed.

" + } + }, + "DeploymentLifecycle": { + "base": null, + "refs": { + "DeployedVersionSummary$status": "

The status of the deployment.

", + "DeploymentSummary$status": "

The current status of the deployment.

", + "GetDeploymentResponse$status": "

The status of the deployment.

" + } + }, + "DeploymentList": { + "base": null, + "refs": { + "ListDeploymentsResponse$deployments": "

The list of deployments that is returned.

" + } + }, + "DeploymentSummary": { + "base": "

A subset of information about a specific deployment.

", + "refs": { + "DeploymentList$member": null + } + }, + "EfsStorageConfiguration": { + "base": "

Defines the storage configuration for an Amazon EFS file system.

", + "refs": { + "StorageConfiguration$efs": "

Defines the storage configuration for an Amazon EFS file system.

" + } + }, + "EngineType": { + "base": null, + "refs": { + "ApplicationSummary$engineType": "

The type of the target platform for this application.

", + "CreateApplicationRequest$engineType": "

The type of the target platform for this application.

", + "CreateEnvironmentRequest$engineType": "

The engine type for the environment.

", + "EnvironmentSummary$engineType": "

The target platform for the environment.

", + "GetApplicationResponse$engineType": "

The type of the target platform for the application.

", + "GetEnvironmentResponse$engineType": "

The target platform for the runtime environment.

", + "ListEngineVersionsRequest$engineType": "

The type of target platform.

", + "ListEnvironmentsRequest$engineType": "

The engine type for the environment.

" + } + }, + "EngineVersion": { + "base": null, + "refs": { + "CreateEnvironmentRequest$engineVersion": "

The version of the engine type for the environment.

", + "EnvironmentSummary$engineVersion": "

The version of the runtime engine.

", + "GetEnvironmentResponse$engineVersion": "

The version of the runtime engine.

", + "UpdateEnvironmentRequest$engineVersion": "

The version of the runtime engine for the environment.

" + } + }, + "EngineVersionsSummary": { + "base": "

A subset of information about the engine version for a specific application.

", + "refs": { + "EngineVersionsSummaryList$member": null + } + }, + "EngineVersionsSummaryList": { + "base": null, + "refs": { + "ListEngineVersionsResponse$engineVersions": "

Returns the engine versions.

" + } + }, + "EntityDescription": { + "base": null, + "refs": { + "ApplicationSummary$description": "

The description of the application.

", + "CreateApplicationRequest$description": "

The description of the application.

", + "CreateEnvironmentRequest$description": "

The description of the environment.

", + "GetApplicationResponse$description": "

The description of the application.

", + "GetApplicationVersionResponse$description": "

The application description.

", + "GetEnvironmentResponse$description": "

The description of the runtime environment.

", + "UpdateApplicationRequest$description": "

The description of the application to update.

" + } + }, + "EntityName": { + "base": null, + "refs": { + "ApplicationSummary$name": "

The name of the application.

", + "CreateApplicationRequest$name": "

The unique identifier of the application.

", + "CreateEnvironmentRequest$name": "

The unique identifier of the environment.

", + "EntityNameList$member": null, + "EnvironmentSummary$name": "

The name of the environment.

", + "GetApplicationResponse$name": "

The unique identifier of the application.

", + "GetApplicationVersionResponse$name": "

The name of the application version.

", + "GetEnvironmentResponse$name": "

The name of the runtime environment.

" + } + }, + "EntityNameList": { + "base": null, + "refs": { + "ListApplicationsRequest$names": "

The names of the applications.

", + "ListEnvironmentsRequest$names": "

The name of the environment.

" + } + }, + "EnvironmentLifecycle": { + "base": null, + "refs": { + "EnvironmentSummary$status": "

The status of the environment

", + "GetEnvironmentResponse$status": "

The status of the runtime environment.

" + } + }, + "EnvironmentSummary": { + "base": "

Contains a subset of the possible environment attributes. Used in the environment list.

", + "refs": { + "EnvironmentSummaryList$member": null + } + }, + "EnvironmentSummaryList": { + "base": null, + "refs": { + "ListEnvironmentsResponse$environments": "

Returns a list of summary details for all the environments in your account.

" + } + }, + "ExternalLocation": { + "base": "

Defines an external storage location.

", + "refs": { + "DataSetImportItem$externalLocation": "

The location of the data set.

" + } + }, + "FileBatchJobDefinition": { + "base": "

A file containing a batch job definition.

", + "refs": { + "BatchJobDefinition$fileBatchJobDefinition": "

Specifies a file containing a batch job definition.

" + } + }, + "FileBatchJobIdentifier": { + "base": "

A batch job identifier in which the batch job to run is identified by the file name and the relative path to the file name.

", + "refs": { + "BatchJobIdentifier$fileBatchJobIdentifier": "

Specifies a file associated with a specific batch job.

" + } + }, + "FsxStorageConfiguration": { + "base": "

Defines the storage configuration for an Amazon FSx file system.

", + "refs": { + "StorageConfiguration$fsx": "

Defines the storage configuration for an Amazon FSx file system.

" + } + }, + "GdgAttributes": { + "base": "

The required attributes for a generation data group data set. A generation data set is one of a collection of successive, historically related, catalogued data sets that together are known as a generation data group (GDG). Use this structure when you want to import a GDG. For more information on GDG, see Generation data sets.

", + "refs": { + "DatasetOrgAttributes$gdg": "

The generation data group of the data set.

" + } + }, + "GdgDetailAttributes": { + "base": "

The required attributes for a generation data group data set. A generation data set is one of a collection of successive, historically related, catalogued data sets that together are known as a generation data group (GDG). Use this structure when you want to import a GDG. For more information on GDG, see Generation data sets.

", + "refs": { + "DatasetDetailOrgAttributes$gdg": "

The generation data group of the data set.

" + } + }, + "GetApplicationRequest": { + "base": null, + "refs": { + } + }, + "GetApplicationResponse": { + "base": null, + "refs": { + } + }, + "GetApplicationVersionRequest": { + "base": null, + "refs": { + } + }, + "GetApplicationVersionResponse": { + "base": null, + "refs": { + } + }, + "GetBatchJobExecutionRequest": { + "base": null, + "refs": { + } + }, + "GetBatchJobExecutionResponse": { + "base": null, + "refs": { + } + }, + "GetDataSetDetailsRequest": { + "base": null, + "refs": { + } + }, + "GetDataSetDetailsResponse": { + "base": null, + "refs": { + } + }, + "GetDataSetImportTaskRequest": { + "base": null, + "refs": { + } + }, + "GetDataSetImportTaskResponse": { + "base": null, + "refs": { + } + }, + "GetDeploymentRequest": { + "base": null, + "refs": { + } + }, + "GetDeploymentResponse": { + "base": null, + "refs": { + } + }, + "GetEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "GetEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "HighAvailabilityConfig": { + "base": "

Defines the details of a high availability configuration.

", + "refs": { + "CreateEnvironmentRequest$highAvailabilityConfig": "

The details of a high availability configuration for this runtime environment.

", + "GetEnvironmentResponse$highAvailabilityConfig": "

The desired capacity of the high availability configuration for the runtime environment.

" + } + }, + "Identifier": { + "base": null, + "refs": { + "ApplicationSummary$applicationId": "

The unique identifier of the application.

", + "ApplicationSummary$environmentId": "

The unique identifier of the runtime environment that hosts this application.

", + "BatchJobExecutionSummary$applicationId": "

The unique identifier of the application that hosts this batch job.

", + "BatchJobExecutionSummary$executionId": "

The unique identifier of this execution of the batch job.

", + "CancelBatchJobExecutionRequest$applicationId": "

The unique identifier of the application.

", + "CancelBatchJobExecutionRequest$executionId": "

The unique identifier of the batch job execution.

", + "CreateApplicationResponse$applicationId": "

The unique application identifier.

", + "CreateDataSetImportTaskRequest$applicationId": "

The unique identifier of the application for which you want to import data sets.

", + "CreateDataSetImportTaskResponse$taskId": "

The task identifier. This operation is asynchronous. Use this identifier with the GetDataSetImportTask operation to obtain the status of this task.

", + "CreateDeploymentRequest$applicationId": "

The application identifier.

", + "CreateDeploymentRequest$environmentId": "

The identifier of the environment where this application will be deployed.

", + "CreateDeploymentResponse$deploymentId": "

The unique identifier of the deployment.

", + "CreateEnvironmentResponse$environmentId": "

The identifier of this environment.

", + "DataSetImportTask$taskId": "

The identifier of the data set import task.

", + "DeleteApplicationFromEnvironmentRequest$applicationId": "

The unique identifier of the application you want to delete.

", + "DeleteApplicationFromEnvironmentRequest$environmentId": "

The unique identifier of the runtime environment where the application was previously deployed.

", + "DeleteApplicationRequest$applicationId": "

The unique identifier of the application you want to delete.

", + "DeleteEnvironmentRequest$environmentId": "

The unique identifier of the runtime environment you want to delete.

", + "DeploymentSummary$applicationId": "

The unique identifier of the application.

", + "DeploymentSummary$deploymentId": "

The unique identifier of the deployment.

", + "DeploymentSummary$environmentId": "

The unique identifier of the environment.

", + "EnvironmentSummary$environmentId": "

The unique identifier of a particular runtime environment.

", + "GetApplicationRequest$applicationId": "

The identifier of the application.

", + "GetApplicationResponse$applicationId": "

The identifier of the application.

", + "GetApplicationResponse$environmentId": "

The identifier of the environment where the application will be deployed.

", + "GetApplicationVersionRequest$applicationId": "

The unique identifier of the application.

", + "GetBatchJobExecutionRequest$applicationId": "

The identifier of the application.

", + "GetBatchJobExecutionRequest$executionId": "

The unique identifier of the batch job execution.

", + "GetBatchJobExecutionResponse$applicationId": "

The identifier of the application.

", + "GetBatchJobExecutionResponse$executionId": "

The unique identifier for this batch job execution.

", + "GetDataSetDetailsRequest$applicationId": "

The unique identifier of the application that this data set is associated with.

", + "GetDataSetImportTaskRequest$applicationId": "

The application identifier.

", + "GetDataSetImportTaskRequest$taskId": "

The task identifier returned by the CreateDataSetImportTask operation.

", + "GetDataSetImportTaskResponse$taskId": "

The task identifier.

", + "GetDeploymentRequest$applicationId": "

The unique identifier of the application.

", + "GetDeploymentRequest$deploymentId": "

The unique identifier for the deployment.

", + "GetDeploymentResponse$applicationId": "

The unique identifier of the application.

", + "GetDeploymentResponse$deploymentId": "

The unique identifier of the deployment.

", + "GetDeploymentResponse$environmentId": "

The unique identifier of the runtime environment.

", + "GetEnvironmentRequest$environmentId": "

The unique identifier of the runtime environment.

", + "GetEnvironmentResponse$environmentId": "

The unique identifier of the runtime environment.

", + "IdentifierList$member": null, + "ListApplicationVersionsRequest$applicationId": "

The unique identifier of the application.

", + "ListApplicationsRequest$environmentId": "

The unique identifier of the runtime environment where the applications are deployed.

", + "ListBatchJobDefinitionsRequest$applicationId": "

The identifier of the application.

", + "ListBatchJobExecutionsRequest$applicationId": "

The unique identifier of the application.

", + "ListDataSetImportHistoryRequest$applicationId": "

The unique identifier of the application.

", + "ListDataSetsRequest$applicationId": "

The unique identifier of the application for which you want to list the associated data sets.

", + "ListDeploymentsRequest$applicationId": "

The application identifier.

", + "StartApplicationRequest$applicationId": "

The unique identifier of the application you want to start.

", + "StartBatchJobRequest$applicationId": "

The unique identifier of the application associated with this batch job.

", + "StartBatchJobResponse$executionId": "

The unique identifier of this execution of the batch job.

", + "StopApplicationRequest$applicationId": "

The unique identifier of the application you want to stop.

", + "UpdateApplicationRequest$applicationId": "

The unique identifier of the application you want to update.

", + "UpdateEnvironmentRequest$environmentId": "

The unique identifier of the runtime environment that you want to update.

", + "UpdateEnvironmentResponse$environmentId": "

The unique identifier of the runtime environment that was updated.

" + } + }, + "IdentifierList": { + "base": null, + "refs": { + "ListBatchJobExecutionsRequest$executionIds": "

The unique identifier of each batch job execution.

" + } + }, + "Integer": { + "base": null, + "refs": { + "AlternateKey$length": "

A strictly positive integer value representing the length of the alternate key.

", + "AlternateKey$offset": "

A positive integer value representing the offset to mark the start of the alternate key part in the record byte array.

", + "DataSetImportSummary$failed": "

The number of data set imports that have failed.

", + "DataSetImportSummary$inProgress": "

The number of data set imports that are in progress.

", + "DataSetImportSummary$pending": "

The number of data set imports that are pending.

", + "DataSetImportSummary$succeeded": "

The number of data set imports that have succeeded.

", + "DataSetImportSummary$total": "

The total number of data set imports.

", + "GdgAttributes$limit": "

The maximum number of generation data sets, up to 255, in a GDG.

", + "GdgDetailAttributes$limit": "

The maximum number of generation data sets, up to 255, in a GDG.

", + "GetDataSetDetailsResponse$blocksize": "

The size of the block on disk.

", + "GetDataSetDetailsResponse$recordLength": "

The length of records in the data set.

", + "InternalServerException$retryAfterSeconds": "

The number of seconds to wait before retrying the request.

", + "PortList$member": null, + "PrimaryKey$length": "

A strictly positive integer value representing the length of the primary key.

", + "PrimaryKey$offset": "

A positive integer value representing the offset to mark the start of the primary key in the record byte array.

", + "RecordLength$max": "

The maximum record length. In case of fixed, both minimum and maximum are the same.

", + "RecordLength$min": "

The minimum record length of a record.

", + "ThrottlingException$retryAfterSeconds": "

The number of seconds to wait before retrying the request.

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

An unexpected error occurred during the processing of the request.

", + "refs": { + } + }, + "ListApplicationVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListApplicationVersionsResponse": { + "base": null, + "refs": { + } + }, + "ListApplicationsRequest": { + "base": null, + "refs": { + } + }, + "ListApplicationsResponse": { + "base": null, + "refs": { + } + }, + "ListBatchJobDefinitionsRequest": { + "base": null, + "refs": { + } + }, + "ListBatchJobDefinitionsResponse": { + "base": null, + "refs": { + } + }, + "ListBatchJobExecutionsRequest": { + "base": null, + "refs": { + } + }, + "ListBatchJobExecutionsResponse": { + "base": null, + "refs": { + } + }, + "ListDataSetImportHistoryRequest": { + "base": null, + "refs": { + } + }, + "ListDataSetImportHistoryResponse": { + "base": null, + "refs": { + } + }, + "ListDataSetsRequest": { + "base": null, + "refs": { + } + }, + "ListDataSetsResponse": { + "base": null, + "refs": { + } + }, + "ListDeploymentsRequest": { + "base": null, + "refs": { + } + }, + "ListDeploymentsResponse": { + "base": null, + "refs": { + } + }, + "ListEngineVersionsRequest": { + "base": null, + "refs": { + } + }, + "ListEngineVersionsResponse": { + "base": null, + "refs": { + } + }, + "ListEnvironmentsRequest": { + "base": null, + "refs": { + } + }, + "ListEnvironmentsResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, + "LogGroupIdentifier": { + "base": null, + "refs": { + "LogGroupSummary$logGroupName": "

The name of the log group.

" + } + }, + "LogGroupSummaries": { + "base": null, + "refs": { + "GetApplicationResponse$logGroups": "

The list of log summaries. Each log summary includes the log type as well as the log group identifier. These are CloudWatch logs. The Amazon Web Services Mainframe Modernization application log is pushed to CloudWatch under the customer's account.

" + } + }, + "LogGroupSummary": { + "base": "

A subset of the attributes about a log group. In CloudWatch a log group is a group of log streams that share the same retention, monitoring, and access control settings.

", + "refs": { + "LogGroupSummaries$member": null + } + }, + "MaintenanceSchedule": { + "base": "

The information about the maintenance schedule.

", + "refs": { + "PendingMaintenance$schedule": "

The maintenance schedule for the engine version.

" + } + }, + "MaxResults": { + "base": null, + "refs": { + "ListApplicationVersionsRequest$maxResults": "

The maximum number of application versions to return.

", + "ListApplicationsRequest$maxResults": "

The maximum number of applications to return.

", + "ListBatchJobDefinitionsRequest$maxResults": "

The maximum number of batch job definitions to return.

", + "ListBatchJobExecutionsRequest$maxResults": "

The maximum number of batch job executions to return.

", + "ListDataSetImportHistoryRequest$maxResults": "

The maximum number of objects to return.

", + "ListDataSetsRequest$maxResults": "

The maximum number of objects to return.

", + "ListDeploymentsRequest$maxResults": "

The maximum number of objects to return.

", + "ListEngineVersionsRequest$maxResults": "

The maximum number of objects to return.

", + "ListEnvironmentsRequest$maxResults": "

The maximum number of environments to return.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListApplicationVersionsRequest$nextToken": "

A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

", + "ListApplicationVersionsResponse$nextToken": "

If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

", + "ListApplicationsRequest$nextToken": "

A pagination token to control the number of applications displayed in the list.

", + "ListApplicationsResponse$nextToken": "

A pagination token that's returned when the response doesn't contain all applications.

", + "ListBatchJobDefinitionsRequest$nextToken": "

A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

", + "ListBatchJobDefinitionsResponse$nextToken": "

If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

", + "ListBatchJobExecutionsRequest$nextToken": "

A pagination token to control the number of batch job executions displayed in the list.

", + "ListBatchJobExecutionsResponse$nextToken": "

A pagination token that's returned when the response doesn't contain all batch job executions.

", + "ListDataSetImportHistoryRequest$nextToken": "

A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

", + "ListDataSetImportHistoryResponse$nextToken": "

If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

", + "ListDataSetsRequest$nextToken": "

A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

", + "ListDataSetsResponse$nextToken": "

If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

", + "ListDeploymentsRequest$nextToken": "

A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

", + "ListDeploymentsResponse$nextToken": "

If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

", + "ListEngineVersionsRequest$nextToken": "

A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

", + "ListEngineVersionsResponse$nextToken": "

If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

", + "ListEnvironmentsRequest$nextToken": "

A pagination token to control the number of environments displayed in the list.

", + "ListEnvironmentsResponse$nextToken": "

A pagination token that's returned when the response doesn't contain all the environments.

" + } + }, + "PendingMaintenance": { + "base": "

The scheduled maintenance for a runtime engine.

", + "refs": { + "GetEnvironmentResponse$pendingMaintenance": "

Indicates the pending maintenance scheduled on this environment.

" + } + }, + "PortList": { + "base": null, + "refs": { + "GetApplicationResponse$listenerPorts": "

The port associated with the network load balancer listener created in your Amazon Web Services account.

" + } + }, + "PrimaryKey": { + "base": "

The primary key for a KSDS data set.

", + "refs": { + "VsamAttributes$primaryKey": "

The primary key of the data set.

", + "VsamDetailAttributes$primaryKey": "

The primary key of the data set.

" + } + }, + "RecordLength": { + "base": "

The length of the records in the data set.

", + "refs": { + "DataSet$recordLength": "

The length of a record.

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

The specified resource was not found.

", + "refs": { + } + }, + "ScriptBatchJobDefinition": { + "base": "

A batch job definition contained in a script.

", + "refs": { + "BatchJobDefinition$scriptBatchJobDefinition": "

A script containing a batch job definition.

" + } + }, + "ScriptBatchJobIdentifier": { + "base": "

A batch job identifier in which the batch job to run is identified by the script name.

", + "refs": { + "BatchJobIdentifier$scriptBatchJobIdentifier": "

A batch job identifier in which the batch job to run is identified by the script name.

" + } + }, + "ServiceQuotaExceededException": { + "base": "

One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit.

", + "refs": { + } + }, + "StartApplicationRequest": { + "base": null, + "refs": { + } + }, + "StartApplicationResponse": { + "base": null, + "refs": { + } + }, + "StartBatchJobRequest": { + "base": null, + "refs": { + } + }, + "StartBatchJobResponse": { + "base": null, + "refs": { + } + }, + "StopApplicationRequest": { + "base": null, + "refs": { + } + }, + "StopApplicationResponse": { + "base": null, + "refs": { + } + }, + "StorageConfiguration": { + "base": "

Defines the storage configuration for an environment.

", + "refs": { + "StorageConfigurationList$member": null + } + }, + "StorageConfigurationList": { + "base": null, + "refs": { + "CreateEnvironmentRequest$storageConfigurations": "

Optional. The storage configurations for this environment.

", + "GetEnvironmentResponse$storageConfigurations": "

The storage configurations defined for the runtime environment.

" + } + }, + "String": { + "base": null, + "refs": { + "AccessDeniedException$message": null, + "AlternateKey$name": "

The name of the alternate key.

", + "ApplicationVersionSummary$statusReason": "

The reason for the reported status.

", + "ConflictException$message": null, + "ConflictException$resourceId": "

The ID of the conflicting resource.

", + "ConflictException$resourceType": "

The type of the conflicting resource.

", + "CreateApplicationRequest$clientToken": "

Unique, case-sensitive identifier the service generates to ensure the idempotency of the request to create an application. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

", + "CreateDataSetImportTaskRequest$clientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a data set import. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

", + "CreateDeploymentRequest$clientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

", + "CreateEnvironmentRequest$clientToken": "

Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

", + "DataSet$datasetName": "

The logical identifier for a specific data set (in mainframe format).

", + "DataSet$relativePath": "

The relative location of the data set in the database or file system.

", + "DataSet$storageType": "

The storage type of the data set: database or file system. For Micro Focus, database corresponds to datastore and file system corresponds to EFS/FSX. For Blu Age, there is no support of file system and database corresponds to Blusam.

", + "DeployedVersionSummary$statusReason": "

The reason for the reported status.

", + "DeploymentSummary$statusReason": "

The reason for the reported status.

", + "EngineVersionsSummary$engineType": "

The type of target platform for the application.

", + "EngineVersionsSummary$engineVersion": "

The version of the engine type used by the application.

", + "FileBatchJobDefinition$fileName": "

The name of the file containing the batch job definition.

", + "FileBatchJobDefinition$folderPath": "

The path to the file containing the batch job definition.

", + "FileBatchJobIdentifier$fileName": "

The file name for the batch job identifier.

", + "FileBatchJobIdentifier$folderPath": "

The relative path to the file name for the batch job identifier.

", + "GdgAttributes$rollDisposition": "

The disposition of the data set in the catalog.

", + "GetApplicationResponse$statusReason": "

The reason for the reported status.

", + "GetApplicationVersionResponse$statusReason": "

The reason for the reported status.

", + "GetBatchJobExecutionResponse$statusReason": "

The reason for the reported status.

", + "GetDeploymentResponse$statusReason": "

The reason for the reported status.

", + "GetEnvironmentResponse$loadBalancerArn": "

The Amazon Resource Name (ARN) for the load balancer used with the runtime environment.

", + "GetEnvironmentResponse$preferredMaintenanceWindow": "

Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

", + "GetEnvironmentResponse$statusReason": "

The reason for the reported status.

", + "InternalServerException$message": null, + "ListBatchJobDefinitionsRequest$prefix": "

If the batch job definition is a FileBatchJobDefinition, the prefix allows you to search on the file names of FileBatchJobDefinitions.

", + "PendingMaintenance$engineVersion": "

The specific runtime engine that the maintenance schedule applies to.

", + "PrimaryKey$name": "

A name for the Primary Key.

", + "ResourceNotFoundException$message": null, + "ResourceNotFoundException$resourceId": "

The ID of the missing resource.

", + "ResourceNotFoundException$resourceType": "

The type of the missing resource.

", + "ScriptBatchJobDefinition$scriptName": "

The name of the script containing the batch job definition.

", + "ScriptBatchJobIdentifier$scriptName": "

The name of the script containing the batch job definition.

", + "ServiceQuotaExceededException$message": null, + "ServiceQuotaExceededException$quotaCode": "

The identifier of the exceeded quota.

", + "ServiceQuotaExceededException$resourceId": "

The ID of the resource that is exceeding the quota limit.

", + "ServiceQuotaExceededException$resourceType": "

The type of resource that is exceeding the quota limit for Amazon Web Services Mainframe Modernization.

", + "ServiceQuotaExceededException$serviceCode": "

A code that identifies the service that the exceeded quota belongs to.

", + "ThrottlingException$message": null, + "ThrottlingException$quotaCode": "

The identifier of the throttled reuqest.

", + "ThrottlingException$serviceCode": "

The identifier of the service that the throttled request was made to.

", + "UpdateEnvironmentRequest$preferredMaintenanceWindow": "

Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

", + "ValidationException$message": null, + "ValidationExceptionField$message": "

The message of the exception field.

", + "ValidationExceptionField$name": "

The name of the exception field.

", + "VsamAttributes$encoding": "

The character set used by the data set. Can be ASCII, EBCDIC, or unknown.

", + "VsamAttributes$format": "

The record format of the data set.

" + } + }, + "String100": { + "base": null, + "refs": { + "BatchJobExecutionSummary$jobId": "

The unique identifier of a particular batch job.

", + "BatchJobExecutionSummary$jobName": "

The name of a particular batch job.

", + "GetApplicationResponse$loadBalancerDnsName": "

The public DNS name of the load balancer created in your Amazon Web Services account.

", + "GetBatchJobExecutionResponse$jobId": "

The unique identifier for this batch job.

", + "GetBatchJobExecutionResponse$jobName": "

The name of this batch job.

", + "GetBatchJobExecutionResponse$jobUser": "

The user for the job.

", + "ListBatchJobExecutionsRequest$jobName": "

The name of each batch job execution.

" + } + }, + "String20": { + "base": null, + "refs": { + "CreateEnvironmentRequest$instanceType": "

The type of instance for the environment.

", + "DataSetSummary$dataSetOrg": "

The type of data set. Possible values include VSAM, IS, PS, GDG, PO, PS, or unknown.

", + "DataSetSummary$format": "

The format of the data set.

", + "EnvironmentSummary$instanceType": "

The instance type of the environment.

", + "GetEnvironmentResponse$instanceType": "

The type of instance underlying the runtime environment.

", + "LogGroupSummary$logType": "

The type of log.

", + "UpdateEnvironmentRequest$instanceType": "

The instance type for the environment to update.

", + "VsamDetailAttributes$encoding": "

The character set used by the data set. Can be ASCII, EBCDIC, or unknown.

", + "VsamDetailAttributes$recordFormat": "

The record format of the data set.

" + } + }, + "String200": { + "base": null, + "refs": { + "DataSetSummary$dataSetName": "

The name of the data set.

", + "EfsStorageConfiguration$fileSystemId": "

The file system identifier.

", + "EfsStorageConfiguration$mountPoint": "

The mount point for the file system.

", + "FsxStorageConfiguration$fileSystemId": "

The file system identifier.

", + "FsxStorageConfiguration$mountPoint": "

The mount point for the file system.

", + "GetDataSetDetailsRequest$dataSetName": "

The name of the data set.

", + "GetDataSetDetailsResponse$dataSetName": "

The name of the data set.

", + "ListDataSetsRequest$prefix": "

The prefix of the data set name, which you can use to filter the list of data sets.

" + } + }, + "String2000": { + "base": null, + "refs": { + "DataSetImportConfig$s3Location": "

The Amazon S3 location of the data sets.

", + "Definition$s3Location": "

The S3 bucket that contains the application definition.

", + "ExternalLocation$s3Location": "

The URI of the Amazon S3 bucket.

", + "GetDataSetDetailsResponse$location": "

The locaion where the data set is stored.

" + } + }, + "String50": { + "base": null, + "refs": { + "CreateEnvironmentRequest$preferredMaintenanceWindow": "

Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

", + "GdgDetailAttributes$rollDisposition": "

The disposition of the data set in the catalog.

", + "GetEnvironmentResponse$vpcId": "

The unique identifier for the VPC used with this runtime environment.

", + "String50List$member": null + } + }, + "String50List": { + "base": null, + "refs": { + "CreateEnvironmentRequest$securityGroupIds": "

The list of security groups for the VPC associated with this environment.

", + "CreateEnvironmentRequest$subnetIds": "

The list of subnets associated with the VPC for this environment.

", + "GetEnvironmentResponse$securityGroupIds": "

The unique identifiers of the security groups assigned to this runtime environment.

", + "GetEnvironmentResponse$subnetIds": "

The unique identifiers of the subnets assigned to this runtime environment.

" + } + }, + "StringFree65000": { + "base": null, + "refs": { + "Definition$content": "

The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.

", + "GetApplicationVersionResponse$definitionContent": "

The content of the application definition. This is a JSON object that contains the resource configuration/definitions that identify an application.

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

The keys of the tags to remove.

" + } + }, + "TagMap": { + "base": null, + "refs": { + "CreateApplicationRequest$tags": "

A list of tags to apply to the application.

", + "CreateEnvironmentRequest$tags": "

The tags for the environment.

", + "GetApplicationResponse$tags": "

A list of tags associated with the application.

", + "GetEnvironmentResponse$tags": "

The tags defined for this runtime environment.

", + "ListTagsForResourceResponse$tags": "

The tags for the resource.

", + "TagResourceRequest$tags": "

The tags to add to the resource.

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "TagMap$value": null + } + }, + "ThrottlingException": { + "base": "

The number of requests made exceeds the limit.

", + "refs": { + } + }, + "Timestamp": { + "base": null, + "refs": { + "ApplicationSummary$creationTime": "

The timestamp when the application was created.

", + "ApplicationSummary$lastStartTime": "

The timestamp when the application was last started. Null until the application has started running for the first time.

", + "ApplicationVersionSummary$creationTime": "

The timestamp when the application version was created.

", + "BatchJobExecutionSummary$endTime": "

The timestamp when this batch job execution ended.

", + "BatchJobExecutionSummary$startTime": "

The timestamp when a particular batch job execution started.

", + "DataSetSummary$creationTime": "

The timestamp when the data set was created.

", + "DataSetSummary$lastReferencedTime": "

The last time the data set was referenced.

", + "DataSetSummary$lastUpdatedTime": "

The last time the data set was updated.

", + "DeploymentSummary$creationTime": "

The timestamp when the deployment was created.

", + "EnvironmentSummary$creationTime": "

The timestamp when the environment was created.

", + "GetApplicationResponse$creationTime": "

The timestamp when this application was created.

", + "GetApplicationResponse$lastStartTime": "

The timestamp when the application was last started. Null until the application has started running for the first time.

", + "GetApplicationVersionResponse$creationTime": "

The timestamp when the application version was created.

", + "GetBatchJobExecutionResponse$endTime": "

The timestamp when the batch job execution ended.

", + "GetBatchJobExecutionResponse$startTime": "

The timestamp when the batch job execution started.

", + "GetDataSetDetailsResponse$creationTime": "

The timestamp when the data set was created.

", + "GetDataSetDetailsResponse$lastReferencedTime": "

The last time the data set was referenced.

", + "GetDataSetDetailsResponse$lastUpdatedTime": "

The last time the data set was updated.

", + "GetDeploymentResponse$creationTime": "

The timestamp when the deployment was created.

", + "GetEnvironmentResponse$creationTime": "

The timestamp when the runtime environment was created.

", + "ListBatchJobExecutionsRequest$startedAfter": "

The time after which the batch job executions started.

", + "ListBatchJobExecutionsRequest$startedBefore": "

The time before the batch job executions started.

", + "MaintenanceSchedule$endTime": "

The time the scheduled maintenance is to end.

", + "MaintenanceSchedule$startTime": "

The time the scheduled maintenance is to start.

" + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateApplicationRequest": { + "base": null, + "refs": { + } + }, + "UpdateApplicationResponse": { + "base": null, + "refs": { + } + }, + "UpdateEnvironmentRequest": { + "base": null, + "refs": { + } + }, + "UpdateEnvironmentResponse": { + "base": null, + "refs": { + } + }, + "ValidationException": { + "base": "

One or more parameters provided in the request is not valid.

", + "refs": { + } + }, + "ValidationExceptionField": { + "base": "

Contains information about a validation exception field.

", + "refs": { + "ValidationExceptionFieldList$member": null + } + }, + "ValidationExceptionFieldList": { + "base": null, + "refs": { + "ValidationException$fieldList": "

The list of fields that failed service validation.

" + } + }, + "ValidationExceptionReason": { + "base": null, + "refs": { + "ValidationException$reason": "

The reason why it failed service validation.

" + } + }, + "Version": { + "base": null, + "refs": { + "ApplicationSummary$applicationVersion": "

The version of the application.

", + "ApplicationVersionSummary$applicationVersion": "

The application version.

", + "CreateApplicationResponse$applicationVersion": "

The version number of the application.

", + "CreateDeploymentRequest$applicationVersion": "

The version of the application to deploy.

", + "DeployedVersionSummary$applicationVersion": "

The version of the deployed application.

", + "DeploymentSummary$applicationVersion": "

The version of the application.

", + "GetApplicationVersionRequest$applicationVersion": "

The specific version of the application.

", + "GetApplicationVersionResponse$applicationVersion": "

The specific version of the application.

", + "GetDeploymentResponse$applicationVersion": "

The application version.

", + "UpdateApplicationRequest$currentApplicationVersion": "

The current version of the application to update.

", + "UpdateApplicationResponse$applicationVersion": "

The new version of the application.

" + } + }, + "VsamAttributes": { + "base": "

The attributes of a VSAM type data set.

", + "refs": { + "DatasetOrgAttributes$vsam": "

The details of a VSAM data set.

" + } + }, + "VsamDetailAttributes": { + "base": "

The attributes of a VSAM type data set.

", + "refs": { + "DatasetDetailOrgAttributes$vsam": "

The details of a VSAM data set.

" + } + } + } +} diff --git a/models/apis/m2/2021-04-28/examples-1.json b/models/apis/m2/2021-04-28/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/m2/2021-04-28/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/m2/2021-04-28/paginators-1.json b/models/apis/m2/2021-04-28/paginators-1.json new file mode 100644 index 00000000000..e7cd269f307 --- /dev/null +++ b/models/apis/m2/2021-04-28/paginators-1.json @@ -0,0 +1,58 @@ +{ + "pagination": { + "ListApplicationVersions": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "applicationVersions" + }, + "ListApplications": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "applications" + }, + "ListBatchJobDefinitions": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "batchJobDefinitions" + }, + "ListBatchJobExecutions": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "batchJobExecutions" + }, + "ListDataSetImportHistory": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "dataSetImportTasks" + }, + "ListDataSets": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "dataSets" + }, + "ListDeployments": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "deployments" + }, + "ListEngineVersions": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "engineVersions" + }, + "ListEnvironments": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "environments" + } + } +} diff --git a/models/apis/neptune/2014-10-31/api-2.json b/models/apis/neptune/2014-10-31/api-2.json index 7a4540bd9c2..a7537c98e16 100644 --- a/models/apis/neptune/2014-10-31/api-2.json +++ b/models/apis/neptune/2014-10-31/api-2.json @@ -151,7 +151,9 @@ {"shape":"KMSKeyNotAccessibleFault"}, {"shape":"DBClusterNotFoundFault"}, {"shape":"DBInstanceNotFoundFault"}, - {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"} + {"shape":"DBSubnetGroupDoesNotCoverEnoughAZs"}, + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"} ] }, "CreateDBClusterEndpoint":{ @@ -297,6 +299,24 @@ {"shape":"SourceNotFoundFault"} ] }, + "CreateGlobalCluster":{ + "name":"CreateGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateGlobalClusterMessage"}, + "output":{ + "shape":"CreateGlobalClusterResult", + "resultWrapper":"CreateGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterAlreadyExistsFault"}, + {"shape":"GlobalClusterQuotaExceededFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"DBClusterNotFoundFault"} + ] + }, "DeleteDBCluster":{ "name":"DeleteDBCluster", "http":{ @@ -421,6 +441,22 @@ {"shape":"InvalidEventSubscriptionStateFault"} ] }, + "DeleteGlobalCluster":{ + "name":"DeleteGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteGlobalClusterMessage"}, + "output":{ + "shape":"DeleteGlobalClusterResult", + "resultWrapper":"DeleteGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"} + ] + }, "DescribeDBClusterEndpoints":{ "name":"DescribeDBClusterEndpoints", "http":{ @@ -646,6 +682,21 @@ "resultWrapper":"DescribeEventsResult" } }, + "DescribeGlobalClusters":{ + "name":"DescribeGlobalClusters", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeGlobalClustersMessage"}, + "output":{ + "shape":"GlobalClustersMessage", + "resultWrapper":"DescribeGlobalClustersResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"} + ] + }, "DescribeOrderableDBInstanceOptions":{ "name":"DescribeOrderableDBInstanceOptions", "http":{ @@ -706,6 +757,24 @@ {"shape":"InvalidDBInstanceStateFault"} ] }, + "FailoverGlobalCluster":{ + "name":"FailoverGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"FailoverGlobalClusterMessage"}, + "output":{ + "shape":"FailoverGlobalClusterResult", + "resultWrapper":"FailoverGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"}, + {"shape":"InvalidDBClusterStateFault"}, + {"shape":"DBClusterNotFoundFault"} + ] + }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ @@ -885,6 +954,22 @@ {"shape":"SubscriptionCategoryNotFoundFault"} ] }, + "ModifyGlobalCluster":{ + "name":"ModifyGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyGlobalClusterMessage"}, + "output":{ + "shape":"ModifyGlobalClusterResult", + "resultWrapper":"ModifyGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"} + ] + }, "PromoteReadReplicaDBCluster":{ "name":"PromoteReadReplicaDBCluster", "http":{ @@ -917,6 +1002,23 @@ {"shape":"DBInstanceNotFoundFault"} ] }, + "RemoveFromGlobalCluster":{ + "name":"RemoveFromGlobalCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"RemoveFromGlobalClusterMessage"}, + "output":{ + "shape":"RemoveFromGlobalClusterResult", + "resultWrapper":"RemoveFromGlobalClusterResult" + }, + "errors":[ + {"shape":"GlobalClusterNotFoundFault"}, + {"shape":"InvalidGlobalClusterStateFault"}, + {"shape":"DBClusterNotFoundFault"} + ] + }, "RemoveRoleFromDBCluster":{ "name":"RemoveRoleFromDBCluster", "http":{ @@ -1345,7 +1447,8 @@ "PreSignedUrl":{"shape":"String"}, "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}, "EnableCloudwatchLogsExports":{"shape":"LogTypeList"}, - "DeletionProtection":{"shape":"BooleanOptional"} + "DeletionProtection":{"shape":"BooleanOptional"}, + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -1516,6 +1619,24 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "CreateGlobalClusterMessage":{ + "type":"structure", + "required":["GlobalClusterIdentifier"], + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "SourceDBClusterIdentifier":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "StorageEncrypted":{"shape":"BooleanOptional"} + } + }, + "CreateGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "DBCluster":{ "type":"structure", "members":{ @@ -1896,7 +2017,8 @@ "SupportedTimezones":{"shape":"SupportedTimezonesList"}, "ExportableLogTypes":{"shape":"LogTypeList"}, "SupportsLogExportsToCloudwatchLogs":{"shape":"Boolean"}, - "SupportsReadReplica":{"shape":"Boolean"} + "SupportsReadReplica":{"shape":"Boolean"}, + "SupportsGlobalDatabases":{"shape":"Boolean"} } }, "DBEngineVersionList":{ @@ -2356,6 +2478,19 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "DeleteGlobalClusterMessage":{ + "type":"structure", + "required":["GlobalClusterIdentifier"], + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"} + } + }, + "DeleteGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "DescribeDBClusterEndpointsMessage":{ "type":"structure", "members":{ @@ -2535,6 +2670,14 @@ "Marker":{"shape":"String"} } }, + "DescribeGlobalClustersMessage":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "MaxRecords":{"shape":"IntegerOptional"}, + "Marker":{"shape":"String"} + } + }, "DescribeOrderableDBInstanceOptionsMessage":{ "type":"structure", "required":["Engine"], @@ -2738,6 +2881,23 @@ "DBCluster":{"shape":"DBCluster"} } }, + "FailoverGlobalClusterMessage":{ + "type":"structure", + "required":[ + "GlobalClusterIdentifier", + "TargetDbClusterIdentifier" + ], + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "TargetDbClusterIdentifier":{"shape":"String"} + } + }, + "FailoverGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "Filter":{ "type":"structure", "required":[ @@ -2763,6 +2923,90 @@ "locationName":"Value" } }, + "GlobalCluster":{ + "type":"structure", + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "GlobalClusterResourceId":{"shape":"String"}, + "GlobalClusterArn":{"shape":"String"}, + "Status":{"shape":"String"}, + "Engine":{"shape":"String"}, + "EngineVersion":{"shape":"String"}, + "StorageEncrypted":{"shape":"BooleanOptional"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "GlobalClusterMembers":{"shape":"GlobalClusterMemberList"} + }, + "wrapper":true + }, + "GlobalClusterAlreadyExistsFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"GlobalClusterAlreadyExistsFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "GlobalClusterIdentifier":{ + "type":"string", + "max":255, + "min":1, + "pattern":"[A-Za-z][0-9A-Za-z-:._]*" + }, + "GlobalClusterList":{ + "type":"list", + "member":{ + "shape":"GlobalCluster", + "locationName":"GlobalClusterMember" + } + }, + "GlobalClusterMember":{ + "type":"structure", + "members":{ + "DBClusterArn":{"shape":"String"}, + "Readers":{"shape":"ReadersArnList"}, + "IsWriter":{"shape":"Boolean"} + }, + "wrapper":true + }, + "GlobalClusterMemberList":{ + "type":"list", + "member":{ + "shape":"GlobalClusterMember", + "locationName":"GlobalClusterMember" + } + }, + "GlobalClusterNotFoundFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"GlobalClusterNotFoundFault", + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "GlobalClusterQuotaExceededFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"GlobalClusterQuotaExceededFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "GlobalClustersMessage":{ + "type":"structure", + "members":{ + "Marker":{"shape":"String"}, + "GlobalClusters":{"shape":"GlobalClusterList"} + } + }, "InstanceQuotaExceededFault":{ "type":"structure", "members":{ @@ -2919,6 +3163,17 @@ }, "exception":true }, + "InvalidGlobalClusterStateFault":{ + "type":"structure", + "members":{ + }, + "error":{ + "code":"InvalidGlobalClusterStateFault", + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, "InvalidRestoreFault":{ "type":"structure", "members":{ @@ -3162,6 +3417,23 @@ "EventSubscription":{"shape":"EventSubscription"} } }, + "ModifyGlobalClusterMessage":{ + "type":"structure", + "required":["GlobalClusterIdentifier"], + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "NewGlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "DeletionProtection":{"shape":"BooleanOptional"}, + "EngineVersion":{"shape":"String"}, + "AllowMajorVersionUpgrade":{"shape":"BooleanOptional"} + } + }, + "ModifyGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "OptionGroupMembership":{ "type":"structure", "members":{ @@ -3209,7 +3481,8 @@ "MinIopsPerDbInstance":{"shape":"IntegerOptional"}, "MaxIopsPerDbInstance":{"shape":"IntegerOptional"}, "MinIopsPerGib":{"shape":"DoubleOptional"}, - "MaxIopsPerGib":{"shape":"DoubleOptional"} + "MaxIopsPerGib":{"shape":"DoubleOptional"}, + "SupportsGlobalDatabases":{"shape":"Boolean"} }, "wrapper":true }, @@ -3367,6 +3640,10 @@ "locationName":"ReadReplicaIdentifier" } }, + "ReadersArnList":{ + "type":"list", + "member":{"shape":"String"} + }, "RebootDBInstanceMessage":{ "type":"structure", "required":["DBInstanceIdentifier"], @@ -3381,6 +3658,23 @@ "DBInstance":{"shape":"DBInstance"} } }, + "RemoveFromGlobalClusterMessage":{ + "type":"structure", + "required":[ + "GlobalClusterIdentifier", + "DbClusterIdentifier" + ], + "members":{ + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"}, + "DbClusterIdentifier":{"shape":"String"} + } + }, + "RemoveFromGlobalClusterResult":{ + "type":"structure", + "members":{ + "GlobalCluster":{"shape":"GlobalCluster"} + } + }, "RemoveRoleFromDBClusterMessage":{ "type":"structure", "required":[ @@ -3772,7 +4066,8 @@ "EngineVersion":{"shape":"String"}, "Description":{"shape":"String"}, "AutoUpgrade":{"shape":"Boolean"}, - "IsMajorVersionUpgrade":{"shape":"Boolean"} + "IsMajorVersionUpgrade":{"shape":"Boolean"}, + "SupportsGlobalDatabases":{"shape":"BooleanOptional"} } }, "ValidDBInstanceModificationsMessage":{ diff --git a/models/apis/neptune/2014-10-31/docs-2.json b/models/apis/neptune/2014-10-31/docs-2.json index 3dfea2fa16e..10c68d084f4 100644 --- a/models/apis/neptune/2014-10-31/docs-2.json +++ b/models/apis/neptune/2014-10-31/docs-2.json @@ -17,6 +17,7 @@ "CreateDBParameterGroup": "

Creates a new DB parameter group.

A DB parameter group is initially created with the default parameters for the database engine used by the DB instance. To provide custom values for any of the parameters, you must modify the group after creating it using ModifyDBParameterGroup. Once you've created a DB parameter group, you need to associate it with your DB instance using ModifyDBInstance. When you associate a new DB parameter group with a running DB instance, you need to reboot the DB instance without failover for the new DB parameter group and associated settings to take effect.

After you create a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon Neptune to fully complete the create action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", "CreateDBSubnetGroup": "

Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Region.

", "CreateEventSubscription": "

Creates an event notification subscription. This action requires a topic ARN (Amazon Resource Name) created by either the Neptune console, the SNS console, or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon SNS and subscribe to the topic. The ARN is displayed in the SNS console.

You can specify the type of source (SourceType) you want to be notified of, provide a list of Neptune sources (SourceIds) that triggers the events, and provide a list of event categories (EventCategories) for events you want to be notified of. For example, you can specify SourceType = db-instance, SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability, Backup.

If you specify both the SourceType and SourceIds, such as SourceType = db-instance and SourceIdentifier = myDBInstance1, you are notified of all the db-instance events for the specified source. If you specify a SourceType but do not specify a SourceIdentifier, you receive notice of the events for that source type for all your Neptune sources. If you do not specify either the SourceType nor the SourceIdentifier, you are notified of events generated from all Neptune sources belonging to your customer account.

", + "CreateGlobalCluster": "

Creates a Neptune global database spread across multiple Amazon Regions. The global database contains a single primary cluster with read-write capability, and read-only secondary clusters that receive data from the primary cluster through high-speed replication performed by the Neptune storage subsystem.

You can create a global database that is initially empty, and then add a primary cluster and secondary clusters to it, or you can specify an existing Neptune cluster during the create operation to become the primary cluster of the global database.

", "DeleteDBCluster": "

The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified DB cluster are not deleted.

Note that the DB Cluster cannot be deleted if deletion protection is enabled. To delete it, you must first set its DeletionProtection field to False.

", "DeleteDBClusterEndpoint": "

Deletes a custom endpoint and removes it from an Amazon Neptune DB cluster.

", "DeleteDBClusterParameterGroup": "

Deletes a specified DB cluster parameter group. The DB cluster parameter group to be deleted can't be associated with any DB clusters.

", @@ -25,6 +26,7 @@ "DeleteDBParameterGroup": "

Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted can't be associated with any DB instances.

", "DeleteDBSubnetGroup": "

Deletes a DB subnet group.

The specified database subnet group must not be associated with any DB instances.

", "DeleteEventSubscription": "

Deletes an event notification subscription.

", + "DeleteGlobalCluster": "

Deletes a global database. The primary and all secondary clusters must already be detached or deleted first.

", "DescribeDBClusterEndpoints": "

Returns information about endpoints for an Amazon Neptune DB cluster.

This operation can also return information for Amazon RDS clusters and Amazon DocDB clusters.

", "DescribeDBClusterParameterGroups": "

Returns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list will contain only the description of the specified DB cluster parameter group.

", "DescribeDBClusterParameters": "

Returns the detailed parameter list for a particular DB cluster parameter group.

", @@ -41,10 +43,12 @@ "DescribeEventCategories": "

Displays a list of categories for all event source types, or, if specified, for a specified source type.

", "DescribeEventSubscriptions": "

Lists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status.

If you specify a SubscriptionName, lists the description for that subscription.

", "DescribeEvents": "

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

", + "DescribeGlobalClusters": "

Returns information about Neptune global database clusters. This API supports pagination.

", "DescribeOrderableDBInstanceOptions": "

Returns a list of orderable DB instance options for the specified engine.

", "DescribePendingMaintenanceActions": "

Returns a list of resources (for example, DB instances) that have at least one pending maintenance action.

", "DescribeValidDBInstanceModifications": "

You can call DescribeValidDBInstanceModifications to learn what modifications you can make to your DB instance. You can use this information when you call ModifyDBInstance.

", "FailoverDBCluster": "

Forces a failover for a DB cluster.

A failover for a DB cluster promotes one of the Read Replicas (read-only instances) in the DB cluster to be the primary instance (the cluster writer).

Amazon Neptune will automatically fail over to a Read Replica, if one exists, when the primary instance fails. You can force a failover when you want to simulate a failure of a primary instance for testing. Because each instance in a DB cluster has its own endpoint address, you will need to clean up and re-establish any existing connections that use those endpoint addresses when the failover is complete.

", + "FailoverGlobalCluster": "

Initiates the failover process for a Neptune global database.

A failover for a Neptune global database promotes one of secondary read-only DB clusters to be the primary DB cluster and demotes the primary DB cluster to being a secondary (read-only) DB cluster. In other words, the role of the current primary DB cluster and the selected target secondary DB cluster are switched. The selected secondary DB cluster assumes full read/write capabilities for the Neptune global database.

This action applies only to Neptune global databases. This action is only intended for use on healthy Neptune global databases with healthy Neptune DB clusters and no region-wide outages, to test disaster recovery scenarios or to reconfigure the global database topology.

", "ListTagsForResource": "

Lists all tags on an Amazon Neptune resource.

", "ModifyDBCluster": "

Modify a setting for a DB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

", "ModifyDBClusterEndpoint": "

Modifies the properties of an endpoint in an Amazon Neptune DB cluster.

", @@ -54,8 +58,10 @@ "ModifyDBParameterGroup": "

Modifies the parameters of a DB parameter group. To modify more than one parameter, submit a list of the following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 parameters can be modified in a single request.

Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot without failover to the DB instance associated with the parameter group before the change can take effect.

After you modify a DB parameter group, you should wait at least 5 minutes before creating your first DB instance that uses that DB parameter group as the default parameter group. This allows Amazon Neptune to fully complete the modify action before the parameter group is used as the default for a new DB instance. This is especially important for parameters that are critical when creating the default database for a DB instance, such as the character set for the default database defined by the character_set_database parameter. You can use the Parameter Groups option of the Amazon Neptune console or the DescribeDBParameters command to verify that your DB parameter group has been created or modified.

", "ModifyDBSubnetGroup": "

Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two AZs in the Amazon Region.

", "ModifyEventSubscription": "

Modifies an existing event notification subscription. Note that you can't modify the source identifiers using this call; to change source identifiers for a subscription, use the AddSourceIdentifierToSubscription and RemoveSourceIdentifierFromSubscription calls.

You can see a list of the event categories for a given SourceType by using the DescribeEventCategories action.

", + "ModifyGlobalCluster": "

Modify a setting for an Amazon Neptune global cluster. You can change one or more database configuration parameters by specifying these parameters and their new values in the request.

", "PromoteReadReplicaDBCluster": "

Not supported.

", "RebootDBInstance": "

You might need to reboot your DB instance, usually for maintenance reasons. For example, if you make certain modifications, or if you change the DB parameter group associated with the DB instance, you must reboot the instance for the changes to take effect.

Rebooting a DB instance restarts the database engine service. Rebooting a DB instance results in a momentary outage, during which the DB instance status is set to rebooting.

", + "RemoveFromGlobalCluster": "

Detaches a Neptune DB cluster from a Neptune global database. A secondary cluster becomes a normal standalone cluster with read-write capability instead of being read-only, and no longer receives data from a the primary cluster.

", "RemoveRoleFromDBCluster": "

Disassociates an Identity and Access Management (IAM) role from a DB cluster.

", "RemoveSourceIdentifierFromSubscription": "

Removes a source identifier from an existing event notification subscription.

", "RemoveTagsFromResource": "

Removes metadata tags from an Amazon Neptune resource.

", @@ -149,6 +155,7 @@ "DBClusterSnapshot$IAMDatabaseAuthenticationEnabled": "

True if mapping of Amazon Identity and Access Management (IAM) accounts to database accounts is enabled, and otherwise false.

", "DBEngineVersion$SupportsLogExportsToCloudwatchLogs": "

A value that indicates whether the engine version supports exporting the log types specified by ExportableLogTypes to CloudWatch Logs.

", "DBEngineVersion$SupportsReadReplica": "

Indicates whether the database engine version supports read replicas.

", + "DBEngineVersion$SupportsGlobalDatabases": "

A value that indicates whether you can use Aurora global databases with a specific DB engine version.

", "DBInstance$MultiAZ": "

Specifies if the DB instance is a Multi-AZ deployment.

", "DBInstance$AutoMinorVersionUpgrade": "

Indicates that minor version patches are applied automatically.

", "DBInstance$PubliclyAccessible": "

This flag should no longer be used.

", @@ -162,6 +169,7 @@ "DescribeDBClusterSnapshotsMessage$IncludePublic": "

True to include manual DB cluster snapshots that are public and can be copied or restored by any Amazon account, and otherwise false. The default is false. The default is false.

You can share a manual DB cluster snapshot as public by using the ModifyDBClusterSnapshotAttribute API action.

", "DescribeDBEngineVersionsMessage$DefaultOnly": "

Indicates that only the default version of the specified engine or engine and major version combination is returned.

", "EventSubscription$Enabled": "

A Boolean value indicating if the subscription is enabled. True indicates the subscription is enabled.

", + "GlobalClusterMember$IsWriter": "

Specifies whether the Neptune cluster is the primary cluster (that is, has read-write capability) for the Neptune global database with which it is associated.

", "ModifyDBClusterMessage$ApplyImmediately": "

A value that specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB cluster. If this parameter is set to false, changes to the DB cluster are applied during the next maintenance window.

The ApplyImmediately parameter only affects NewDBClusterIdentifier values. If you set the ApplyImmediately parameter value to false, then changes to NewDBClusterIdentifier values are applied during the next maintenance window. All other changes are applied immediately, regardless of the value of the ApplyImmediately parameter.

Default: false

", "ModifyDBClusterMessage$AllowMajorVersionUpgrade": "

A value that indicates whether upgrades between different major versions are allowed.

Constraints: You must set the allow-major-version-upgrade flag when providing an EngineVersion parameter that uses a different major version than the DB cluster's current version.

", "ModifyDBInstanceMessage$ApplyImmediately": "

Specifies whether the modifications in this request and any pending modifications are asynchronously applied as soon as possible, regardless of the PreferredMaintenanceWindow setting for the DB instance.

If this parameter is set to false, changes to the DB instance are applied during the next maintenance window. Some parameter changes can cause an outage and are applied on the next call to RebootDBInstance, or the next failure reboot.

Default: false

", @@ -174,6 +182,7 @@ "OrderableDBInstanceOption$SupportsEnhancedMonitoring": "

Indicates whether a DB instance supports Enhanced Monitoring at intervals from 1 to 60 seconds.

", "OrderableDBInstanceOption$SupportsIAMDatabaseAuthentication": "

Indicates whether a DB instance supports IAM database authentication.

", "OrderableDBInstanceOption$SupportsPerformanceInsights": "

(Not supported by Neptune)

", + "OrderableDBInstanceOption$SupportsGlobalDatabases": "

A value that indicates whether you can use Neptune global databases with a specific combination of other DB engine attributes.

", "Parameter$IsModifiable": "

Indicates whether (true) or not (false) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.

", "ResetDBClusterParameterGroupMessage$ResetAllParameters": "

A value that is set to true to reset all parameters in the DB cluster parameter group to their default values, and false otherwise. You can't use this parameter if there is a list of parameter names specified for the Parameters parameter.

", "ResetDBParameterGroupMessage$ResetAllParameters": "

Specifies whether (true) or not (false) to reset all parameters in the DB parameter group to default values.

Default: true

", @@ -199,6 +208,8 @@ "CreateDBInstanceMessage$EnablePerformanceInsights": "

(Not supported by Neptune)

", "CreateDBInstanceMessage$DeletionProtection": "

A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance.

DB instances in a DB cluster can be deleted even when deletion protection is enabled in their parent DB cluster.

", "CreateEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription, set to false to create the subscription but not active it.

", + "CreateGlobalClusterMessage$DeletionProtection": "

The deletion protection setting for the new global database. The global database can't be deleted when deletion protection is enabled.

", + "CreateGlobalClusterMessage$StorageEncrypted": "

The storage encryption setting for the new global database cluster.

", "DBCluster$CopyTagsToSnapshot": "

If set to true, tags are copied to any snapshot of the DB cluster that is created.

", "DBCluster$DeletionProtection": "

Indicates whether or not the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled.

", "DBCluster$CrossAccountClone": "

If set to true, the DB cluster can be cloned across accounts.

", @@ -207,6 +218,8 @@ "DescribeDBEngineVersionsMessage$ListSupportedCharacterSets": "

If this parameter is specified and the requested engine supports the CharacterSetName parameter for CreateDBInstance, the response includes a list of supported character sets for each engine version.

", "DescribeDBEngineVersionsMessage$ListSupportedTimezones": "

If this parameter is specified and the requested engine supports the TimeZone parameter for CreateDBInstance, the response includes a list of supported time zones for each engine version.

", "DescribeOrderableDBInstanceOptionsMessage$Vpc": "

The VPC filter value. Specify this parameter to show only the available VPC or non-VPC offerings.

", + "GlobalCluster$StorageEncrypted": "

The storage encryption setting for the global database.

", + "GlobalCluster$DeletionProtection": "

The deletion protection setting for the global database.

", "ModifyDBClusterMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", "ModifyDBClusterMessage$DeletionProtection": "

A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.

", "ModifyDBClusterMessage$CopyTagsToSnapshot": "

If set to true, tags are copied to any snapshot of the DB cluster that is created.

", @@ -218,13 +231,16 @@ "ModifyDBInstanceMessage$EnablePerformanceInsights": "

(Not supported by Neptune)

", "ModifyDBInstanceMessage$DeletionProtection": "

A value that indicates whether the DB instance has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled. See Deleting a DB Instance.

", "ModifyEventSubscriptionMessage$Enabled": "

A Boolean value; set to true to activate the subscription.

", + "ModifyGlobalClusterMessage$DeletionProtection": "

Indicates whether the global database has deletion protection enabled. The global database cannot be deleted when deletion protection is enabled.

", + "ModifyGlobalClusterMessage$AllowMajorVersionUpgrade": "

A value that indicates whether major version upgrades are allowed.

Constraints: You must allow major version upgrades if you specify a value for the EngineVersion parameter that is a different major version than the DB cluster's current version.

If you upgrade the major version of a global database, the cluster and DB instance parameter groups are set to the default parameter groups for the new version, so you will need to apply any custom parameter groups after completing the upgrade.

", "PendingModifiedValues$MultiAZ": "

Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

", "RebootDBInstanceMessage$ForceFailover": "

When true, the reboot is conducted through a MultiAZ failover.

Constraint: You can't specify true if the instance is not configured for MultiAZ.

", "RestoreDBClusterFromSnapshotMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", "RestoreDBClusterFromSnapshotMessage$DeletionProtection": "

A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.

", "RestoreDBClusterFromSnapshotMessage$CopyTagsToSnapshot": "

If set to true, tags are copied to any snapshot of the restored DB cluster that is created.

", "RestoreDBClusterToPointInTimeMessage$EnableIAMDatabaseAuthentication": "

True to enable mapping of Amazon Identity and Access Management (IAM) accounts to database accounts, and otherwise false.

Default: false

", - "RestoreDBClusterToPointInTimeMessage$DeletionProtection": "

A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.

" + "RestoreDBClusterToPointInTimeMessage$DeletionProtection": "

A value that indicates whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection is disabled.

", + "UpgradeTarget$SupportsGlobalDatabases": "

A value that indicates whether you can use Neptune global databases with the target engine version.

" } }, "CertificateNotFoundFault": { @@ -356,6 +372,16 @@ "refs": { } }, + "CreateGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "CreateGlobalClusterResult": { + "base": null, + "refs": { + } + }, "DBCluster": { "base": "

Contains the details of an Amazon Neptune DB cluster.

This data type is used as a response element in the DescribeDBClusters action.

", "refs": { @@ -828,6 +854,16 @@ "refs": { } }, + "DeleteGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "DeleteGlobalClusterResult": { + "base": null, + "refs": { + } + }, "DescribeDBClusterEndpointsMessage": { "base": null, "refs": { @@ -923,6 +959,11 @@ "refs": { } }, + "DescribeGlobalClustersMessage": { + "base": null, + "refs": { + } + }, "DescribeOrderableDBInstanceOptionsMessage": { "base": null, "refs": { @@ -1081,6 +1122,16 @@ "refs": { } }, + "FailoverGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "FailoverGlobalClusterResult": { + "base": null, + "refs": { + } + }, "Filter": { "base": "

This type is not currently supported.

", "refs": { @@ -1116,6 +1167,69 @@ "Filter$Values": "

This parameter is not currently supported.

" } }, + "GlobalCluster": { + "base": "

Contains the details of an Amazon Neptune global database.

This data type is used as a response element for the CreateGlobalCluster, DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, and RemoveFromGlobalCluster actions.

", + "refs": { + "CreateGlobalClusterResult$GlobalCluster": null, + "DeleteGlobalClusterResult$GlobalCluster": null, + "FailoverGlobalClusterResult$GlobalCluster": null, + "GlobalClusterList$member": null, + "ModifyGlobalClusterResult$GlobalCluster": null, + "RemoveFromGlobalClusterResult$GlobalCluster": null + } + }, + "GlobalClusterAlreadyExistsFault": { + "base": "

The GlobalClusterIdentifier already exists. Choose a new global database identifier (unique name) to create a new global database cluster.

", + "refs": { + } + }, + "GlobalClusterIdentifier": { + "base": null, + "refs": { + "CreateDBClusterMessage$GlobalClusterIdentifier": "

The ID of the Neptune global database to which this new DB cluster should be added.

", + "CreateGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier of the new global database cluster.

", + "DeleteGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier of the global database cluster being deleted.

", + "DescribeGlobalClustersMessage$GlobalClusterIdentifier": "

The user-supplied DB cluster identifier. If this parameter is specified, only information about the specified DB cluster is returned. This parameter is not case-sensitive.

Constraints: If supplied, must match an existing DB cluster identifier.

", + "FailoverGlobalClusterMessage$GlobalClusterIdentifier": "

Identifier of the Neptune global database that should be failed over. The identifier is the unique key assigned by the user when the Neptune global database was created. In other words, it's the name of the global database that you want to fail over.

Constraints: Must match the identifier of an existing Neptune global database.

", + "GlobalCluster$GlobalClusterIdentifier": "

Contains a user-supplied global database cluster identifier. This identifier is the unique key that identifies a global database.

", + "ModifyGlobalClusterMessage$GlobalClusterIdentifier": "

The DB cluster identifier for the global cluster being modified. This parameter is not case-sensitive.

Constraints: Must match the identifier of an existing global database cluster.

", + "ModifyGlobalClusterMessage$NewGlobalClusterIdentifier": "

A new cluster identifier to assign to the global database. This value is stored as a lowercase string.

Constraints:

Example: my-cluster2

", + "RemoveFromGlobalClusterMessage$GlobalClusterIdentifier": "

The identifier of the Neptune global database from which to detach the specified Neptune DB cluster.

" + } + }, + "GlobalClusterList": { + "base": null, + "refs": { + "GlobalClustersMessage$GlobalClusters": "

The list of global clusters and instances returned by this request.

" + } + }, + "GlobalClusterMember": { + "base": "

A data structure with information about any primary and secondary clusters associated with an Neptune global database.

", + "refs": { + "GlobalClusterMemberList$member": null + } + }, + "GlobalClusterMemberList": { + "base": null, + "refs": { + "GlobalCluster$GlobalClusterMembers": "

A list of cluster ARNs and instance ARNs for all the DB clusters that are part of the global database.

" + } + }, + "GlobalClusterNotFoundFault": { + "base": "

The GlobalClusterIdentifier doesn't refer to an existing global database cluster.

", + "refs": { + } + }, + "GlobalClusterQuotaExceededFault": { + "base": "

The number of global database clusters for this account is already at the maximum allowed.

", + "refs": { + } + }, + "GlobalClustersMessage": { + "base": null, + "refs": { + } + }, "InstanceQuotaExceededFault": { "base": "

Request would result in user exceeding the allowed number of DB instances.

", "refs": { @@ -1183,6 +1297,7 @@ "DescribeEventSubscriptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribeEventsMessage$Duration": "

The number of minutes to retrieve events for.

Default: 60

", "DescribeEventsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", + "DescribeGlobalClustersMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination marker token is included in the response that you can use to retrieve the remaining results.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribeOrderableDBInstanceOptionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "DescribePendingMaintenanceActionsMessage$MaxRecords": "

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: Minimum 20, maximum 100.

", "ModifyDBClusterMessage$BackupRetentionPeriod": "

The number of days for which automated backups are retained. You must specify a minimum value of 1.

Default: 1

Constraints:

", @@ -1256,6 +1371,11 @@ "refs": { } }, + "InvalidGlobalClusterStateFault": { + "base": "

The global cluster is in an invalid state and can't perform the requested operation.

", + "refs": { + } + }, "InvalidRestoreFault": { "base": "

Cannot restore from vpc backup to non-vpc DB instance.

", "refs": { @@ -1309,7 +1429,7 @@ } }, "ModifyDBClusterEndpointOutput": { - "base": "

This data type represents the information you need to connect to an Amazon Aurora DB cluster. This data type is used as a response element in the following actions:

For the data structure that represents Amazon RDS DB instance endpoints, see Endpoint.

", + "base": "

This data type represents the information you need to connect to an Amazon Neptune DB cluster. This data type is used as a response element in the following actions:

For the data structure that represents Amazon RDS DB instance endpoints, see Endpoint.

", "refs": { } }, @@ -1373,6 +1493,16 @@ "refs": { } }, + "ModifyGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "ModifyGlobalClusterResult": { + "base": null, + "refs": { + } + }, "OptionGroupMembership": { "base": "

Not supported by Neptune.

", "refs": { @@ -1506,6 +1636,12 @@ "DBCluster$ReadReplicaIdentifiers": "

Contains one or more identifiers of the Read Replicas associated with this DB cluster.

" } }, + "ReadersArnList": { + "base": null, + "refs": { + "GlobalClusterMember$Readers": "

The Amazon Resource Name (ARN) for each read-only secondary cluster associated with the Neptune global database.

" + } + }, "RebootDBInstanceMessage": { "base": null, "refs": { @@ -1516,6 +1652,16 @@ "refs": { } }, + "RemoveFromGlobalClusterMessage": { + "base": null, + "refs": { + } + }, + "RemoveFromGlobalClusterResult": { + "base": null, + "refs": { + } + }, "RemoveRoleFromDBClusterMessage": { "base": null, "refs": { @@ -1743,6 +1889,9 @@ "CreateEventSubscriptionMessage$SubscriptionName": "

The name of the subscription.

Constraints: The name must be less than 255 characters.

", "CreateEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", "CreateEventSubscriptionMessage$SourceType": "

The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-cluster | db-parameter-group | db-security-group | db-snapshot | db-cluster-snapshot

", + "CreateGlobalClusterMessage$SourceDBClusterIdentifier": "

(Optional) The Amazon Resource Name (ARN) of an existing Neptune DB cluster to use as the primary cluster of the new global database.

", + "CreateGlobalClusterMessage$Engine": "

The name of the database engine to be used in the global database.

Valid values: neptune

", + "CreateGlobalClusterMessage$EngineVersion": "

The Neptune engine version to be used by the global database.

Valid values: 1.2.0.0 or above.

", "DBCluster$CharacterSetName": "

Not supported by Neptune.

", "DBCluster$DatabaseName": "

Contains the name of the initial database of this DB cluster that was provided at create time, if one was specified when the DB cluster was created. This same name is returned for the life of the DB cluster.

", "DBCluster$DBClusterIdentifier": "

Contains a user-supplied DB cluster identifier. This identifier is the unique key that identifies a DB cluster.

", @@ -1910,6 +2059,7 @@ "DescribeEventSubscriptionsMessage$Marker": "

An optional pagination token provided by a previous DescribeOrderableDBInstanceOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "DescribeEventsMessage$SourceIdentifier": "

The identifier of the event source for which events are returned. If not specified, then all sources are included in the response.

Constraints:

", "DescribeEventsMessage$Marker": "

An optional pagination token provided by a previous DescribeEvents request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

", + "DescribeGlobalClustersMessage$Marker": "

(Optional) A pagination token returned by a previous call to DescribeGlobalClusters. If this parameter is specified, the response will only include records beyond the marker, up to the number specified by MaxRecords.

", "DescribeOrderableDBInstanceOptionsMessage$Engine": "

The name of the engine to retrieve DB instance options for.

", "DescribeOrderableDBInstanceOptionsMessage$EngineVersion": "

The engine version filter value. Specify this parameter to show only the available offerings matching the specified engine version.

", "DescribeOrderableDBInstanceOptionsMessage$DBInstanceClass": "

The DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.

", @@ -1942,8 +2092,16 @@ "EventsMessage$Marker": "

An optional pagination token provided by a previous Events request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords .

", "FailoverDBClusterMessage$DBClusterIdentifier": "

A DB cluster identifier to force a failover for. This parameter is not case-sensitive.

Constraints:

", "FailoverDBClusterMessage$TargetDBInstanceIdentifier": "

The name of the instance to promote to the primary instance.

You must specify the instance identifier for an Read Replica in the DB cluster. For example, mydbcluster-replica1.

", + "FailoverGlobalClusterMessage$TargetDbClusterIdentifier": "

The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you want to promote to primary for the global database.

", "Filter$Name": "

This parameter is not currently supported.

", "FilterValueList$member": null, + "GlobalCluster$GlobalClusterResourceId": "

An immutable identifier for the global database that is unique within in all regions. This identifier is found in CloudTrail log entries whenever the KMS key for the DB cluster is accessed.

", + "GlobalCluster$GlobalClusterArn": "

The Amazon Resource Name (ARN) for the global database.

", + "GlobalCluster$Status": "

Specifies the current state of this global database.

", + "GlobalCluster$Engine": "

The Neptune database engine used by the global database (\"neptune\").

", + "GlobalCluster$EngineVersion": "

The Neptune engine version used by the global database.

", + "GlobalClusterMember$DBClusterArn": "

The Amazon Resource Name (ARN) for each Neptune cluster.

", + "GlobalClustersMessage$Marker": "

A pagination token. If this parameter is returned in the response, more records are available, which can be retrieved by one or more additional calls to DescribeGlobalClusters.

", "KeyList$member": null, "ListTagsForResourceMessage$ResourceName": "

The Amazon Neptune resource with tags to be listed. This value is an Amazon Resource Name (ARN). For information about creating an ARN, see Constructing an Amazon Resource Name (ARN).

", "LogTypeList$member": null, @@ -1994,6 +2152,7 @@ "ModifyEventSubscriptionMessage$SubscriptionName": "

The name of the event notification subscription.

", "ModifyEventSubscriptionMessage$SnsTopicArn": "

The Amazon Resource Name (ARN) of the SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.

", "ModifyEventSubscriptionMessage$SourceType": "

The type of source that is generating the events. For example, if you want to be notified of events generated by a DB instance, you would set this parameter to db-instance. if this value is not specified, all events are returned.

Valid values: db-instance | db-parameter-group | db-security-group | db-snapshot

", + "ModifyGlobalClusterMessage$EngineVersion": "

The version number of the database engine to which you want to upgrade. Changing this parameter will result in an outage. The change is applied during the next maintenance window unless ApplyImmediately is enabled.

To list all of the available Neptune engine versions, use the following command:

", "OptionGroupMembership$OptionGroupName": "

Not supported by Neptune.

", "OptionGroupMembership$Status": "

Not supported by Neptune.

", "OrderableDBInstanceOption$Engine": "

The engine type of a DB instance.

", @@ -2026,7 +2185,9 @@ "ReadReplicaDBClusterIdentifierList$member": null, "ReadReplicaDBInstanceIdentifierList$member": null, "ReadReplicaIdentifierList$member": null, + "ReadersArnList$member": null, "RebootDBInstanceMessage$DBInstanceIdentifier": "

The DB instance identifier. This parameter is stored as a lowercase string.

Constraints:

", + "RemoveFromGlobalClusterMessage$DbClusterIdentifier": "

The Amazon Resource Name (ARN) identifying the cluster to be detached from the Neptune global database cluster.

", "RemoveRoleFromDBClusterMessage$DBClusterIdentifier": "

The name of the DB cluster to disassociate the IAM role from.

", "RemoveRoleFromDBClusterMessage$RoleArn": "

The Amazon Resource Name (ARN) of the IAM role to disassociate from the DB cluster, for example arn:aws:iam::123456789012:role/NeptuneAccessRole.

", "RemoveRoleFromDBClusterMessage$FeatureName": "

The name of the feature for the DB cluster that the IAM role is to be disassociated from. For the list of supported feature names, see DescribeDBEngineVersions.

", diff --git a/models/apis/redshift-serverless/2021-04-21/api-2.json b/models/apis/redshift-serverless/2021-04-21/api-2.json new file mode 100644 index 00000000000..c9f01ce58b0 --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/api-2.json @@ -0,0 +1,1687 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2021-04-21", + "endpointPrefix":"redshift-serverless", + "jsonVersion":"1.1", + "protocol":"json", + "serviceFullName":"Redshift Serverless", + "serviceId":"Redshift Serverless", + "signatureVersion":"v4", + "signingName":"redshift-serverless", + "targetPrefix":"redshift-serverless", + "uid":"redshift-serverless-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/redshift-serverless/2021-04-21/docs-2.json b/models/apis/redshift-serverless/2021-04-21/docs-2.json new file mode 100644 index 00000000000..35dc9796f60 --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/docs-2.json @@ -0,0 +1,1075 @@ +{ + "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 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/redshift-serverless/2021-04-21/examples-1.json b/models/apis/redshift-serverless/2021-04-21/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/redshift-serverless/2021-04-21/paginators-1.json b/models/apis/redshift-serverless/2021-04-21/paginators-1.json new file mode 100644 index 00000000000..cf5163d4501 --- /dev/null +++ b/models/apis/redshift-serverless/2021-04-21/paginators-1.json @@ -0,0 +1,40 @@ +{ + "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/models/apis/redshift/2012-12-01/api-2.json b/models/apis/redshift/2012-12-01/api-2.json index 7cdeecd6d7a..48381edcb78 100644 --- a/models/apis/redshift/2012-12-01/api-2.json +++ b/models/apis/redshift/2012-12-01/api-2.json @@ -1424,6 +1424,22 @@ {"shape":"UnsupportedOperationFault"} ] }, + "GetClusterCredentialsWithIAM":{ + "name":"GetClusterCredentialsWithIAM", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetClusterCredentialsWithIAMMessage"}, + "output":{ + "shape":"ClusterExtendedCredentials", + "resultWrapper":"GetClusterCredentialsWithIAMResult" + }, + "errors":[ + {"shape":"ClusterNotFoundFault"}, + {"shape":"UnsupportedOperationFault"} + ] + }, "GetReservedNodeExchangeConfigurationOptions":{ "name":"GetReservedNodeExchangeConfigurationOptions", "http":{ @@ -2540,6 +2556,15 @@ "ClusterDbRevisions":{"shape":"ClusterDbRevisionsList"} } }, + "ClusterExtendedCredentials":{ + "type":"structure", + "members":{ + "DbUser":{"shape":"String"}, + "DbPassword":{"shape":"SensitiveString"}, + "Expiration":{"shape":"TStamp"}, + "NextRefreshTime":{"shape":"TStamp"} + } + }, "ClusterIamRole":{ "type":"structure", "members":{ @@ -4281,6 +4306,15 @@ "DbGroups":{"shape":"DbGroupList"} } }, + "GetClusterCredentialsWithIAMMessage":{ + "type":"structure", + "required":["ClusterIdentifier"], + "members":{ + "DbName":{"shape":"String"}, + "ClusterIdentifier":{"shape":"String"}, + "DurationSeconds":{"shape":"IntegerOptional"} + } + }, "GetReservedNodeExchangeConfigurationOptionsInputMessage":{ "type":"structure", "required":["ActionType"], diff --git a/models/apis/redshift/2012-12-01/docs-2.json b/models/apis/redshift/2012-12-01/docs-2.json index a0c8d0e67f4..b7e9c5e9bba 100644 --- a/models/apis/redshift/2012-12-01/docs-2.json +++ b/models/apis/redshift/2012-12-01/docs-2.json @@ -88,6 +88,7 @@ "EnableLogging": "

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

", "EnableSnapshotCopy": "

Enables the automatic copy of snapshots from one region to another region for a specified cluster.

", "GetClusterCredentials": "

Returns a database user name and temporary password with temporary authorization to log on to an Amazon Redshift database. The action returns the database user name prefixed with IAM: if AutoCreate is False or IAMA: if AutoCreate is True. You can optionally specify one or more database user groups that the user will join at log on. 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). For more information, see Using IAM Authentication to Generate Database User Credentials in the Amazon Redshift Cluster Management Guide.

The Identity and Access Management (IAM) user or role that runs GetClusterCredentials must have an IAM policy attached that allows access to all necessary actions and resources. For more information about permissions, see Resource Policies for GetClusterCredentials in the Amazon Redshift Cluster Management Guide.

If the DbGroups parameter is specified, the IAM policy must allow the redshift:JoinGroup action with access to the listed dbgroups.

In addition, if the AutoCreate parameter is set to True, then the policy must include the redshift:CreateClusterUser permission.

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

", + "GetClusterCredentialsWithIAM": "

Returns a database user name and temporary password with temporary authorization to log in to an Amazon Redshift database. The database user is mapped 1:1 to the source Identity and Access Management (IAM) identity. For more information about IAM identities, see IAM Identities (users, user groups, and roles) in the Amazon Web Services Identity and Access Management User Guide.

The Identity and Access Management (IAM) identity that runs this operation must have an IAM policy attached that allows access to all necessary actions and resources. For more information about permissions, see Using identity-based policies (IAM policies) in the Amazon Redshift Cluster Management Guide.

", "GetReservedNodeExchangeConfigurationOptions": "

Gets the configuration options for the reserved-node exchange. These options include information about the source reserved node and target reserved node offering. Details include the node type, the price, the node count, and the offering type.

", "GetReservedNodeExchangeOfferings": "

Returns an array of DC2 ReservedNodeOfferings that matches the payment type, term, and usage price of the given DC1 reserved node.

", "ModifyAquaConfiguration": "

Modifies whether a cluster can use AQUA (Advanced Query Accelerator).

", @@ -499,6 +500,11 @@ "refs": { } }, + "ClusterExtendedCredentials": { + "base": null, + "refs": { + } + }, "ClusterIamRole": { "base": "

An Identity and Access Management (IAM) role that can be used by the associated Amazon Redshift cluster to access other Amazon Web Services services.

", "refs": { @@ -1538,6 +1544,11 @@ "refs": { } }, + "GetClusterCredentialsWithIAMMessage": { + "base": null, + "refs": { + } + }, "GetReservedNodeExchangeConfigurationOptionsInputMessage": { "base": null, "refs": { @@ -1757,6 +1768,7 @@ "EnableSnapshotCopyMessage$RetentionPeriod": "

The number of days to retain automated snapshots in the destination region after they are copied from the source region.

Default: 7.

Constraints: Must be at least 1 and no more than 35.

", "EnableSnapshotCopyMessage$ManualSnapshotRetentionPeriod": "

The number of days to retain newly copied snapshots in the destination Amazon Web Services Region after they are copied from the source Amazon Web Services Region. If the value is -1, the manual snapshot is retained indefinitely.

The value must be either -1 or an integer between 1 and 3,653.

", "GetClusterCredentialsMessage$DurationSeconds": "

The number of seconds until the returned temporary password expires.

Constraint: minimum 900, maximum 3600.

Default: 900

", + "GetClusterCredentialsWithIAMMessage$DurationSeconds": "

The number of seconds until the returned temporary password expires.

Range: 900-3600. Default: 900.

", "GetReservedNodeExchangeConfigurationOptionsInputMessage$MaxRecords": "

The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a Marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

", "GetReservedNodeExchangeOfferingsInputMessage$MaxRecords": "

An integer setting the maximum number of ReservedNodeOfferings to retrieve.

", "ModifyClusterMaintenanceMessage$DeferMaintenanceDuration": "

An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 45 days or less.

", @@ -2736,7 +2748,8 @@ "SensitiveString": { "base": null, "refs": { - "ClusterCredentials$DbPassword": "

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

" + "ClusterCredentials$DbPassword": "

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

", + "ClusterExtendedCredentials$DbPassword": "

A temporary password that you provide when you connect to a database.

" } }, "Snapshot": { @@ -2955,6 +2968,7 @@ "ClusterDbRevision$ClusterIdentifier": "

The unique identifier of the cluster.

", "ClusterDbRevision$CurrentDatabaseRevision": "

A string representing the current cluster version.

", "ClusterDbRevisionsMessage$Marker": "

A string representing the starting point for the next set of revisions. If a value is returned in a response, you can retrieve the next set of revisions by providing the value in the marker parameter and retrying the command. If the marker field is empty, all revisions have already been returned.

", + "ClusterExtendedCredentials$DbUser": "

A database user name that you provide when you connect to a database. The database user is mapped 1:1 to the source IAM identity.

", "ClusterIamRole$IamRoleArn": "

The Amazon Resource Name (ARN) of the IAM role, for example, arn:aws:iam::123456789012:role/RedshiftCopyUnload.

", "ClusterIamRole$ApplyStatus": "

A value that describes the status of the IAM role's association with an Amazon Redshift cluster.

The following are possible statuses and descriptions.

", "ClusterNode$NodeRole": "

Whether the node is a leader node or a compute node.

", @@ -3000,7 +3014,7 @@ "CreateClusterMessage$ClusterType": "

The type of the cluster. When cluster type is specified as

Valid Values: multi-node | single-node

Default: multi-node

", "CreateClusterMessage$NodeType": "

The node type to be provisioned for the cluster. For information about node types, go to Working with Clusters in the Amazon Redshift Cluster Management Guide.

Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large | dc2.8xlarge | ra3.xlplus | ra3.4xlarge | ra3.16xlarge

", "CreateClusterMessage$MasterUsername": "

The user name associated with the admin user account for the cluster that is being created.

Constraints:

", - "CreateClusterMessage$MasterUserPassword": "

The password associated with the admin user account for the cluster that is being created.

Constraints:

", + "CreateClusterMessage$MasterUserPassword": "

The password associated with the admin user account for the cluster that is being created.

Constraints:

", "CreateClusterMessage$ClusterSubnetGroupName": "

The name of a cluster subnet group to be associated with this cluster.

If this parameter is not provided the resulting cluster will be deployed outside virtual private cloud (VPC).

", "CreateClusterMessage$AvailabilityZone": "

The EC2 Availability Zone (AZ) in which you want Amazon Redshift to provision the cluster. For example, if you have several EC2 instances running in a specific Availability Zone, then you might want the cluster to be provisioned in the same zone in order to decrease network latency.

Default: A random, system-chosen Availability Zone in the region that is specified by the endpoint.

Example: us-east-2d

Constraint: The specified Availability Zone must be in the same region as the current endpoint.

", "CreateClusterMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which automated cluster maintenance can occur.

Format: ddd:hh24:mi-ddd:hh24:mi

Default: A 30-minute window selected at random from an 8-hour block of time per region, occurring on a random day of the week. For more information about the time blocks for each region, see Maintenance Windows in Amazon Redshift Cluster Management Guide.

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Minimum 30-minute window.

", @@ -3210,7 +3224,9 @@ "EventsMessage$Marker": "

A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request.

", "GetClusterCredentialsMessage$DbUser": "

The name of a database user. If a user name matching DbUser exists in the database, the temporary user credentials have the same permissions as the existing user. If DbUser doesn't exist in the database and Autocreate is True, a new user is created using the value for DbUser with PUBLIC permissions. If a database user matching the value for DbUser doesn't exist and Autocreate is False, then the command succeeds but the connection attempt will fail because the user doesn't exist in the database.

For more information, see CREATE USER in the Amazon Redshift Database Developer Guide.

Constraints:

", "GetClusterCredentialsMessage$DbName": "

The name of a database that DbUser is authorized to log on to. If DbName is not specified, DbUser can log on to any existing database.

Constraints:

", - "GetClusterCredentialsMessage$ClusterIdentifier": "

The unique identifier of the cluster that contains the database for which your are requesting credentials. This parameter is case sensitive.

", + "GetClusterCredentialsMessage$ClusterIdentifier": "

The unique identifier of the cluster that contains the database for which you are requesting credentials. This parameter is case sensitive.

", + "GetClusterCredentialsWithIAMMessage$DbName": "

The name of the database for which you are requesting credentials. If the database name is specified, the IAM policy must allow access to the resource dbname for the specified database name. If the database name is not specified, access to all databases is allowed.

", + "GetClusterCredentialsWithIAMMessage$ClusterIdentifier": "

The unique identifier of the cluster that contains the database for which you are requesting credentials.

", "GetReservedNodeExchangeConfigurationOptionsInputMessage$ClusterIdentifier": "

The identifier for the cluster that is the source for a reserved-node exchange.

", "GetReservedNodeExchangeConfigurationOptionsInputMessage$SnapshotIdentifier": "

The identifier for the snapshot that is the source for the reserved-node exchange.

", "GetReservedNodeExchangeConfigurationOptionsInputMessage$Marker": "

An optional pagination token provided by a previous GetReservedNodeExchangeConfigurationOptions request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by the MaxRecords parameter. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.

", @@ -3253,7 +3269,7 @@ "ModifyClusterMessage$ClusterIdentifier": "

The unique identifier of the cluster to be modified.

Example: examplecluster

", "ModifyClusterMessage$ClusterType": "

The new cluster type.

When you submit your cluster resize request, your existing cluster goes into a read-only mode. After Amazon Redshift provisions a new cluster based on your resize requirements, there will be outage for a period while the old cluster is deleted and your connection is switched to the new cluster. You can use DescribeResize to track the progress of the resize request.

Valid Values: multi-node | single-node

", "ModifyClusterMessage$NodeType": "

The new node type of the cluster. If you specify a new node type, you must also specify the number of nodes parameter.

For more information about resizing clusters, go to Resizing Clusters in Amazon Redshift in the Amazon Redshift Cluster Management Guide.

Valid Values: ds2.xlarge | ds2.8xlarge | dc1.large | dc1.8xlarge | dc2.large | dc2.8xlarge | ra3.xlplus | ra3.4xlarge | ra3.16xlarge

", - "ModifyClusterMessage$MasterUserPassword": "

The new password for the cluster admin user. This change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Operations never return the password, so this operation provides a way to regain access to the admin user account for a cluster if the password is lost.

Default: Uses existing setting.

Constraints:

", + "ModifyClusterMessage$MasterUserPassword": "

The new password for the cluster admin user. This change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the MasterUserPassword element exists in the PendingModifiedValues element of the operation response.

Operations never return the password, so this operation provides a way to regain access to the admin user account for a cluster if the password is lost.

Default: Uses existing setting.

Constraints:

", "ModifyClusterMessage$ClusterParameterGroupName": "

The name of the cluster parameter group to apply to this cluster. This change is applied only after the cluster is rebooted. To reboot a cluster use RebootCluster.

Default: Uses existing setting.

Constraints: The cluster parameter group must be in the same parameter group family that matches the cluster version.

", "ModifyClusterMessage$PreferredMaintenanceWindow": "

The weekly time range (in UTC) during which system maintenance can occur, if necessary. If system maintenance is necessary during the window, it may result in an outage.

This maintenance window change is made immediately. If the new maintenance window indicates the current time, there must be at least 120 minutes between the current time and end of the window in order to ensure that pending changes are applied.

Default: Uses existing setting.

Format: ddd:hh24:mi-ddd:hh24:mi, for example wed:07:30-wed:08:00.

Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun

Constraints: Must be at least 30 minutes.

", "ModifyClusterMessage$ClusterVersion": "

The new version number of the Amazon Redshift engine to upgrade to.

For major version upgrades, if a non-default cluster parameter group is currently in use, a new cluster parameter group in the cluster parameter group family for the new version must be specified. The new cluster parameter group can be the default for that cluster parameter group family. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.

Example: 1.0

", @@ -3536,6 +3552,8 @@ "Cluster$NextMaintenanceWindowStartTime": "

The date and time in UTC when system maintenance can begin.

", "ClusterCredentials$Expiration": "

The date and time the password in DbPassword expires.

", "ClusterDbRevision$DatabaseRevisionReleaseDate": "

The date on which the database revision was released.

", + "ClusterExtendedCredentials$Expiration": "

The time (UTC) when the temporary password expires. After this timestamp, a log in with the temporary password fails.

", + "ClusterExtendedCredentials$NextRefreshTime": "

Reserved for future use.

", "CreateScheduledActionMessage$StartTime": "

The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

", "CreateScheduledActionMessage$EndTime": "

The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

", "DataShareAssociation$CreatedDate": "

The creation date of the datashare that is associated.

", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 5c211e04521..0f7aa1fadec 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -7831,6 +7831,17 @@ "us-west-2" : { } } }, + "m2" : { + "endpoints" : { + "ap-southeast-2" : { }, + "ca-central-1" : { }, + "eu-central-1" : { }, + "eu-west-1" : { }, + "sa-east-1" : { }, + "us-east-1" : { }, + "us-west-2" : { } + } + }, "machinelearning" : { "endpoints" : { "eu-west-1" : { }, @@ -9777,6 +9788,21 @@ } } }, + "redshift-serverless" : { + "endpoints" : { + "ap-northeast-1" : { }, + "ap-northeast-2" : { }, + "ap-southeast-1" : { }, + "ap-southeast-2" : { }, + "eu-central-1" : { }, + "eu-north-1" : { }, + "eu-west-1" : { }, + "eu-west-2" : { }, + "us-east-1" : { }, + "us-east-2" : { }, + "us-west-2" : { } + } + }, "rekognition" : { "endpoints" : { "ap-northeast-1" : { }, diff --git a/service/databasemigrationservice/api.go b/service/databasemigrationservice/api.go index 97cc95a0092..428a3e2a22b 100644 --- a/service/databasemigrationservice/api.go +++ b/service/databasemigrationservice/api.go @@ -496,6 +496,98 @@ func (c *DatabaseMigrationService) CreateEventSubscriptionWithContext(ctx aws.Co return out, req.Send() } +const opCreateFleetAdvisorCollector = "CreateFleetAdvisorCollector" + +// CreateFleetAdvisorCollectorRequest generates a "aws/request.Request" representing the +// client's request for the CreateFleetAdvisorCollector 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 CreateFleetAdvisorCollector for more information on using the CreateFleetAdvisorCollector +// 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 CreateFleetAdvisorCollectorRequest method. +// req, resp := client.CreateFleetAdvisorCollectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateFleetAdvisorCollector +func (c *DatabaseMigrationService) CreateFleetAdvisorCollectorRequest(input *CreateFleetAdvisorCollectorInput) (req *request.Request, output *CreateFleetAdvisorCollectorOutput) { + op := &request.Operation{ + Name: opCreateFleetAdvisorCollector, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateFleetAdvisorCollectorInput{} + } + + output = &CreateFleetAdvisorCollectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateFleetAdvisorCollector API operation for AWS Database Migration Service. +// +// Creates a Fleet Advisor collector using the specified parameters. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation CreateFleetAdvisorCollector for usage and error information. +// +// Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. +// +// * S3AccessDeniedFault +// Insufficient privileges are preventing access to an Amazon S3 object. +// +// * S3ResourceNotFoundFault +// A specified Amazon S3 bucket, bucket folder, or other object can't be found. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateFleetAdvisorCollector +func (c *DatabaseMigrationService) CreateFleetAdvisorCollector(input *CreateFleetAdvisorCollectorInput) (*CreateFleetAdvisorCollectorOutput, error) { + req, out := c.CreateFleetAdvisorCollectorRequest(input) + return out, req.Send() +} + +// CreateFleetAdvisorCollectorWithContext is the same as CreateFleetAdvisorCollector with the addition of +// the ability to pass a context and additional request options. +// +// See CreateFleetAdvisorCollector 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 *DatabaseMigrationService) CreateFleetAdvisorCollectorWithContext(ctx aws.Context, input *CreateFleetAdvisorCollectorInput, opts ...request.Option) (*CreateFleetAdvisorCollectorOutput, error) { + req, out := c.CreateFleetAdvisorCollectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateReplicationInstance = "CreateReplicationInstance" // CreateReplicationInstanceRequest generates a "aws/request.Request" representing the @@ -1142,6 +1234,172 @@ func (c *DatabaseMigrationService) DeleteEventSubscriptionWithContext(ctx aws.Co return out, req.Send() } +const opDeleteFleetAdvisorCollector = "DeleteFleetAdvisorCollector" + +// DeleteFleetAdvisorCollectorRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFleetAdvisorCollector 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 DeleteFleetAdvisorCollector for more information on using the DeleteFleetAdvisorCollector +// 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 DeleteFleetAdvisorCollectorRequest method. +// req, resp := client.DeleteFleetAdvisorCollectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteFleetAdvisorCollector +func (c *DatabaseMigrationService) DeleteFleetAdvisorCollectorRequest(input *DeleteFleetAdvisorCollectorInput) (req *request.Request, output *DeleteFleetAdvisorCollectorOutput) { + op := &request.Operation{ + Name: opDeleteFleetAdvisorCollector, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFleetAdvisorCollectorInput{} + } + + output = &DeleteFleetAdvisorCollectorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteFleetAdvisorCollector API operation for AWS Database Migration Service. +// +// Deletes the specified Fleet Advisor collector. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteFleetAdvisorCollector for usage and error information. +// +// Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * CollectorNotFoundFault +// The specified collector doesn't exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteFleetAdvisorCollector +func (c *DatabaseMigrationService) DeleteFleetAdvisorCollector(input *DeleteFleetAdvisorCollectorInput) (*DeleteFleetAdvisorCollectorOutput, error) { + req, out := c.DeleteFleetAdvisorCollectorRequest(input) + return out, req.Send() +} + +// DeleteFleetAdvisorCollectorWithContext is the same as DeleteFleetAdvisorCollector with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFleetAdvisorCollector 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 *DatabaseMigrationService) DeleteFleetAdvisorCollectorWithContext(ctx aws.Context, input *DeleteFleetAdvisorCollectorInput, opts ...request.Option) (*DeleteFleetAdvisorCollectorOutput, error) { + req, out := c.DeleteFleetAdvisorCollectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteFleetAdvisorDatabases = "DeleteFleetAdvisorDatabases" + +// DeleteFleetAdvisorDatabasesRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFleetAdvisorDatabases 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 DeleteFleetAdvisorDatabases for more information on using the DeleteFleetAdvisorDatabases +// 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 DeleteFleetAdvisorDatabasesRequest method. +// req, resp := client.DeleteFleetAdvisorDatabasesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteFleetAdvisorDatabases +func (c *DatabaseMigrationService) DeleteFleetAdvisorDatabasesRequest(input *DeleteFleetAdvisorDatabasesInput) (req *request.Request, output *DeleteFleetAdvisorDatabasesOutput) { + op := &request.Operation{ + Name: opDeleteFleetAdvisorDatabases, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteFleetAdvisorDatabasesInput{} + } + + output = &DeleteFleetAdvisorDatabasesOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteFleetAdvisorDatabases API operation for AWS Database Migration Service. +// +// Deletes the specified Fleet Advisor collector databases. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation DeleteFleetAdvisorDatabases for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidOperationFault +// The action or operation requested isn't valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteFleetAdvisorDatabases +func (c *DatabaseMigrationService) DeleteFleetAdvisorDatabases(input *DeleteFleetAdvisorDatabasesInput) (*DeleteFleetAdvisorDatabasesOutput, error) { + req, out := c.DeleteFleetAdvisorDatabasesRequest(input) + return out, req.Send() +} + +// DeleteFleetAdvisorDatabasesWithContext is the same as DeleteFleetAdvisorDatabases with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteFleetAdvisorDatabases 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 *DatabaseMigrationService) DeleteFleetAdvisorDatabasesWithContext(ctx aws.Context, input *DeleteFleetAdvisorDatabasesInput, opts ...request.Option) (*DeleteFleetAdvisorDatabasesOutput, error) { + req, out := c.DeleteFleetAdvisorDatabasesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteReplicationInstance = "DeleteReplicationInstance" // DeleteReplicationInstanceRequest generates a "aws/request.Request" representing the @@ -2762,124 +3020,129 @@ func (c *DatabaseMigrationService) DescribeEventsPagesWithContext(ctx aws.Contex return p.Err() } -const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationInstances" +const opDescribeFleetAdvisorCollectors = "DescribeFleetAdvisorCollectors" -// DescribeOrderableReplicationInstancesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeOrderableReplicationInstances operation. The "output" return +// DescribeFleetAdvisorCollectorsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleetAdvisorCollectors 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 DescribeOrderableReplicationInstances for more information on using the DescribeOrderableReplicationInstances +// See DescribeFleetAdvisorCollectors for more information on using the DescribeFleetAdvisorCollectors // 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 DescribeOrderableReplicationInstancesRequest method. -// req, resp := client.DescribeOrderableReplicationInstancesRequest(params) +// // Example sending a request using the DescribeFleetAdvisorCollectorsRequest method. +// req, resp := client.DescribeFleetAdvisorCollectorsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances -func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest(input *DescribeOrderableReplicationInstancesInput) (req *request.Request, output *DescribeOrderableReplicationInstancesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorCollectors +func (c *DatabaseMigrationService) DescribeFleetAdvisorCollectorsRequest(input *DescribeFleetAdvisorCollectorsInput) (req *request.Request, output *DescribeFleetAdvisorCollectorsOutput) { op := &request.Operation{ - Name: opDescribeOrderableReplicationInstances, + Name: opDescribeFleetAdvisorCollectors, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, LimitToken: "MaxRecords", TruncationToken: "", }, } if input == nil { - input = &DescribeOrderableReplicationInstancesInput{} + input = &DescribeFleetAdvisorCollectorsInput{} } - output = &DescribeOrderableReplicationInstancesOutput{} + output = &DescribeFleetAdvisorCollectorsOutput{} req = c.newRequest(op, input, output) return } -// DescribeOrderableReplicationInstances API operation for AWS Database Migration Service. +// DescribeFleetAdvisorCollectors API operation for AWS Database Migration Service. // -// Returns information about the replication instance types that can be created -// in the specified region. +// Returns a list of the Fleet Advisor collectors in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeOrderableReplicationInstances for usage and error information. -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances -func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) { - req, out := c.DescribeOrderableReplicationInstancesRequest(input) +// API operation DescribeFleetAdvisorCollectors for usage and error information. +// +// Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorCollectors +func (c *DatabaseMigrationService) DescribeFleetAdvisorCollectors(input *DescribeFleetAdvisorCollectorsInput) (*DescribeFleetAdvisorCollectorsOutput, error) { + req, out := c.DescribeFleetAdvisorCollectorsRequest(input) return out, req.Send() } -// DescribeOrderableReplicationInstancesWithContext is the same as DescribeOrderableReplicationInstances with the addition of +// DescribeFleetAdvisorCollectorsWithContext is the same as DescribeFleetAdvisorCollectors with the addition of // the ability to pass a context and additional request options. // -// See DescribeOrderableReplicationInstances for details on how to use this API operation. +// See DescribeFleetAdvisorCollectors 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 *DatabaseMigrationService) DescribeOrderableReplicationInstancesWithContext(ctx aws.Context, input *DescribeOrderableReplicationInstancesInput, opts ...request.Option) (*DescribeOrderableReplicationInstancesOutput, error) { - req, out := c.DescribeOrderableReplicationInstancesRequest(input) +func (c *DatabaseMigrationService) DescribeFleetAdvisorCollectorsWithContext(ctx aws.Context, input *DescribeFleetAdvisorCollectorsInput, opts ...request.Option) (*DescribeFleetAdvisorCollectorsOutput, error) { + req, out := c.DescribeFleetAdvisorCollectorsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeOrderableReplicationInstancesPages iterates over the pages of a DescribeOrderableReplicationInstances operation, +// DescribeFleetAdvisorCollectorsPages iterates over the pages of a DescribeFleetAdvisorCollectors operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeOrderableReplicationInstances method for more information on how to use this operation. +// See DescribeFleetAdvisorCollectors 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 DescribeOrderableReplicationInstances operation. +// // Example iterating over at most 3 pages of a DescribeFleetAdvisorCollectors operation. // pageNum := 0 -// err := client.DescribeOrderableReplicationInstancesPages(params, -// func(page *databasemigrationservice.DescribeOrderableReplicationInstancesOutput, lastPage bool) bool { +// err := client.DescribeFleetAdvisorCollectorsPages(params, +// func(page *databasemigrationservice.DescribeFleetAdvisorCollectorsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPages(input *DescribeOrderableReplicationInstancesInput, fn func(*DescribeOrderableReplicationInstancesOutput, bool) bool) error { - return c.DescribeOrderableReplicationInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeFleetAdvisorCollectorsPages(input *DescribeFleetAdvisorCollectorsInput, fn func(*DescribeFleetAdvisorCollectorsOutput, bool) bool) error { + return c.DescribeFleetAdvisorCollectorsPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeOrderableReplicationInstancesPagesWithContext same as DescribeOrderableReplicationInstancesPages except +// DescribeFleetAdvisorCollectorsPagesWithContext same as DescribeFleetAdvisorCollectorsPages 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 *DatabaseMigrationService) DescribeOrderableReplicationInstancesPagesWithContext(ctx aws.Context, input *DescribeOrderableReplicationInstancesInput, fn func(*DescribeOrderableReplicationInstancesOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeFleetAdvisorCollectorsPagesWithContext(ctx aws.Context, input *DescribeFleetAdvisorCollectorsInput, fn func(*DescribeFleetAdvisorCollectorsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeOrderableReplicationInstancesInput + var inCpy *DescribeFleetAdvisorCollectorsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeOrderableReplicationInstancesRequest(inCpy) + req, _ := c.DescribeFleetAdvisorCollectorsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2887,7 +3150,7 @@ func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPagesWit } for p.Next() { - if !fn(p.Page().(*DescribeOrderableReplicationInstancesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeFleetAdvisorCollectorsOutput), !p.HasNextPage()) { break } } @@ -2895,128 +3158,129 @@ func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPagesWit return p.Err() } -const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions" +const opDescribeFleetAdvisorDatabases = "DescribeFleetAdvisorDatabases" -// DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the -// client's request for the DescribePendingMaintenanceActions operation. The "output" return +// DescribeFleetAdvisorDatabasesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleetAdvisorDatabases 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 DescribePendingMaintenanceActions for more information on using the DescribePendingMaintenanceActions +// See DescribeFleetAdvisorDatabases for more information on using the DescribeFleetAdvisorDatabases // 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 DescribePendingMaintenanceActionsRequest method. -// req, resp := client.DescribePendingMaintenanceActionsRequest(params) +// // Example sending a request using the DescribeFleetAdvisorDatabasesRequest method. +// req, resp := client.DescribeFleetAdvisorDatabasesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions -func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorDatabases +func (c *DatabaseMigrationService) DescribeFleetAdvisorDatabasesRequest(input *DescribeFleetAdvisorDatabasesInput) (req *request.Request, output *DescribeFleetAdvisorDatabasesOutput) { op := &request.Operation{ - Name: opDescribePendingMaintenanceActions, + Name: opDescribeFleetAdvisorDatabases, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, LimitToken: "MaxRecords", TruncationToken: "", }, } if input == nil { - input = &DescribePendingMaintenanceActionsInput{} + input = &DescribeFleetAdvisorDatabasesInput{} } - output = &DescribePendingMaintenanceActionsOutput{} + output = &DescribeFleetAdvisorDatabasesOutput{} req = c.newRequest(op, input, output) return } -// DescribePendingMaintenanceActions API operation for AWS Database Migration Service. +// DescribeFleetAdvisorDatabases API operation for AWS Database Migration Service. // -// For internal use only +// Returns a list of Fleet Advisor databases in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribePendingMaintenanceActions for usage and error information. +// API operation DescribeFleetAdvisorDatabases for usage and error information. // // Returned Error Types: -// * ResourceNotFoundFault -// The resource could not be found. +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions -func (c *DatabaseMigrationService) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) { - req, out := c.DescribePendingMaintenanceActionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorDatabases +func (c *DatabaseMigrationService) DescribeFleetAdvisorDatabases(input *DescribeFleetAdvisorDatabasesInput) (*DescribeFleetAdvisorDatabasesOutput, error) { + req, out := c.DescribeFleetAdvisorDatabasesRequest(input) return out, req.Send() } -// DescribePendingMaintenanceActionsWithContext is the same as DescribePendingMaintenanceActions with the addition of +// DescribeFleetAdvisorDatabasesWithContext is the same as DescribeFleetAdvisorDatabases with the addition of // the ability to pass a context and additional request options. // -// See DescribePendingMaintenanceActions for details on how to use this API operation. +// See DescribeFleetAdvisorDatabases 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 *DatabaseMigrationService) DescribePendingMaintenanceActionsWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, opts ...request.Option) (*DescribePendingMaintenanceActionsOutput, error) { - req, out := c.DescribePendingMaintenanceActionsRequest(input) +func (c *DatabaseMigrationService) DescribeFleetAdvisorDatabasesWithContext(ctx aws.Context, input *DescribeFleetAdvisorDatabasesInput, opts ...request.Option) (*DescribeFleetAdvisorDatabasesOutput, error) { + req, out := c.DescribeFleetAdvisorDatabasesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribePendingMaintenanceActionsPages iterates over the pages of a DescribePendingMaintenanceActions operation, +// DescribeFleetAdvisorDatabasesPages iterates over the pages of a DescribeFleetAdvisorDatabases operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribePendingMaintenanceActions method for more information on how to use this operation. +// See DescribeFleetAdvisorDatabases 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 DescribePendingMaintenanceActions operation. +// // Example iterating over at most 3 pages of a DescribeFleetAdvisorDatabases operation. // pageNum := 0 -// err := client.DescribePendingMaintenanceActionsPages(params, -// func(page *databasemigrationservice.DescribePendingMaintenanceActionsOutput, lastPage bool) bool { +// err := client.DescribeFleetAdvisorDatabasesPages(params, +// func(page *databasemigrationservice.DescribeFleetAdvisorDatabasesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPages(input *DescribePendingMaintenanceActionsInput, fn func(*DescribePendingMaintenanceActionsOutput, bool) bool) error { - return c.DescribePendingMaintenanceActionsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeFleetAdvisorDatabasesPages(input *DescribeFleetAdvisorDatabasesInput, fn func(*DescribeFleetAdvisorDatabasesOutput, bool) bool) error { + return c.DescribeFleetAdvisorDatabasesPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribePendingMaintenanceActionsPagesWithContext same as DescribePendingMaintenanceActionsPages except +// DescribeFleetAdvisorDatabasesPagesWithContext same as DescribeFleetAdvisorDatabasesPages 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 *DatabaseMigrationService) DescribePendingMaintenanceActionsPagesWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, fn func(*DescribePendingMaintenanceActionsOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeFleetAdvisorDatabasesPagesWithContext(ctx aws.Context, input *DescribeFleetAdvisorDatabasesInput, fn func(*DescribeFleetAdvisorDatabasesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribePendingMaintenanceActionsInput + var inCpy *DescribeFleetAdvisorDatabasesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribePendingMaintenanceActionsRequest(inCpy) + req, _ := c.DescribeFleetAdvisorDatabasesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3024,7 +3288,7 @@ func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPagesWithCon } for p.Next() { - if !fn(p.Page().(*DescribePendingMaintenanceActionsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeFleetAdvisorDatabasesOutput), !p.HasNextPage()) { break } } @@ -3032,215 +3296,268 @@ func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPagesWithCon return p.Err() } -const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus" +const opDescribeFleetAdvisorLsaAnalysis = "DescribeFleetAdvisorLsaAnalysis" -// DescribeRefreshSchemasStatusRequest generates a "aws/request.Request" representing the -// client's request for the DescribeRefreshSchemasStatus operation. The "output" return +// DescribeFleetAdvisorLsaAnalysisRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleetAdvisorLsaAnalysis 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 DescribeRefreshSchemasStatus for more information on using the DescribeRefreshSchemasStatus +// See DescribeFleetAdvisorLsaAnalysis for more information on using the DescribeFleetAdvisorLsaAnalysis // 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 DescribeRefreshSchemasStatusRequest method. -// req, resp := client.DescribeRefreshSchemasStatusRequest(params) +// // Example sending a request using the DescribeFleetAdvisorLsaAnalysisRequest method. +// req, resp := client.DescribeFleetAdvisorLsaAnalysisRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus -func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *DescribeRefreshSchemasStatusInput) (req *request.Request, output *DescribeRefreshSchemasStatusOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorLsaAnalysis +func (c *DatabaseMigrationService) DescribeFleetAdvisorLsaAnalysisRequest(input *DescribeFleetAdvisorLsaAnalysisInput) (req *request.Request, output *DescribeFleetAdvisorLsaAnalysisOutput) { op := &request.Operation{ - Name: opDescribeRefreshSchemasStatus, + Name: opDescribeFleetAdvisorLsaAnalysis, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, } if input == nil { - input = &DescribeRefreshSchemasStatusInput{} + input = &DescribeFleetAdvisorLsaAnalysisInput{} } - output = &DescribeRefreshSchemasStatusOutput{} + output = &DescribeFleetAdvisorLsaAnalysisOutput{} req = c.newRequest(op, input, output) return } -// DescribeRefreshSchemasStatus API operation for AWS Database Migration Service. +// DescribeFleetAdvisorLsaAnalysis API operation for AWS Database Migration Service. // -// Returns the status of the RefreshSchemas operation. +// Provides descriptions of large-scale assessment (LSA) analyses produced by +// your Fleet Advisor collectors. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeRefreshSchemasStatus for usage and error information. +// API operation DescribeFleetAdvisorLsaAnalysis for usage and error information. // // Returned Error Types: // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault -// The resource could not be found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus -func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) { - req, out := c.DescribeRefreshSchemasStatusRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorLsaAnalysis +func (c *DatabaseMigrationService) DescribeFleetAdvisorLsaAnalysis(input *DescribeFleetAdvisorLsaAnalysisInput) (*DescribeFleetAdvisorLsaAnalysisOutput, error) { + req, out := c.DescribeFleetAdvisorLsaAnalysisRequest(input) return out, req.Send() } -// DescribeRefreshSchemasStatusWithContext is the same as DescribeRefreshSchemasStatus with the addition of +// DescribeFleetAdvisorLsaAnalysisWithContext is the same as DescribeFleetAdvisorLsaAnalysis with the addition of // the ability to pass a context and additional request options. // -// See DescribeRefreshSchemasStatus for details on how to use this API operation. +// See DescribeFleetAdvisorLsaAnalysis 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 *DatabaseMigrationService) DescribeRefreshSchemasStatusWithContext(ctx aws.Context, input *DescribeRefreshSchemasStatusInput, opts ...request.Option) (*DescribeRefreshSchemasStatusOutput, error) { - req, out := c.DescribeRefreshSchemasStatusRequest(input) +func (c *DatabaseMigrationService) DescribeFleetAdvisorLsaAnalysisWithContext(ctx aws.Context, input *DescribeFleetAdvisorLsaAnalysisInput, opts ...request.Option) (*DescribeFleetAdvisorLsaAnalysisOutput, error) { + req, out := c.DescribeFleetAdvisorLsaAnalysisRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeReplicationInstanceTaskLogs = "DescribeReplicationInstanceTaskLogs" +// DescribeFleetAdvisorLsaAnalysisPages iterates over the pages of a DescribeFleetAdvisorLsaAnalysis operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeFleetAdvisorLsaAnalysis 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 DescribeFleetAdvisorLsaAnalysis operation. +// pageNum := 0 +// err := client.DescribeFleetAdvisorLsaAnalysisPages(params, +// func(page *databasemigrationservice.DescribeFleetAdvisorLsaAnalysisOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DatabaseMigrationService) DescribeFleetAdvisorLsaAnalysisPages(input *DescribeFleetAdvisorLsaAnalysisInput, fn func(*DescribeFleetAdvisorLsaAnalysisOutput, bool) bool) error { + return c.DescribeFleetAdvisorLsaAnalysisPagesWithContext(aws.BackgroundContext(), input, fn) +} -// DescribeReplicationInstanceTaskLogsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationInstanceTaskLogs operation. The "output" return +// DescribeFleetAdvisorLsaAnalysisPagesWithContext same as DescribeFleetAdvisorLsaAnalysisPages 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 *DatabaseMigrationService) DescribeFleetAdvisorLsaAnalysisPagesWithContext(ctx aws.Context, input *DescribeFleetAdvisorLsaAnalysisInput, fn func(*DescribeFleetAdvisorLsaAnalysisOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeFleetAdvisorLsaAnalysisInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeFleetAdvisorLsaAnalysisRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeFleetAdvisorLsaAnalysisOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeFleetAdvisorSchemaObjectSummary = "DescribeFleetAdvisorSchemaObjectSummary" + +// DescribeFleetAdvisorSchemaObjectSummaryRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleetAdvisorSchemaObjectSummary 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 DescribeReplicationInstanceTaskLogs for more information on using the DescribeReplicationInstanceTaskLogs +// See DescribeFleetAdvisorSchemaObjectSummary for more information on using the DescribeFleetAdvisorSchemaObjectSummary // 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 DescribeReplicationInstanceTaskLogsRequest method. -// req, resp := client.DescribeReplicationInstanceTaskLogsRequest(params) +// // Example sending a request using the DescribeFleetAdvisorSchemaObjectSummaryRequest method. +// req, resp := client.DescribeFleetAdvisorSchemaObjectSummaryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstanceTaskLogs -func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsRequest(input *DescribeReplicationInstanceTaskLogsInput) (req *request.Request, output *DescribeReplicationInstanceTaskLogsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorSchemaObjectSummary +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemaObjectSummaryRequest(input *DescribeFleetAdvisorSchemaObjectSummaryInput) (req *request.Request, output *DescribeFleetAdvisorSchemaObjectSummaryOutput) { op := &request.Operation{ - Name: opDescribeReplicationInstanceTaskLogs, + Name: opDescribeFleetAdvisorSchemaObjectSummary, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, LimitToken: "MaxRecords", TruncationToken: "", }, } if input == nil { - input = &DescribeReplicationInstanceTaskLogsInput{} + input = &DescribeFleetAdvisorSchemaObjectSummaryInput{} } - output = &DescribeReplicationInstanceTaskLogsOutput{} + output = &DescribeFleetAdvisorSchemaObjectSummaryOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationInstanceTaskLogs API operation for AWS Database Migration Service. +// DescribeFleetAdvisorSchemaObjectSummary API operation for AWS Database Migration Service. // -// Returns information about the task logs for the specified task. +// Provides descriptions of the schemas discovered by your Fleet Advisor collectors. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationInstanceTaskLogs for usage and error information. +// API operation DescribeFleetAdvisorSchemaObjectSummary for usage and error information. // // Returned Error Types: -// * ResourceNotFoundFault -// The resource could not be found. -// // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstanceTaskLogs -func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogs(input *DescribeReplicationInstanceTaskLogsInput) (*DescribeReplicationInstanceTaskLogsOutput, error) { - req, out := c.DescribeReplicationInstanceTaskLogsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorSchemaObjectSummary +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemaObjectSummary(input *DescribeFleetAdvisorSchemaObjectSummaryInput) (*DescribeFleetAdvisorSchemaObjectSummaryOutput, error) { + req, out := c.DescribeFleetAdvisorSchemaObjectSummaryRequest(input) return out, req.Send() } -// DescribeReplicationInstanceTaskLogsWithContext is the same as DescribeReplicationInstanceTaskLogs with the addition of +// DescribeFleetAdvisorSchemaObjectSummaryWithContext is the same as DescribeFleetAdvisorSchemaObjectSummary with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationInstanceTaskLogs for details on how to use this API operation. +// See DescribeFleetAdvisorSchemaObjectSummary 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 *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsWithContext(ctx aws.Context, input *DescribeReplicationInstanceTaskLogsInput, opts ...request.Option) (*DescribeReplicationInstanceTaskLogsOutput, error) { - req, out := c.DescribeReplicationInstanceTaskLogsRequest(input) +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemaObjectSummaryWithContext(ctx aws.Context, input *DescribeFleetAdvisorSchemaObjectSummaryInput, opts ...request.Option) (*DescribeFleetAdvisorSchemaObjectSummaryOutput, error) { + req, out := c.DescribeFleetAdvisorSchemaObjectSummaryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationInstanceTaskLogsPages iterates over the pages of a DescribeReplicationInstanceTaskLogs operation, +// DescribeFleetAdvisorSchemaObjectSummaryPages iterates over the pages of a DescribeFleetAdvisorSchemaObjectSummary operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeReplicationInstanceTaskLogs method for more information on how to use this operation. +// See DescribeFleetAdvisorSchemaObjectSummary 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 DescribeReplicationInstanceTaskLogs operation. +// // Example iterating over at most 3 pages of a DescribeFleetAdvisorSchemaObjectSummary operation. // pageNum := 0 -// err := client.DescribeReplicationInstanceTaskLogsPages(params, -// func(page *databasemigrationservice.DescribeReplicationInstanceTaskLogsOutput, lastPage bool) bool { +// err := client.DescribeFleetAdvisorSchemaObjectSummaryPages(params, +// func(page *databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPages(input *DescribeReplicationInstanceTaskLogsInput, fn func(*DescribeReplicationInstanceTaskLogsOutput, bool) bool) error { - return c.DescribeReplicationInstanceTaskLogsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemaObjectSummaryPages(input *DescribeFleetAdvisorSchemaObjectSummaryInput, fn func(*DescribeFleetAdvisorSchemaObjectSummaryOutput, bool) bool) error { + return c.DescribeFleetAdvisorSchemaObjectSummaryPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeReplicationInstanceTaskLogsPagesWithContext same as DescribeReplicationInstanceTaskLogsPages except +// DescribeFleetAdvisorSchemaObjectSummaryPagesWithContext same as DescribeFleetAdvisorSchemaObjectSummaryPages 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 *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPagesWithContext(ctx aws.Context, input *DescribeReplicationInstanceTaskLogsInput, fn func(*DescribeReplicationInstanceTaskLogsOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemaObjectSummaryPagesWithContext(ctx aws.Context, input *DescribeFleetAdvisorSchemaObjectSummaryInput, fn func(*DescribeFleetAdvisorSchemaObjectSummaryOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationInstanceTaskLogsInput + var inCpy *DescribeFleetAdvisorSchemaObjectSummaryInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeReplicationInstanceTaskLogsRequest(inCpy) + req, _ := c.DescribeFleetAdvisorSchemaObjectSummaryRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3248,7 +3565,7 @@ func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPagesWithC } for p.Next() { - if !fn(p.Page().(*DescribeReplicationInstanceTaskLogsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeFleetAdvisorSchemaObjectSummaryOutput), !p.HasNextPage()) { break } } @@ -3256,129 +3573,129 @@ func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPagesWithC return p.Err() } -const opDescribeReplicationInstances = "DescribeReplicationInstances" +const opDescribeFleetAdvisorSchemas = "DescribeFleetAdvisorSchemas" -// DescribeReplicationInstancesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationInstances operation. The "output" return +// DescribeFleetAdvisorSchemasRequest generates a "aws/request.Request" representing the +// client's request for the DescribeFleetAdvisorSchemas 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 DescribeReplicationInstances for more information on using the DescribeReplicationInstances +// See DescribeFleetAdvisorSchemas for more information on using the DescribeFleetAdvisorSchemas // 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 DescribeReplicationInstancesRequest method. -// req, resp := client.DescribeReplicationInstancesRequest(params) +// // Example sending a request using the DescribeFleetAdvisorSchemasRequest method. +// req, resp := client.DescribeFleetAdvisorSchemasRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances -func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *DescribeReplicationInstancesInput) (req *request.Request, output *DescribeReplicationInstancesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorSchemas +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemasRequest(input *DescribeFleetAdvisorSchemasInput) (req *request.Request, output *DescribeFleetAdvisorSchemasOutput) { op := &request.Operation{ - Name: opDescribeReplicationInstances, + Name: opDescribeFleetAdvisorSchemas, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, LimitToken: "MaxRecords", TruncationToken: "", }, } if input == nil { - input = &DescribeReplicationInstancesInput{} + input = &DescribeFleetAdvisorSchemasInput{} } - output = &DescribeReplicationInstancesOutput{} + output = &DescribeFleetAdvisorSchemasOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationInstances API operation for AWS Database Migration Service. +// DescribeFleetAdvisorSchemas API operation for AWS Database Migration Service. // -// Returns information about replication instances for your account in the current -// region. +// Returns a list of schemas detected by Fleet Advisor Collectors in your account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationInstances for usage and error information. +// API operation DescribeFleetAdvisorSchemas for usage and error information. // // Returned Error Types: -// * ResourceNotFoundFault -// The resource could not be found. +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances -func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) { - req, out := c.DescribeReplicationInstancesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeFleetAdvisorSchemas +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemas(input *DescribeFleetAdvisorSchemasInput) (*DescribeFleetAdvisorSchemasOutput, error) { + req, out := c.DescribeFleetAdvisorSchemasRequest(input) return out, req.Send() } -// DescribeReplicationInstancesWithContext is the same as DescribeReplicationInstances with the addition of +// DescribeFleetAdvisorSchemasWithContext is the same as DescribeFleetAdvisorSchemas with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationInstances for details on how to use this API operation. +// See DescribeFleetAdvisorSchemas 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 *DatabaseMigrationService) DescribeReplicationInstancesWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.Option) (*DescribeReplicationInstancesOutput, error) { - req, out := c.DescribeReplicationInstancesRequest(input) +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemasWithContext(ctx aws.Context, input *DescribeFleetAdvisorSchemasInput, opts ...request.Option) (*DescribeFleetAdvisorSchemasOutput, error) { + req, out := c.DescribeFleetAdvisorSchemasRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationInstancesPages iterates over the pages of a DescribeReplicationInstances operation, +// DescribeFleetAdvisorSchemasPages iterates over the pages of a DescribeFleetAdvisorSchemas operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeReplicationInstances method for more information on how to use this operation. +// See DescribeFleetAdvisorSchemas 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 DescribeReplicationInstances operation. +// // Example iterating over at most 3 pages of a DescribeFleetAdvisorSchemas operation. // pageNum := 0 -// err := client.DescribeReplicationInstancesPages(params, -// func(page *databasemigrationservice.DescribeReplicationInstancesOutput, lastPage bool) bool { +// err := client.DescribeFleetAdvisorSchemasPages(params, +// func(page *databasemigrationservice.DescribeFleetAdvisorSchemasOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeReplicationInstancesPages(input *DescribeReplicationInstancesInput, fn func(*DescribeReplicationInstancesOutput, bool) bool) error { - return c.DescribeReplicationInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemasPages(input *DescribeFleetAdvisorSchemasInput, fn func(*DescribeFleetAdvisorSchemasOutput, bool) bool) error { + return c.DescribeFleetAdvisorSchemasPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeReplicationInstancesPagesWithContext same as DescribeReplicationInstancesPages except +// DescribeFleetAdvisorSchemasPagesWithContext same as DescribeFleetAdvisorSchemasPages 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 *DatabaseMigrationService) DescribeReplicationInstancesPagesWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, fn func(*DescribeReplicationInstancesOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeFleetAdvisorSchemasPagesWithContext(ctx aws.Context, input *DescribeFleetAdvisorSchemasInput, fn func(*DescribeFleetAdvisorSchemasOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationInstancesInput + var inCpy *DescribeFleetAdvisorSchemasInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeReplicationInstancesRequest(inCpy) + req, _ := c.DescribeFleetAdvisorSchemasRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3386,7 +3703,7 @@ func (c *DatabaseMigrationService) DescribeReplicationInstancesPagesWithContext( } for p.Next() { - if !fn(p.Page().(*DescribeReplicationInstancesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeFleetAdvisorSchemasOutput), !p.HasNextPage()) { break } } @@ -3394,35 +3711,35 @@ func (c *DatabaseMigrationService) DescribeReplicationInstancesPagesWithContext( return p.Err() } -const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups" +const opDescribeOrderableReplicationInstances = "DescribeOrderableReplicationInstances" -// DescribeReplicationSubnetGroupsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationSubnetGroups operation. The "output" return +// DescribeOrderableReplicationInstancesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeOrderableReplicationInstances 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 DescribeReplicationSubnetGroups for more information on using the DescribeReplicationSubnetGroups +// See DescribeOrderableReplicationInstances for more information on using the DescribeOrderableReplicationInstances // 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 DescribeReplicationSubnetGroupsRequest method. -// req, resp := client.DescribeReplicationSubnetGroupsRequest(params) +// // Example sending a request using the DescribeOrderableReplicationInstancesRequest method. +// req, resp := client.DescribeOrderableReplicationInstancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups -func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input *DescribeReplicationSubnetGroupsInput) (req *request.Request, output *DescribeReplicationSubnetGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances +func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesRequest(input *DescribeOrderableReplicationInstancesInput) (req *request.Request, output *DescribeOrderableReplicationInstancesOutput) { op := &request.Operation{ - Name: opDescribeReplicationSubnetGroups, + Name: opDescribeOrderableReplicationInstances, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3434,88 +3751,84 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input } if input == nil { - input = &DescribeReplicationSubnetGroupsInput{} + input = &DescribeOrderableReplicationInstancesInput{} } - output = &DescribeReplicationSubnetGroupsOutput{} + output = &DescribeOrderableReplicationInstancesOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationSubnetGroups API operation for AWS Database Migration Service. +// DescribeOrderableReplicationInstances API operation for AWS Database Migration Service. // -// Returns information about the replication subnet groups. +// Returns information about the replication instance types that can be created +// in the specified region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationSubnetGroups for usage and error information. -// -// Returned Error Types: -// * ResourceNotFoundFault -// The resource could not be found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups -func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) { - req, out := c.DescribeReplicationSubnetGroupsRequest(input) +// API operation DescribeOrderableReplicationInstances for usage and error information. +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeOrderableReplicationInstances +func (c *DatabaseMigrationService) DescribeOrderableReplicationInstances(input *DescribeOrderableReplicationInstancesInput) (*DescribeOrderableReplicationInstancesOutput, error) { + req, out := c.DescribeOrderableReplicationInstancesRequest(input) return out, req.Send() } -// DescribeReplicationSubnetGroupsWithContext is the same as DescribeReplicationSubnetGroups with the addition of +// DescribeOrderableReplicationInstancesWithContext is the same as DescribeOrderableReplicationInstances with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationSubnetGroups for details on how to use this API operation. +// See DescribeOrderableReplicationInstances 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 *DatabaseMigrationService) DescribeReplicationSubnetGroupsWithContext(ctx aws.Context, input *DescribeReplicationSubnetGroupsInput, opts ...request.Option) (*DescribeReplicationSubnetGroupsOutput, error) { - req, out := c.DescribeReplicationSubnetGroupsRequest(input) +func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesWithContext(ctx aws.Context, input *DescribeOrderableReplicationInstancesInput, opts ...request.Option) (*DescribeOrderableReplicationInstancesOutput, error) { + req, out := c.DescribeOrderableReplicationInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationSubnetGroupsPages iterates over the pages of a DescribeReplicationSubnetGroups operation, +// DescribeOrderableReplicationInstancesPages iterates over the pages of a DescribeOrderableReplicationInstances operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeReplicationSubnetGroups method for more information on how to use this operation. +// See DescribeOrderableReplicationInstances 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 DescribeReplicationSubnetGroups operation. +// // Example iterating over at most 3 pages of a DescribeOrderableReplicationInstances operation. // pageNum := 0 -// err := client.DescribeReplicationSubnetGroupsPages(params, -// func(page *databasemigrationservice.DescribeReplicationSubnetGroupsOutput, lastPage bool) bool { +// err := client.DescribeOrderableReplicationInstancesPages(params, +// func(page *databasemigrationservice.DescribeOrderableReplicationInstancesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPages(input *DescribeReplicationSubnetGroupsInput, fn func(*DescribeReplicationSubnetGroupsOutput, bool) bool) error { - return c.DescribeReplicationSubnetGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPages(input *DescribeOrderableReplicationInstancesInput, fn func(*DescribeOrderableReplicationInstancesOutput, bool) bool) error { + return c.DescribeOrderableReplicationInstancesPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeReplicationSubnetGroupsPagesWithContext same as DescribeReplicationSubnetGroupsPages except +// DescribeOrderableReplicationInstancesPagesWithContext same as DescribeOrderableReplicationInstancesPages 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 *DatabaseMigrationService) DescribeReplicationSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeReplicationSubnetGroupsInput, fn func(*DescribeReplicationSubnetGroupsOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeOrderableReplicationInstancesPagesWithContext(ctx aws.Context, input *DescribeOrderableReplicationInstancesInput, fn func(*DescribeOrderableReplicationInstancesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationSubnetGroupsInput + var inCpy *DescribeOrderableReplicationInstancesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeReplicationSubnetGroupsRequest(inCpy) + req, _ := c.DescribeOrderableReplicationInstancesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3523,7 +3836,7 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPagesWithConte } for p.Next() { - if !fn(p.Page().(*DescribeReplicationSubnetGroupsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeOrderableReplicationInstancesOutput), !p.HasNextPage()) { break } } @@ -3531,35 +3844,35 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPagesWithConte return p.Err() } -const opDescribeReplicationTaskAssessmentResults = "DescribeReplicationTaskAssessmentResults" +const opDescribePendingMaintenanceActions = "DescribePendingMaintenanceActions" -// DescribeReplicationTaskAssessmentResultsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationTaskAssessmentResults operation. The "output" return +// DescribePendingMaintenanceActionsRequest generates a "aws/request.Request" representing the +// client's request for the DescribePendingMaintenanceActions 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 DescribeReplicationTaskAssessmentResults for more information on using the DescribeReplicationTaskAssessmentResults +// See DescribePendingMaintenanceActions for more information on using the DescribePendingMaintenanceActions // 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 DescribeReplicationTaskAssessmentResultsRequest method. -// req, resp := client.DescribeReplicationTaskAssessmentResultsRequest(params) +// // Example sending a request using the DescribePendingMaintenanceActionsRequest method. +// req, resp := client.DescribePendingMaintenanceActionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults -func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsRequest(input *DescribeReplicationTaskAssessmentResultsInput) (req *request.Request, output *DescribeReplicationTaskAssessmentResultsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions +func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsRequest(input *DescribePendingMaintenanceActionsInput) (req *request.Request, output *DescribePendingMaintenanceActionsOutput) { op := &request.Operation{ - Name: opDescribeReplicationTaskAssessmentResults, + Name: opDescribePendingMaintenanceActions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3571,94 +3884,88 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsReque } if input == nil { - input = &DescribeReplicationTaskAssessmentResultsInput{} + input = &DescribePendingMaintenanceActionsInput{} } - output = &DescribeReplicationTaskAssessmentResultsOutput{} + output = &DescribePendingMaintenanceActionsOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationTaskAssessmentResults API operation for AWS Database Migration Service. -// -// Returns the task assessment results from the Amazon S3 bucket that DMS creates -// in your Amazon Web Services account. This action always returns the latest -// results. +// DescribePendingMaintenanceActions API operation for AWS Database Migration Service. // -// For more information about DMS task assessments, see Creating a task assessment -// report (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) -// in the Database Migration Service User Guide. +// For internal use only // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationTaskAssessmentResults for usage and error information. +// API operation DescribePendingMaintenanceActions for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults -func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResults(input *DescribeReplicationTaskAssessmentResultsInput) (*DescribeReplicationTaskAssessmentResultsOutput, error) { - req, out := c.DescribeReplicationTaskAssessmentResultsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions +func (c *DatabaseMigrationService) DescribePendingMaintenanceActions(input *DescribePendingMaintenanceActionsInput) (*DescribePendingMaintenanceActionsOutput, error) { + req, out := c.DescribePendingMaintenanceActionsRequest(input) return out, req.Send() } -// DescribeReplicationTaskAssessmentResultsWithContext is the same as DescribeReplicationTaskAssessmentResults with the addition of +// DescribePendingMaintenanceActionsWithContext is the same as DescribePendingMaintenanceActions with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationTaskAssessmentResults for details on how to use this API operation. +// See DescribePendingMaintenanceActions 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 *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentResultsInput, opts ...request.Option) (*DescribeReplicationTaskAssessmentResultsOutput, error) { - req, out := c.DescribeReplicationTaskAssessmentResultsRequest(input) +func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, opts ...request.Option) (*DescribePendingMaintenanceActionsOutput, error) { + req, out := c.DescribePendingMaintenanceActionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationTaskAssessmentResultsPages iterates over the pages of a DescribeReplicationTaskAssessmentResults operation, +// DescribePendingMaintenanceActionsPages iterates over the pages of a DescribePendingMaintenanceActions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeReplicationTaskAssessmentResults method for more information on how to use this operation. +// See DescribePendingMaintenanceActions 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 DescribeReplicationTaskAssessmentResults operation. +// // Example iterating over at most 3 pages of a DescribePendingMaintenanceActions operation. // pageNum := 0 -// err := client.DescribeReplicationTaskAssessmentResultsPages(params, -// func(page *databasemigrationservice.DescribeReplicationTaskAssessmentResultsOutput, lastPage bool) bool { +// err := client.DescribePendingMaintenanceActionsPages(params, +// func(page *databasemigrationservice.DescribePendingMaintenanceActionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPages(input *DescribeReplicationTaskAssessmentResultsInput, fn func(*DescribeReplicationTaskAssessmentResultsOutput, bool) bool) error { - return c.DescribeReplicationTaskAssessmentResultsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPages(input *DescribePendingMaintenanceActionsInput, fn func(*DescribePendingMaintenanceActionsOutput, bool) bool) error { + return c.DescribePendingMaintenanceActionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeReplicationTaskAssessmentResultsPagesWithContext same as DescribeReplicationTaskAssessmentResultsPages except +// DescribePendingMaintenanceActionsPagesWithContext same as DescribePendingMaintenanceActionsPages 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 *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentResultsInput, fn func(*DescribeReplicationTaskAssessmentResultsOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsPagesWithContext(ctx aws.Context, input *DescribePendingMaintenanceActionsInput, fn func(*DescribePendingMaintenanceActionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationTaskAssessmentResultsInput + var inCpy *DescribePendingMaintenanceActionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeReplicationTaskAssessmentResultsRequest(inCpy) + req, _ := c.DescribePendingMaintenanceActionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3666,7 +3973,7 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPages } for p.Next() { - if !fn(p.Page().(*DescribeReplicationTaskAssessmentResultsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribePendingMaintenanceActionsOutput), !p.HasNextPage()) { break } } @@ -3674,179 +3981,118 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPages return p.Err() } -const opDescribeReplicationTaskAssessmentRuns = "DescribeReplicationTaskAssessmentRuns" +const opDescribeRefreshSchemasStatus = "DescribeRefreshSchemasStatus" -// DescribeReplicationTaskAssessmentRunsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationTaskAssessmentRuns operation. The "output" return +// DescribeRefreshSchemasStatusRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRefreshSchemasStatus 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 DescribeReplicationTaskAssessmentRuns for more information on using the DescribeReplicationTaskAssessmentRuns +// See DescribeRefreshSchemasStatus for more information on using the DescribeRefreshSchemasStatus // 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 DescribeReplicationTaskAssessmentRunsRequest method. -// req, resp := client.DescribeReplicationTaskAssessmentRunsRequest(params) +// // Example sending a request using the DescribeRefreshSchemasStatusRequest method. +// req, resp := client.DescribeRefreshSchemasStatusRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentRuns -func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsRequest(input *DescribeReplicationTaskAssessmentRunsInput) (req *request.Request, output *DescribeReplicationTaskAssessmentRunsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus +func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *DescribeRefreshSchemasStatusInput) (req *request.Request, output *DescribeRefreshSchemasStatusOutput) { op := &request.Operation{ - Name: opDescribeReplicationTaskAssessmentRuns, + Name: opDescribeRefreshSchemasStatus, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"Marker"}, - LimitToken: "MaxRecords", - TruncationToken: "", - }, } if input == nil { - input = &DescribeReplicationTaskAssessmentRunsInput{} + input = &DescribeRefreshSchemasStatusInput{} } - output = &DescribeReplicationTaskAssessmentRunsOutput{} + output = &DescribeRefreshSchemasStatusOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationTaskAssessmentRuns API operation for AWS Database Migration Service. -// -// Returns a paginated list of premigration assessment runs based on filter -// settings. -// -// These filter settings can specify a combination of premigration assessment -// runs, migration tasks, replication instances, and assessment run status values. +// DescribeRefreshSchemasStatus API operation for AWS Database Migration Service. // -// This operation doesn't return information about individual assessments. For -// this information, see the DescribeReplicationTaskIndividualAssessments operation. +// Returns the status of the RefreshSchemas operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationTaskAssessmentRuns for usage and error information. +// API operation DescribeRefreshSchemasStatus for usage and error information. // // Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentRuns -func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRuns(input *DescribeReplicationTaskAssessmentRunsInput) (*DescribeReplicationTaskAssessmentRunsOutput, error) { - req, out := c.DescribeReplicationTaskAssessmentRunsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus +func (c *DatabaseMigrationService) DescribeRefreshSchemasStatus(input *DescribeRefreshSchemasStatusInput) (*DescribeRefreshSchemasStatusOutput, error) { + req, out := c.DescribeRefreshSchemasStatusRequest(input) return out, req.Send() } -// DescribeReplicationTaskAssessmentRunsWithContext is the same as DescribeReplicationTaskAssessmentRuns with the addition of +// DescribeRefreshSchemasStatusWithContext is the same as DescribeRefreshSchemasStatus with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationTaskAssessmentRuns for details on how to use this API operation. +// See DescribeRefreshSchemasStatus 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 *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentRunsInput, opts ...request.Option) (*DescribeReplicationTaskAssessmentRunsOutput, error) { - req, out := c.DescribeReplicationTaskAssessmentRunsRequest(input) +func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusWithContext(ctx aws.Context, input *DescribeRefreshSchemasStatusInput, opts ...request.Option) (*DescribeRefreshSchemasStatusOutput, error) { + req, out := c.DescribeRefreshSchemasStatusRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationTaskAssessmentRunsPages iterates over the pages of a DescribeReplicationTaskAssessmentRuns operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See DescribeReplicationTaskAssessmentRuns 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 DescribeReplicationTaskAssessmentRuns operation. -// pageNum := 0 -// err := client.DescribeReplicationTaskAssessmentRunsPages(params, -// func(page *databasemigrationservice.DescribeReplicationTaskAssessmentRunsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPages(input *DescribeReplicationTaskAssessmentRunsInput, fn func(*DescribeReplicationTaskAssessmentRunsOutput, bool) bool) error { - return c.DescribeReplicationTaskAssessmentRunsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// DescribeReplicationTaskAssessmentRunsPagesWithContext same as DescribeReplicationTaskAssessmentRunsPages 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 *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentRunsInput, fn func(*DescribeReplicationTaskAssessmentRunsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationTaskAssessmentRunsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.DescribeReplicationTaskAssessmentRunsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*DescribeReplicationTaskAssessmentRunsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opDescribeReplicationTaskIndividualAssessments = "DescribeReplicationTaskIndividualAssessments" +const opDescribeReplicationInstanceTaskLogs = "DescribeReplicationInstanceTaskLogs" -// DescribeReplicationTaskIndividualAssessmentsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationTaskIndividualAssessments operation. The "output" return +// DescribeReplicationInstanceTaskLogsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationInstanceTaskLogs 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 DescribeReplicationTaskIndividualAssessments for more information on using the DescribeReplicationTaskIndividualAssessments +// See DescribeReplicationInstanceTaskLogs for more information on using the DescribeReplicationInstanceTaskLogs // 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 DescribeReplicationTaskIndividualAssessmentsRequest method. -// req, resp := client.DescribeReplicationTaskIndividualAssessmentsRequest(params) +// // Example sending a request using the DescribeReplicationInstanceTaskLogsRequest method. +// req, resp := client.DescribeReplicationInstanceTaskLogsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskIndividualAssessments -func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsRequest(input *DescribeReplicationTaskIndividualAssessmentsInput) (req *request.Request, output *DescribeReplicationTaskIndividualAssessmentsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstanceTaskLogs +func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsRequest(input *DescribeReplicationInstanceTaskLogsInput) (req *request.Request, output *DescribeReplicationInstanceTaskLogsOutput) { op := &request.Operation{ - Name: opDescribeReplicationTaskIndividualAssessments, + Name: opDescribeReplicationInstanceTaskLogs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3858,91 +4104,92 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsR } if input == nil { - input = &DescribeReplicationTaskIndividualAssessmentsInput{} + input = &DescribeReplicationInstanceTaskLogsInput{} } - output = &DescribeReplicationTaskIndividualAssessmentsOutput{} + output = &DescribeReplicationInstanceTaskLogsOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationTaskIndividualAssessments API operation for AWS Database Migration Service. -// -// Returns a paginated list of individual assessments based on filter settings. +// DescribeReplicationInstanceTaskLogs API operation for AWS Database Migration Service. // -// These filter settings can specify a combination of premigration assessment -// runs, migration tasks, and assessment status values. +// Returns information about the task logs for the specified task. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationTaskIndividualAssessments for usage and error information. +// API operation DescribeReplicationInstanceTaskLogs for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskIndividualAssessments -func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessments(input *DescribeReplicationTaskIndividualAssessmentsInput) (*DescribeReplicationTaskIndividualAssessmentsOutput, error) { - req, out := c.DescribeReplicationTaskIndividualAssessmentsRequest(input) +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstanceTaskLogs +func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogs(input *DescribeReplicationInstanceTaskLogsInput) (*DescribeReplicationInstanceTaskLogsOutput, error) { + req, out := c.DescribeReplicationInstanceTaskLogsRequest(input) return out, req.Send() } -// DescribeReplicationTaskIndividualAssessmentsWithContext is the same as DescribeReplicationTaskIndividualAssessments with the addition of +// DescribeReplicationInstanceTaskLogsWithContext is the same as DescribeReplicationInstanceTaskLogs with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationTaskIndividualAssessments for details on how to use this API operation. +// See DescribeReplicationInstanceTaskLogs 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 *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsWithContext(ctx aws.Context, input *DescribeReplicationTaskIndividualAssessmentsInput, opts ...request.Option) (*DescribeReplicationTaskIndividualAssessmentsOutput, error) { - req, out := c.DescribeReplicationTaskIndividualAssessmentsRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsWithContext(ctx aws.Context, input *DescribeReplicationInstanceTaskLogsInput, opts ...request.Option) (*DescribeReplicationInstanceTaskLogsOutput, error) { + req, out := c.DescribeReplicationInstanceTaskLogsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationTaskIndividualAssessmentsPages iterates over the pages of a DescribeReplicationTaskIndividualAssessments operation, +// DescribeReplicationInstanceTaskLogsPages iterates over the pages of a DescribeReplicationInstanceTaskLogs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeReplicationTaskIndividualAssessments method for more information on how to use this operation. +// See DescribeReplicationInstanceTaskLogs 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 DescribeReplicationTaskIndividualAssessments operation. +// // Example iterating over at most 3 pages of a DescribeReplicationInstanceTaskLogs operation. // pageNum := 0 -// err := client.DescribeReplicationTaskIndividualAssessmentsPages(params, -// func(page *databasemigrationservice.DescribeReplicationTaskIndividualAssessmentsOutput, lastPage bool) bool { +// err := client.DescribeReplicationInstanceTaskLogsPages(params, +// func(page *databasemigrationservice.DescribeReplicationInstanceTaskLogsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPages(input *DescribeReplicationTaskIndividualAssessmentsInput, fn func(*DescribeReplicationTaskIndividualAssessmentsOutput, bool) bool) error { - return c.DescribeReplicationTaskIndividualAssessmentsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPages(input *DescribeReplicationInstanceTaskLogsInput, fn func(*DescribeReplicationInstanceTaskLogsOutput, bool) bool) error { + return c.DescribeReplicationInstanceTaskLogsPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeReplicationTaskIndividualAssessmentsPagesWithContext same as DescribeReplicationTaskIndividualAssessmentsPages except +// DescribeReplicationInstanceTaskLogsPagesWithContext same as DescribeReplicationInstanceTaskLogsPages 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 *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskIndividualAssessmentsInput, fn func(*DescribeReplicationTaskIndividualAssessmentsOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsPagesWithContext(ctx aws.Context, input *DescribeReplicationInstanceTaskLogsInput, fn func(*DescribeReplicationInstanceTaskLogsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationTaskIndividualAssessmentsInput + var inCpy *DescribeReplicationInstanceTaskLogsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeReplicationTaskIndividualAssessmentsRequest(inCpy) + req, _ := c.DescribeReplicationInstanceTaskLogsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3950,7 +4197,7 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsP } for p.Next() { - if !fn(p.Page().(*DescribeReplicationTaskIndividualAssessmentsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeReplicationInstanceTaskLogsOutput), !p.HasNextPage()) { break } } @@ -3958,35 +4205,35 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsP return p.Err() } -const opDescribeReplicationTasks = "DescribeReplicationTasks" +const opDescribeReplicationInstances = "DescribeReplicationInstances" -// DescribeReplicationTasksRequest generates a "aws/request.Request" representing the -// client's request for the DescribeReplicationTasks operation. The "output" return +// DescribeReplicationInstancesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationInstances 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 DescribeReplicationTasks for more information on using the DescribeReplicationTasks +// See DescribeReplicationInstances for more information on using the DescribeReplicationInstances // 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 DescribeReplicationTasksRequest method. -// req, resp := client.DescribeReplicationTasksRequest(params) +// // Example sending a request using the DescribeReplicationInstancesRequest method. +// req, resp := client.DescribeReplicationInstancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks -func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *DescribeReplicationTasksInput) (req *request.Request, output *DescribeReplicationTasksOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances +func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *DescribeReplicationInstancesInput) (req *request.Request, output *DescribeReplicationInstancesOutput) { op := &request.Operation{ - Name: opDescribeReplicationTasks, + Name: opDescribeReplicationInstances, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3998,17 +4245,17 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *Descri } if input == nil { - input = &DescribeReplicationTasksInput{} + input = &DescribeReplicationInstancesInput{} } - output = &DescribeReplicationTasksOutput{} + output = &DescribeReplicationInstancesOutput{} req = c.newRequest(op, input, output) return } -// DescribeReplicationTasks API operation for AWS Database Migration Service. +// DescribeReplicationInstances API operation for AWS Database Migration Service. // -// Returns information about replication tasks for your account in the current +// Returns information about replication instances for your account in the current // region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4016,71 +4263,71 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *Descri // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeReplicationTasks for usage and error information. +// API operation DescribeReplicationInstances for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks -func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) { - req, out := c.DescribeReplicationTasksRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances +func (c *DatabaseMigrationService) DescribeReplicationInstances(input *DescribeReplicationInstancesInput) (*DescribeReplicationInstancesOutput, error) { + req, out := c.DescribeReplicationInstancesRequest(input) return out, req.Send() } -// DescribeReplicationTasksWithContext is the same as DescribeReplicationTasks with the addition of +// DescribeReplicationInstancesWithContext is the same as DescribeReplicationInstances with the addition of // the ability to pass a context and additional request options. // -// See DescribeReplicationTasks for details on how to use this API operation. +// See DescribeReplicationInstances 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 *DatabaseMigrationService) DescribeReplicationTasksWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.Option) (*DescribeReplicationTasksOutput, error) { - req, out := c.DescribeReplicationTasksRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationInstancesWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, opts ...request.Option) (*DescribeReplicationInstancesOutput, error) { + req, out := c.DescribeReplicationInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeReplicationTasksPages iterates over the pages of a DescribeReplicationTasks operation, +// DescribeReplicationInstancesPages iterates over the pages of a DescribeReplicationInstances operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeReplicationTasks method for more information on how to use this operation. +// See DescribeReplicationInstances 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 DescribeReplicationTasks operation. +// // Example iterating over at most 3 pages of a DescribeReplicationInstances operation. // pageNum := 0 -// err := client.DescribeReplicationTasksPages(params, -// func(page *databasemigrationservice.DescribeReplicationTasksOutput, lastPage bool) bool { +// err := client.DescribeReplicationInstancesPages(params, +// func(page *databasemigrationservice.DescribeReplicationInstancesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeReplicationTasksPages(input *DescribeReplicationTasksInput, fn func(*DescribeReplicationTasksOutput, bool) bool) error { - return c.DescribeReplicationTasksPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeReplicationInstancesPages(input *DescribeReplicationInstancesInput, fn func(*DescribeReplicationInstancesOutput, bool) bool) error { + return c.DescribeReplicationInstancesPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeReplicationTasksPagesWithContext same as DescribeReplicationTasksPages except +// DescribeReplicationInstancesPagesWithContext same as DescribeReplicationInstancesPages 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 *DatabaseMigrationService) DescribeReplicationTasksPagesWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, fn func(*DescribeReplicationTasksOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeReplicationInstancesPagesWithContext(ctx aws.Context, input *DescribeReplicationInstancesInput, fn func(*DescribeReplicationInstancesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeReplicationTasksInput + var inCpy *DescribeReplicationInstancesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeReplicationTasksRequest(inCpy) + req, _ := c.DescribeReplicationInstancesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4088,7 +4335,7 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksPagesWithContext(ctx } for p.Next() { - if !fn(p.Page().(*DescribeReplicationTasksOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeReplicationInstancesOutput), !p.HasNextPage()) { break } } @@ -4096,35 +4343,35 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksPagesWithContext(ctx return p.Err() } -const opDescribeSchemas = "DescribeSchemas" +const opDescribeReplicationSubnetGroups = "DescribeReplicationSubnetGroups" -// DescribeSchemasRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSchemas operation. The "output" return +// DescribeReplicationSubnetGroupsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationSubnetGroups 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 DescribeSchemas for more information on using the DescribeSchemas +// See DescribeReplicationSubnetGroups for more information on using the DescribeReplicationSubnetGroups // 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 DescribeSchemasRequest method. -// req, resp := client.DescribeSchemasRequest(params) +// // Example sending a request using the DescribeReplicationSubnetGroupsRequest method. +// req, resp := client.DescribeReplicationSubnetGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas -func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemasInput) (req *request.Request, output *DescribeSchemasOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups +func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input *DescribeReplicationSubnetGroupsInput) (req *request.Request, output *DescribeReplicationSubnetGroupsOutput) { op := &request.Operation{ - Name: opDescribeSchemas, + Name: opDescribeReplicationSubnetGroups, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -4136,92 +4383,88 @@ func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemas } if input == nil { - input = &DescribeSchemasInput{} + input = &DescribeReplicationSubnetGroupsInput{} } - output = &DescribeSchemasOutput{} + output = &DescribeReplicationSubnetGroupsOutput{} req = c.newRequest(op, input, output) return } -// DescribeSchemas API operation for AWS Database Migration Service. +// DescribeReplicationSubnetGroups API operation for AWS Database Migration Service. // -// Returns information about the schema for the specified endpoint. +// Returns information about the replication subnet groups. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeSchemas for usage and error information. +// API operation DescribeReplicationSubnetGroups for usage and error information. // // Returned Error Types: -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. -// // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas -func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) { - req, out := c.DescribeSchemasRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups +func (c *DatabaseMigrationService) DescribeReplicationSubnetGroups(input *DescribeReplicationSubnetGroupsInput) (*DescribeReplicationSubnetGroupsOutput, error) { + req, out := c.DescribeReplicationSubnetGroupsRequest(input) return out, req.Send() } -// DescribeSchemasWithContext is the same as DescribeSchemas with the addition of +// DescribeReplicationSubnetGroupsWithContext is the same as DescribeReplicationSubnetGroups with the addition of // the ability to pass a context and additional request options. // -// See DescribeSchemas for details on how to use this API operation. +// See DescribeReplicationSubnetGroups 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 *DatabaseMigrationService) DescribeSchemasWithContext(ctx aws.Context, input *DescribeSchemasInput, opts ...request.Option) (*DescribeSchemasOutput, error) { - req, out := c.DescribeSchemasRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsWithContext(ctx aws.Context, input *DescribeReplicationSubnetGroupsInput, opts ...request.Option) (*DescribeReplicationSubnetGroupsOutput, error) { + req, out := c.DescribeReplicationSubnetGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeSchemasPages iterates over the pages of a DescribeSchemas operation, +// DescribeReplicationSubnetGroupsPages iterates over the pages of a DescribeReplicationSubnetGroups operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeSchemas method for more information on how to use this operation. +// See DescribeReplicationSubnetGroups 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 DescribeSchemas operation. +// // Example iterating over at most 3 pages of a DescribeReplicationSubnetGroups operation. // pageNum := 0 -// err := client.DescribeSchemasPages(params, -// func(page *databasemigrationservice.DescribeSchemasOutput, lastPage bool) bool { +// err := client.DescribeReplicationSubnetGroupsPages(params, +// func(page *databasemigrationservice.DescribeReplicationSubnetGroupsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeSchemasPages(input *DescribeSchemasInput, fn func(*DescribeSchemasOutput, bool) bool) error { - return c.DescribeSchemasPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPages(input *DescribeReplicationSubnetGroupsInput, fn func(*DescribeReplicationSubnetGroupsOutput, bool) bool) error { + return c.DescribeReplicationSubnetGroupsPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeSchemasPagesWithContext same as DescribeSchemasPages except +// DescribeReplicationSubnetGroupsPagesWithContext same as DescribeReplicationSubnetGroupsPages 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 *DatabaseMigrationService) DescribeSchemasPagesWithContext(ctx aws.Context, input *DescribeSchemasInput, fn func(*DescribeSchemasOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeReplicationSubnetGroupsInput, fn func(*DescribeReplicationSubnetGroupsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeSchemasInput + var inCpy *DescribeReplicationSubnetGroupsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeSchemasRequest(inCpy) + req, _ := c.DescribeReplicationSubnetGroupsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4229,7 +4472,7 @@ func (c *DatabaseMigrationService) DescribeSchemasPagesWithContext(ctx aws.Conte } for p.Next() { - if !fn(p.Page().(*DescribeSchemasOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeReplicationSubnetGroupsOutput), !p.HasNextPage()) { break } } @@ -4237,35 +4480,35 @@ func (c *DatabaseMigrationService) DescribeSchemasPagesWithContext(ctx aws.Conte return p.Err() } -const opDescribeTableStatistics = "DescribeTableStatistics" +const opDescribeReplicationTaskAssessmentResults = "DescribeReplicationTaskAssessmentResults" -// DescribeTableStatisticsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeTableStatistics operation. The "output" return +// DescribeReplicationTaskAssessmentResultsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationTaskAssessmentResults 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 DescribeTableStatistics for more information on using the DescribeTableStatistics +// See DescribeReplicationTaskAssessmentResults for more information on using the DescribeReplicationTaskAssessmentResults // 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 DescribeTableStatisticsRequest method. -// req, resp := client.DescribeTableStatisticsRequest(params) +// // Example sending a request using the DescribeReplicationTaskAssessmentResultsRequest method. +// req, resp := client.DescribeReplicationTaskAssessmentResultsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics -func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *DescribeTableStatisticsInput) (req *request.Request, output *DescribeTableStatisticsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsRequest(input *DescribeReplicationTaskAssessmentResultsInput) (req *request.Request, output *DescribeReplicationTaskAssessmentResultsOutput) { op := &request.Operation{ - Name: opDescribeTableStatistics, + Name: opDescribeReplicationTaskAssessmentResults, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -4277,97 +4520,94 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *Describ } if input == nil { - input = &DescribeTableStatisticsInput{} + input = &DescribeReplicationTaskAssessmentResultsInput{} } - output = &DescribeTableStatisticsOutput{} + output = &DescribeReplicationTaskAssessmentResultsOutput{} req = c.newRequest(op, input, output) return } -// DescribeTableStatistics API operation for AWS Database Migration Service. +// DescribeReplicationTaskAssessmentResults API operation for AWS Database Migration Service. // -// Returns table statistics on the database migration task, including table -// name, rows inserted, rows updated, and rows deleted. +// Returns the task assessment results from the Amazon S3 bucket that DMS creates +// in your Amazon Web Services account. This action always returns the latest +// results. // -// Note that the "last updated" column the DMS console only indicates the time -// that DMS last updated the table statistics record for a table. It does not -// indicate the time of the last update to the table. +// For more information about DMS task assessments, see Creating a task assessment +// report (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) +// in the Database Migration Service User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation DescribeTableStatistics for usage and error information. +// API operation DescribeReplicationTaskAssessmentResults for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault // The resource could not be found. // -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics -func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) { - req, out := c.DescribeTableStatisticsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResults(input *DescribeReplicationTaskAssessmentResultsInput) (*DescribeReplicationTaskAssessmentResultsOutput, error) { + req, out := c.DescribeReplicationTaskAssessmentResultsRequest(input) return out, req.Send() } -// DescribeTableStatisticsWithContext is the same as DescribeTableStatistics with the addition of +// DescribeReplicationTaskAssessmentResultsWithContext is the same as DescribeReplicationTaskAssessmentResults with the addition of // the ability to pass a context and additional request options. // -// See DescribeTableStatistics for details on how to use this API operation. +// See DescribeReplicationTaskAssessmentResults 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 *DatabaseMigrationService) DescribeTableStatisticsWithContext(ctx aws.Context, input *DescribeTableStatisticsInput, opts ...request.Option) (*DescribeTableStatisticsOutput, error) { - req, out := c.DescribeTableStatisticsRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentResultsInput, opts ...request.Option) (*DescribeReplicationTaskAssessmentResultsOutput, error) { + req, out := c.DescribeReplicationTaskAssessmentResultsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DescribeTableStatisticsPages iterates over the pages of a DescribeTableStatistics operation, +// DescribeReplicationTaskAssessmentResultsPages iterates over the pages of a DescribeReplicationTaskAssessmentResults operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See DescribeTableStatistics method for more information on how to use this operation. +// See DescribeReplicationTaskAssessmentResults 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 DescribeTableStatistics operation. +// // Example iterating over at most 3 pages of a DescribeReplicationTaskAssessmentResults operation. // pageNum := 0 -// err := client.DescribeTableStatisticsPages(params, -// func(page *databasemigrationservice.DescribeTableStatisticsOutput, lastPage bool) bool { +// err := client.DescribeReplicationTaskAssessmentResultsPages(params, +// func(page *databasemigrationservice.DescribeReplicationTaskAssessmentResultsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *DatabaseMigrationService) DescribeTableStatisticsPages(input *DescribeTableStatisticsInput, fn func(*DescribeTableStatisticsOutput, bool) bool) error { - return c.DescribeTableStatisticsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPages(input *DescribeReplicationTaskAssessmentResultsInput, fn func(*DescribeReplicationTaskAssessmentResultsOutput, bool) bool) error { + return c.DescribeReplicationTaskAssessmentResultsPagesWithContext(aws.BackgroundContext(), input, fn) } -// DescribeTableStatisticsPagesWithContext same as DescribeTableStatisticsPages except +// DescribeReplicationTaskAssessmentResultsPagesWithContext same as DescribeReplicationTaskAssessmentResultsPages 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 *DatabaseMigrationService) DescribeTableStatisticsPagesWithContext(ctx aws.Context, input *DescribeTableStatisticsInput, fn func(*DescribeTableStatisticsOutput, bool) bool, opts ...request.Option) error { +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentResultsInput, fn func(*DescribeReplicationTaskAssessmentResultsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *DescribeTableStatisticsInput + var inCpy *DescribeReplicationTaskAssessmentResultsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.DescribeTableStatisticsRequest(inCpy) + req, _ := c.DescribeReplicationTaskAssessmentResultsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4375,7 +4615,7 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsPagesWithContext(ctx a } for p.Next() { - if !fn(p.Page().(*DescribeTableStatisticsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*DescribeReplicationTaskAssessmentResultsOutput), !p.HasNextPage()) { break } } @@ -4383,728 +4623,943 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsPagesWithContext(ctx a return p.Err() } -const opImportCertificate = "ImportCertificate" +const opDescribeReplicationTaskAssessmentRuns = "DescribeReplicationTaskAssessmentRuns" -// ImportCertificateRequest generates a "aws/request.Request" representing the -// client's request for the ImportCertificate operation. The "output" return +// DescribeReplicationTaskAssessmentRunsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationTaskAssessmentRuns 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 ImportCertificate for more information on using the ImportCertificate +// See DescribeReplicationTaskAssessmentRuns for more information on using the DescribeReplicationTaskAssessmentRuns // 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 ImportCertificateRequest method. -// req, resp := client.ImportCertificateRequest(params) +// // Example sending a request using the DescribeReplicationTaskAssessmentRunsRequest method. +// req, resp := client.DescribeReplicationTaskAssessmentRunsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate -func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentRuns +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsRequest(input *DescribeReplicationTaskAssessmentRunsInput) (req *request.Request, output *DescribeReplicationTaskAssessmentRunsOutput) { op := &request.Operation{ - Name: opImportCertificate, + Name: opDescribeReplicationTaskAssessmentRuns, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, } if input == nil { - input = &ImportCertificateInput{} + input = &DescribeReplicationTaskAssessmentRunsInput{} } - output = &ImportCertificateOutput{} + output = &DescribeReplicationTaskAssessmentRunsOutput{} req = c.newRequest(op, input, output) return } -// ImportCertificate API operation for AWS Database Migration Service. +// DescribeReplicationTaskAssessmentRuns API operation for AWS Database Migration Service. // -// Uploads the specified certificate. +// Returns a paginated list of premigration assessment runs based on filter +// settings. +// +// These filter settings can specify a combination of premigration assessment +// runs, migration tasks, replication instances, and assessment run status values. +// +// This operation doesn't return information about individual assessments. For +// this information, see the DescribeReplicationTaskIndividualAssessments operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ImportCertificate for usage and error information. +// API operation DescribeReplicationTaskAssessmentRuns for usage and error information. // // Returned Error Types: -// * ResourceAlreadyExistsFault -// The resource you are attempting to create already exists. -// -// * InvalidCertificateFault -// The certificate was not valid. -// -// * ResourceQuotaExceededFault -// The quota for this resource quota has been exceeded. +// * ResourceNotFoundFault +// The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate -func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { - req, out := c.ImportCertificateRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentRuns +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRuns(input *DescribeReplicationTaskAssessmentRunsInput) (*DescribeReplicationTaskAssessmentRunsOutput, error) { + req, out := c.DescribeReplicationTaskAssessmentRunsRequest(input) return out, req.Send() } -// ImportCertificateWithContext is the same as ImportCertificate with the addition of +// DescribeReplicationTaskAssessmentRunsWithContext is the same as DescribeReplicationTaskAssessmentRuns with the addition of // the ability to pass a context and additional request options. // -// See ImportCertificate for details on how to use this API operation. +// See DescribeReplicationTaskAssessmentRuns 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 *DatabaseMigrationService) ImportCertificateWithContext(ctx aws.Context, input *ImportCertificateInput, opts ...request.Option) (*ImportCertificateOutput, error) { - req, out := c.ImportCertificateRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentRunsInput, opts ...request.Option) (*DescribeReplicationTaskAssessmentRunsOutput, error) { + req, out := c.DescribeReplicationTaskAssessmentRunsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListTagsForResource = "ListTagsForResource" +// DescribeReplicationTaskAssessmentRunsPages iterates over the pages of a DescribeReplicationTaskAssessmentRuns operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeReplicationTaskAssessmentRuns 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 DescribeReplicationTaskAssessmentRuns operation. +// pageNum := 0 +// err := client.DescribeReplicationTaskAssessmentRunsPages(params, +// func(page *databasemigrationservice.DescribeReplicationTaskAssessmentRunsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPages(input *DescribeReplicationTaskAssessmentRunsInput, fn func(*DescribeReplicationTaskAssessmentRunsOutput, bool) bool) error { + return c.DescribeReplicationTaskAssessmentRunsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// DescribeReplicationTaskAssessmentRunsPagesWithContext same as DescribeReplicationTaskAssessmentRunsPages 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 *DatabaseMigrationService) DescribeReplicationTaskAssessmentRunsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskAssessmentRunsInput, fn func(*DescribeReplicationTaskAssessmentRunsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeReplicationTaskAssessmentRunsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTaskAssessmentRunsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeReplicationTaskAssessmentRunsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeReplicationTaskIndividualAssessments = "DescribeReplicationTaskIndividualAssessments" + +// DescribeReplicationTaskIndividualAssessmentsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationTaskIndividualAssessments 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 +// See DescribeReplicationTaskIndividualAssessments for more information on using the DescribeReplicationTaskIndividualAssessments // 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) +// // Example sending a request using the DescribeReplicationTaskIndividualAssessmentsRequest method. +// req, resp := client.DescribeReplicationTaskIndividualAssessmentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource -func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskIndividualAssessments +func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsRequest(input *DescribeReplicationTaskIndividualAssessmentsInput) (req *request.Request, output *DescribeReplicationTaskIndividualAssessmentsOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opDescribeReplicationTaskIndividualAssessments, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &DescribeReplicationTaskIndividualAssessmentsInput{} } - output = &ListTagsForResourceOutput{} + output = &DescribeReplicationTaskIndividualAssessmentsOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for AWS Database Migration Service. +// DescribeReplicationTaskIndividualAssessments API operation for AWS Database Migration Service. // -// Lists all metadata tags attached to an DMS resource, including replication -// instance, endpoint, security group, and migration task. For more information, -// see Tag (https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html) -// data type description. +// Returns a paginated list of individual assessments based on filter settings. +// +// These filter settings can specify a combination of premigration assessment +// runs, migration tasks, and assessment status values. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ListTagsForResource for usage and error information. +// API operation DescribeReplicationTaskIndividualAssessments for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource -func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskIndividualAssessments +func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessments(input *DescribeReplicationTaskIndividualAssessmentsInput) (*DescribeReplicationTaskIndividualAssessmentsOutput, error) { + req, out := c.DescribeReplicationTaskIndividualAssessmentsRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// DescribeReplicationTaskIndividualAssessmentsWithContext is the same as DescribeReplicationTaskIndividualAssessments 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. +// See DescribeReplicationTaskIndividualAssessments 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 *DatabaseMigrationService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsWithContext(ctx aws.Context, input *DescribeReplicationTaskIndividualAssessmentsInput, opts ...request.Option) (*DescribeReplicationTaskIndividualAssessmentsOutput, error) { + req, out := c.DescribeReplicationTaskIndividualAssessmentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opModifyEndpoint = "ModifyEndpoint" +// DescribeReplicationTaskIndividualAssessmentsPages iterates over the pages of a DescribeReplicationTaskIndividualAssessments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeReplicationTaskIndividualAssessments 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 DescribeReplicationTaskIndividualAssessments operation. +// pageNum := 0 +// err := client.DescribeReplicationTaskIndividualAssessmentsPages(params, +// func(page *databasemigrationservice.DescribeReplicationTaskIndividualAssessmentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPages(input *DescribeReplicationTaskIndividualAssessmentsInput, fn func(*DescribeReplicationTaskIndividualAssessmentsOutput, bool) bool) error { + return c.DescribeReplicationTaskIndividualAssessmentsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ModifyEndpointRequest generates a "aws/request.Request" representing the -// client's request for the ModifyEndpoint operation. The "output" return +// DescribeReplicationTaskIndividualAssessmentsPagesWithContext same as DescribeReplicationTaskIndividualAssessmentsPages 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 *DatabaseMigrationService) DescribeReplicationTaskIndividualAssessmentsPagesWithContext(ctx aws.Context, input *DescribeReplicationTaskIndividualAssessmentsInput, fn func(*DescribeReplicationTaskIndividualAssessmentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeReplicationTaskIndividualAssessmentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTaskIndividualAssessmentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeReplicationTaskIndividualAssessmentsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeReplicationTasks = "DescribeReplicationTasks" + +// DescribeReplicationTasksRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReplicationTasks 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 ModifyEndpoint for more information on using the ModifyEndpoint +// See DescribeReplicationTasks for more information on using the DescribeReplicationTasks // 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 ModifyEndpointRequest method. -// req, resp := client.ModifyEndpointRequest(params) +// // Example sending a request using the DescribeReplicationTasksRequest method. +// req, resp := client.DescribeReplicationTasksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint -func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointInput) (req *request.Request, output *ModifyEndpointOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks +func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *DescribeReplicationTasksInput) (req *request.Request, output *DescribeReplicationTasksOutput) { op := &request.Operation{ - Name: opModifyEndpoint, + Name: opDescribeReplicationTasks, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, } if input == nil { - input = &ModifyEndpointInput{} + input = &DescribeReplicationTasksInput{} } - output = &ModifyEndpointOutput{} + output = &DescribeReplicationTasksOutput{} req = c.newRequest(op, input, output) return } -// ModifyEndpoint API operation for AWS Database Migration Service. -// -// Modifies the specified endpoint. +// DescribeReplicationTasks API operation for AWS Database Migration Service. // -// For a MySQL source or target endpoint, don't explicitly specify the database -// using the DatabaseName request parameter on the ModifyEndpoint API call. -// Specifying DatabaseName when you modify a MySQL endpoint replicates all the -// task tables to this single database. For MySQL endpoints, you specify the -// database only when you specify the schema in the table-mapping rules of the -// DMS task. +// Returns information about replication tasks for your account in the current +// region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ModifyEndpoint for usage and error information. +// API operation DescribeReplicationTasks for usage and error information. // // Returned Error Types: -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. -// // * ResourceNotFoundFault // The resource could not be found. // -// * ResourceAlreadyExistsFault -// The resource you are attempting to create already exists. -// -// * KMSKeyNotAccessibleFault -// DMS cannot access the KMS key. -// -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint -func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) { - req, out := c.ModifyEndpointRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks +func (c *DatabaseMigrationService) DescribeReplicationTasks(input *DescribeReplicationTasksInput) (*DescribeReplicationTasksOutput, error) { + req, out := c.DescribeReplicationTasksRequest(input) return out, req.Send() } -// ModifyEndpointWithContext is the same as ModifyEndpoint with the addition of +// DescribeReplicationTasksWithContext is the same as DescribeReplicationTasks with the addition of // the ability to pass a context and additional request options. // -// See ModifyEndpoint for details on how to use this API operation. +// See DescribeReplicationTasks 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 *DatabaseMigrationService) ModifyEndpointWithContext(ctx aws.Context, input *ModifyEndpointInput, opts ...request.Option) (*ModifyEndpointOutput, error) { - req, out := c.ModifyEndpointRequest(input) +func (c *DatabaseMigrationService) DescribeReplicationTasksWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, opts ...request.Option) (*DescribeReplicationTasksOutput, error) { + req, out := c.DescribeReplicationTasksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opModifyEventSubscription = "ModifyEventSubscription" - -// ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the -// client's request for the ModifyEventSubscription operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// DescribeReplicationTasksPages iterates over the pages of a DescribeReplicationTasks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// 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 DescribeReplicationTasks method for more information on how to use this operation. // -// See ModifyEventSubscription for more information on using the ModifyEventSubscription -// API call, and error handling. +// Note: This operation can generate multiple requests to a service. // -// 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 iterating over at most 3 pages of a DescribeReplicationTasks operation. +// pageNum := 0 +// err := client.DescribeReplicationTasksPages(params, +// func(page *databasemigrationservice.DescribeReplicationTasksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // +func (c *DatabaseMigrationService) DescribeReplicationTasksPages(input *DescribeReplicationTasksInput, fn func(*DescribeReplicationTasksOutput, bool) bool) error { + return c.DescribeReplicationTasksPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeReplicationTasksPagesWithContext same as DescribeReplicationTasksPages except +// it takes a Context and allows setting request options on the pages. // -// // Example sending a request using the ModifyEventSubscriptionRequest method. -// req, resp := client.ModifyEventSubscriptionRequest(params) +// 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 *DatabaseMigrationService) DescribeReplicationTasksPagesWithContext(ctx aws.Context, input *DescribeReplicationTasksInput, fn func(*DescribeReplicationTasksOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeReplicationTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReplicationTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeReplicationTasksOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeSchemas = "DescribeSchemas" + +// DescribeSchemasRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSchemas 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 DescribeSchemas for more information on using the DescribeSchemas +// 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 DescribeSchemasRequest method. +// req, resp := client.DescribeSchemasRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription -func (c *DatabaseMigrationService) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas +func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemasInput) (req *request.Request, output *DescribeSchemasOutput) { op := &request.Operation{ - Name: opModifyEventSubscription, + Name: opDescribeSchemas, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, } if input == nil { - input = &ModifyEventSubscriptionInput{} + input = &DescribeSchemasInput{} } - output = &ModifyEventSubscriptionOutput{} + output = &DescribeSchemasOutput{} req = c.newRequest(op, input, output) return } -// ModifyEventSubscription API operation for AWS Database Migration Service. +// DescribeSchemas API operation for AWS Database Migration Service. // -// Modifies an existing DMS event notification subscription. +// Returns information about the schema for the specified 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 AWS Database Migration Service's -// API operation ModifyEventSubscription for usage and error information. +// API operation DescribeSchemas for usage and error information. // // Returned Error Types: -// * ResourceQuotaExceededFault -// The quota for this resource quota has been exceeded. +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. // // * ResourceNotFoundFault // The resource could not be found. // -// * SNSInvalidTopicFault -// The SNS topic is invalid. -// -// * SNSNoAuthorizationFault -// You are not authorized for the SNS subscription. -// -// * KMSAccessDeniedFault -// The ciphertext references a key that doesn't exist or that the DMS account -// doesn't have access to. -// -// * KMSDisabledFault -// The specified KMS key isn't enabled. -// -// * KMSInvalidStateFault -// The state of the specified KMS resource isn't valid for this request. -// -// * KMSNotFoundFault -// The specified KMS entity or resource can't be found. -// -// * KMSThrottlingFault -// This request triggered KMS request throttling. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription -func (c *DatabaseMigrationService) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { - req, out := c.ModifyEventSubscriptionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas +func (c *DatabaseMigrationService) DescribeSchemas(input *DescribeSchemasInput) (*DescribeSchemasOutput, error) { + req, out := c.DescribeSchemasRequest(input) return out, req.Send() } -// ModifyEventSubscriptionWithContext is the same as ModifyEventSubscription with the addition of +// DescribeSchemasWithContext is the same as DescribeSchemas with the addition of // the ability to pass a context and additional request options. // -// See ModifyEventSubscription for details on how to use this API operation. +// See DescribeSchemas 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 *DatabaseMigrationService) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyEventSubscriptionInput, opts ...request.Option) (*ModifyEventSubscriptionOutput, error) { - req, out := c.ModifyEventSubscriptionRequest(input) +func (c *DatabaseMigrationService) DescribeSchemasWithContext(ctx aws.Context, input *DescribeSchemasInput, opts ...request.Option) (*DescribeSchemasOutput, error) { + req, out := c.DescribeSchemasRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opModifyReplicationInstance = "ModifyReplicationInstance" +// DescribeSchemasPages iterates over the pages of a DescribeSchemas operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeSchemas 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 DescribeSchemas operation. +// pageNum := 0 +// err := client.DescribeSchemasPages(params, +// func(page *databasemigrationservice.DescribeSchemasOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DatabaseMigrationService) DescribeSchemasPages(input *DescribeSchemasInput, fn func(*DescribeSchemasOutput, bool) bool) error { + return c.DescribeSchemasPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ModifyReplicationInstanceRequest generates a "aws/request.Request" representing the -// client's request for the ModifyReplicationInstance operation. The "output" return +// DescribeSchemasPagesWithContext same as DescribeSchemasPages 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 *DatabaseMigrationService) DescribeSchemasPagesWithContext(ctx aws.Context, input *DescribeSchemasInput, fn func(*DescribeSchemasOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeSchemasInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeSchemasRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeSchemasOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeTableStatistics = "DescribeTableStatistics" + +// DescribeTableStatisticsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTableStatistics 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 ModifyReplicationInstance for more information on using the ModifyReplicationInstance +// See DescribeTableStatistics for more information on using the DescribeTableStatistics // 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 ModifyReplicationInstanceRequest method. -// req, resp := client.ModifyReplicationInstanceRequest(params) +// // Example sending a request using the DescribeTableStatisticsRequest method. +// req, resp := client.DescribeTableStatisticsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance -func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *ModifyReplicationInstanceInput) (req *request.Request, output *ModifyReplicationInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics +func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *DescribeTableStatisticsInput) (req *request.Request, output *DescribeTableStatisticsOutput) { op := &request.Operation{ - Name: opModifyReplicationInstance, + Name: opDescribeTableStatistics, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "MaxRecords", + TruncationToken: "", + }, } if input == nil { - input = &ModifyReplicationInstanceInput{} + input = &DescribeTableStatisticsInput{} } - output = &ModifyReplicationInstanceOutput{} + output = &DescribeTableStatisticsOutput{} req = c.newRequest(op, input, output) return } -// ModifyReplicationInstance API operation for AWS Database Migration Service. +// DescribeTableStatistics API operation for AWS Database Migration Service. // -// Modifies the replication instance to apply new settings. You can change one -// or more parameters by specifying these parameters and the new values in the -// request. +// Returns table statistics on the database migration task, including table +// name, rows inserted, rows updated, and rows deleted. // -// Some settings are applied during the maintenance window. +// Note that the "last updated" column the DMS console only indicates the time +// that DMS last updated the table statistics record for a table. It does not +// indicate the time of the last update to the table. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ModifyReplicationInstance for usage and error information. +// API operation DescribeTableStatistics for usage and error information. // // Returned Error Types: -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. +// * ResourceNotFoundFault +// The resource could not be found. // // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceAlreadyExistsFault -// The resource you are attempting to create already exists. -// -// * ResourceNotFoundFault -// The resource could not be found. -// -// * InsufficientResourceCapacityFault -// There are not enough resources allocated to the database migration. -// -// * StorageQuotaExceededFault -// The storage quota has been exceeded. -// -// * UpgradeDependencyFailureFault -// An upgrade dependency is preventing the database migration. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance -func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) { - req, out := c.ModifyReplicationInstanceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeTableStatistics +func (c *DatabaseMigrationService) DescribeTableStatistics(input *DescribeTableStatisticsInput) (*DescribeTableStatisticsOutput, error) { + req, out := c.DescribeTableStatisticsRequest(input) return out, req.Send() } -// ModifyReplicationInstanceWithContext is the same as ModifyReplicationInstance with the addition of +// DescribeTableStatisticsWithContext is the same as DescribeTableStatistics with the addition of // the ability to pass a context and additional request options. // -// See ModifyReplicationInstance for details on how to use this API operation. +// See DescribeTableStatistics 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 *DatabaseMigrationService) ModifyReplicationInstanceWithContext(ctx aws.Context, input *ModifyReplicationInstanceInput, opts ...request.Option) (*ModifyReplicationInstanceOutput, error) { - req, out := c.ModifyReplicationInstanceRequest(input) +func (c *DatabaseMigrationService) DescribeTableStatisticsWithContext(ctx aws.Context, input *DescribeTableStatisticsInput, opts ...request.Option) (*DescribeTableStatisticsOutput, error) { + req, out := c.DescribeTableStatisticsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup" - -// ModifyReplicationSubnetGroupRequest generates a "aws/request.Request" representing the -// client's request for the ModifyReplicationSubnetGroup operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// DescribeTableStatisticsPages iterates over the pages of a DescribeTableStatistics operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// 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 DescribeTableStatistics method for more information on how to use this operation. // -// See ModifyReplicationSubnetGroup for more information on using the ModifyReplicationSubnetGroup +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a DescribeTableStatistics operation. +// pageNum := 0 +// err := client.DescribeTableStatisticsPages(params, +// func(page *databasemigrationservice.DescribeTableStatisticsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *DatabaseMigrationService) DescribeTableStatisticsPages(input *DescribeTableStatisticsInput, fn func(*DescribeTableStatisticsOutput, bool) bool) error { + return c.DescribeTableStatisticsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeTableStatisticsPagesWithContext same as DescribeTableStatisticsPages 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 *DatabaseMigrationService) DescribeTableStatisticsPagesWithContext(ctx aws.Context, input *DescribeTableStatisticsInput, fn func(*DescribeTableStatisticsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeTableStatisticsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeTableStatisticsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeTableStatisticsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opImportCertificate = "ImportCertificate" + +// ImportCertificateRequest generates a "aws/request.Request" representing the +// client's request for the ImportCertificate 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 ImportCertificate for more information on using the ImportCertificate // 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 ModifyReplicationSubnetGroupRequest method. -// req, resp := client.ModifyReplicationSubnetGroupRequest(params) +// // Example sending a request using the ImportCertificateRequest method. +// req, resp := client.ImportCertificateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup -func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *ModifyReplicationSubnetGroupInput) (req *request.Request, output *ModifyReplicationSubnetGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate +func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertificateInput) (req *request.Request, output *ImportCertificateOutput) { op := &request.Operation{ - Name: opModifyReplicationSubnetGroup, + Name: opImportCertificate, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyReplicationSubnetGroupInput{} + input = &ImportCertificateInput{} } - output = &ModifyReplicationSubnetGroupOutput{} + output = &ImportCertificateOutput{} req = c.newRequest(op, input, output) return } -// ModifyReplicationSubnetGroup API operation for AWS Database Migration Service. +// ImportCertificate API operation for AWS Database Migration Service. // -// Modifies the settings for the specified replication subnet group. +// Uploads the specified certificate. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ModifyReplicationSubnetGroup for usage and error information. +// API operation ImportCertificate for usage and error information. // // Returned Error Types: -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. // -// * ResourceNotFoundFault -// The resource could not be found. +// * InvalidCertificateFault +// The certificate was not valid. // // * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * SubnetAlreadyInUse -// The specified subnet is already in use. -// -// * ReplicationSubnetGroupDoesNotCoverEnoughAZs -// The replication subnet group does not cover enough Availability Zones (AZs). -// Edit the replication subnet group and add more AZs. -// -// * InvalidSubnet -// The subnet provided is invalid. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup -func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) { - req, out := c.ModifyReplicationSubnetGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate +func (c *DatabaseMigrationService) ImportCertificate(input *ImportCertificateInput) (*ImportCertificateOutput, error) { + req, out := c.ImportCertificateRequest(input) return out, req.Send() } -// ModifyReplicationSubnetGroupWithContext is the same as ModifyReplicationSubnetGroup with the addition of +// ImportCertificateWithContext is the same as ImportCertificate with the addition of // the ability to pass a context and additional request options. // -// See ModifyReplicationSubnetGroup for details on how to use this API operation. +// See ImportCertificate 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 *DatabaseMigrationService) ModifyReplicationSubnetGroupWithContext(ctx aws.Context, input *ModifyReplicationSubnetGroupInput, opts ...request.Option) (*ModifyReplicationSubnetGroupOutput, error) { - req, out := c.ModifyReplicationSubnetGroupRequest(input) +func (c *DatabaseMigrationService) ImportCertificateWithContext(ctx aws.Context, input *ImportCertificateInput, opts ...request.Option) (*ImportCertificateOutput, error) { + req, out := c.ImportCertificateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opModifyReplicationTask = "ModifyReplicationTask" +const opListTagsForResource = "ListTagsForResource" -// ModifyReplicationTaskRequest generates a "aws/request.Request" representing the -// client's request for the ModifyReplicationTask operation. The "output" return +// 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 ModifyReplicationTask for more information on using the ModifyReplicationTask +// 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 ModifyReplicationTaskRequest method. -// req, resp := client.ModifyReplicationTaskRequest(params) +// // 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/dms-2016-01-01/ModifyReplicationTask -func (c *DatabaseMigrationService) ModifyReplicationTaskRequest(input *ModifyReplicationTaskInput) (req *request.Request, output *ModifyReplicationTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource +func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opModifyReplicationTask, + Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ModifyReplicationTaskInput{} + input = &ListTagsForResourceInput{} } - output = &ModifyReplicationTaskOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// ModifyReplicationTask API operation for AWS Database Migration Service. -// -// Modifies the specified replication task. -// -// You can't modify the task endpoints. The task must be stopped before you -// can modify it. +// ListTagsForResource API operation for AWS Database Migration Service. // -// For more information about DMS tasks, see Working with Migration Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) -// in the Database Migration Service User Guide. +// Lists all metadata tags attached to an DMS resource, including replication +// instance, endpoint, security group, and migration task. For more information, +// see Tag (https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html) +// data type description. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ModifyReplicationTask for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. -// // * ResourceNotFoundFault // The resource could not be found. // -// * ResourceAlreadyExistsFault -// The resource you are attempting to create already exists. -// -// * KMSKeyNotAccessibleFault -// DMS cannot access the KMS key. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask -func (c *DatabaseMigrationService) ModifyReplicationTask(input *ModifyReplicationTaskInput) (*ModifyReplicationTaskOutput, error) { - req, out := c.ModifyReplicationTaskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource +func (c *DatabaseMigrationService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// ModifyReplicationTaskWithContext is the same as ModifyReplicationTask with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See ModifyReplicationTask for details on how to use this API operation. +// 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 *DatabaseMigrationService) ModifyReplicationTaskWithContext(ctx aws.Context, input *ModifyReplicationTaskInput, opts ...request.Option) (*ModifyReplicationTaskOutput, error) { - req, out := c.ModifyReplicationTaskRequest(input) +func (c *DatabaseMigrationService) 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 opMoveReplicationTask = "MoveReplicationTask" +const opModifyEndpoint = "ModifyEndpoint" -// MoveReplicationTaskRequest generates a "aws/request.Request" representing the -// client's request for the MoveReplicationTask operation. The "output" return +// ModifyEndpointRequest generates a "aws/request.Request" representing the +// client's request for the ModifyEndpoint 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 MoveReplicationTask for more information on using the MoveReplicationTask +// See ModifyEndpoint for more information on using the ModifyEndpoint // 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 MoveReplicationTaskRequest method. -// req, resp := client.MoveReplicationTaskRequest(params) +// // Example sending a request using the ModifyEndpointRequest method. +// req, resp := client.ModifyEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/MoveReplicationTask -func (c *DatabaseMigrationService) MoveReplicationTaskRequest(input *MoveReplicationTaskInput) (req *request.Request, output *MoveReplicationTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint +func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointInput) (req *request.Request, output *ModifyEndpointOutput) { op := &request.Operation{ - Name: opMoveReplicationTask, + Name: opModifyEndpoint, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &MoveReplicationTaskInput{} + input = &ModifyEndpointInput{} } - output = &MoveReplicationTaskOutput{} + output = &ModifyEndpointOutput{} req = c.newRequest(op, input, output) return } -// MoveReplicationTask API operation for AWS Database Migration Service. +// ModifyEndpoint API operation for AWS Database Migration Service. // -// Moves a replication task from its current replication instance to a different -// target replication instance using the specified parameters. The target replication -// instance must be created with the same or later DMS version as the current -// replication instance. +// Modifies the specified endpoint. +// +// For a MySQL source or target endpoint, don't explicitly specify the database +// using the DatabaseName request parameter on the ModifyEndpoint API call. +// Specifying DatabaseName when you modify a MySQL endpoint replicates all the +// task tables to this single database. For MySQL endpoints, you specify the +// database only when you specify the schema in the table-mapping rules of the +// DMS task. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation MoveReplicationTask for usage and error information. +// API operation ModifyEndpoint for usage and error information. // // Returned Error Types: -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. -// // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. @@ -5112,739 +5567,758 @@ func (c *DatabaseMigrationService) MoveReplicationTaskRequest(input *MoveReplica // * ResourceNotFoundFault // The resource could not be found. // +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// // * KMSKeyNotAccessibleFault // DMS cannot access the KMS key. // -// * ResourceQuotaExceededFault -// The quota for this resource quota has been exceeded. +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/MoveReplicationTask -func (c *DatabaseMigrationService) MoveReplicationTask(input *MoveReplicationTaskInput) (*MoveReplicationTaskOutput, error) { - req, out := c.MoveReplicationTaskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEndpoint +func (c *DatabaseMigrationService) ModifyEndpoint(input *ModifyEndpointInput) (*ModifyEndpointOutput, error) { + req, out := c.ModifyEndpointRequest(input) return out, req.Send() } -// MoveReplicationTaskWithContext is the same as MoveReplicationTask with the addition of +// ModifyEndpointWithContext is the same as ModifyEndpoint with the addition of // the ability to pass a context and additional request options. // -// See MoveReplicationTask for details on how to use this API operation. +// See ModifyEndpoint 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 *DatabaseMigrationService) MoveReplicationTaskWithContext(ctx aws.Context, input *MoveReplicationTaskInput, opts ...request.Option) (*MoveReplicationTaskOutput, error) { - req, out := c.MoveReplicationTaskRequest(input) +func (c *DatabaseMigrationService) ModifyEndpointWithContext(ctx aws.Context, input *ModifyEndpointInput, opts ...request.Option) (*ModifyEndpointOutput, error) { + req, out := c.ModifyEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRebootReplicationInstance = "RebootReplicationInstance" +const opModifyEventSubscription = "ModifyEventSubscription" -// RebootReplicationInstanceRequest generates a "aws/request.Request" representing the -// client's request for the RebootReplicationInstance operation. The "output" return +// ModifyEventSubscriptionRequest generates a "aws/request.Request" representing the +// client's request for the ModifyEventSubscription 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 RebootReplicationInstance for more information on using the RebootReplicationInstance +// See ModifyEventSubscription for more information on using the ModifyEventSubscription // 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 RebootReplicationInstanceRequest method. -// req, resp := client.RebootReplicationInstanceRequest(params) +// // Example sending a request using the ModifyEventSubscriptionRequest method. +// req, resp := client.ModifyEventSubscriptionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RebootReplicationInstance -func (c *DatabaseMigrationService) RebootReplicationInstanceRequest(input *RebootReplicationInstanceInput) (req *request.Request, output *RebootReplicationInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription +func (c *DatabaseMigrationService) ModifyEventSubscriptionRequest(input *ModifyEventSubscriptionInput) (req *request.Request, output *ModifyEventSubscriptionOutput) { op := &request.Operation{ - Name: opRebootReplicationInstance, + Name: opModifyEventSubscription, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RebootReplicationInstanceInput{} + input = &ModifyEventSubscriptionInput{} } - output = &RebootReplicationInstanceOutput{} + output = &ModifyEventSubscriptionOutput{} req = c.newRequest(op, input, output) return } -// RebootReplicationInstance API operation for AWS Database Migration Service. +// ModifyEventSubscription API operation for AWS Database Migration Service. // -// Reboots a replication instance. Rebooting results in a momentary outage, -// until the replication instance becomes available again. +// Modifies an existing DMS event notification subscription. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation RebootReplicationInstance for usage and error information. +// API operation ModifyEventSubscription for usage and error information. // // Returned Error Types: +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// // * ResourceNotFoundFault // The resource could not be found. // -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. +// * SNSInvalidTopicFault +// The SNS topic is invalid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RebootReplicationInstance -func (c *DatabaseMigrationService) RebootReplicationInstance(input *RebootReplicationInstanceInput) (*RebootReplicationInstanceOutput, error) { - req, out := c.RebootReplicationInstanceRequest(input) +// * SNSNoAuthorizationFault +// You are not authorized for the SNS subscription. +// +// * KMSAccessDeniedFault +// The ciphertext references a key that doesn't exist or that the DMS account +// doesn't have access to. +// +// * KMSDisabledFault +// The specified KMS key isn't enabled. +// +// * KMSInvalidStateFault +// The state of the specified KMS resource isn't valid for this request. +// +// * KMSNotFoundFault +// The specified KMS entity or resource can't be found. +// +// * KMSThrottlingFault +// This request triggered KMS request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription +func (c *DatabaseMigrationService) ModifyEventSubscription(input *ModifyEventSubscriptionInput) (*ModifyEventSubscriptionOutput, error) { + req, out := c.ModifyEventSubscriptionRequest(input) return out, req.Send() } -// RebootReplicationInstanceWithContext is the same as RebootReplicationInstance with the addition of +// ModifyEventSubscriptionWithContext is the same as ModifyEventSubscription with the addition of // the ability to pass a context and additional request options. // -// See RebootReplicationInstance for details on how to use this API operation. +// See ModifyEventSubscription 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 *DatabaseMigrationService) RebootReplicationInstanceWithContext(ctx aws.Context, input *RebootReplicationInstanceInput, opts ...request.Option) (*RebootReplicationInstanceOutput, error) { - req, out := c.RebootReplicationInstanceRequest(input) +func (c *DatabaseMigrationService) ModifyEventSubscriptionWithContext(ctx aws.Context, input *ModifyEventSubscriptionInput, opts ...request.Option) (*ModifyEventSubscriptionOutput, error) { + req, out := c.ModifyEventSubscriptionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRefreshSchemas = "RefreshSchemas" +const opModifyReplicationInstance = "ModifyReplicationInstance" -// RefreshSchemasRequest generates a "aws/request.Request" representing the -// client's request for the RefreshSchemas operation. The "output" return +// ModifyReplicationInstanceRequest generates a "aws/request.Request" representing the +// client's request for the ModifyReplicationInstance 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 RefreshSchemas for more information on using the RefreshSchemas +// See ModifyReplicationInstance for more information on using the ModifyReplicationInstance // 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 RefreshSchemasRequest method. -// req, resp := client.RefreshSchemasRequest(params) +// // Example sending a request using the ModifyReplicationInstanceRequest method. +// req, resp := client.ModifyReplicationInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas -func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasInput) (req *request.Request, output *RefreshSchemasOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance +func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *ModifyReplicationInstanceInput) (req *request.Request, output *ModifyReplicationInstanceOutput) { op := &request.Operation{ - Name: opRefreshSchemas, + Name: opModifyReplicationInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RefreshSchemasInput{} + input = &ModifyReplicationInstanceInput{} } - output = &RefreshSchemasOutput{} + output = &ModifyReplicationInstanceOutput{} req = c.newRequest(op, input, output) return } -// RefreshSchemas API operation for AWS Database Migration Service. +// ModifyReplicationInstance API operation for AWS Database Migration Service. // -// Populates the schema for the specified endpoint. This is an asynchronous -// operation and can take several minutes. You can check the status of this -// operation by calling the DescribeRefreshSchemasStatus operation. +// Modifies the replication instance to apply new settings. You can change one +// or more parameters by specifying these parameters and the new values in the +// request. +// +// Some settings are applied during the maintenance window. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation RefreshSchemas for usage and error information. +// API operation ModifyReplicationInstance for usage and error information. // // Returned Error Types: +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. +// // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// // * ResourceNotFoundFault // The resource could not be found. // -// * KMSKeyNotAccessibleFault -// DMS cannot access the KMS key. +// * InsufficientResourceCapacityFault +// There are not enough resources allocated to the database migration. // -// * ResourceQuotaExceededFault -// The quota for this resource quota has been exceeded. +// * StorageQuotaExceededFault +// The storage quota has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas -func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) { - req, out := c.RefreshSchemasRequest(input) +// * UpgradeDependencyFailureFault +// An upgrade dependency is preventing the database migration. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance +func (c *DatabaseMigrationService) ModifyReplicationInstance(input *ModifyReplicationInstanceInput) (*ModifyReplicationInstanceOutput, error) { + req, out := c.ModifyReplicationInstanceRequest(input) return out, req.Send() } -// RefreshSchemasWithContext is the same as RefreshSchemas with the addition of +// ModifyReplicationInstanceWithContext is the same as ModifyReplicationInstance with the addition of // the ability to pass a context and additional request options. // -// See RefreshSchemas for details on how to use this API operation. +// See ModifyReplicationInstance 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 *DatabaseMigrationService) RefreshSchemasWithContext(ctx aws.Context, input *RefreshSchemasInput, opts ...request.Option) (*RefreshSchemasOutput, error) { - req, out := c.RefreshSchemasRequest(input) +func (c *DatabaseMigrationService) ModifyReplicationInstanceWithContext(ctx aws.Context, input *ModifyReplicationInstanceInput, opts ...request.Option) (*ModifyReplicationInstanceOutput, error) { + req, out := c.ModifyReplicationInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opReloadTables = "ReloadTables" +const opModifyReplicationSubnetGroup = "ModifyReplicationSubnetGroup" -// ReloadTablesRequest generates a "aws/request.Request" representing the -// client's request for the ReloadTables operation. The "output" return +// ModifyReplicationSubnetGroupRequest generates a "aws/request.Request" representing the +// client's request for the ModifyReplicationSubnetGroup 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 ReloadTables for more information on using the ReloadTables +// See ModifyReplicationSubnetGroup for more information on using the ModifyReplicationSubnetGroup // 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 ReloadTablesRequest method. -// req, resp := client.ReloadTablesRequest(params) +// // Example sending a request using the ModifyReplicationSubnetGroupRequest method. +// req, resp := client.ModifyReplicationSubnetGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReloadTables -func (c *DatabaseMigrationService) ReloadTablesRequest(input *ReloadTablesInput) (req *request.Request, output *ReloadTablesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup +func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *ModifyReplicationSubnetGroupInput) (req *request.Request, output *ModifyReplicationSubnetGroupOutput) { op := &request.Operation{ - Name: opReloadTables, + Name: opModifyReplicationSubnetGroup, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &ReloadTablesInput{} + input = &ModifyReplicationSubnetGroupInput{} } - output = &ReloadTablesOutput{} + output = &ModifyReplicationSubnetGroupOutput{} req = c.newRequest(op, input, output) return } -// ReloadTables API operation for AWS Database Migration Service. -// -// Reloads the target database table with the source data. +// ModifyReplicationSubnetGroup API operation for AWS Database Migration Service. // -// You can only use this operation with a task in the RUNNING state, otherwise -// the service will throw an InvalidResourceStateFault exception. +// Modifies the settings for the specified replication subnet group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation ReloadTables for usage and error information. +// API operation ModifyReplicationSubnetGroup for usage and error information. // // Returned Error Types: +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. +// // * ResourceNotFoundFault // The resource could not be found. // -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReloadTables -func (c *DatabaseMigrationService) ReloadTables(input *ReloadTablesInput) (*ReloadTablesOutput, error) { - req, out := c.ReloadTablesRequest(input) +// * SubnetAlreadyInUse +// The specified subnet is already in use. +// +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs +// The replication subnet group does not cover enough Availability Zones (AZs). +// Edit the replication subnet group and add more AZs. +// +// * InvalidSubnet +// The subnet provided is invalid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup +func (c *DatabaseMigrationService) ModifyReplicationSubnetGroup(input *ModifyReplicationSubnetGroupInput) (*ModifyReplicationSubnetGroupOutput, error) { + req, out := c.ModifyReplicationSubnetGroupRequest(input) return out, req.Send() } -// ReloadTablesWithContext is the same as ReloadTables with the addition of +// ModifyReplicationSubnetGroupWithContext is the same as ModifyReplicationSubnetGroup with the addition of // the ability to pass a context and additional request options. // -// See ReloadTables for details on how to use this API operation. +// See ModifyReplicationSubnetGroup 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 *DatabaseMigrationService) ReloadTablesWithContext(ctx aws.Context, input *ReloadTablesInput, opts ...request.Option) (*ReloadTablesOutput, error) { - req, out := c.ReloadTablesRequest(input) +func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupWithContext(ctx aws.Context, input *ModifyReplicationSubnetGroupInput, opts ...request.Option) (*ModifyReplicationSubnetGroupOutput, error) { + req, out := c.ModifyReplicationSubnetGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRemoveTagsFromResource = "RemoveTagsFromResource" +const opModifyReplicationTask = "ModifyReplicationTask" -// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the -// client's request for the RemoveTagsFromResource operation. The "output" return +// ModifyReplicationTaskRequest generates a "aws/request.Request" representing the +// client's request for the ModifyReplicationTask 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 RemoveTagsFromResource for more information on using the RemoveTagsFromResource +// See ModifyReplicationTask for more information on using the ModifyReplicationTask // 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 RemoveTagsFromResourceRequest method. -// req, resp := client.RemoveTagsFromResourceRequest(params) +// // Example sending a request using the ModifyReplicationTaskRequest method. +// req, resp := client.ModifyReplicationTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource -func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask +func (c *DatabaseMigrationService) ModifyReplicationTaskRequest(input *ModifyReplicationTaskInput) (req *request.Request, output *ModifyReplicationTaskOutput) { op := &request.Operation{ - Name: opRemoveTagsFromResource, + Name: opModifyReplicationTask, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &RemoveTagsFromResourceInput{} + input = &ModifyReplicationTaskInput{} } - output = &RemoveTagsFromResourceOutput{} + output = &ModifyReplicationTaskOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// RemoveTagsFromResource API operation for AWS Database Migration Service. +// ModifyReplicationTask API operation for AWS Database Migration Service. // -// Removes metadata tags from an DMS resource, including replication instance, -// endpoint, security group, and migration task. For more information, see Tag -// (https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html) data type -// description. +// Modifies the specified replication task. +// +// You can't modify the task endpoints. The task must be stopped before you +// can modify it. +// +// For more information about DMS tasks, see Working with Migration Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) +// in the Database Migration Service User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation RemoveTagsFromResource for usage and error information. +// API operation ModifyReplicationTask for usage and error information. // // Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// // * ResourceNotFoundFault // The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource -func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { - req, out := c.RemoveTagsFromResourceRequest(input) +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// * KMSKeyNotAccessibleFault +// DMS cannot access the KMS key. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask +func (c *DatabaseMigrationService) ModifyReplicationTask(input *ModifyReplicationTaskInput) (*ModifyReplicationTaskOutput, error) { + req, out := c.ModifyReplicationTaskRequest(input) return out, req.Send() } -// RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of +// ModifyReplicationTaskWithContext is the same as ModifyReplicationTask with the addition of // the ability to pass a context and additional request options. // -// See RemoveTagsFromResource for details on how to use this API operation. +// See ModifyReplicationTask 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 *DatabaseMigrationService) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error) { - req, out := c.RemoveTagsFromResourceRequest(input) +func (c *DatabaseMigrationService) ModifyReplicationTaskWithContext(ctx aws.Context, input *ModifyReplicationTaskInput, opts ...request.Option) (*ModifyReplicationTaskOutput, error) { + req, out := c.ModifyReplicationTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartReplicationTask = "StartReplicationTask" +const opMoveReplicationTask = "MoveReplicationTask" -// StartReplicationTaskRequest generates a "aws/request.Request" representing the -// client's request for the StartReplicationTask operation. The "output" return +// MoveReplicationTaskRequest generates a "aws/request.Request" representing the +// client's request for the MoveReplicationTask 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 StartReplicationTask for more information on using the StartReplicationTask +// See MoveReplicationTask for more information on using the MoveReplicationTask // 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 StartReplicationTaskRequest method. -// req, resp := client.StartReplicationTaskRequest(params) +// // Example sending a request using the MoveReplicationTaskRequest method. +// req, resp := client.MoveReplicationTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask -func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartReplicationTaskInput) (req *request.Request, output *StartReplicationTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/MoveReplicationTask +func (c *DatabaseMigrationService) MoveReplicationTaskRequest(input *MoveReplicationTaskInput) (req *request.Request, output *MoveReplicationTaskOutput) { op := &request.Operation{ - Name: opStartReplicationTask, + Name: opMoveReplicationTask, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartReplicationTaskInput{} + input = &MoveReplicationTaskInput{} } - output = &StartReplicationTaskOutput{} + output = &MoveReplicationTaskOutput{} req = c.newRequest(op, input, output) return } -// StartReplicationTask API operation for AWS Database Migration Service. -// -// Starts the replication task. +// MoveReplicationTask API operation for AWS Database Migration Service. // -// For more information about DMS tasks, see Working with Migration Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) -// in the Database Migration Service User Guide. +// Moves a replication task from its current replication instance to a different +// target replication instance using the specified parameters. The target replication +// instance must be created with the same or later DMS version as the current +// replication instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation StartReplicationTask for usage and error information. +// API operation MoveReplicationTask for usage and error information. // // Returned Error Types: -// * ResourceNotFoundFault -// The resource could not be found. +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. // // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. +// * ResourceNotFoundFault +// The resource could not be found. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask -func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) { - req, out := c.StartReplicationTaskRequest(input) +// * KMSKeyNotAccessibleFault +// DMS cannot access the KMS key. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/MoveReplicationTask +func (c *DatabaseMigrationService) MoveReplicationTask(input *MoveReplicationTaskInput) (*MoveReplicationTaskOutput, error) { + req, out := c.MoveReplicationTaskRequest(input) return out, req.Send() } -// StartReplicationTaskWithContext is the same as StartReplicationTask with the addition of +// MoveReplicationTaskWithContext is the same as MoveReplicationTask with the addition of // the ability to pass a context and additional request options. // -// See StartReplicationTask for details on how to use this API operation. +// See MoveReplicationTask 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 *DatabaseMigrationService) StartReplicationTaskWithContext(ctx aws.Context, input *StartReplicationTaskInput, opts ...request.Option) (*StartReplicationTaskOutput, error) { - req, out := c.StartReplicationTaskRequest(input) +func (c *DatabaseMigrationService) MoveReplicationTaskWithContext(ctx aws.Context, input *MoveReplicationTaskInput, opts ...request.Option) (*MoveReplicationTaskOutput, error) { + req, out := c.MoveReplicationTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartReplicationTaskAssessment = "StartReplicationTaskAssessment" +const opRebootReplicationInstance = "RebootReplicationInstance" -// StartReplicationTaskAssessmentRequest generates a "aws/request.Request" representing the -// client's request for the StartReplicationTaskAssessment operation. The "output" return +// RebootReplicationInstanceRequest generates a "aws/request.Request" representing the +// client's request for the RebootReplicationInstance 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 StartReplicationTaskAssessment for more information on using the StartReplicationTaskAssessment +// See RebootReplicationInstance for more information on using the RebootReplicationInstance // 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 StartReplicationTaskAssessmentRequest method. -// req, resp := client.StartReplicationTaskAssessmentRequest(params) +// // Example sending a request using the RebootReplicationInstanceRequest method. +// req, resp := client.RebootReplicationInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment -func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRequest(input *StartReplicationTaskAssessmentInput) (req *request.Request, output *StartReplicationTaskAssessmentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RebootReplicationInstance +func (c *DatabaseMigrationService) RebootReplicationInstanceRequest(input *RebootReplicationInstanceInput) (req *request.Request, output *RebootReplicationInstanceOutput) { op := &request.Operation{ - Name: opStartReplicationTaskAssessment, + Name: opRebootReplicationInstance, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartReplicationTaskAssessmentInput{} + input = &RebootReplicationInstanceInput{} } - output = &StartReplicationTaskAssessmentOutput{} + output = &RebootReplicationInstanceOutput{} req = c.newRequest(op, input, output) return } -// StartReplicationTaskAssessment API operation for AWS Database Migration Service. -// -// Starts the replication task assessment for unsupported data types in the -// source database. -// -// You can only use this operation for a task if the following conditions are -// true: -// -// * The task must be in the stopped state. -// -// * The task must have successful connections to the source and target. -// -// If either of these conditions are not met, an InvalidResourceStateFault error -// will result. +// RebootReplicationInstance API operation for AWS Database Migration Service. // -// For information about DMS task assessments, see Creating a task assessment -// report (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) -// in the Database Migration Service User Guide. +// Reboots a replication instance. Rebooting results in a momentary outage, +// until the replication instance becomes available again. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation StartReplicationTaskAssessment for usage and error information. +// API operation RebootReplicationInstance for usage and error information. // // Returned Error Types: +// * ResourceNotFoundFault +// The resource could not be found. +// // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ResourceNotFoundFault -// The resource could not be found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment -func (c *DatabaseMigrationService) StartReplicationTaskAssessment(input *StartReplicationTaskAssessmentInput) (*StartReplicationTaskAssessmentOutput, error) { - req, out := c.StartReplicationTaskAssessmentRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RebootReplicationInstance +func (c *DatabaseMigrationService) RebootReplicationInstance(input *RebootReplicationInstanceInput) (*RebootReplicationInstanceOutput, error) { + req, out := c.RebootReplicationInstanceRequest(input) return out, req.Send() } -// StartReplicationTaskAssessmentWithContext is the same as StartReplicationTaskAssessment with the addition of +// RebootReplicationInstanceWithContext is the same as RebootReplicationInstance with the addition of // the ability to pass a context and additional request options. // -// See StartReplicationTaskAssessment for details on how to use this API operation. +// See RebootReplicationInstance 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 *DatabaseMigrationService) StartReplicationTaskAssessmentWithContext(ctx aws.Context, input *StartReplicationTaskAssessmentInput, opts ...request.Option) (*StartReplicationTaskAssessmentOutput, error) { - req, out := c.StartReplicationTaskAssessmentRequest(input) +func (c *DatabaseMigrationService) RebootReplicationInstanceWithContext(ctx aws.Context, input *RebootReplicationInstanceInput, opts ...request.Option) (*RebootReplicationInstanceOutput, error) { + req, out := c.RebootReplicationInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartReplicationTaskAssessmentRun = "StartReplicationTaskAssessmentRun" +const opRefreshSchemas = "RefreshSchemas" -// StartReplicationTaskAssessmentRunRequest generates a "aws/request.Request" representing the -// client's request for the StartReplicationTaskAssessmentRun operation. The "output" return +// RefreshSchemasRequest generates a "aws/request.Request" representing the +// client's request for the RefreshSchemas 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 StartReplicationTaskAssessmentRun for more information on using the StartReplicationTaskAssessmentRun +// See RefreshSchemas for more information on using the RefreshSchemas // 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 StartReplicationTaskAssessmentRunRequest method. -// req, resp := client.StartReplicationTaskAssessmentRunRequest(params) +// // Example sending a request using the RefreshSchemasRequest method. +// req, resp := client.RefreshSchemasRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessmentRun -func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRunRequest(input *StartReplicationTaskAssessmentRunInput) (req *request.Request, output *StartReplicationTaskAssessmentRunOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas +func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasInput) (req *request.Request, output *RefreshSchemasOutput) { op := &request.Operation{ - Name: opStartReplicationTaskAssessmentRun, + Name: opRefreshSchemas, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StartReplicationTaskAssessmentRunInput{} + input = &RefreshSchemasInput{} } - output = &StartReplicationTaskAssessmentRunOutput{} + output = &RefreshSchemasOutput{} req = c.newRequest(op, input, output) return } -// StartReplicationTaskAssessmentRun API operation for AWS Database Migration Service. -// -// Starts a new premigration assessment run for one or more individual assessments -// of a migration task. +// RefreshSchemas API operation for AWS Database Migration Service. // -// The assessments that you can specify depend on the source and target database -// engine and the migration type defined for the given task. To run this operation, -// your migration task must already be created. After you run this operation, -// you can review the status of each individual assessment. You can also run -// the migration task manually after the assessment run and its individual assessments -// complete. +// Populates the schema for the specified endpoint. This is an asynchronous +// operation and can take several minutes. You can check the status of this +// operation by calling the DescribeRefreshSchemasStatus operation. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation StartReplicationTaskAssessmentRun for usage and error information. +// API operation RefreshSchemas for usage and error information. // // Returned Error Types: -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. -// -// * ResourceNotFoundFault -// The resource could not be found. -// // * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * KMSAccessDeniedFault -// The ciphertext references a key that doesn't exist or that the DMS account -// doesn't have access to. -// -// * KMSDisabledFault -// The specified KMS key isn't enabled. -// -// * KMSFault -// An Key Management Service (KMS) error is preventing access to KMS. -// -// * KMSInvalidStateFault -// The state of the specified KMS resource isn't valid for this request. -// -// * KMSNotFoundFault -// The specified KMS entity or resource can't be found. +// * ResourceNotFoundFault +// The resource could not be found. // // * KMSKeyNotAccessibleFault // DMS cannot access the KMS key. // -// * S3AccessDeniedFault -// Insufficient privileges are preventing access to an Amazon S3 object. -// -// * S3ResourceNotFoundFault -// A specified Amazon S3 bucket, bucket folder, or other object can't be found. -// -// * ResourceAlreadyExistsFault -// The resource you are attempting to create already exists. +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessmentRun -func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRun(input *StartReplicationTaskAssessmentRunInput) (*StartReplicationTaskAssessmentRunOutput, error) { - req, out := c.StartReplicationTaskAssessmentRunRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas +func (c *DatabaseMigrationService) RefreshSchemas(input *RefreshSchemasInput) (*RefreshSchemasOutput, error) { + req, out := c.RefreshSchemasRequest(input) return out, req.Send() } -// StartReplicationTaskAssessmentRunWithContext is the same as StartReplicationTaskAssessmentRun with the addition of +// RefreshSchemasWithContext is the same as RefreshSchemas with the addition of // the ability to pass a context and additional request options. // -// See StartReplicationTaskAssessmentRun for details on how to use this API operation. +// See RefreshSchemas 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 *DatabaseMigrationService) StartReplicationTaskAssessmentRunWithContext(ctx aws.Context, input *StartReplicationTaskAssessmentRunInput, opts ...request.Option) (*StartReplicationTaskAssessmentRunOutput, error) { - req, out := c.StartReplicationTaskAssessmentRunRequest(input) +func (c *DatabaseMigrationService) RefreshSchemasWithContext(ctx aws.Context, input *RefreshSchemasInput, opts ...request.Option) (*RefreshSchemasOutput, error) { + req, out := c.RefreshSchemasRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStopReplicationTask = "StopReplicationTask" +const opReloadTables = "ReloadTables" -// StopReplicationTaskRequest generates a "aws/request.Request" representing the -// client's request for the StopReplicationTask operation. The "output" return +// ReloadTablesRequest generates a "aws/request.Request" representing the +// client's request for the ReloadTables 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 StopReplicationTask for more information on using the StopReplicationTask +// See ReloadTables for more information on using the ReloadTables // 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 StopReplicationTaskRequest method. -// req, resp := client.StopReplicationTaskRequest(params) +// // Example sending a request using the ReloadTablesRequest method. +// req, resp := client.ReloadTablesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask -func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplicationTaskInput) (req *request.Request, output *StopReplicationTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReloadTables +func (c *DatabaseMigrationService) ReloadTablesRequest(input *ReloadTablesInput) (req *request.Request, output *ReloadTablesOutput) { op := &request.Operation{ - Name: opStopReplicationTask, + Name: opReloadTables, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &StopReplicationTaskInput{} + input = &ReloadTablesInput{} } - output = &StopReplicationTaskOutput{} + output = &ReloadTablesOutput{} req = c.newRequest(op, input, output) return } -// StopReplicationTask API operation for AWS Database Migration Service. +// ReloadTables API operation for AWS Database Migration Service. // -// Stops the replication task. +// Reloads the target database table with the source data. +// +// You can only use this operation with a task in the RUNNING state, otherwise +// the service will throw an InvalidResourceStateFault exception. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation StopReplicationTask for usage and error information. +// API operation ReloadTables for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault @@ -5854,252 +6328,2169 @@ func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplica // The resource is in a state that prevents it from being used for database // migration. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask -func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) { - req, out := c.StopReplicationTaskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ReloadTables +func (c *DatabaseMigrationService) ReloadTables(input *ReloadTablesInput) (*ReloadTablesOutput, error) { + req, out := c.ReloadTablesRequest(input) return out, req.Send() } -// StopReplicationTaskWithContext is the same as StopReplicationTask with the addition of +// ReloadTablesWithContext is the same as ReloadTables with the addition of // the ability to pass a context and additional request options. // -// See StopReplicationTask for details on how to use this API operation. +// See ReloadTables 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 *DatabaseMigrationService) StopReplicationTaskWithContext(ctx aws.Context, input *StopReplicationTaskInput, opts ...request.Option) (*StopReplicationTaskOutput, error) { - req, out := c.StopReplicationTaskRequest(input) +func (c *DatabaseMigrationService) ReloadTablesWithContext(ctx aws.Context, input *ReloadTablesInput, opts ...request.Option) (*ReloadTablesOutput, error) { + req, out := c.ReloadTablesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTestConnection = "TestConnection" +const opRemoveTagsFromResource = "RemoveTagsFromResource" -// TestConnectionRequest generates a "aws/request.Request" representing the -// client's request for the TestConnection operation. The "output" return +// RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the +// client's request for the RemoveTagsFromResource 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 TestConnection for more information on using the TestConnection +// See RemoveTagsFromResource for more information on using the RemoveTagsFromResource // 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 TestConnectionRequest method. -// req, resp := client.TestConnectionRequest(params) +// // Example sending a request using the RemoveTagsFromResourceRequest method. +// req, resp := client.RemoveTagsFromResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection -func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionInput) (req *request.Request, output *TestConnectionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource +func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput) { op := &request.Operation{ - Name: opTestConnection, + Name: opRemoveTagsFromResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &TestConnectionInput{} + input = &RemoveTagsFromResourceInput{} } - output = &TestConnectionOutput{} + output = &RemoveTagsFromResourceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TestConnection API operation for AWS Database Migration Service. +// RemoveTagsFromResource API operation for AWS Database Migration Service. // -// Tests the connection between the replication instance and the endpoint. +// Removes metadata tags from an DMS resource, including replication instance, +// endpoint, security group, and migration task. For more information, see Tag +// (https://docs.aws.amazon.com/dms/latest/APIReference/API_Tag.html) data type +// description. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Database Migration Service's -// API operation TestConnection for usage and error information. +// API operation RemoveTagsFromResource for usage and error information. // // Returned Error Types: // * ResourceNotFoundFault // The resource could not be found. // -// * InvalidResourceStateFault -// The resource is in a state that prevents it from being used for database -// migration. -// -// * KMSKeyNotAccessibleFault -// DMS cannot access the KMS key. -// -// * ResourceQuotaExceededFault -// The quota for this resource quota has been exceeded. -// -// * AccessDeniedFault -// DMS was denied access to the endpoint. Check that the role is correctly configured. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection -func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error) { - req, out := c.TestConnectionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource +func (c *DatabaseMigrationService) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error) { + req, out := c.RemoveTagsFromResourceRequest(input) return out, req.Send() } -// TestConnectionWithContext is the same as TestConnection with the addition of +// RemoveTagsFromResourceWithContext is the same as RemoveTagsFromResource with the addition of // the ability to pass a context and additional request options. // -// See TestConnection for details on how to use this API operation. +// See RemoveTagsFromResource 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 *DatabaseMigrationService) TestConnectionWithContext(ctx aws.Context, input *TestConnectionInput, opts ...request.Option) (*TestConnectionOutput, error) { - req, out := c.TestConnectionRequest(input) +func (c *DatabaseMigrationService) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error) { + req, out := c.RemoveTagsFromResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// DMS was denied access to the endpoint. Check that the role is correctly configured. -type AccessDeniedFault struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +const opRunFleetAdvisorLsaAnalysis = "RunFleetAdvisorLsaAnalysis" - Message_ *string `locationName:"message" type:"string"` -} - -// String returns the string representation. +// RunFleetAdvisorLsaAnalysisRequest generates a "aws/request.Request" representing the +// client's request for the RunFleetAdvisorLsaAnalysis operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedFault) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// 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. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedFault) GoString() string { - return s.String() -} - -func newErrorAccessDeniedFault(v protocol.ResponseMetadata) error { - return &AccessDeniedFault{ - RespMetadata: v, +// See RunFleetAdvisorLsaAnalysis for more information on using the RunFleetAdvisorLsaAnalysis +// 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 RunFleetAdvisorLsaAnalysisRequest method. +// req, resp := client.RunFleetAdvisorLsaAnalysisRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RunFleetAdvisorLsaAnalysis +func (c *DatabaseMigrationService) RunFleetAdvisorLsaAnalysisRequest(input *RunFleetAdvisorLsaAnalysisInput) (req *request.Request, output *RunFleetAdvisorLsaAnalysisOutput) { + op := &request.Operation{ + Name: opRunFleetAdvisorLsaAnalysis, + HTTPMethod: "POST", + HTTPPath: "/", } -} - -// Code returns the exception type name. -func (s *AccessDeniedFault) Code() string { - return "AccessDeniedFault" -} -// Message returns the exception's message. -func (s *AccessDeniedFault) Message() string { - if s.Message_ != nil { - return *s.Message_ + if input == nil { + input = &RunFleetAdvisorLsaAnalysisInput{} } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedFault) OrigErr() error { - return nil -} -func (s *AccessDeniedFault) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + output = &RunFleetAdvisorLsaAnalysisOutput{} + req = c.newRequest(op, input, output) + return } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedFault) StatusCode() int { - return s.RespMetadata.StatusCode +// RunFleetAdvisorLsaAnalysis API operation for AWS Database Migration Service. +// +// Runs large-scale assessment (LSA) analysis on every Fleet Advisor collector +// in your account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation RunFleetAdvisorLsaAnalysis for usage and error information. +// +// Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RunFleetAdvisorLsaAnalysis +func (c *DatabaseMigrationService) RunFleetAdvisorLsaAnalysis(input *RunFleetAdvisorLsaAnalysisInput) (*RunFleetAdvisorLsaAnalysisOutput, error) { + req, out := c.RunFleetAdvisorLsaAnalysisRequest(input) + return out, req.Send() } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedFault) RequestID() string { - return s.RespMetadata.RequestID +// RunFleetAdvisorLsaAnalysisWithContext is the same as RunFleetAdvisorLsaAnalysis with the addition of +// the ability to pass a context and additional request options. +// +// See RunFleetAdvisorLsaAnalysis 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 *DatabaseMigrationService) RunFleetAdvisorLsaAnalysisWithContext(ctx aws.Context, input *RunFleetAdvisorLsaAnalysisInput, opts ...request.Option) (*RunFleetAdvisorLsaAnalysisOutput, error) { + req, out := c.RunFleetAdvisorLsaAnalysisRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// Describes a quota for an Amazon Web Services account, for example the number -// of replication instances allowed. -type AccountQuota struct { - _ struct{} `type:"structure"` +const opStartReplicationTask = "StartReplicationTask" - // The name of the DMS quota for this Amazon Web Services account. - AccountQuotaName *string `type:"string"` +// StartReplicationTaskRequest generates a "aws/request.Request" representing the +// client's request for the StartReplicationTask 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 StartReplicationTask for more information on using the StartReplicationTask +// 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 StartReplicationTaskRequest method. +// req, resp := client.StartReplicationTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask +func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartReplicationTaskInput) (req *request.Request, output *StartReplicationTaskOutput) { + op := &request.Operation{ + Name: opStartReplicationTask, + HTTPMethod: "POST", + HTTPPath: "/", + } - // The maximum allowed value for the quota. - Max *int64 `type:"long"` + if input == nil { + input = &StartReplicationTaskInput{} + } - // The amount currently used toward the quota maximum. - Used *int64 `type:"long"` + output = &StartReplicationTaskOutput{} + req = c.newRequest(op, input, output) + return } -// String returns the string representation. +// StartReplicationTask API operation for AWS Database Migration Service. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccountQuota) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// Starts the replication task. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccountQuota) GoString() string { - return s.String() +// For more information about DMS tasks, see Working with Migration Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.html) +// in the Database Migration Service User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation StartReplicationTask for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTask +func (c *DatabaseMigrationService) StartReplicationTask(input *StartReplicationTaskInput) (*StartReplicationTaskOutput, error) { + req, out := c.StartReplicationTaskRequest(input) + return out, req.Send() } -// SetAccountQuotaName sets the AccountQuotaName field's value. -func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota { - s.AccountQuotaName = &v - return s +// StartReplicationTaskWithContext is the same as StartReplicationTask with the addition of +// the ability to pass a context and additional request options. +// +// See StartReplicationTask 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 *DatabaseMigrationService) StartReplicationTaskWithContext(ctx aws.Context, input *StartReplicationTaskInput, opts ...request.Option) (*StartReplicationTaskOutput, error) { + req, out := c.StartReplicationTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// SetMax sets the Max field's value. -func (s *AccountQuota) SetMax(v int64) *AccountQuota { - s.Max = &v - return s -} +const opStartReplicationTaskAssessment = "StartReplicationTaskAssessment" -// SetUsed sets the Used field's value. -func (s *AccountQuota) SetUsed(v int64) *AccountQuota { - s.Used = &v - return s +// StartReplicationTaskAssessmentRequest generates a "aws/request.Request" representing the +// client's request for the StartReplicationTaskAssessment 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 StartReplicationTaskAssessment for more information on using the StartReplicationTaskAssessment +// 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 StartReplicationTaskAssessmentRequest method. +// req, resp := client.StartReplicationTaskAssessmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment +func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRequest(input *StartReplicationTaskAssessmentInput) (req *request.Request, output *StartReplicationTaskAssessmentOutput) { + op := &request.Operation{ + Name: opStartReplicationTaskAssessment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartReplicationTaskAssessmentInput{} + } + + output = &StartReplicationTaskAssessmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartReplicationTaskAssessment API operation for AWS Database Migration Service. +// +// Starts the replication task assessment for unsupported data types in the +// source database. +// +// You can only use this operation for a task if the following conditions are +// true: +// +// * The task must be in the stopped state. +// +// * The task must have successful connections to the source and target. +// +// If either of these conditions are not met, an InvalidResourceStateFault error +// will result. +// +// For information about DMS task assessments, see Creating a task assessment +// report (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) +// in the Database Migration Service User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation StartReplicationTaskAssessment for usage and error information. +// +// Returned Error Types: +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment +func (c *DatabaseMigrationService) StartReplicationTaskAssessment(input *StartReplicationTaskAssessmentInput) (*StartReplicationTaskAssessmentOutput, error) { + req, out := c.StartReplicationTaskAssessmentRequest(input) + return out, req.Send() +} + +// StartReplicationTaskAssessmentWithContext is the same as StartReplicationTaskAssessment with the addition of +// the ability to pass a context and additional request options. +// +// See StartReplicationTaskAssessment 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 *DatabaseMigrationService) StartReplicationTaskAssessmentWithContext(ctx aws.Context, input *StartReplicationTaskAssessmentInput, opts ...request.Option) (*StartReplicationTaskAssessmentOutput, error) { + req, out := c.StartReplicationTaskAssessmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartReplicationTaskAssessmentRun = "StartReplicationTaskAssessmentRun" + +// StartReplicationTaskAssessmentRunRequest generates a "aws/request.Request" representing the +// client's request for the StartReplicationTaskAssessmentRun 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 StartReplicationTaskAssessmentRun for more information on using the StartReplicationTaskAssessmentRun +// 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 StartReplicationTaskAssessmentRunRequest method. +// req, resp := client.StartReplicationTaskAssessmentRunRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessmentRun +func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRunRequest(input *StartReplicationTaskAssessmentRunInput) (req *request.Request, output *StartReplicationTaskAssessmentRunOutput) { + op := &request.Operation{ + Name: opStartReplicationTaskAssessmentRun, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StartReplicationTaskAssessmentRunInput{} + } + + output = &StartReplicationTaskAssessmentRunOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartReplicationTaskAssessmentRun API operation for AWS Database Migration Service. +// +// Starts a new premigration assessment run for one or more individual assessments +// of a migration task. +// +// The assessments that you can specify depend on the source and target database +// engine and the migration type defined for the given task. To run this operation, +// your migration task must already be created. After you run this operation, +// you can review the status of each individual assessment. You can also run +// the migration task manually after the assessment run and its individual assessments +// complete. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation StartReplicationTaskAssessmentRun for usage and error information. +// +// Returned Error Types: +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. +// +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * KMSAccessDeniedFault +// The ciphertext references a key that doesn't exist or that the DMS account +// doesn't have access to. +// +// * KMSDisabledFault +// The specified KMS key isn't enabled. +// +// * KMSFault +// An Key Management Service (KMS) error is preventing access to KMS. +// +// * KMSInvalidStateFault +// The state of the specified KMS resource isn't valid for this request. +// +// * KMSNotFoundFault +// The specified KMS entity or resource can't be found. +// +// * KMSKeyNotAccessibleFault +// DMS cannot access the KMS key. +// +// * S3AccessDeniedFault +// Insufficient privileges are preventing access to an Amazon S3 object. +// +// * S3ResourceNotFoundFault +// A specified Amazon S3 bucket, bucket folder, or other object can't be found. +// +// * ResourceAlreadyExistsFault +// The resource you are attempting to create already exists. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessmentRun +func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRun(input *StartReplicationTaskAssessmentRunInput) (*StartReplicationTaskAssessmentRunOutput, error) { + req, out := c.StartReplicationTaskAssessmentRunRequest(input) + return out, req.Send() +} + +// StartReplicationTaskAssessmentRunWithContext is the same as StartReplicationTaskAssessmentRun with the addition of +// the ability to pass a context and additional request options. +// +// See StartReplicationTaskAssessmentRun 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 *DatabaseMigrationService) StartReplicationTaskAssessmentRunWithContext(ctx aws.Context, input *StartReplicationTaskAssessmentRunInput, opts ...request.Option) (*StartReplicationTaskAssessmentRunOutput, error) { + req, out := c.StartReplicationTaskAssessmentRunRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopReplicationTask = "StopReplicationTask" + +// StopReplicationTaskRequest generates a "aws/request.Request" representing the +// client's request for the StopReplicationTask 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 StopReplicationTask for more information on using the StopReplicationTask +// 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 StopReplicationTaskRequest method. +// req, resp := client.StopReplicationTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask +func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplicationTaskInput) (req *request.Request, output *StopReplicationTaskOutput) { + op := &request.Operation{ + Name: opStopReplicationTask, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &StopReplicationTaskInput{} + } + + output = &StopReplicationTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// StopReplicationTask API operation for AWS Database Migration Service. +// +// Stops the replication task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Database Migration Service's +// API operation StopReplicationTask for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StopReplicationTask +func (c *DatabaseMigrationService) StopReplicationTask(input *StopReplicationTaskInput) (*StopReplicationTaskOutput, error) { + req, out := c.StopReplicationTaskRequest(input) + return out, req.Send() +} + +// StopReplicationTaskWithContext is the same as StopReplicationTask with the addition of +// the ability to pass a context and additional request options. +// +// See StopReplicationTask 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 *DatabaseMigrationService) StopReplicationTaskWithContext(ctx aws.Context, input *StopReplicationTaskInput, opts ...request.Option) (*StopReplicationTaskOutput, error) { + req, out := c.StopReplicationTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTestConnection = "TestConnection" + +// TestConnectionRequest generates a "aws/request.Request" representing the +// client's request for the TestConnection 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 TestConnection for more information on using the TestConnection +// 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 TestConnectionRequest method. +// req, resp := client.TestConnectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection +func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionInput) (req *request.Request, output *TestConnectionOutput) { + op := &request.Operation{ + Name: opTestConnection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TestConnectionInput{} + } + + output = &TestConnectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// TestConnection API operation for AWS Database Migration Service. +// +// Tests the connection between the replication instance and the 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 AWS Database Migration Service's +// API operation TestConnection for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundFault +// The resource could not be found. +// +// * InvalidResourceStateFault +// The resource is in a state that prevents it from being used for database +// migration. +// +// * KMSKeyNotAccessibleFault +// DMS cannot access the KMS key. +// +// * ResourceQuotaExceededFault +// The quota for this resource quota has been exceeded. +// +// * AccessDeniedFault +// DMS was denied access to the endpoint. Check that the role is correctly configured. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection +func (c *DatabaseMigrationService) TestConnection(input *TestConnectionInput) (*TestConnectionOutput, error) { + req, out := c.TestConnectionRequest(input) + return out, req.Send() +} + +// TestConnectionWithContext is the same as TestConnection with the addition of +// the ability to pass a context and additional request options. +// +// See TestConnection 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 *DatabaseMigrationService) TestConnectionWithContext(ctx aws.Context, input *TestConnectionInput, opts ...request.Option) (*TestConnectionOutput, error) { + req, out := c.TestConnectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DMS was denied access to the endpoint. Check that the role is correctly configured. +type AccessDeniedFault 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 AccessDeniedFault) 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 AccessDeniedFault) GoString() string { + return s.String() +} + +func newErrorAccessDeniedFault(v protocol.ResponseMetadata) error { + return &AccessDeniedFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedFault) Code() string { + return "AccessDeniedFault" +} + +// Message returns the exception's message. +func (s *AccessDeniedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedFault) OrigErr() error { + return nil +} + +func (s *AccessDeniedFault) 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 *AccessDeniedFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedFault) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes a quota for an Amazon Web Services account, for example the number +// of replication instances allowed. +type AccountQuota struct { + _ struct{} `type:"structure"` + + // The name of the DMS quota for this Amazon Web Services account. + AccountQuotaName *string `type:"string"` + + // The maximum allowed value for the quota. + Max *int64 `type:"long"` + + // The amount currently used toward the quota maximum. + Used *int64 `type:"long"` +} + +// 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 AccountQuota) 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 AccountQuota) GoString() string { + return s.String() +} + +// SetAccountQuotaName sets the AccountQuotaName field's value. +func (s *AccountQuota) SetAccountQuotaName(v string) *AccountQuota { + s.AccountQuotaName = &v + return s +} + +// SetMax sets the Max field's value. +func (s *AccountQuota) SetMax(v int64) *AccountQuota { + s.Max = &v + return s +} + +// SetUsed sets the Used field's value. +func (s *AccountQuota) SetUsed(v int64) *AccountQuota { + s.Used = &v + return s +} + +// Associates a set of tags with an DMS resource. +type AddTagsToResourceInput struct { + _ struct{} `type:"structure"` + + // Identifies the DMS resource to which tags should be added. The value for + // this parameter is an Amazon Resource Name (ARN). + // + // For DMS, you can tag a replication instance, an endpoint, or a replication + // task. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` + + // One or more tags to be assigned to the resource. + // + // Tags is a required field + Tags []*Tag `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 AddTagsToResourceInput) 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 AddTagsToResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AddTagsToResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { + s.Tags = v + return s +} + +type AddTagsToResourceOutput 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 AddTagsToResourceOutput) 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 AddTagsToResourceOutput) GoString() string { + return s.String() +} + +type ApplyPendingMaintenanceActionInput struct { + _ struct{} `type:"structure"` + + // The pending maintenance action to apply to this resource. + // + // Valid values: os-upgrade, system-update, db-upgrade + // + // ApplyAction is a required field + ApplyAction *string `type:"string" required:"true"` + + // A value that specifies the type of opt-in request, or undoes an opt-in request. + // You can't undo an opt-in request of type immediate. + // + // Valid values: + // + // * immediate - Apply the maintenance action immediately. + // + // * next-maintenance - Apply the maintenance action during the next maintenance + // window for the resource. + // + // * undo-opt-in - Cancel any existing next-maintenance opt-in requests. + // + // OptInType is a required field + OptInType *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance + // action applies to. + // + // ReplicationInstanceArn is a required field + ReplicationInstanceArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplyPendingMaintenanceActionInput) 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 ApplyPendingMaintenanceActionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ApplyPendingMaintenanceActionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"} + if s.ApplyAction == nil { + invalidParams.Add(request.NewErrParamRequired("ApplyAction")) + } + if s.OptInType == nil { + invalidParams.Add(request.NewErrParamRequired("OptInType")) + } + if s.ReplicationInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplyAction sets the ApplyAction field's value. +func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput { + s.ApplyAction = &v + return s +} + +// SetOptInType sets the OptInType field's value. +func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput { + s.OptInType = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *ApplyPendingMaintenanceActionInput) SetReplicationInstanceArn(v string) *ApplyPendingMaintenanceActionInput { + s.ReplicationInstanceArn = &v + return s +} + +type ApplyPendingMaintenanceActionOutput struct { + _ struct{} `type:"structure"` + + // The DMS resource that the pending maintenance action will be applied to. + ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `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 ApplyPendingMaintenanceActionOutput) 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 ApplyPendingMaintenanceActionOutput) GoString() string { + return s.String() +} + +// SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value. +func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput { + s.ResourcePendingMaintenanceActions = v + return s +} + +// The name of an Availability Zone for use during database migration. AvailabilityZone +// is an optional parameter to the CreateReplicationInstance (https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationInstance.html) +// operation, and it’s value relates to the Amazon Web Services Region of +// an endpoint. For example, the availability zone of an endpoint in the us-east-1 +// region might be us-east-1a, us-east-1b, us-east-1c, or us-east-1d. +type AvailabilityZone struct { + _ struct{} `type:"structure"` + + // The name of the Availability Zone. + Name *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AvailabilityZone) 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 AvailabilityZone) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { + s.Name = &v + return s +} + +type CancelReplicationTaskAssessmentRunInput struct { + _ struct{} `type:"structure"` + + // Amazon Resource Name (ARN) of the premigration assessment run to be canceled. + // + // ReplicationTaskAssessmentRunArn is a required field + ReplicationTaskAssessmentRunArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelReplicationTaskAssessmentRunInput) 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 CancelReplicationTaskAssessmentRunInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelReplicationTaskAssessmentRunInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelReplicationTaskAssessmentRunInput"} + if s.ReplicationTaskAssessmentRunArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationTaskAssessmentRunArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetReplicationTaskAssessmentRunArn sets the ReplicationTaskAssessmentRunArn field's value. +func (s *CancelReplicationTaskAssessmentRunInput) SetReplicationTaskAssessmentRunArn(v string) *CancelReplicationTaskAssessmentRunInput { + s.ReplicationTaskAssessmentRunArn = &v + return s +} + +type CancelReplicationTaskAssessmentRunOutput struct { + _ struct{} `type:"structure"` + + // The ReplicationTaskAssessmentRun object for the canceled assessment run. + ReplicationTaskAssessmentRun *ReplicationTaskAssessmentRun `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 CancelReplicationTaskAssessmentRunOutput) 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 CancelReplicationTaskAssessmentRunOutput) GoString() string { + return s.String() +} + +// SetReplicationTaskAssessmentRun sets the ReplicationTaskAssessmentRun field's value. +func (s *CancelReplicationTaskAssessmentRunOutput) SetReplicationTaskAssessmentRun(v *ReplicationTaskAssessmentRun) *CancelReplicationTaskAssessmentRunOutput { + s.ReplicationTaskAssessmentRun = v + return s +} + +// The SSL certificate that can be used to encrypt connections between the endpoints +// and the replication instance. +type Certificate struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the certificate. + CertificateArn *string `type:"string"` + + // The date that the certificate was created. + CertificateCreationDate *time.Time `type:"timestamp"` + + // A customer-assigned name for the certificate. Identifiers must begin with + // a letter and must contain only ASCII letters, digits, and hyphens. They can't + // end with a hyphen or contain two consecutive hyphens. + CertificateIdentifier *string `type:"string"` + + // The owner of the certificate. + CertificateOwner *string `type:"string"` + + // The contents of a .pem file, which contains an X.509 certificate. + CertificatePem *string `type:"string"` + + // The location of an imported Oracle Wallet certificate for use with SSL. Example: + // filebase64("${path.root}/rds-ca-2019-root.sso") + // CertificateWallet is automatically base64 encoded/decoded by the SDK. + CertificateWallet []byte `type:"blob"` + + // The key length of the cryptographic algorithm being used. + KeyLength *int64 `type:"integer"` + + // The signing algorithm for the certificate. + SigningAlgorithm *string `type:"string"` + + // The beginning date that the certificate is valid. + ValidFromDate *time.Time `type:"timestamp"` + + // The final date that the certificate is valid. + ValidToDate *time.Time `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 Certificate) 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 Certificate) GoString() string { + return s.String() +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *Certificate) SetCertificateArn(v string) *Certificate { + s.CertificateArn = &v + return s +} + +// SetCertificateCreationDate sets the CertificateCreationDate field's value. +func (s *Certificate) SetCertificateCreationDate(v time.Time) *Certificate { + s.CertificateCreationDate = &v + return s +} + +// SetCertificateIdentifier sets the CertificateIdentifier field's value. +func (s *Certificate) SetCertificateIdentifier(v string) *Certificate { + s.CertificateIdentifier = &v + return s +} + +// SetCertificateOwner sets the CertificateOwner field's value. +func (s *Certificate) SetCertificateOwner(v string) *Certificate { + s.CertificateOwner = &v + return s +} + +// SetCertificatePem sets the CertificatePem field's value. +func (s *Certificate) SetCertificatePem(v string) *Certificate { + s.CertificatePem = &v + return s +} + +// SetCertificateWallet sets the CertificateWallet field's value. +func (s *Certificate) SetCertificateWallet(v []byte) *Certificate { + s.CertificateWallet = v + return s +} + +// SetKeyLength sets the KeyLength field's value. +func (s *Certificate) SetKeyLength(v int64) *Certificate { + s.KeyLength = &v + return s +} + +// SetSigningAlgorithm sets the SigningAlgorithm field's value. +func (s *Certificate) SetSigningAlgorithm(v string) *Certificate { + s.SigningAlgorithm = &v + return s +} + +// SetValidFromDate sets the ValidFromDate field's value. +func (s *Certificate) SetValidFromDate(v time.Time) *Certificate { + s.ValidFromDate = &v + return s +} + +// SetValidToDate sets the ValidToDate field's value. +func (s *Certificate) SetValidToDate(v time.Time) *Certificate { + s.ValidToDate = &v + return s +} + +// Describes the last Fleet Advisor collector health check. +type CollectorHealthCheck struct { + _ struct{} `type:"structure"` + + // The status of the Fleet Advisor collector. + CollectorStatus *string `type:"string" enum:"CollectorStatus"` + + // Whether the local collector can access its Amazon S3 bucket. + LocalCollectorS3Access *bool `type:"boolean"` + + // Whether the role that you provided when creating the Fleet Advisor collector + // has sufficient permissions to access the Fleet Advisor web collector. + WebCollectorGrantedRoleBasedAccess *bool `type:"boolean"` + + // Whether the web collector can access its Amazon S3 bucket. + WebCollectorS3Access *bool `type:"boolean"` +} + +// 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 CollectorHealthCheck) 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 CollectorHealthCheck) GoString() string { + return s.String() +} + +// SetCollectorStatus sets the CollectorStatus field's value. +func (s *CollectorHealthCheck) SetCollectorStatus(v string) *CollectorHealthCheck { + s.CollectorStatus = &v + return s +} + +// SetLocalCollectorS3Access sets the LocalCollectorS3Access field's value. +func (s *CollectorHealthCheck) SetLocalCollectorS3Access(v bool) *CollectorHealthCheck { + s.LocalCollectorS3Access = &v + return s +} + +// SetWebCollectorGrantedRoleBasedAccess sets the WebCollectorGrantedRoleBasedAccess field's value. +func (s *CollectorHealthCheck) SetWebCollectorGrantedRoleBasedAccess(v bool) *CollectorHealthCheck { + s.WebCollectorGrantedRoleBasedAccess = &v + return s +} + +// SetWebCollectorS3Access sets the WebCollectorS3Access field's value. +func (s *CollectorHealthCheck) SetWebCollectorS3Access(v bool) *CollectorHealthCheck { + s.WebCollectorS3Access = &v + return s +} + +// The specified collector doesn't exist. +type CollectorNotFoundFault 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 CollectorNotFoundFault) 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 CollectorNotFoundFault) GoString() string { + return s.String() +} + +func newErrorCollectorNotFoundFault(v protocol.ResponseMetadata) error { + return &CollectorNotFoundFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *CollectorNotFoundFault) Code() string { + return "CollectorNotFoundFault" +} + +// Message returns the exception's message. +func (s *CollectorNotFoundFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *CollectorNotFoundFault) OrigErr() error { + return nil +} + +func (s *CollectorNotFoundFault) 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 *CollectorNotFoundFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *CollectorNotFoundFault) RequestID() string { + return s.RespMetadata.RequestID +} + +// Describes a Fleet Advisor collector. +type CollectorResponse struct { + _ struct{} `type:"structure"` + + // Describes the last Fleet Advisor collector health check. + CollectorHealthCheck *CollectorHealthCheck `type:"structure"` + + // The name of the Fleet Advisor collector . + CollectorName *string `type:"string"` + + // The reference ID of the Fleet Advisor collector. + CollectorReferencedId *string `type:"string"` + + // The version of your Fleet Advisor collector, in semantic versioning format, + // for example 1.0.2 + CollectorVersion *string `type:"string"` + + // The timestamp when you created the collector, in the following format: 2022-01-24T19:04:02.596113Z + CreatedDate *string `type:"string"` + + // A summary description of the Fleet Advisor collector. + Description *string `type:"string"` + + // Describes a Fleet Advisor collector inventory. + InventoryData *InventoryData `type:"structure"` + + // The timestamp of the last time the collector received data, in the following + // format: 2022-01-24T19:04:02.596113Z + LastDataReceived *string `type:"string"` + + // The timestamp when DMS last modified the collector, in the following format: + // 2022-01-24T19:04:02.596113Z + ModifiedDate *string `type:"string"` + + // The timestamp when DMS registered the collector, in the following format: + // 2022-01-24T19:04:02.596113Z + RegisteredDate *string `type:"string"` + + // The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory + // metadata. + S3BucketName *string `type:"string"` + + // The IAM role that grants permissions to access the specified Amazon S3 bucket. + ServiceAccessRoleArn *string `type:"string"` + + // Whether the collector version is up to date. + VersionStatus *string `type:"string" enum:"VersionStatus"` +} + +// 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 CollectorResponse) 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 CollectorResponse) GoString() string { + return s.String() +} + +// SetCollectorHealthCheck sets the CollectorHealthCheck field's value. +func (s *CollectorResponse) SetCollectorHealthCheck(v *CollectorHealthCheck) *CollectorResponse { + s.CollectorHealthCheck = v + return s +} + +// SetCollectorName sets the CollectorName field's value. +func (s *CollectorResponse) SetCollectorName(v string) *CollectorResponse { + s.CollectorName = &v + return s +} + +// SetCollectorReferencedId sets the CollectorReferencedId field's value. +func (s *CollectorResponse) SetCollectorReferencedId(v string) *CollectorResponse { + s.CollectorReferencedId = &v + return s +} + +// SetCollectorVersion sets the CollectorVersion field's value. +func (s *CollectorResponse) SetCollectorVersion(v string) *CollectorResponse { + s.CollectorVersion = &v + return s +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *CollectorResponse) SetCreatedDate(v string) *CollectorResponse { + s.CreatedDate = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CollectorResponse) SetDescription(v string) *CollectorResponse { + s.Description = &v + return s +} + +// SetInventoryData sets the InventoryData field's value. +func (s *CollectorResponse) SetInventoryData(v *InventoryData) *CollectorResponse { + s.InventoryData = v + return s +} + +// SetLastDataReceived sets the LastDataReceived field's value. +func (s *CollectorResponse) SetLastDataReceived(v string) *CollectorResponse { + s.LastDataReceived = &v + return s +} + +// SetModifiedDate sets the ModifiedDate field's value. +func (s *CollectorResponse) SetModifiedDate(v string) *CollectorResponse { + s.ModifiedDate = &v + return s +} + +// SetRegisteredDate sets the RegisteredDate field's value. +func (s *CollectorResponse) SetRegisteredDate(v string) *CollectorResponse { + s.RegisteredDate = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *CollectorResponse) SetS3BucketName(v string) *CollectorResponse { + s.S3BucketName = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *CollectorResponse) SetServiceAccessRoleArn(v string) *CollectorResponse { + s.ServiceAccessRoleArn = &v + return s +} + +// SetVersionStatus sets the VersionStatus field's value. +func (s *CollectorResponse) SetVersionStatus(v string) *CollectorResponse { + s.VersionStatus = &v + return s +} + +// Briefly describes a Fleet Advisor collector. +type CollectorShortInfoResponse struct { + _ struct{} `type:"structure"` + + // The name of the Fleet Advisor collector. + CollectorName *string `type:"string"` + + // The reference ID of the Fleet Advisor collector. + CollectorReferencedId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CollectorShortInfoResponse) 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 CollectorShortInfoResponse) GoString() string { + return s.String() +} + +// SetCollectorName sets the CollectorName field's value. +func (s *CollectorShortInfoResponse) SetCollectorName(v string) *CollectorShortInfoResponse { + s.CollectorName = &v + return s +} + +// SetCollectorReferencedId sets the CollectorReferencedId field's value. +func (s *CollectorShortInfoResponse) SetCollectorReferencedId(v string) *CollectorShortInfoResponse { + s.CollectorReferencedId = &v + return s +} + +// Status of the connection between an endpoint and a replication instance, +// including Amazon Resource Names (ARNs) and the last error message issued. +type Connection struct { + _ struct{} `type:"structure"` + + // The ARN string that uniquely identifies the endpoint. + EndpointArn *string `type:"string"` + + // The identifier of the endpoint. Identifiers must begin with a letter and + // must contain only ASCII letters, digits, and hyphens. They can't end with + // a hyphen or contain two consecutive hyphens. + EndpointIdentifier *string `type:"string"` + + // The error message when the connection last failed. + LastFailureMessage *string `type:"string"` + + // The ARN of the replication instance. + ReplicationInstanceArn *string `type:"string"` + + // The replication instance identifier. This parameter is stored as a lowercase + // string. + ReplicationInstanceIdentifier *string `type:"string"` + + // The connection status. This parameter can return one of the following values: + // + // * "successful" + // + // * "testing" + // + // * "failed" + // + // * "deleting" + Status *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Connection) 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 Connection) GoString() string { + return s.String() +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *Connection) SetEndpointArn(v string) *Connection { + s.EndpointArn = &v + return s +} + +// SetEndpointIdentifier sets the EndpointIdentifier field's value. +func (s *Connection) SetEndpointIdentifier(v string) *Connection { + s.EndpointIdentifier = &v + return s +} + +// SetLastFailureMessage sets the LastFailureMessage field's value. +func (s *Connection) SetLastFailureMessage(v string) *Connection { + s.LastFailureMessage = &v + return s +} + +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *Connection) SetReplicationInstanceArn(v string) *Connection { + s.ReplicationInstanceArn = &v + return s +} + +// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. +func (s *Connection) SetReplicationInstanceIdentifier(v string) *Connection { + s.ReplicationInstanceIdentifier = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Connection) SetStatus(v string) *Connection { + s.Status = &v + return s +} + +type CreateEndpointInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the certificate. + CertificateArn *string `type:"string"` + + // The name of the endpoint database. For a MySQL source or target endpoint, + // do not specify DatabaseName. To migrate to a specific database, use this + // setting and targetDbType. + DatabaseName *string `type:"string"` + + // The settings in JSON format for the DMS transfer type of source endpoint. + // + // Possible settings include the following: + // + // * ServiceAccessRoleArn - The Amazon Resource Name (ARN) used by the service + // access IAM role. The role must allow the iam:PassRole action. + // + // * BucketName - The name of the S3 bucket to use. + // + // Shorthand syntax for these settings is as follows: ServiceAccessRoleArn=string,BucketName=string + // + // JSON syntax for these settings is as follows: { "ServiceAccessRoleArn": "string", + // "BucketName": "string", } + DmsTransferSettings *DmsTransferSettings `type:"structure"` + + // Provides information that defines a DocumentDB endpoint. + DocDbSettings *DocDbSettings `type:"structure"` + + // Settings in JSON format for the target Amazon DynamoDB endpoint. For information + // about other available settings, see Using Object Mapping to Migrate Data + // to DynamoDB (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html#CHAP_Target.DynamoDB.ObjectMapping) + // in the Database Migration Service User Guide. + DynamoDbSettings *DynamoDbSettings `type:"structure"` + + // Settings in JSON format for the target OpenSearch endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // OpenSearch as a Target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration) + // in the Database Migration Service User Guide. + ElasticsearchSettings *ElasticsearchSettings `type:"structure"` + + // The database endpoint identifier. Identifiers must begin with a letter and + // must contain only ASCII letters, digits, and hyphens. They can't end with + // a hyphen, or contain two consecutive hyphens. + // + // EndpointIdentifier is a required field + EndpointIdentifier *string `type:"string" required:"true"` + + // The type of endpoint. Valid values are source and target. + // + // EndpointType is a required field + EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"` + + // The type of engine for the endpoint. Valid values, depending on the EndpointType + // value, include "mysql", "oracle", "postgres", "mariadb", "aurora", "aurora-postgresql", + // "opensearch", "redshift", "s3", "db2", "azuredb", "sybase", "dynamodb", "mongodb", + // "kinesis", "kafka", "elasticsearch", "docdb", "sqlserver", and "neptune". + // + // EngineName is a required field + EngineName *string `type:"string" required:"true"` + + // The external table definition. + ExternalTableDefinition *string `type:"string"` + + // Additional attributes associated with the connection. Each attribute is specified + // as a name-value pair associated by an equal sign (=). Multiple attributes + // are separated by a semicolon (;) with no additional white space. For information + // on the attributes available for connecting your source or target endpoint, + // see Working with DMS Endpoints (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Endpoints.html) + // in the Database Migration Service User Guide. + ExtraConnectionAttributes *string `type:"string"` + + // Settings in JSON format for the source GCP MySQL endpoint. + GcpMySQLSettings *GcpMySQLSettings `type:"structure"` + + // Settings in JSON format for the source IBM Db2 LUW endpoint. For information + // about other available settings, see Extra connection attributes when using + // Db2 LUW as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.html#CHAP_Source.DB2.ConnectionAttrib) + // in the Database Migration Service User Guide. + IBMDb2Settings *IBMDb2Settings `type:"structure"` + + // Settings in JSON format for the target Apache Kafka endpoint. For more information + // about the available settings, see Using object mapping to migrate data to + // a Kafka topic (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping) + // in the Database Migration Service User Guide. + KafkaSettings *KafkaSettings `type:"structure"` + + // Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. + // For more information about the available settings, see Using object mapping + // to migrate data to a Kinesis data stream (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping) + // in the Database Migration Service User Guide. + KinesisSettings *KinesisSettings `type:"structure"` + + // An KMS key identifier that is used to encrypt the connection parameters for + // the endpoint. + // + // If you don't specify a value for the KmsKeyId parameter, then DMS uses your + // default encryption key. + // + // KMS creates the default encryption key for your Amazon Web Services account. + // Your Amazon Web Services account has a different default encryption key for + // each Amazon Web Services Region. + KmsKeyId *string `type:"string"` + + // Settings in JSON format for the source and target Microsoft SQL Server endpoint. + // For information about other available settings, see Extra connection attributes + // when using SQL Server as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html#CHAP_Source.SQLServer.ConnectionAttrib) + // and Extra connection attributes when using SQL Server as a target for DMS + // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.html#CHAP_Target.SQLServer.ConnectionAttrib) + // in the Database Migration Service User Guide. + MicrosoftSQLServerSettings *MicrosoftSQLServerSettings `type:"structure"` + + // Settings in JSON format for the source MongoDB endpoint. For more information + // about the available settings, see Endpoint configuration settings when using + // MongoDB as a source for Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration) + // in the Database Migration Service User Guide. + MongoDbSettings *MongoDbSettings `type:"structure"` + + // Settings in JSON format for the source and target MySQL endpoint. For information + // about other available settings, see Extra connection attributes when using + // MySQL as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.ConnectionAttrib) + // and Extra connection attributes when using a MySQL-compatible database as + // a target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html#CHAP_Target.MySQL.ConnectionAttrib) + // in the Database Migration Service User Guide. + MySQLSettings *MySQLSettings `type:"structure"` + + // Settings in JSON format for the target Amazon Neptune endpoint. For more + // information about the available settings, see Specifying graph-mapping rules + // using Gremlin and R2RML for Amazon Neptune as a target (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings) + // in the Database Migration Service User Guide. + NeptuneSettings *NeptuneSettings `type:"structure"` + + // Settings in JSON format for the source and target Oracle endpoint. For information + // about other available settings, see Extra connection attributes when using + // Oracle as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.ConnectionAttrib) + // and Extra connection attributes when using Oracle as a target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html#CHAP_Target.Oracle.ConnectionAttrib) + // in the Database Migration Service User Guide. + OracleSettings *OracleSettings `type:"structure"` + + // The password to be used to log in to the endpoint database. + // + // Password is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateEndpointInput's + // String and GoString methods. + Password *string `type:"string" sensitive:"true"` + + // The port used by the endpoint database. + Port *int64 `type:"integer"` + + // Settings in JSON format for the source and target PostgreSQL endpoint. For + // information about other available settings, see Extra connection attributes + // when using PostgreSQL as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib) + // and Extra connection attributes when using PostgreSQL as a target for DMS + // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html#CHAP_Target.PostgreSQL.ConnectionAttrib) + // in the Database Migration Service User Guide. + PostgreSQLSettings *PostgreSQLSettings `type:"structure"` + + // Settings in JSON format for the target Redis endpoint. + RedisSettings *RedisSettings `type:"structure"` + + // Provides information that defines an Amazon Redshift endpoint. + RedshiftSettings *RedshiftSettings `type:"structure"` + + // A friendly name for the resource identifier at the end of the EndpointArn + // response parameter that is returned in the created Endpoint object. The value + // for this parameter can have up to 31 characters. It can contain only ASCII + // letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain + // two consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. + // For example, this value might result in the EndpointArn value arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. + // If you don't specify a ResourceIdentifier value, DMS generates a default + // identifier value for the end of EndpointArn. + ResourceIdentifier *string `type:"string"` + + // Settings in JSON format for the target Amazon S3 endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // Amazon S3 as a Target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring) + // in the Database Migration Service User Guide. + S3Settings *S3Settings `type:"structure"` + + // The name of the server where the endpoint database resides. + ServerName *string `type:"string"` + + // The Amazon Resource Name (ARN) for the service access role that you want + // to use to create the endpoint. The role must allow the iam:PassRole action. + ServiceAccessRoleArn *string `type:"string"` + + // The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default + // is none + SslMode *string `type:"string" enum:"DmsSslModeValue"` + + // Settings in JSON format for the source and target SAP ASE endpoint. For information + // about other available settings, see Extra connection attributes when using + // SAP ASE as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.html#CHAP_Source.SAP.ConnectionAttrib) + // and Extra connection attributes when using SAP ASE as a target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.html#CHAP_Target.SAP.ConnectionAttrib) + // in the Database Migration Service User Guide. + SybaseSettings *SybaseSettings `type:"structure"` + + // One or more tags to be assigned to the endpoint. + Tags []*Tag `type:"list"` + + // The user name to be used to log in to the endpoint database. + Username *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEndpointInput) 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 CreateEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} + if s.EndpointIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointIdentifier")) + } + if s.EndpointType == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointType")) + } + if s.EngineName == nil { + invalidParams.Add(request.NewErrParamRequired("EngineName")) + } + if s.DynamoDbSettings != nil { + if err := s.DynamoDbSettings.Validate(); err != nil { + invalidParams.AddNested("DynamoDbSettings", err.(request.ErrInvalidParams)) + } + } + if s.ElasticsearchSettings != nil { + if err := s.ElasticsearchSettings.Validate(); err != nil { + invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams)) + } + } + if s.NeptuneSettings != nil { + if err := s.NeptuneSettings.Validate(); err != nil { + invalidParams.AddNested("NeptuneSettings", err.(request.ErrInvalidParams)) + } + } + if s.RedisSettings != nil { + if err := s.RedisSettings.Validate(); err != nil { + invalidParams.AddNested("RedisSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *CreateEndpointInput) SetCertificateArn(v string) *CreateEndpointInput { + s.CertificateArn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *CreateEndpointInput) SetDatabaseName(v string) *CreateEndpointInput { + s.DatabaseName = &v + return s +} + +// SetDmsTransferSettings sets the DmsTransferSettings field's value. +func (s *CreateEndpointInput) SetDmsTransferSettings(v *DmsTransferSettings) *CreateEndpointInput { + s.DmsTransferSettings = v + return s +} + +// SetDocDbSettings sets the DocDbSettings field's value. +func (s *CreateEndpointInput) SetDocDbSettings(v *DocDbSettings) *CreateEndpointInput { + s.DocDbSettings = v + return s +} + +// SetDynamoDbSettings sets the DynamoDbSettings field's value. +func (s *CreateEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *CreateEndpointInput { + s.DynamoDbSettings = v + return s +} + +// SetElasticsearchSettings sets the ElasticsearchSettings field's value. +func (s *CreateEndpointInput) SetElasticsearchSettings(v *ElasticsearchSettings) *CreateEndpointInput { + s.ElasticsearchSettings = v + return s +} + +// SetEndpointIdentifier sets the EndpointIdentifier field's value. +func (s *CreateEndpointInput) SetEndpointIdentifier(v string) *CreateEndpointInput { + s.EndpointIdentifier = &v + return s +} + +// SetEndpointType sets the EndpointType field's value. +func (s *CreateEndpointInput) SetEndpointType(v string) *CreateEndpointInput { + s.EndpointType = &v + return s +} + +// SetEngineName sets the EngineName field's value. +func (s *CreateEndpointInput) SetEngineName(v string) *CreateEndpointInput { + s.EngineName = &v + return s +} + +// SetExternalTableDefinition sets the ExternalTableDefinition field's value. +func (s *CreateEndpointInput) SetExternalTableDefinition(v string) *CreateEndpointInput { + s.ExternalTableDefinition = &v + return s +} + +// SetExtraConnectionAttributes sets the ExtraConnectionAttributes field's value. +func (s *CreateEndpointInput) SetExtraConnectionAttributes(v string) *CreateEndpointInput { + s.ExtraConnectionAttributes = &v + return s +} + +// SetGcpMySQLSettings sets the GcpMySQLSettings field's value. +func (s *CreateEndpointInput) SetGcpMySQLSettings(v *GcpMySQLSettings) *CreateEndpointInput { + s.GcpMySQLSettings = v + return s +} + +// SetIBMDb2Settings sets the IBMDb2Settings field's value. +func (s *CreateEndpointInput) SetIBMDb2Settings(v *IBMDb2Settings) *CreateEndpointInput { + s.IBMDb2Settings = v + return s +} + +// SetKafkaSettings sets the KafkaSettings field's value. +func (s *CreateEndpointInput) SetKafkaSettings(v *KafkaSettings) *CreateEndpointInput { + s.KafkaSettings = v + return s +} + +// SetKinesisSettings sets the KinesisSettings field's value. +func (s *CreateEndpointInput) SetKinesisSettings(v *KinesisSettings) *CreateEndpointInput { + s.KinesisSettings = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateEndpointInput) SetKmsKeyId(v string) *CreateEndpointInput { + s.KmsKeyId = &v + return s +} + +// SetMicrosoftSQLServerSettings sets the MicrosoftSQLServerSettings field's value. +func (s *CreateEndpointInput) SetMicrosoftSQLServerSettings(v *MicrosoftSQLServerSettings) *CreateEndpointInput { + s.MicrosoftSQLServerSettings = v + return s +} + +// SetMongoDbSettings sets the MongoDbSettings field's value. +func (s *CreateEndpointInput) SetMongoDbSettings(v *MongoDbSettings) *CreateEndpointInput { + s.MongoDbSettings = v + return s +} + +// SetMySQLSettings sets the MySQLSettings field's value. +func (s *CreateEndpointInput) SetMySQLSettings(v *MySQLSettings) *CreateEndpointInput { + s.MySQLSettings = v + return s +} + +// SetNeptuneSettings sets the NeptuneSettings field's value. +func (s *CreateEndpointInput) SetNeptuneSettings(v *NeptuneSettings) *CreateEndpointInput { + s.NeptuneSettings = v + return s +} + +// SetOracleSettings sets the OracleSettings field's value. +func (s *CreateEndpointInput) SetOracleSettings(v *OracleSettings) *CreateEndpointInput { + s.OracleSettings = v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateEndpointInput) SetPassword(v string) *CreateEndpointInput { + s.Password = &v + return s +} + +// SetPort sets the Port field's value. +func (s *CreateEndpointInput) SetPort(v int64) *CreateEndpointInput { + s.Port = &v + return s +} + +// SetPostgreSQLSettings sets the PostgreSQLSettings field's value. +func (s *CreateEndpointInput) SetPostgreSQLSettings(v *PostgreSQLSettings) *CreateEndpointInput { + s.PostgreSQLSettings = v + return s +} + +// SetRedisSettings sets the RedisSettings field's value. +func (s *CreateEndpointInput) SetRedisSettings(v *RedisSettings) *CreateEndpointInput { + s.RedisSettings = v + return s +} + +// SetRedshiftSettings sets the RedshiftSettings field's value. +func (s *CreateEndpointInput) SetRedshiftSettings(v *RedshiftSettings) *CreateEndpointInput { + s.RedshiftSettings = v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *CreateEndpointInput) SetResourceIdentifier(v string) *CreateEndpointInput { + s.ResourceIdentifier = &v + return s } -// Associates a set of tags with an DMS resource. -type AddTagsToResourceInput struct { +// SetS3Settings sets the S3Settings field's value. +func (s *CreateEndpointInput) SetS3Settings(v *S3Settings) *CreateEndpointInput { + s.S3Settings = v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *CreateEndpointInput) SetServerName(v string) *CreateEndpointInput { + s.ServerName = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *CreateEndpointInput) SetServiceAccessRoleArn(v string) *CreateEndpointInput { + s.ServiceAccessRoleArn = &v + return s +} + +// SetSslMode sets the SslMode field's value. +func (s *CreateEndpointInput) SetSslMode(v string) *CreateEndpointInput { + s.SslMode = &v + return s +} + +// SetSybaseSettings sets the SybaseSettings field's value. +func (s *CreateEndpointInput) SetSybaseSettings(v *SybaseSettings) *CreateEndpointInput { + s.SybaseSettings = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { + s.Tags = v + return s +} + +// SetUsername sets the Username field's value. +func (s *CreateEndpointInput) SetUsername(v string) *CreateEndpointInput { + s.Username = &v + return s +} + +type CreateEndpointOutput struct { _ struct{} `type:"structure"` - // Identifies the DMS resource to which tags should be added. The value for - // this parameter is an Amazon Resource Name (ARN). + // The endpoint that was created. + Endpoint *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 CreateEndpointOutput) 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 CreateEndpointOutput) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *CreateEndpointOutput) SetEndpoint(v *Endpoint) *CreateEndpointOutput { + s.Endpoint = v + return s +} + +type CreateEventSubscriptionInput struct { + _ struct{} `type:"structure"` + + // A Boolean value; set to true to activate the subscription, or set to false + // to create the subscription but not activate it. + Enabled *bool `type:"boolean"` + + // A list of event categories for a source type that you want to subscribe to. + // For more information, see Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) + // in the Database Migration Service User Guide. + EventCategories []*string `type:"list"` + + // The Amazon Resource Name (ARN) of the Amazon SNS topic created for event + // notification. The ARN is created by Amazon SNS when you create a topic and + // subscribe to it. // - // For DMS, you can tag a replication instance, an endpoint, or a replication - // task. + // SnsTopicArn is a required field + SnsTopicArn *string `type:"string" required:"true"` + + // A list of identifiers for which DMS provides notification events. // - // ResourceArn is a required field - ResourceArn *string `type:"string" required:"true"` + // If you don't specify a value, notifications are provided for all sources. + // + // If you specify multiple values, they must be of the same type. For example, + // if you specify a database instance ID, then all of the other values must + // be database instance IDs. + SourceIds []*string `type:"list"` - // One or more tags to be assigned to the resource. + // The type of DMS resource that generates the events. For example, if you want + // to be notified of events generated by a replication instance, you set this + // parameter to replication-instance. If this value isn't specified, all events + // are returned. // - // Tags is a required field - Tags []*Tag `type:"list" required:"true"` + // Valid values: replication-instance | replication-task + SourceType *string `type:"string"` + + // The name of the DMS event notification subscription. This name must be less + // than 255 characters. + // + // SubscriptionName is a required field + SubscriptionName *string `type:"string" required:"true"` + + // One or more tags to be assigned to the event subscription. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6107,7 +8498,7 @@ type AddTagsToResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AddTagsToResourceInput) String() string { +func (s CreateEventSubscriptionInput) String() string { return awsutil.Prettify(s) } @@ -6116,18 +8507,151 @@ func (s AddTagsToResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AddTagsToResourceInput) GoString() string { +func (s CreateEventSubscriptionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AddTagsToResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AddTagsToResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) +func (s *CreateEventSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"} + if s.SnsTopicArn == nil { + invalidParams.Add(request.NewErrParamRequired("SnsTopicArn")) + } + if s.SubscriptionName == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnabled sets the Enabled field's value. +func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput { + s.Enabled = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput { + s.EventCategories = v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput { + s.SnsTopicArn = &v + return s +} + +// SetSourceIds sets the SourceIds field's value. +func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput { + s.SourceIds = v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput { + s.SourceType = &v + return s +} + +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput { + s.SubscriptionName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput { + s.Tags = v + return s +} + +type CreateEventSubscriptionOutput struct { + _ struct{} `type:"structure"` + + // The event subscription that was created. + EventSubscription *EventSubscription `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 CreateEventSubscriptionOutput) 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 CreateEventSubscriptionOutput) GoString() string { + return s.String() +} + +// SetEventSubscription sets the EventSubscription field's value. +func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput { + s.EventSubscription = v + return s +} + +type CreateFleetAdvisorCollectorInput struct { + _ struct{} `type:"structure"` + + // The name of your Fleet Advisor collector (for example, sample-collector). + // + // CollectorName is a required field + CollectorName *string `type:"string" required:"true"` + + // A summary description of your Fleet Advisor collector. + Description *string `type:"string"` + + // The Amazon S3 bucket that the Fleet Advisor collector uses to store inventory + // metadata. + // + // S3BucketName is a required field + S3BucketName *string `type:"string" required:"true"` + + // The IAM role that grants permissions to access the specified Amazon S3 bucket. + // + // ServiceAccessRoleArn is a required field + ServiceAccessRoleArn *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateFleetAdvisorCollectorInput) 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 CreateFleetAdvisorCollectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFleetAdvisorCollectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFleetAdvisorCollectorInput"} + if s.CollectorName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectorName")) + } + if s.S3BucketName == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketName")) } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) + if s.ServiceAccessRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceAccessRoleArn")) } if invalidParams.Len() > 0 { @@ -6136,20 +8660,47 @@ func (s *AddTagsToResourceInput) Validate() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *AddTagsToResourceInput) SetResourceArn(v string) *AddTagsToResourceInput { - s.ResourceArn = &v +// SetCollectorName sets the CollectorName field's value. +func (s *CreateFleetAdvisorCollectorInput) SetCollectorName(v string) *CreateFleetAdvisorCollectorInput { + s.CollectorName = &v return s } -// SetTags sets the Tags field's value. -func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput { - s.Tags = v +// SetDescription sets the Description field's value. +func (s *CreateFleetAdvisorCollectorInput) SetDescription(v string) *CreateFleetAdvisorCollectorInput { + s.Description = &v return s } -type AddTagsToResourceOutput struct { +// SetS3BucketName sets the S3BucketName field's value. +func (s *CreateFleetAdvisorCollectorInput) SetS3BucketName(v string) *CreateFleetAdvisorCollectorInput { + s.S3BucketName = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *CreateFleetAdvisorCollectorInput) SetServiceAccessRoleArn(v string) *CreateFleetAdvisorCollectorInput { + s.ServiceAccessRoleArn = &v + return s +} + +type CreateFleetAdvisorCollectorOutput struct { _ struct{} `type:"structure"` + + // The name of the new Fleet Advisor collector. + CollectorName *string `type:"string"` + + // The unique ID of the new Fleet Advisor collector, for example: 22fda70c-40d5-4acf-b233-a495bd8eb7f5 + CollectorReferencedId *string `type:"string"` + + // A summary description of the Fleet Advisor collector. + Description *string `type:"string"` + + // The Amazon S3 bucket that the collector uses to store inventory metadata. + S3BucketName *string `type:"string"` + + // The IAM role that grants permissions to access the specified Amazon S3 bucket. + ServiceAccessRoleArn *string `type:"string"` } // String returns the string representation. @@ -6157,7 +8708,7 @@ type AddTagsToResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AddTagsToResourceOutput) String() string { +func (s CreateFleetAdvisorCollectorOutput) String() string { return awsutil.Prettify(s) } @@ -6166,40 +8717,153 @@ func (s AddTagsToResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s AddTagsToResourceOutput) GoString() string { +func (s CreateFleetAdvisorCollectorOutput) GoString() string { return s.String() } -type ApplyPendingMaintenanceActionInput struct { +// SetCollectorName sets the CollectorName field's value. +func (s *CreateFleetAdvisorCollectorOutput) SetCollectorName(v string) *CreateFleetAdvisorCollectorOutput { + s.CollectorName = &v + return s +} + +// SetCollectorReferencedId sets the CollectorReferencedId field's value. +func (s *CreateFleetAdvisorCollectorOutput) SetCollectorReferencedId(v string) *CreateFleetAdvisorCollectorOutput { + s.CollectorReferencedId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateFleetAdvisorCollectorOutput) SetDescription(v string) *CreateFleetAdvisorCollectorOutput { + s.Description = &v + return s +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *CreateFleetAdvisorCollectorOutput) SetS3BucketName(v string) *CreateFleetAdvisorCollectorOutput { + s.S3BucketName = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *CreateFleetAdvisorCollectorOutput) SetServiceAccessRoleArn(v string) *CreateFleetAdvisorCollectorOutput { + s.ServiceAccessRoleArn = &v + return s +} + +type CreateReplicationInstanceInput struct { _ struct{} `type:"structure"` - // The pending maintenance action to apply to this resource. + // The amount of storage (in gigabytes) to be initially allocated for the replication + // instance. + AllocatedStorage *int64 `type:"integer"` + + // A value that indicates whether minor engine upgrades are applied automatically + // to the replication instance during the maintenance window. This parameter + // defaults to true. // - // Valid values: os-upgrade, system-update, db-upgrade + // Default: true + AutoMinorVersionUpgrade *bool `type:"boolean"` + + // The Availability Zone where the replication instance will be created. The + // default value is a random, system-chosen Availability Zone in the endpoint's + // Amazon Web Services Region, for example: us-east-1d + AvailabilityZone *string `type:"string"` + + // A list of custom DNS name servers supported for the replication instance + // to access your on-premise source or target database. This list overrides + // the default name servers supported by the replication instance. You can specify + // a comma-separated list of internet addresses for up to four on-premise DNS + // name servers. For example: "1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4" + DnsNameServers *string `type:"string"` + + // The engine version number of the replication instance. // - // ApplyAction is a required field - ApplyAction *string `type:"string" required:"true"` + // If an engine version number is not specified when a replication instance + // is created, the default is the latest engine version available. + EngineVersion *string `type:"string"` - // A value that specifies the type of opt-in request, or undoes an opt-in request. - // You can't undo an opt-in request of type immediate. + // An KMS key identifier that is used to encrypt the data on the replication + // instance. // - // Valid values: + // If you don't specify a value for the KmsKeyId parameter, then DMS uses your + // default encryption key. // - // * immediate - Apply the maintenance action immediately. + // KMS creates the default encryption key for your Amazon Web Services account. + // Your Amazon Web Services account has a different default encryption key for + // each Amazon Web Services Region. + KmsKeyId *string `type:"string"` + + // Specifies whether the replication instance is a Multi-AZ deployment. You + // can't set the AvailabilityZone parameter if the Multi-AZ parameter is set + // to true. + MultiAZ *bool `type:"boolean"` + + // The weekly time range during which system maintenance can occur, in Universal + // Coordinated Time (UTC). // - // * next-maintenance - Apply the maintenance action during the next maintenance - // window for the resource. + // Format: ddd:hh24:mi-ddd:hh24:mi // - // * undo-opt-in - Cancel any existing next-maintenance opt-in requests. + // Default: A 30-minute window selected at random from an 8-hour block of time + // per Amazon Web Services Region, occurring on a random day of the week. // - // OptInType is a required field - OptInType *string `type:"string" required:"true"` + // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun + // + // Constraints: Minimum 30-minute window. + PreferredMaintenanceWindow *string `type:"string"` - // The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance - // action applies to. + // Specifies the accessibility options for the replication instance. A value + // of true represents an instance with a public IP address. A value of false + // represents an instance with a private IP address. The default value is true. + PubliclyAccessible *bool `type:"boolean"` + + // The compute and memory capacity of the replication instance as defined for + // the specified replication instance class. For example to specify the instance + // class dms.c4.large, set this parameter to "dms.c4.large". // - // ReplicationInstanceArn is a required field - ReplicationInstanceArn *string `type:"string" required:"true"` + // For more information on the settings and capacities for the available replication + // instance classes, see Selecting the right DMS replication instance for your + // migration (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth). + // + // ReplicationInstanceClass is a required field + ReplicationInstanceClass *string `type:"string" required:"true"` + + // The replication instance identifier. This parameter is stored as a lowercase + // string. + // + // Constraints: + // + // * Must contain 1-63 alphanumeric characters or hyphens. + // + // * First character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens. + // + // Example: myrepinstance + // + // ReplicationInstanceIdentifier is a required field + ReplicationInstanceIdentifier *string `type:"string" required:"true"` + + // A subnet group to associate with the replication instance. + ReplicationSubnetGroupIdentifier *string `type:"string"` + + // A friendly name for the resource identifier at the end of the EndpointArn + // response parameter that is returned in the created Endpoint object. The value + // for this parameter can have up to 31 characters. It can contain only ASCII + // letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain + // two consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. + // For example, this value might result in the EndpointArn value arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. + // If you don't specify a ResourceIdentifier value, DMS generates a default + // identifier value for the end of EndpointArn. + ResourceIdentifier *string `type:"string"` + + // One or more tags to be assigned to the replication instance. + Tags []*Tag `type:"list"` + + // Specifies the VPC security group to be used with the replication instance. + // The VPC security group must work with the VPC containing the replication + // instance. + VpcSecurityGroupIds []*string `type:"list"` } // String returns the string representation. @@ -6207,7 +8871,7 @@ type ApplyPendingMaintenanceActionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ApplyPendingMaintenanceActionInput) String() string { +func (s CreateReplicationInstanceInput) String() string { return awsutil.Prettify(s) } @@ -6216,21 +8880,18 @@ func (s ApplyPendingMaintenanceActionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ApplyPendingMaintenanceActionInput) GoString() string { +func (s CreateReplicationInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ApplyPendingMaintenanceActionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ApplyPendingMaintenanceActionInput"} - if s.ApplyAction == nil { - invalidParams.Add(request.NewErrParamRequired("ApplyAction")) - } - if s.OptInType == nil { - invalidParams.Add(request.NewErrParamRequired("OptInType")) +func (s *CreateReplicationInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateReplicationInstanceInput"} + if s.ReplicationInstanceClass == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceClass")) } - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) + if s.ReplicationInstanceIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceIdentifier")) } if invalidParams.Len() > 0 { @@ -6239,142 +8900,101 @@ func (s *ApplyPendingMaintenanceActionInput) Validate() error { return nil } -// SetApplyAction sets the ApplyAction field's value. -func (s *ApplyPendingMaintenanceActionInput) SetApplyAction(v string) *ApplyPendingMaintenanceActionInput { - s.ApplyAction = &v +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *CreateReplicationInstanceInput) SetAllocatedStorage(v int64) *CreateReplicationInstanceInput { + s.AllocatedStorage = &v return s } -// SetOptInType sets the OptInType field's value. -func (s *ApplyPendingMaintenanceActionInput) SetOptInType(v string) *ApplyPendingMaintenanceActionInput { - s.OptInType = &v +// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. +func (s *CreateReplicationInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationInstanceInput { + s.AutoMinorVersionUpgrade = &v return s } -// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. -func (s *ApplyPendingMaintenanceActionInput) SetReplicationInstanceArn(v string) *ApplyPendingMaintenanceActionInput { - s.ReplicationInstanceArn = &v +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *CreateReplicationInstanceInput) SetAvailabilityZone(v string) *CreateReplicationInstanceInput { + s.AvailabilityZone = &v return s } -type ApplyPendingMaintenanceActionOutput struct { - _ struct{} `type:"structure"` - - // The DMS resource that the pending maintenance action will be applied to. - ResourcePendingMaintenanceActions *ResourcePendingMaintenanceActions `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 ApplyPendingMaintenanceActionOutput) 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 ApplyPendingMaintenanceActionOutput) GoString() string { - return s.String() +// SetDnsNameServers sets the DnsNameServers field's value. +func (s *CreateReplicationInstanceInput) SetDnsNameServers(v string) *CreateReplicationInstanceInput { + s.DnsNameServers = &v + return s } -// SetResourcePendingMaintenanceActions sets the ResourcePendingMaintenanceActions field's value. -func (s *ApplyPendingMaintenanceActionOutput) SetResourcePendingMaintenanceActions(v *ResourcePendingMaintenanceActions) *ApplyPendingMaintenanceActionOutput { - s.ResourcePendingMaintenanceActions = v +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateReplicationInstanceInput) SetEngineVersion(v string) *CreateReplicationInstanceInput { + s.EngineVersion = &v return s } -// The name of an Availability Zone for use during database migration. AvailabilityZone -// is an optional parameter to the CreateReplicationInstance (https://docs.aws.amazon.com/dms/latest/APIReference/API_CreateReplicationInstance.html) -// operation, and it’s value relates to the Amazon Web Services Region of -// an endpoint. For example, the availability zone of an endpoint in the us-east-1 -// region might be us-east-1a, us-east-1b, us-east-1c, or us-east-1d. -type AvailabilityZone struct { - _ struct{} `type:"structure"` - - // The name of the Availability Zone. - Name *string `type:"string"` +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateReplicationInstanceInput) SetKmsKeyId(v string) *CreateReplicationInstanceInput { + s.KmsKeyId = &v + return s } -// 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 AvailabilityZone) String() string { - return awsutil.Prettify(s) +// SetMultiAZ sets the MultiAZ field's value. +func (s *CreateReplicationInstanceInput) SetMultiAZ(v bool) *CreateReplicationInstanceInput { + s.MultiAZ = &v + return 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 AvailabilityZone) GoString() string { - return s.String() +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateReplicationInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationInstanceInput { + s.PreferredMaintenanceWindow = &v + return s } -// SetName sets the Name field's value. -func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { - s.Name = &v +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateReplicationInstanceInput) SetPubliclyAccessible(v bool) *CreateReplicationInstanceInput { + s.PubliclyAccessible = &v return s } -type CancelReplicationTaskAssessmentRunInput struct { - _ struct{} `type:"structure"` - - // Amazon Resource Name (ARN) of the premigration assessment run to be canceled. - // - // ReplicationTaskAssessmentRunArn is a required field - ReplicationTaskAssessmentRunArn *string `type:"string" required:"true"` +// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. +func (s *CreateReplicationInstanceInput) SetReplicationInstanceClass(v string) *CreateReplicationInstanceInput { + s.ReplicationInstanceClass = &v + return s } -// 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 CancelReplicationTaskAssessmentRunInput) String() string { - return awsutil.Prettify(s) +// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. +func (s *CreateReplicationInstanceInput) SetReplicationInstanceIdentifier(v string) *CreateReplicationInstanceInput { + s.ReplicationInstanceIdentifier = &v + return 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 CancelReplicationTaskAssessmentRunInput) GoString() string { - return s.String() +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *CreateReplicationInstanceInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationInstanceInput { + s.ReplicationSubnetGroupIdentifier = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelReplicationTaskAssessmentRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelReplicationTaskAssessmentRunInput"} - if s.ReplicationTaskAssessmentRunArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskAssessmentRunArn")) - } +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *CreateReplicationInstanceInput) SetResourceIdentifier(v string) *CreateReplicationInstanceInput { + s.ResourceIdentifier = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetTags sets the Tags field's value. +func (s *CreateReplicationInstanceInput) SetTags(v []*Tag) *CreateReplicationInstanceInput { + s.Tags = v + return s } -// SetReplicationTaskAssessmentRunArn sets the ReplicationTaskAssessmentRunArn field's value. -func (s *CancelReplicationTaskAssessmentRunInput) SetReplicationTaskAssessmentRunArn(v string) *CancelReplicationTaskAssessmentRunInput { - s.ReplicationTaskAssessmentRunArn = &v +// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. +func (s *CreateReplicationInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateReplicationInstanceInput { + s.VpcSecurityGroupIds = v return s } -type CancelReplicationTaskAssessmentRunOutput struct { +type CreateReplicationInstanceOutput struct { _ struct{} `type:"structure"` - // The ReplicationTaskAssessmentRun object for the canceled assessment run. - ReplicationTaskAssessmentRun *ReplicationTaskAssessmentRun `type:"structure"` + // The replication instance that was created. + ReplicationInstance *ReplicationInstance `type:"structure"` } // String returns the string representation. @@ -6382,7 +9002,7 @@ type CancelReplicationTaskAssessmentRunOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CancelReplicationTaskAssessmentRunOutput) String() string { +func (s CreateReplicationInstanceOutput) String() string { return awsutil.Prettify(s) } @@ -6391,54 +9011,42 @@ func (s CancelReplicationTaskAssessmentRunOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CancelReplicationTaskAssessmentRunOutput) GoString() string { +func (s CreateReplicationInstanceOutput) GoString() string { return s.String() } -// SetReplicationTaskAssessmentRun sets the ReplicationTaskAssessmentRun field's value. -func (s *CancelReplicationTaskAssessmentRunOutput) SetReplicationTaskAssessmentRun(v *ReplicationTaskAssessmentRun) *CancelReplicationTaskAssessmentRunOutput { - s.ReplicationTaskAssessmentRun = v +// SetReplicationInstance sets the ReplicationInstance field's value. +func (s *CreateReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *CreateReplicationInstanceOutput { + s.ReplicationInstance = v return s } -// The SSL certificate that can be used to encrypt connections between the endpoints -// and the replication instance. -type Certificate struct { +type CreateReplicationSubnetGroupInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the certificate. - CertificateArn *string `type:"string"` - - // The date that the certificate was created. - CertificateCreationDate *time.Time `type:"timestamp"` - - // A customer-assigned name for the certificate. Identifiers must begin with - // a letter and must contain only ASCII letters, digits, and hyphens. They can't - // end with a hyphen or contain two consecutive hyphens. - CertificateIdentifier *string `type:"string"` - - // The owner of the certificate. - CertificateOwner *string `type:"string"` - - // The contents of a .pem file, which contains an X.509 certificate. - CertificatePem *string `type:"string"` - - // The location of an imported Oracle Wallet certificate for use with SSL. Example: - // filebase64("${path.root}/rds-ca-2019-root.sso") - // CertificateWallet is automatically base64 encoded/decoded by the SDK. - CertificateWallet []byte `type:"blob"` - - // The key length of the cryptographic algorithm being used. - KeyLength *int64 `type:"integer"` + // The description for the subnet group. + // + // ReplicationSubnetGroupDescription is a required field + ReplicationSubnetGroupDescription *string `type:"string" required:"true"` - // The signing algorithm for the certificate. - SigningAlgorithm *string `type:"string"` + // The name for the replication subnet group. This value is stored as a lowercase + // string. + // + // Constraints: Must contain no more than 255 alphanumeric characters, periods, + // spaces, underscores, or hyphens. Must not be "default". + // + // Example: mySubnetgroup + // + // ReplicationSubnetGroupIdentifier is a required field + ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` - // The beginning date that the certificate is valid. - ValidFromDate *time.Time `type:"timestamp"` + // One or more subnet IDs to be assigned to the subnet group. + // + // SubnetIds is a required field + SubnetIds []*string `type:"list" required:"true"` - // The final date that the certificate is valid. - ValidToDate *time.Time `type:"timestamp"` + // One or more tags to be assigned to the subnet group. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -6446,7 +9054,7 @@ type Certificate struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Certificate) String() string { +func (s CreateReplicationSubnetGroupInput) String() string { return awsutil.Prettify(s) } @@ -6455,103 +9063,58 @@ func (s Certificate) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Certificate) GoString() string { +func (s CreateReplicationSubnetGroupInput) GoString() string { return s.String() } -// SetCertificateArn sets the CertificateArn field's value. -func (s *Certificate) SetCertificateArn(v string) *Certificate { - s.CertificateArn = &v - return s -} - -// SetCertificateCreationDate sets the CertificateCreationDate field's value. -func (s *Certificate) SetCertificateCreationDate(v time.Time) *Certificate { - s.CertificateCreationDate = &v - return s -} - -// SetCertificateIdentifier sets the CertificateIdentifier field's value. -func (s *Certificate) SetCertificateIdentifier(v string) *Certificate { - s.CertificateIdentifier = &v - return s -} - -// SetCertificateOwner sets the CertificateOwner field's value. -func (s *Certificate) SetCertificateOwner(v string) *Certificate { - s.CertificateOwner = &v - return s -} - -// SetCertificatePem sets the CertificatePem field's value. -func (s *Certificate) SetCertificatePem(v string) *Certificate { - s.CertificatePem = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateReplicationSubnetGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateReplicationSubnetGroupInput"} + if s.ReplicationSubnetGroupDescription == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupDescription")) + } + if s.ReplicationSubnetGroupIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) + } + if s.SubnetIds == nil { + invalidParams.Add(request.NewErrParamRequired("SubnetIds")) + } -// SetCertificateWallet sets the CertificateWallet field's value. -func (s *Certificate) SetCertificateWallet(v []byte) *Certificate { - s.CertificateWallet = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetKeyLength sets the KeyLength field's value. -func (s *Certificate) SetKeyLength(v int64) *Certificate { - s.KeyLength = &v +// SetReplicationSubnetGroupDescription sets the ReplicationSubnetGroupDescription field's value. +func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupDescription(v string) *CreateReplicationSubnetGroupInput { + s.ReplicationSubnetGroupDescription = &v return s } -// SetSigningAlgorithm sets the SigningAlgorithm field's value. -func (s *Certificate) SetSigningAlgorithm(v string) *Certificate { - s.SigningAlgorithm = &v +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationSubnetGroupInput { + s.ReplicationSubnetGroupIdentifier = &v return s } -// SetValidFromDate sets the ValidFromDate field's value. -func (s *Certificate) SetValidFromDate(v time.Time) *Certificate { - s.ValidFromDate = &v +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateReplicationSubnetGroupInput) SetSubnetIds(v []*string) *CreateReplicationSubnetGroupInput { + s.SubnetIds = v return s } -// SetValidToDate sets the ValidToDate field's value. -func (s *Certificate) SetValidToDate(v time.Time) *Certificate { - s.ValidToDate = &v +// SetTags sets the Tags field's value. +func (s *CreateReplicationSubnetGroupInput) SetTags(v []*Tag) *CreateReplicationSubnetGroupInput { + s.Tags = v return s } -// Status of the connection between an endpoint and a replication instance, -// including Amazon Resource Names (ARNs) and the last error message issued. -type Connection struct { +type CreateReplicationSubnetGroupOutput struct { _ struct{} `type:"structure"` - // The ARN string that uniquely identifies the endpoint. - EndpointArn *string `type:"string"` - - // The identifier of the endpoint. Identifiers must begin with a letter and - // must contain only ASCII letters, digits, and hyphens. They can't end with - // a hyphen or contain two consecutive hyphens. - EndpointIdentifier *string `type:"string"` - - // The error message when the connection last failed. - LastFailureMessage *string `type:"string"` - - // The ARN of the replication instance. - ReplicationInstanceArn *string `type:"string"` - - // The replication instance identifier. This parameter is stored as a lowercase - // string. - ReplicationInstanceIdentifier *string `type:"string"` - - // The connection status. This parameter can return one of the following values: - // - // * "successful" - // - // * "testing" - // - // * "failed" - // - // * "deleting" - Status *string `type:"string"` + // The replication subnet group that was created. + ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"` } // String returns the string representation. @@ -6559,7 +9122,7 @@ type Connection struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Connection) String() string { +func (s CreateReplicationSubnetGroupOutput) String() string { return awsutil.Prettify(s) } @@ -6568,207 +9131,81 @@ func (s Connection) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s Connection) GoString() string { +func (s CreateReplicationSubnetGroupOutput) GoString() string { return s.String() } -// SetEndpointArn sets the EndpointArn field's value. -func (s *Connection) SetEndpointArn(v string) *Connection { - s.EndpointArn = &v - return s -} - -// SetEndpointIdentifier sets the EndpointIdentifier field's value. -func (s *Connection) SetEndpointIdentifier(v string) *Connection { - s.EndpointIdentifier = &v - return s -} - -// SetLastFailureMessage sets the LastFailureMessage field's value. -func (s *Connection) SetLastFailureMessage(v string) *Connection { - s.LastFailureMessage = &v - return s -} - -// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. -func (s *Connection) SetReplicationInstanceArn(v string) *Connection { - s.ReplicationInstanceArn = &v - return s -} - -// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. -func (s *Connection) SetReplicationInstanceIdentifier(v string) *Connection { - s.ReplicationInstanceIdentifier = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *Connection) SetStatus(v string) *Connection { - s.Status = &v +// SetReplicationSubnetGroup sets the ReplicationSubnetGroup field's value. +func (s *CreateReplicationSubnetGroupOutput) SetReplicationSubnetGroup(v *ReplicationSubnetGroup) *CreateReplicationSubnetGroupOutput { + s.ReplicationSubnetGroup = v return s } -type CreateEndpointInput struct { +type CreateReplicationTaskInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the certificate. - CertificateArn *string `type:"string"` - - // The name of the endpoint database. For a MySQL source or target endpoint, - // do not specify DatabaseName. - DatabaseName *string `type:"string"` - - // The settings in JSON format for the DMS transfer type of source endpoint. + // Indicates when you want a change data capture (CDC) operation to start. Use + // either CdcStartPosition or CdcStartTime to specify when you want a CDC operation + // to start. Specifying both values results in an error. // - // Possible settings include the following: + // The value can be in date, checkpoint, or LSN/SCN format. // - // * ServiceAccessRoleArn - The Amazon Resource Name (ARN) used by the service - // access IAM role. The role must allow the iam:PassRole action. + // Date Example: --cdc-start-position “2018-03-08T12:12:12” // - // * BucketName - The name of the S3 bucket to use. + // Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93" // - // Shorthand syntax for these settings is as follows: ServiceAccessRoleArn=string,BucketName=string + // LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373” // - // JSON syntax for these settings is as follows: { "ServiceAccessRoleArn": "string", - // "BucketName": "string", } - DmsTransferSettings *DmsTransferSettings `type:"structure"` - - // Provides information that defines a DocumentDB endpoint. - DocDbSettings *DocDbSettings `type:"structure"` - - // Settings in JSON format for the target Amazon DynamoDB endpoint. For information - // about other available settings, see Using Object Mapping to Migrate Data - // to DynamoDB (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html#CHAP_Target.DynamoDB.ObjectMapping) - // in the Database Migration Service User Guide. - DynamoDbSettings *DynamoDbSettings `type:"structure"` - - // Settings in JSON format for the target OpenSearch endpoint. For more information - // about the available settings, see Extra Connection Attributes When Using - // OpenSearch as a Target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration) - // in the Database Migration Service User Guide. - ElasticsearchSettings *ElasticsearchSettings `type:"structure"` + // When you use this task setting with a source PostgreSQL database, a logical + // replication slot should already be created and associated with the source + // endpoint. You can verify this by setting the slotName extra connection attribute + // to the name of this logical replication slot. For more information, see Extra + // Connection Attributes When Using PostgreSQL as a Source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib). + CdcStartPosition *string `type:"string"` - // The database endpoint identifier. Identifiers must begin with a letter and - // must contain only ASCII letters, digits, and hyphens. They can't end with - // a hyphen, or contain two consecutive hyphens. + // Indicates the start time for a change data capture (CDC) operation. Use either + // CdcStartTime or CdcStartPosition to specify when you want a CDC operation + // to start. Specifying both values results in an error. // - // EndpointIdentifier is a required field - EndpointIdentifier *string `type:"string" required:"true"` + // Timestamp Example: --cdc-start-time “2018-03-08T12:12:12” + CdcStartTime *time.Time `type:"timestamp"` - // The type of endpoint. Valid values are source and target. + // Indicates when you want a change data capture (CDC) operation to stop. The + // value can be either server time or commit time. // - // EndpointType is a required field - EndpointType *string `type:"string" required:"true" enum:"ReplicationEndpointTypeValue"` - - // The type of engine for the endpoint. Valid values, depending on the EndpointType - // value, include "mysql", "oracle", "postgres", "mariadb", "aurora", "aurora-postgresql", - // "opensearch", "redshift", "s3", "db2", "azuredb", "sybase", "dynamodb", "mongodb", - // "kinesis", "kafka", "elasticsearch", "docdb", "sqlserver", and "neptune". + // Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12” // - // EngineName is a required field - EngineName *string `type:"string" required:"true"` - - // The external table definition. - ExternalTableDefinition *string `type:"string"` - - // Additional attributes associated with the connection. Each attribute is specified - // as a name-value pair associated by an equal sign (=). Multiple attributes - // are separated by a semicolon (;) with no additional white space. For information - // on the attributes available for connecting your source or target endpoint, - // see Working with DMS Endpoints (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Endpoints.html) - // in the Database Migration Service User Guide. - ExtraConnectionAttributes *string `type:"string"` - - // Settings in JSON format for the source GCP MySQL endpoint. - GcpMySQLSettings *GcpMySQLSettings `type:"structure"` - - // Settings in JSON format for the source IBM Db2 LUW endpoint. For information - // about other available settings, see Extra connection attributes when using - // Db2 LUW as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DB2.html#CHAP_Source.DB2.ConnectionAttrib) - // in the Database Migration Service User Guide. - IBMDb2Settings *IBMDb2Settings `type:"structure"` + // Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 + // “ + CdcStopPosition *string `type:"string"` - // Settings in JSON format for the target Apache Kafka endpoint. For more information - // about the available settings, see Using object mapping to migrate data to - // a Kafka topic (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kafka.html#CHAP_Target.Kafka.ObjectMapping) - // in the Database Migration Service User Guide. - KafkaSettings *KafkaSettings `type:"structure"` + // The migration type. Valid values: full-load | cdc | full-load-and-cdc + // + // MigrationType is a required field + MigrationType *string `type:"string" required:"true" enum:"MigrationTypeValue"` - // Settings in JSON format for the target endpoint for Amazon Kinesis Data Streams. - // For more information about the available settings, see Using object mapping - // to migrate data to a Kinesis data stream (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping) - // in the Database Migration Service User Guide. - KinesisSettings *KinesisSettings `type:"structure"` + // The Amazon Resource Name (ARN) of a replication instance. + // + // ReplicationInstanceArn is a required field + ReplicationInstanceArn *string `type:"string" required:"true"` - // An KMS key identifier that is used to encrypt the connection parameters for - // the endpoint. + // An identifier for the replication task. // - // If you don't specify a value for the KmsKeyId parameter, then DMS uses your - // default encryption key. + // Constraints: // - // KMS creates the default encryption key for your Amazon Web Services account. - // Your Amazon Web Services account has a different default encryption key for - // each Amazon Web Services Region. - KmsKeyId *string `type:"string"` - - // Settings in JSON format for the source and target Microsoft SQL Server endpoint. - // For information about other available settings, see Extra connection attributes - // when using SQL Server as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html#CHAP_Source.SQLServer.ConnectionAttrib) - // and Extra connection attributes when using SQL Server as a target for DMS - // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SQLServer.html#CHAP_Target.SQLServer.ConnectionAttrib) - // in the Database Migration Service User Guide. - MicrosoftSQLServerSettings *MicrosoftSQLServerSettings `type:"structure"` - - // Settings in JSON format for the source MongoDB endpoint. For more information - // about the available settings, see Endpoint configuration settings when using - // MongoDB as a source for Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#CHAP_Source.MongoDB.Configuration) - // in the Database Migration Service User Guide. - MongoDbSettings *MongoDbSettings `type:"structure"` - - // Settings in JSON format for the source and target MySQL endpoint. For information - // about other available settings, see Extra connection attributes when using - // MySQL as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html#CHAP_Source.MySQL.ConnectionAttrib) - // and Extra connection attributes when using a MySQL-compatible database as - // a target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html#CHAP_Target.MySQL.ConnectionAttrib) - // in the Database Migration Service User Guide. - MySQLSettings *MySQLSettings `type:"structure"` - - // Settings in JSON format for the target Amazon Neptune endpoint. For more - // information about the available settings, see Specifying graph-mapping rules - // using Gremlin and R2RML for Amazon Neptune as a target (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Neptune.html#CHAP_Target.Neptune.EndpointSettings) - // in the Database Migration Service User Guide. - NeptuneSettings *NeptuneSettings `type:"structure"` - - // Settings in JSON format for the source and target Oracle endpoint. For information - // about other available settings, see Extra connection attributes when using - // Oracle as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.Oracle.html#CHAP_Source.Oracle.ConnectionAttrib) - // and Extra connection attributes when using Oracle as a target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Oracle.html#CHAP_Target.Oracle.ConnectionAttrib) - // in the Database Migration Service User Guide. - OracleSettings *OracleSettings `type:"structure"` - - // The password to be used to log in to the endpoint database. + // * Must contain 1-255 alphanumeric characters or hyphens. // - // Password is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateEndpointInput's - // String and GoString methods. - Password *string `type:"string" sensitive:"true"` - - // The port used by the endpoint database. - Port *int64 `type:"integer"` + // * First character must be a letter. + // + // * Cannot end with a hyphen or contain two consecutive hyphens. + // + // ReplicationTaskIdentifier is a required field + ReplicationTaskIdentifier *string `type:"string" required:"true"` - // Settings in JSON format for the source and target PostgreSQL endpoint. For - // information about other available settings, see Extra connection attributes - // when using PostgreSQL as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib) - // and Extra connection attributes when using PostgreSQL as a target for DMS - // (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html#CHAP_Target.PostgreSQL.ConnectionAttrib) + // Overall settings for the task, in JSON format. For more information, see + // Specifying Task Settings for Database Migration Service Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html) // in the Database Migration Service User Guide. - PostgreSQLSettings *PostgreSQLSettings `type:"structure"` - - // Settings in JSON format for the target Redis endpoint. - RedisSettings *RedisSettings `type:"structure"` - - // Provides information that defines an Amazon Redshift endpoint. - RedshiftSettings *RedshiftSettings `type:"structure"` + ReplicationTaskSettings *string `type:"string"` // A friendly name for the resource identifier at the end of the EndpointArn // response parameter that is returned in the created Endpoint object. The value @@ -6780,35 +9217,31 @@ type CreateEndpointInput struct { // identifier value for the end of EndpointArn. ResourceIdentifier *string `type:"string"` - // Settings in JSON format for the target Amazon S3 endpoint. For more information - // about the available settings, see Extra Connection Attributes When Using - // Amazon S3 as a Target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring) - // in the Database Migration Service User Guide. - S3Settings *S3Settings `type:"structure"` - - // The name of the server where the endpoint database resides. - ServerName *string `type:"string"` - - // The Amazon Resource Name (ARN) for the service access role that you want - // to use to create the endpoint. The role must allow the iam:PassRole action. - ServiceAccessRoleArn *string `type:"string"` - - // The Secure Sockets Layer (SSL) mode to use for the SSL connection. The default - // is none - SslMode *string `type:"string" enum:"DmsSslModeValue"` + // An Amazon Resource Name (ARN) that uniquely identifies the source endpoint. + // + // SourceEndpointArn is a required field + SourceEndpointArn *string `type:"string" required:"true"` - // Settings in JSON format for the source and target SAP ASE endpoint. For information - // about other available settings, see Extra connection attributes when using - // SAP ASE as a source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SAP.html#CHAP_Source.SAP.ConnectionAttrib) - // and Extra connection attributes when using SAP ASE as a target for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.SAP.html#CHAP_Target.SAP.ConnectionAttrib) + // The table mappings for the task, in JSON format. For more information, see + // Using Table Mapping to Specify Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) // in the Database Migration Service User Guide. - SybaseSettings *SybaseSettings `type:"structure"` + // + // TableMappings is a required field + TableMappings *string `type:"string" required:"true"` - // One or more tags to be assigned to the endpoint. + // One or more tags to be assigned to the replication task. Tags []*Tag `type:"list"` - // The user name to be used to log in to the endpoint database. - Username *string `type:"string"` + // An Amazon Resource Name (ARN) that uniquely identifies the target endpoint. + // + // TargetEndpointArn is a required field + TargetEndpointArn *string `type:"string" required:"true"` + + // Supplemental information that the task requires to migrate the data for certain + // source and target endpoints. For more information, see Specifying Supplemental + // Data for Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) + // in the Database Migration Service User Guide. + TaskData *string `type:"string"` } // String returns the string representation. @@ -6816,7 +9249,7 @@ type CreateEndpointInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEndpointInput) String() string { +func (s CreateReplicationTaskInput) String() string { return awsutil.Prettify(s) } @@ -6825,41 +9258,30 @@ func (s CreateEndpointInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEndpointInput) GoString() string { +func (s CreateReplicationTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEndpointInput"} - if s.EndpointIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointIdentifier")) - } - if s.EndpointType == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointType")) +func (s *CreateReplicationTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateReplicationTaskInput"} + if s.MigrationType == nil { + invalidParams.Add(request.NewErrParamRequired("MigrationType")) } - if s.EngineName == nil { - invalidParams.Add(request.NewErrParamRequired("EngineName")) + if s.ReplicationInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) } - if s.DynamoDbSettings != nil { - if err := s.DynamoDbSettings.Validate(); err != nil { - invalidParams.AddNested("DynamoDbSettings", err.(request.ErrInvalidParams)) - } + if s.ReplicationTaskIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationTaskIdentifier")) } - if s.ElasticsearchSettings != nil { - if err := s.ElasticsearchSettings.Validate(); err != nil { - invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams)) - } + if s.SourceEndpointArn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceEndpointArn")) } - if s.NeptuneSettings != nil { - if err := s.NeptuneSettings.Validate(); err != nil { - invalidParams.AddNested("NeptuneSettings", err.(request.ErrInvalidParams)) - } + if s.TableMappings == nil { + invalidParams.Add(request.NewErrParamRequired("TableMappings")) } - if s.RedisSettings != nil { - if err := s.RedisSettings.Validate(); err != nil { - invalidParams.AddNested("RedisSettings", err.(request.ErrInvalidParams)) - } + if s.TargetEndpointArn == nil { + invalidParams.Add(request.NewErrParamRequired("TargetEndpointArn")) } if invalidParams.Len() > 0 { @@ -6868,215 +9290,89 @@ func (s *CreateEndpointInput) Validate() error { return nil } -// SetCertificateArn sets the CertificateArn field's value. -func (s *CreateEndpointInput) SetCertificateArn(v string) *CreateEndpointInput { - s.CertificateArn = &v - return s -} - -// SetDatabaseName sets the DatabaseName field's value. -func (s *CreateEndpointInput) SetDatabaseName(v string) *CreateEndpointInput { - s.DatabaseName = &v - return s -} - -// SetDmsTransferSettings sets the DmsTransferSettings field's value. -func (s *CreateEndpointInput) SetDmsTransferSettings(v *DmsTransferSettings) *CreateEndpointInput { - s.DmsTransferSettings = v - return s -} - -// SetDocDbSettings sets the DocDbSettings field's value. -func (s *CreateEndpointInput) SetDocDbSettings(v *DocDbSettings) *CreateEndpointInput { - s.DocDbSettings = v - return s -} - -// SetDynamoDbSettings sets the DynamoDbSettings field's value. -func (s *CreateEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *CreateEndpointInput { - s.DynamoDbSettings = v - return s -} - -// SetElasticsearchSettings sets the ElasticsearchSettings field's value. -func (s *CreateEndpointInput) SetElasticsearchSettings(v *ElasticsearchSettings) *CreateEndpointInput { - s.ElasticsearchSettings = v - return s -} - -// SetEndpointIdentifier sets the EndpointIdentifier field's value. -func (s *CreateEndpointInput) SetEndpointIdentifier(v string) *CreateEndpointInput { - s.EndpointIdentifier = &v - return s -} - -// SetEndpointType sets the EndpointType field's value. -func (s *CreateEndpointInput) SetEndpointType(v string) *CreateEndpointInput { - s.EndpointType = &v - return s -} - -// SetEngineName sets the EngineName field's value. -func (s *CreateEndpointInput) SetEngineName(v string) *CreateEndpointInput { - s.EngineName = &v - return s -} - -// SetExternalTableDefinition sets the ExternalTableDefinition field's value. -func (s *CreateEndpointInput) SetExternalTableDefinition(v string) *CreateEndpointInput { - s.ExternalTableDefinition = &v - return s -} - -// SetExtraConnectionAttributes sets the ExtraConnectionAttributes field's value. -func (s *CreateEndpointInput) SetExtraConnectionAttributes(v string) *CreateEndpointInput { - s.ExtraConnectionAttributes = &v - return s -} - -// SetGcpMySQLSettings sets the GcpMySQLSettings field's value. -func (s *CreateEndpointInput) SetGcpMySQLSettings(v *GcpMySQLSettings) *CreateEndpointInput { - s.GcpMySQLSettings = v - return s -} - -// SetIBMDb2Settings sets the IBMDb2Settings field's value. -func (s *CreateEndpointInput) SetIBMDb2Settings(v *IBMDb2Settings) *CreateEndpointInput { - s.IBMDb2Settings = v - return s -} - -// SetKafkaSettings sets the KafkaSettings field's value. -func (s *CreateEndpointInput) SetKafkaSettings(v *KafkaSettings) *CreateEndpointInput { - s.KafkaSettings = v - return s -} - -// SetKinesisSettings sets the KinesisSettings field's value. -func (s *CreateEndpointInput) SetKinesisSettings(v *KinesisSettings) *CreateEndpointInput { - s.KinesisSettings = v - return s -} - -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *CreateEndpointInput) SetKmsKeyId(v string) *CreateEndpointInput { - s.KmsKeyId = &v - return s -} - -// SetMicrosoftSQLServerSettings sets the MicrosoftSQLServerSettings field's value. -func (s *CreateEndpointInput) SetMicrosoftSQLServerSettings(v *MicrosoftSQLServerSettings) *CreateEndpointInput { - s.MicrosoftSQLServerSettings = v - return s -} - -// SetMongoDbSettings sets the MongoDbSettings field's value. -func (s *CreateEndpointInput) SetMongoDbSettings(v *MongoDbSettings) *CreateEndpointInput { - s.MongoDbSettings = v - return s -} - -// SetMySQLSettings sets the MySQLSettings field's value. -func (s *CreateEndpointInput) SetMySQLSettings(v *MySQLSettings) *CreateEndpointInput { - s.MySQLSettings = v - return s -} - -// SetNeptuneSettings sets the NeptuneSettings field's value. -func (s *CreateEndpointInput) SetNeptuneSettings(v *NeptuneSettings) *CreateEndpointInput { - s.NeptuneSettings = v +// SetCdcStartPosition sets the CdcStartPosition field's value. +func (s *CreateReplicationTaskInput) SetCdcStartPosition(v string) *CreateReplicationTaskInput { + s.CdcStartPosition = &v return s } -// SetOracleSettings sets the OracleSettings field's value. -func (s *CreateEndpointInput) SetOracleSettings(v *OracleSettings) *CreateEndpointInput { - s.OracleSettings = v +// SetCdcStartTime sets the CdcStartTime field's value. +func (s *CreateReplicationTaskInput) SetCdcStartTime(v time.Time) *CreateReplicationTaskInput { + s.CdcStartTime = &v return s } -// SetPassword sets the Password field's value. -func (s *CreateEndpointInput) SetPassword(v string) *CreateEndpointInput { - s.Password = &v +// SetCdcStopPosition sets the CdcStopPosition field's value. +func (s *CreateReplicationTaskInput) SetCdcStopPosition(v string) *CreateReplicationTaskInput { + s.CdcStopPosition = &v return s } -// SetPort sets the Port field's value. -func (s *CreateEndpointInput) SetPort(v int64) *CreateEndpointInput { - s.Port = &v +// SetMigrationType sets the MigrationType field's value. +func (s *CreateReplicationTaskInput) SetMigrationType(v string) *CreateReplicationTaskInput { + s.MigrationType = &v return s } -// SetPostgreSQLSettings sets the PostgreSQLSettings field's value. -func (s *CreateEndpointInput) SetPostgreSQLSettings(v *PostgreSQLSettings) *CreateEndpointInput { - s.PostgreSQLSettings = v +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *CreateReplicationTaskInput) SetReplicationInstanceArn(v string) *CreateReplicationTaskInput { + s.ReplicationInstanceArn = &v return s } -// SetRedisSettings sets the RedisSettings field's value. -func (s *CreateEndpointInput) SetRedisSettings(v *RedisSettings) *CreateEndpointInput { - s.RedisSettings = v +// SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value. +func (s *CreateReplicationTaskInput) SetReplicationTaskIdentifier(v string) *CreateReplicationTaskInput { + s.ReplicationTaskIdentifier = &v return s } -// SetRedshiftSettings sets the RedshiftSettings field's value. -func (s *CreateEndpointInput) SetRedshiftSettings(v *RedshiftSettings) *CreateEndpointInput { - s.RedshiftSettings = v +// SetReplicationTaskSettings sets the ReplicationTaskSettings field's value. +func (s *CreateReplicationTaskInput) SetReplicationTaskSettings(v string) *CreateReplicationTaskInput { + s.ReplicationTaskSettings = &v return s } // SetResourceIdentifier sets the ResourceIdentifier field's value. -func (s *CreateEndpointInput) SetResourceIdentifier(v string) *CreateEndpointInput { +func (s *CreateReplicationTaskInput) SetResourceIdentifier(v string) *CreateReplicationTaskInput { s.ResourceIdentifier = &v return s } -// SetS3Settings sets the S3Settings field's value. -func (s *CreateEndpointInput) SetS3Settings(v *S3Settings) *CreateEndpointInput { - s.S3Settings = v - return s -} - -// SetServerName sets the ServerName field's value. -func (s *CreateEndpointInput) SetServerName(v string) *CreateEndpointInput { - s.ServerName = &v - return s -} - -// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. -func (s *CreateEndpointInput) SetServiceAccessRoleArn(v string) *CreateEndpointInput { - s.ServiceAccessRoleArn = &v - return s -} - -// SetSslMode sets the SslMode field's value. -func (s *CreateEndpointInput) SetSslMode(v string) *CreateEndpointInput { - s.SslMode = &v +// SetSourceEndpointArn sets the SourceEndpointArn field's value. +func (s *CreateReplicationTaskInput) SetSourceEndpointArn(v string) *CreateReplicationTaskInput { + s.SourceEndpointArn = &v return s } -// SetSybaseSettings sets the SybaseSettings field's value. -func (s *CreateEndpointInput) SetSybaseSettings(v *SybaseSettings) *CreateEndpointInput { - s.SybaseSettings = v +// SetTableMappings sets the TableMappings field's value. +func (s *CreateReplicationTaskInput) SetTableMappings(v string) *CreateReplicationTaskInput { + s.TableMappings = &v return s } // SetTags sets the Tags field's value. -func (s *CreateEndpointInput) SetTags(v []*Tag) *CreateEndpointInput { +func (s *CreateReplicationTaskInput) SetTags(v []*Tag) *CreateReplicationTaskInput { s.Tags = v return s } -// SetUsername sets the Username field's value. -func (s *CreateEndpointInput) SetUsername(v string) *CreateEndpointInput { - s.Username = &v +// SetTargetEndpointArn sets the TargetEndpointArn field's value. +func (s *CreateReplicationTaskInput) SetTargetEndpointArn(v string) *CreateReplicationTaskInput { + s.TargetEndpointArn = &v return s } -type CreateEndpointOutput struct { +// SetTaskData sets the TaskData field's value. +func (s *CreateReplicationTaskInput) SetTaskData(v string) *CreateReplicationTaskInput { + s.TaskData = &v + return s +} + +type CreateReplicationTaskOutput struct { _ struct{} `type:"structure"` - // The endpoint that was created. - Endpoint *Endpoint `type:"structure"` + // The replication task that was created. + ReplicationTask *ReplicationTask `type:"structure"` } // String returns the string representation. @@ -7084,7 +9380,7 @@ type CreateEndpointOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEndpointOutput) String() string { +func (s CreateReplicationTaskOutput) String() string { return awsutil.Prettify(s) } @@ -7093,60 +9389,44 @@ func (s CreateEndpointOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEndpointOutput) GoString() string { +func (s CreateReplicationTaskOutput) GoString() string { return s.String() } -// SetEndpoint sets the Endpoint field's value. -func (s *CreateEndpointOutput) SetEndpoint(v *Endpoint) *CreateEndpointOutput { - s.Endpoint = v +// SetReplicationTask sets the ReplicationTask field's value. +func (s *CreateReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *CreateReplicationTaskOutput { + s.ReplicationTask = v return s } -type CreateEventSubscriptionInput struct { +// Describes an inventory database instance for a Fleet Advisor collector. +type DatabaseInstanceSoftwareDetailsResponse struct { _ struct{} `type:"structure"` - // A Boolean value; set to true to activate the subscription, or set to false - // to create the subscription but not activate it. - Enabled *bool `type:"boolean"` + // The database engine of a database in a Fleet Advisor collector inventory, + // for example Microsoft SQL Server. + Engine *string `type:"string"` - // A list of event categories for a source type that you want to subscribe to. - // For more information, see Working with Events and Notifications (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Events.html) - // in the Database Migration Service User Guide. - EventCategories []*string `type:"list"` + // The database engine edition of a database in a Fleet Advisor collector inventory, + // for example Express. + EngineEdition *string `type:"string"` - // The Amazon Resource Name (ARN) of the Amazon SNS topic created for event - // notification. The ARN is created by Amazon SNS when you create a topic and - // subscribe to it. - // - // SnsTopicArn is a required field - SnsTopicArn *string `type:"string" required:"true"` + // The database engine version of a database in a Fleet Advisor collector inventory, + // for example 2019. + EngineVersion *string `type:"string"` - // A list of identifiers for which DMS provides notification events. - // - // If you don't specify a value, notifications are provided for all sources. - // - // If you specify multiple values, they must be of the same type. For example, - // if you specify a database instance ID, then all of the other values must - // be database instance IDs. - SourceIds []*string `type:"list"` + // The operating system architecture of the database. + OsArchitecture *int64 `type:"integer"` - // The type of DMS resource that generates the events. For example, if you want - // to be notified of events generated by a replication instance, you set this - // parameter to replication-instance. If this value isn't specified, all events - // are returned. - // - // Valid values: replication-instance | replication-task - SourceType *string `type:"string"` + // The service pack level of the database. + ServicePack *string `type:"string"` - // The name of the DMS event notification subscription. This name must be less - // than 255 characters. - // - // SubscriptionName is a required field - SubscriptionName *string `type:"string" required:"true"` + // The support level of the database, for example Mainstream support. + SupportLevel *string `type:"string"` - // One or more tags to be assigned to the event subscription. - Tags []*Tag `type:"list"` + // Information about the database engine software, for example Mainstream support + // ends on November 14th, 2024. + Tooltip *string `type:"string"` } // String returns the string representation. @@ -7154,7 +9434,7 @@ type CreateEventSubscriptionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEventSubscriptionInput) String() string { +func (s DatabaseInstanceSoftwareDetailsResponse) String() string { return awsutil.Prettify(s) } @@ -7163,73 +9443,77 @@ func (s CreateEventSubscriptionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEventSubscriptionInput) GoString() string { +func (s DatabaseInstanceSoftwareDetailsResponse) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEventSubscriptionInput"} - if s.SnsTopicArn == nil { - invalidParams.Add(request.NewErrParamRequired("SnsTopicArn")) - } - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetEnabled sets the Enabled field's value. -func (s *CreateEventSubscriptionInput) SetEnabled(v bool) *CreateEventSubscriptionInput { - s.Enabled = &v +// SetEngine sets the Engine field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetEngine(v string) *DatabaseInstanceSoftwareDetailsResponse { + s.Engine = &v return s } -// SetEventCategories sets the EventCategories field's value. -func (s *CreateEventSubscriptionInput) SetEventCategories(v []*string) *CreateEventSubscriptionInput { - s.EventCategories = v +// SetEngineEdition sets the EngineEdition field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetEngineEdition(v string) *DatabaseInstanceSoftwareDetailsResponse { + s.EngineEdition = &v return s } -// SetSnsTopicArn sets the SnsTopicArn field's value. -func (s *CreateEventSubscriptionInput) SetSnsTopicArn(v string) *CreateEventSubscriptionInput { - s.SnsTopicArn = &v +// SetEngineVersion sets the EngineVersion field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetEngineVersion(v string) *DatabaseInstanceSoftwareDetailsResponse { + s.EngineVersion = &v return s } -// SetSourceIds sets the SourceIds field's value. -func (s *CreateEventSubscriptionInput) SetSourceIds(v []*string) *CreateEventSubscriptionInput { - s.SourceIds = v +// SetOsArchitecture sets the OsArchitecture field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetOsArchitecture(v int64) *DatabaseInstanceSoftwareDetailsResponse { + s.OsArchitecture = &v return s } -// SetSourceType sets the SourceType field's value. -func (s *CreateEventSubscriptionInput) SetSourceType(v string) *CreateEventSubscriptionInput { - s.SourceType = &v +// SetServicePack sets the ServicePack field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetServicePack(v string) *DatabaseInstanceSoftwareDetailsResponse { + s.ServicePack = &v return s } -// SetSubscriptionName sets the SubscriptionName field's value. -func (s *CreateEventSubscriptionInput) SetSubscriptionName(v string) *CreateEventSubscriptionInput { - s.SubscriptionName = &v +// SetSupportLevel sets the SupportLevel field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetSupportLevel(v string) *DatabaseInstanceSoftwareDetailsResponse { + s.SupportLevel = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateEventSubscriptionInput) SetTags(v []*Tag) *CreateEventSubscriptionInput { - s.Tags = v +// SetTooltip sets the Tooltip field's value. +func (s *DatabaseInstanceSoftwareDetailsResponse) SetTooltip(v string) *DatabaseInstanceSoftwareDetailsResponse { + s.Tooltip = &v return s } -type CreateEventSubscriptionOutput struct { +// Describes a database in a Fleet Advisor collector inventory. +type DatabaseResponse struct { _ struct{} `type:"structure"` - // The event subscription that was created. - EventSubscription *EventSubscription `type:"structure"` + // A list of collectors associated with the database. + Collectors []*CollectorShortInfoResponse `type:"list"` + + // The ID of a database in a Fleet Advisor collector inventory. + DatabaseId *string `type:"string"` + + // The name of a database in a Fleet Advisor collector inventory. + DatabaseName *string `type:"string"` + + // The IP address of a database in a Fleet Advisor collector inventory. + IpAddress *string `type:"string"` + + // The number of schemas in a Fleet Advisor collector inventory database. + NumberOfSchemas *int64 `type:"long"` + + // The server name of a database in a Fleet Advisor collector inventory. + Server *ServerShortInfoResponse `type:"structure"` + + // The software details of a database in a Fleet Advisor collector inventory, + // such as database engine and version. + SoftwareDetails *DatabaseInstanceSoftwareDetailsResponse `type:"structure"` } // String returns the string representation. @@ -7237,7 +9521,7 @@ type CreateEventSubscriptionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEventSubscriptionOutput) String() string { +func (s DatabaseResponse) String() string { return awsutil.Prettify(s) } @@ -7246,129 +9530,119 @@ func (s CreateEventSubscriptionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateEventSubscriptionOutput) GoString() string { +func (s DatabaseResponse) GoString() string { return s.String() } -// SetEventSubscription sets the EventSubscription field's value. -func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *CreateEventSubscriptionOutput { - s.EventSubscription = v +// SetCollectors sets the Collectors field's value. +func (s *DatabaseResponse) SetCollectors(v []*CollectorShortInfoResponse) *DatabaseResponse { + s.Collectors = v return s } -type CreateReplicationInstanceInput struct { - _ struct{} `type:"structure"` +// SetDatabaseId sets the DatabaseId field's value. +func (s *DatabaseResponse) SetDatabaseId(v string) *DatabaseResponse { + s.DatabaseId = &v + return s +} - // The amount of storage (in gigabytes) to be initially allocated for the replication - // instance. - AllocatedStorage *int64 `type:"integer"` +// SetDatabaseName sets the DatabaseName field's value. +func (s *DatabaseResponse) SetDatabaseName(v string) *DatabaseResponse { + s.DatabaseName = &v + return s +} - // A value that indicates whether minor engine upgrades are applied automatically - // to the replication instance during the maintenance window. This parameter - // defaults to true. - // - // Default: true - AutoMinorVersionUpgrade *bool `type:"boolean"` +// SetIpAddress sets the IpAddress field's value. +func (s *DatabaseResponse) SetIpAddress(v string) *DatabaseResponse { + s.IpAddress = &v + return s +} - // The Availability Zone where the replication instance will be created. The - // default value is a random, system-chosen Availability Zone in the endpoint's - // Amazon Web Services Region, for example: us-east-1d - AvailabilityZone *string `type:"string"` +// SetNumberOfSchemas sets the NumberOfSchemas field's value. +func (s *DatabaseResponse) SetNumberOfSchemas(v int64) *DatabaseResponse { + s.NumberOfSchemas = &v + return s +} - // A list of custom DNS name servers supported for the replication instance - // to access your on-premise source or target database. This list overrides - // the default name servers supported by the replication instance. You can specify - // a comma-separated list of internet addresses for up to four on-premise DNS - // name servers. For example: "1.1.1.1,2.2.2.2,3.3.3.3,4.4.4.4" - DnsNameServers *string `type:"string"` +// SetServer sets the Server field's value. +func (s *DatabaseResponse) SetServer(v *ServerShortInfoResponse) *DatabaseResponse { + s.Server = v + return s +} - // The engine version number of the replication instance. - // - // If an engine version number is not specified when a replication instance - // is created, the default is the latest engine version available. - EngineVersion *string `type:"string"` +// SetSoftwareDetails sets the SoftwareDetails field's value. +func (s *DatabaseResponse) SetSoftwareDetails(v *DatabaseInstanceSoftwareDetailsResponse) *DatabaseResponse { + s.SoftwareDetails = v + return s +} - // An KMS key identifier that is used to encrypt the data on the replication - // instance. - // - // If you don't specify a value for the KmsKeyId parameter, then DMS uses your - // default encryption key. - // - // KMS creates the default encryption key for your Amazon Web Services account. - // Your Amazon Web Services account has a different default encryption key for - // each Amazon Web Services Region. - KmsKeyId *string `type:"string"` +// Describes a database in a Fleet Advisor collector inventory. +type DatabaseShortInfoResponse struct { + _ struct{} `type:"structure"` - // Specifies whether the replication instance is a Multi-AZ deployment. You - // can't set the AvailabilityZone parameter if the Multi-AZ parameter is set - // to true. - MultiAZ *bool `type:"boolean"` + // The database engine of a database in a Fleet Advisor collector inventory, + // for example PostgreSQL. + DatabaseEngine *string `type:"string"` - // The weekly time range during which system maintenance can occur, in Universal - // Coordinated Time (UTC). - // - // Format: ddd:hh24:mi-ddd:hh24:mi - // - // Default: A 30-minute window selected at random from an 8-hour block of time - // per Amazon Web Services Region, occurring on a random day of the week. - // - // Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun - // - // Constraints: Minimum 30-minute window. - PreferredMaintenanceWindow *string `type:"string"` + // The ID of a database in a Fleet Advisor collector inventory. + DatabaseId *string `type:"string"` - // Specifies the accessibility options for the replication instance. A value - // of true represents an instance with a public IP address. A value of false - // represents an instance with a private IP address. The default value is true. - PubliclyAccessible *bool `type:"boolean"` + // The IP address of a database in a Fleet Advisor collector inventory. + DatabaseIpAddress *string `type:"string"` - // The compute and memory capacity of the replication instance as defined for - // the specified replication instance class. For example to specify the instance - // class dms.c4.large, set this parameter to "dms.c4.large". - // - // For more information on the settings and capacities for the available replication - // instance classes, see Selecting the right DMS replication instance for your - // migration (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_ReplicationInstance.html#CHAP_ReplicationInstance.InDepth). - // - // ReplicationInstanceClass is a required field - ReplicationInstanceClass *string `type:"string" required:"true"` + // The name of a database in a Fleet Advisor collector inventory. + DatabaseName *string `type:"string"` +} - // The replication instance identifier. This parameter is stored as a lowercase - // string. - // - // Constraints: - // - // * Must contain 1-63 alphanumeric characters or hyphens. - // - // * First character must be a letter. - // - // * Can't end with a hyphen or contain two consecutive hyphens. - // - // Example: myrepinstance - // - // ReplicationInstanceIdentifier is a required field - ReplicationInstanceIdentifier *string `type:"string" required:"true"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DatabaseShortInfoResponse) String() string { + return awsutil.Prettify(s) +} - // A subnet group to associate with the replication instance. - ReplicationSubnetGroupIdentifier *string `type:"string"` +// 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 DatabaseShortInfoResponse) GoString() string { + return s.String() +} - // A friendly name for the resource identifier at the end of the EndpointArn - // response parameter that is returned in the created Endpoint object. The value - // for this parameter can have up to 31 characters. It can contain only ASCII - // letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain - // two consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. - // For example, this value might result in the EndpointArn value arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. - // If you don't specify a ResourceIdentifier value, DMS generates a default - // identifier value for the end of EndpointArn. - ResourceIdentifier *string `type:"string"` +// SetDatabaseEngine sets the DatabaseEngine field's value. +func (s *DatabaseShortInfoResponse) SetDatabaseEngine(v string) *DatabaseShortInfoResponse { + s.DatabaseEngine = &v + return s +} + +// SetDatabaseId sets the DatabaseId field's value. +func (s *DatabaseShortInfoResponse) SetDatabaseId(v string) *DatabaseShortInfoResponse { + s.DatabaseId = &v + return s +} + +// SetDatabaseIpAddress sets the DatabaseIpAddress field's value. +func (s *DatabaseShortInfoResponse) SetDatabaseIpAddress(v string) *DatabaseShortInfoResponse { + s.DatabaseIpAddress = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *DatabaseShortInfoResponse) SetDatabaseName(v string) *DatabaseShortInfoResponse { + s.DatabaseName = &v + return s +} - // One or more tags to be assigned to the replication instance. - Tags []*Tag `type:"list"` +type DeleteCertificateInput struct { + _ struct{} `type:"structure"` - // Specifies the VPC security group to be used with the replication instance. - // The VPC security group must work with the VPC containing the replication - // instance. - VpcSecurityGroupIds []*string `type:"list"` + // The Amazon Resource Name (ARN) of the certificate. + // + // CertificateArn is a required field + CertificateArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -7376,7 +9650,7 @@ type CreateReplicationInstanceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationInstanceInput) String() string { +func (s DeleteCertificateInput) String() string { return awsutil.Prettify(s) } @@ -7385,18 +9659,15 @@ func (s CreateReplicationInstanceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationInstanceInput) GoString() string { +func (s DeleteCertificateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationInstanceInput"} - if s.ReplicationInstanceClass == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceClass")) - } - if s.ReplicationInstanceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceIdentifier")) +func (s *DeleteCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"} + if s.CertificateArn == nil { + invalidParams.Add(request.NewErrParamRequired("CertificateArn")) } if invalidParams.Len() > 0 { @@ -7405,101 +9676,141 @@ func (s *CreateReplicationInstanceInput) Validate() error { return nil } -// SetAllocatedStorage sets the AllocatedStorage field's value. -func (s *CreateReplicationInstanceInput) SetAllocatedStorage(v int64) *CreateReplicationInstanceInput { - s.AllocatedStorage = &v +// SetCertificateArn sets the CertificateArn field's value. +func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput { + s.CertificateArn = &v return s } -// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value. -func (s *CreateReplicationInstanceInput) SetAutoMinorVersionUpgrade(v bool) *CreateReplicationInstanceInput { - s.AutoMinorVersionUpgrade = &v - return s +type DeleteCertificateOutput struct { + _ struct{} `type:"structure"` + + // The Secure Sockets Layer (SSL) certificate. + Certificate *Certificate `type:"structure"` } -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *CreateReplicationInstanceInput) SetAvailabilityZone(v string) *CreateReplicationInstanceInput { - s.AvailabilityZone = &v - return s +// 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 DeleteCertificateOutput) String() string { + return awsutil.Prettify(s) } -// SetDnsNameServers sets the DnsNameServers field's value. -func (s *CreateReplicationInstanceInput) SetDnsNameServers(v string) *CreateReplicationInstanceInput { - s.DnsNameServers = &v - return 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 DeleteCertificateOutput) GoString() string { + return s.String() } -// SetEngineVersion sets the EngineVersion field's value. -func (s *CreateReplicationInstanceInput) SetEngineVersion(v string) *CreateReplicationInstanceInput { - s.EngineVersion = &v +// SetCertificate sets the Certificate field's value. +func (s *DeleteCertificateOutput) SetCertificate(v *Certificate) *DeleteCertificateOutput { + s.Certificate = v return s } -// SetKmsKeyId sets the KmsKeyId field's value. -func (s *CreateReplicationInstanceInput) SetKmsKeyId(v string) *CreateReplicationInstanceInput { - s.KmsKeyId = &v - return s +type DeleteConnectionInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. + // + // EndpointArn is a required field + EndpointArn *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the replication instance. + // + // ReplicationInstanceArn is a required field + ReplicationInstanceArn *string `type:"string" required:"true"` } -// SetMultiAZ sets the MultiAZ field's value. -func (s *CreateReplicationInstanceInput) SetMultiAZ(v bool) *CreateReplicationInstanceInput { - s.MultiAZ = &v - return s +// 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 DeleteConnectionInput) String() string { + return awsutil.Prettify(s) } -// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. -func (s *CreateReplicationInstanceInput) SetPreferredMaintenanceWindow(v string) *CreateReplicationInstanceInput { - s.PreferredMaintenanceWindow = &v - return 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 DeleteConnectionInput) GoString() string { + return s.String() } -// SetPubliclyAccessible sets the PubliclyAccessible field's value. -func (s *CreateReplicationInstanceInput) SetPubliclyAccessible(v bool) *CreateReplicationInstanceInput { - s.PubliclyAccessible = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} + if s.EndpointArn == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointArn")) + } + if s.ReplicationInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetReplicationInstanceClass sets the ReplicationInstanceClass field's value. -func (s *CreateReplicationInstanceInput) SetReplicationInstanceClass(v string) *CreateReplicationInstanceInput { - s.ReplicationInstanceClass = &v +// SetEndpointArn sets the EndpointArn field's value. +func (s *DeleteConnectionInput) SetEndpointArn(v string) *DeleteConnectionInput { + s.EndpointArn = &v return s } -// SetReplicationInstanceIdentifier sets the ReplicationInstanceIdentifier field's value. -func (s *CreateReplicationInstanceInput) SetReplicationInstanceIdentifier(v string) *CreateReplicationInstanceInput { - s.ReplicationInstanceIdentifier = &v +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *DeleteConnectionInput) SetReplicationInstanceArn(v string) *DeleteConnectionInput { + s.ReplicationInstanceArn = &v return s } -// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. -func (s *CreateReplicationInstanceInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationInstanceInput { - s.ReplicationSubnetGroupIdentifier = &v - return s +type DeleteConnectionOutput struct { + _ struct{} `type:"structure"` + + // The connection that is being deleted. + Connection *Connection `type:"structure"` } -// SetResourceIdentifier sets the ResourceIdentifier field's value. -func (s *CreateReplicationInstanceInput) SetResourceIdentifier(v string) *CreateReplicationInstanceInput { - s.ResourceIdentifier = &v - return s +// 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 DeleteConnectionOutput) String() string { + return awsutil.Prettify(s) } -// SetTags sets the Tags field's value. -func (s *CreateReplicationInstanceInput) SetTags(v []*Tag) *CreateReplicationInstanceInput { - s.Tags = v - return 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 DeleteConnectionOutput) GoString() string { + return s.String() } -// SetVpcSecurityGroupIds sets the VpcSecurityGroupIds field's value. -func (s *CreateReplicationInstanceInput) SetVpcSecurityGroupIds(v []*string) *CreateReplicationInstanceInput { - s.VpcSecurityGroupIds = v +// SetConnection sets the Connection field's value. +func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { + s.Connection = v return s } -type CreateReplicationInstanceOutput struct { +type DeleteEndpointInput struct { _ struct{} `type:"structure"` - // The replication instance that was created. - ReplicationInstance *ReplicationInstance `type:"structure"` + // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. + // + // EndpointArn is a required field + EndpointArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -7507,7 +9818,7 @@ type CreateReplicationInstanceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationInstanceOutput) String() string { +func (s DeleteEndpointInput) String() string { return awsutil.Prettify(s) } @@ -7516,42 +9827,67 @@ func (s CreateReplicationInstanceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationInstanceOutput) GoString() string { +func (s DeleteEndpointInput) GoString() string { return s.String() } -// SetReplicationInstance sets the ReplicationInstance field's value. -func (s *CreateReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *CreateReplicationInstanceOutput { - s.ReplicationInstance = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} + if s.EndpointArn == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEndpointArn sets the EndpointArn field's value. +func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput { + s.EndpointArn = &v return s } -type CreateReplicationSubnetGroupInput struct { +type DeleteEndpointOutput struct { _ struct{} `type:"structure"` - // The description for the subnet group. - // - // ReplicationSubnetGroupDescription is a required field - ReplicationSubnetGroupDescription *string `type:"string" required:"true"` + // The endpoint that was deleted. + Endpoint *Endpoint `type:"structure"` +} - // The name for the replication subnet group. This value is stored as a lowercase - // string. - // - // Constraints: Must contain no more than 255 alphanumeric characters, periods, - // spaces, underscores, or hyphens. Must not be "default". - // - // Example: mySubnetgroup - // - // ReplicationSubnetGroupIdentifier is a required field - ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteEndpointOutput) String() string { + return awsutil.Prettify(s) +} - // One or more subnet IDs to be assigned to the subnet group. - // - // SubnetIds is a required field - SubnetIds []*string `type:"list" required:"true"` +// 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 DeleteEndpointOutput) GoString() string { + return s.String() +} + +// SetEndpoint sets the Endpoint field's value. +func (s *DeleteEndpointOutput) SetEndpoint(v *Endpoint) *DeleteEndpointOutput { + s.Endpoint = v + return s +} + +type DeleteEventSubscriptionInput struct { + _ struct{} `type:"structure"` - // One or more tags to be assigned to the subnet group. - Tags []*Tag `type:"list"` + // The name of the DMS event notification subscription to be deleted. + // + // SubscriptionName is a required field + SubscriptionName *string `type:"string" required:"true"` } // String returns the string representation. @@ -7559,7 +9895,7 @@ type CreateReplicationSubnetGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationSubnetGroupInput) String() string { +func (s DeleteEventSubscriptionInput) String() string { return awsutil.Prettify(s) } @@ -7568,21 +9904,15 @@ func (s CreateReplicationSubnetGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationSubnetGroupInput) GoString() string { +func (s DeleteEventSubscriptionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationSubnetGroupInput"} - if s.ReplicationSubnetGroupDescription == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupDescription")) - } - if s.ReplicationSubnetGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) - } - if s.SubnetIds == nil { - invalidParams.Add(request.NewErrParamRequired("SubnetIds")) +func (s *DeleteEventSubscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"} + if s.SubscriptionName == nil { + invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) } if invalidParams.Len() > 0 { @@ -7591,35 +9921,17 @@ func (s *CreateReplicationSubnetGroupInput) Validate() error { return nil } -// SetReplicationSubnetGroupDescription sets the ReplicationSubnetGroupDescription field's value. -func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupDescription(v string) *CreateReplicationSubnetGroupInput { - s.ReplicationSubnetGroupDescription = &v - return s -} - -// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. -func (s *CreateReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *CreateReplicationSubnetGroupInput { - s.ReplicationSubnetGroupIdentifier = &v - return s -} - -// SetSubnetIds sets the SubnetIds field's value. -func (s *CreateReplicationSubnetGroupInput) SetSubnetIds(v []*string) *CreateReplicationSubnetGroupInput { - s.SubnetIds = v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateReplicationSubnetGroupInput) SetTags(v []*Tag) *CreateReplicationSubnetGroupInput { - s.Tags = v +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput { + s.SubscriptionName = &v return s } -type CreateReplicationSubnetGroupOutput struct { +type DeleteEventSubscriptionOutput struct { _ struct{} `type:"structure"` - // The replication subnet group that was created. - ReplicationSubnetGroup *ReplicationSubnetGroup `type:"structure"` + // The event subscription that was deleted. + EventSubscription *EventSubscription `type:"structure"` } // String returns the string representation. @@ -7627,7 +9939,7 @@ type CreateReplicationSubnetGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationSubnetGroupOutput) String() string { +func (s DeleteEventSubscriptionOutput) String() string { return awsutil.Prettify(s) } @@ -7636,117 +9948,23 @@ func (s CreateReplicationSubnetGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationSubnetGroupOutput) GoString() string { +func (s DeleteEventSubscriptionOutput) GoString() string { return s.String() } -// SetReplicationSubnetGroup sets the ReplicationSubnetGroup field's value. -func (s *CreateReplicationSubnetGroupOutput) SetReplicationSubnetGroup(v *ReplicationSubnetGroup) *CreateReplicationSubnetGroupOutput { - s.ReplicationSubnetGroup = v +// SetEventSubscription sets the EventSubscription field's value. +func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *DeleteEventSubscriptionOutput { + s.EventSubscription = v return s } -type CreateReplicationTaskInput struct { +type DeleteFleetAdvisorCollectorInput struct { _ struct{} `type:"structure"` - // Indicates when you want a change data capture (CDC) operation to start. Use - // either CdcStartPosition or CdcStartTime to specify when you want a CDC operation - // to start. Specifying both values results in an error. - // - // The value can be in date, checkpoint, or LSN/SCN format. - // - // Date Example: --cdc-start-position “2018-03-08T12:12:12” - // - // Checkpoint Example: --cdc-start-position "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93" - // - // LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373” - // - // When you use this task setting with a source PostgreSQL database, a logical - // replication slot should already be created and associated with the source - // endpoint. You can verify this by setting the slotName extra connection attribute - // to the name of this logical replication slot. For more information, see Extra - // Connection Attributes When Using PostgreSQL as a Source for DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html#CHAP_Source.PostgreSQL.ConnectionAttrib). - CdcStartPosition *string `type:"string"` - - // Indicates the start time for a change data capture (CDC) operation. Use either - // CdcStartTime or CdcStartPosition to specify when you want a CDC operation - // to start. Specifying both values results in an error. - // - // Timestamp Example: --cdc-start-time “2018-03-08T12:12:12” - CdcStartTime *time.Time `type:"timestamp"` - - // Indicates when you want a change data capture (CDC) operation to stop. The - // value can be either server time or commit time. - // - // Server time example: --cdc-stop-position “server_time:2018-02-09T12:12:12” - // - // Commit time example: --cdc-stop-position “commit_time: 2018-02-09T12:12:12 - // “ - CdcStopPosition *string `type:"string"` - - // The migration type. Valid values: full-load | cdc | full-load-and-cdc - // - // MigrationType is a required field - MigrationType *string `type:"string" required:"true" enum:"MigrationTypeValue"` - - // The Amazon Resource Name (ARN) of a replication instance. - // - // ReplicationInstanceArn is a required field - ReplicationInstanceArn *string `type:"string" required:"true"` - - // An identifier for the replication task. - // - // Constraints: - // - // * Must contain 1-255 alphanumeric characters or hyphens. - // - // * First character must be a letter. - // - // * Cannot end with a hyphen or contain two consecutive hyphens. - // - // ReplicationTaskIdentifier is a required field - ReplicationTaskIdentifier *string `type:"string" required:"true"` - - // Overall settings for the task, in JSON format. For more information, see - // Specifying Task Settings for Database Migration Service Tasks (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TaskSettings.html) - // in the Database Migration Service User Guide. - ReplicationTaskSettings *string `type:"string"` - - // A friendly name for the resource identifier at the end of the EndpointArn - // response parameter that is returned in the created Endpoint object. The value - // for this parameter can have up to 31 characters. It can contain only ASCII - // letters, digits, and hyphen ('-'). Also, it can't end with a hyphen or contain - // two consecutive hyphens, and can only begin with a letter, such as Example-App-ARN1. - // For example, this value might result in the EndpointArn value arn:aws:dms:eu-west-1:012345678901:rep:Example-App-ARN1. - // If you don't specify a ResourceIdentifier value, DMS generates a default - // identifier value for the end of EndpointArn. - ResourceIdentifier *string `type:"string"` - - // An Amazon Resource Name (ARN) that uniquely identifies the source endpoint. - // - // SourceEndpointArn is a required field - SourceEndpointArn *string `type:"string" required:"true"` - - // The table mappings for the task, in JSON format. For more information, see - // Using Table Mapping to Specify Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.CustomizingTasks.TableMapping.html) - // in the Database Migration Service User Guide. - // - // TableMappings is a required field - TableMappings *string `type:"string" required:"true"` - - // One or more tags to be assigned to the replication task. - Tags []*Tag `type:"list"` - - // An Amazon Resource Name (ARN) that uniquely identifies the target endpoint. + // The reference ID of the Fleet Advisor collector to delete. // - // TargetEndpointArn is a required field - TargetEndpointArn *string `type:"string" required:"true"` - - // Supplemental information that the task requires to migrate the data for certain - // source and target endpoints. For more information, see Specifying Supplemental - // Data for Task Settings (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.TaskData.html) - // in the Database Migration Service User Guide. - TaskData *string `type:"string"` + // CollectorReferencedId is a required field + CollectorReferencedId *string `type:"string" required:"true"` } // String returns the string representation. @@ -7754,7 +9972,7 @@ type CreateReplicationTaskInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationTaskInput) String() string { +func (s DeleteFleetAdvisorCollectorInput) String() string { return awsutil.Prettify(s) } @@ -7763,30 +9981,15 @@ func (s CreateReplicationTaskInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationTaskInput) GoString() string { +func (s DeleteFleetAdvisorCollectorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateReplicationTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateReplicationTaskInput"} - if s.MigrationType == nil { - invalidParams.Add(request.NewErrParamRequired("MigrationType")) - } - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } - if s.ReplicationTaskIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskIdentifier")) - } - if s.SourceEndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("SourceEndpointArn")) - } - if s.TableMappings == nil { - invalidParams.Add(request.NewErrParamRequired("TableMappings")) - } - if s.TargetEndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("TargetEndpointArn")) +func (s *DeleteFleetAdvisorCollectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFleetAdvisorCollectorInput"} + if s.CollectorReferencedId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectorReferencedId")) } if invalidParams.Len() > 0 { @@ -7795,89 +9998,85 @@ func (s *CreateReplicationTaskInput) Validate() error { return nil } -// SetCdcStartPosition sets the CdcStartPosition field's value. -func (s *CreateReplicationTaskInput) SetCdcStartPosition(v string) *CreateReplicationTaskInput { - s.CdcStartPosition = &v - return s -} - -// SetCdcStartTime sets the CdcStartTime field's value. -func (s *CreateReplicationTaskInput) SetCdcStartTime(v time.Time) *CreateReplicationTaskInput { - s.CdcStartTime = &v - return s -} - -// SetCdcStopPosition sets the CdcStopPosition field's value. -func (s *CreateReplicationTaskInput) SetCdcStopPosition(v string) *CreateReplicationTaskInput { - s.CdcStopPosition = &v +// SetCollectorReferencedId sets the CollectorReferencedId field's value. +func (s *DeleteFleetAdvisorCollectorInput) SetCollectorReferencedId(v string) *DeleteFleetAdvisorCollectorInput { + s.CollectorReferencedId = &v return s } -// SetMigrationType sets the MigrationType field's value. -func (s *CreateReplicationTaskInput) SetMigrationType(v string) *CreateReplicationTaskInput { - s.MigrationType = &v - return s +type DeleteFleetAdvisorCollectorOutput struct { + _ struct{} `type:"structure"` } -// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. -func (s *CreateReplicationTaskInput) SetReplicationInstanceArn(v string) *CreateReplicationTaskInput { - s.ReplicationInstanceArn = &v - return s +// 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 DeleteFleetAdvisorCollectorOutput) String() string { + return awsutil.Prettify(s) } -// SetReplicationTaskIdentifier sets the ReplicationTaskIdentifier field's value. -func (s *CreateReplicationTaskInput) SetReplicationTaskIdentifier(v string) *CreateReplicationTaskInput { - s.ReplicationTaskIdentifier = &v - return 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 DeleteFleetAdvisorCollectorOutput) GoString() string { + return s.String() } -// SetReplicationTaskSettings sets the ReplicationTaskSettings field's value. -func (s *CreateReplicationTaskInput) SetReplicationTaskSettings(v string) *CreateReplicationTaskInput { - s.ReplicationTaskSettings = &v - return s -} +type DeleteFleetAdvisorDatabasesInput struct { + _ struct{} `type:"structure"` -// SetResourceIdentifier sets the ResourceIdentifier field's value. -func (s *CreateReplicationTaskInput) SetResourceIdentifier(v string) *CreateReplicationTaskInput { - s.ResourceIdentifier = &v - return s + // The IDs of the Fleet Advisor collector databases to delete. + // + // DatabaseIds is a required field + DatabaseIds []*string `type:"list" required:"true"` } -// SetSourceEndpointArn sets the SourceEndpointArn field's value. -func (s *CreateReplicationTaskInput) SetSourceEndpointArn(v string) *CreateReplicationTaskInput { - s.SourceEndpointArn = &v - return s +// 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 DeleteFleetAdvisorDatabasesInput) String() string { + return awsutil.Prettify(s) } -// SetTableMappings sets the TableMappings field's value. -func (s *CreateReplicationTaskInput) SetTableMappings(v string) *CreateReplicationTaskInput { - s.TableMappings = &v - return 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 DeleteFleetAdvisorDatabasesInput) GoString() string { + return s.String() } -// SetTags sets the Tags field's value. -func (s *CreateReplicationTaskInput) SetTags(v []*Tag) *CreateReplicationTaskInput { - s.Tags = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFleetAdvisorDatabasesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFleetAdvisorDatabasesInput"} + if s.DatabaseIds == nil { + invalidParams.Add(request.NewErrParamRequired("DatabaseIds")) + } -// SetTargetEndpointArn sets the TargetEndpointArn field's value. -func (s *CreateReplicationTaskInput) SetTargetEndpointArn(v string) *CreateReplicationTaskInput { - s.TargetEndpointArn = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTaskData sets the TaskData field's value. -func (s *CreateReplicationTaskInput) SetTaskData(v string) *CreateReplicationTaskInput { - s.TaskData = &v +// SetDatabaseIds sets the DatabaseIds field's value. +func (s *DeleteFleetAdvisorDatabasesInput) SetDatabaseIds(v []*string) *DeleteFleetAdvisorDatabasesInput { + s.DatabaseIds = v return s } -type CreateReplicationTaskOutput struct { +type DeleteFleetAdvisorDatabasesOutput struct { _ struct{} `type:"structure"` - // The replication task that was created. - ReplicationTask *ReplicationTask `type:"structure"` + // The IDs of the databases that the operation deleted. + DatabaseIds []*string `type:"list"` } // String returns the string representation. @@ -7885,7 +10084,7 @@ type CreateReplicationTaskOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationTaskOutput) String() string { +func (s DeleteFleetAdvisorDatabasesOutput) String() string { return awsutil.Prettify(s) } @@ -7894,23 +10093,23 @@ func (s CreateReplicationTaskOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s CreateReplicationTaskOutput) GoString() string { +func (s DeleteFleetAdvisorDatabasesOutput) GoString() string { return s.String() } -// SetReplicationTask sets the ReplicationTask field's value. -func (s *CreateReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *CreateReplicationTaskOutput { - s.ReplicationTask = v +// SetDatabaseIds sets the DatabaseIds field's value. +func (s *DeleteFleetAdvisorDatabasesOutput) SetDatabaseIds(v []*string) *DeleteFleetAdvisorDatabasesOutput { + s.DatabaseIds = v return s } -type DeleteCertificateInput struct { +type DeleteReplicationInstanceInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the certificate. + // The Amazon Resource Name (ARN) of the replication instance to be deleted. // - // CertificateArn is a required field - CertificateArn *string `type:"string" required:"true"` + // ReplicationInstanceArn is a required field + ReplicationInstanceArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -7918,7 +10117,7 @@ type DeleteCertificateInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteCertificateInput) String() string { +func (s DeleteReplicationInstanceInput) String() string { return awsutil.Prettify(s) } @@ -7927,15 +10126,15 @@ func (s DeleteCertificateInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteCertificateInput) GoString() string { +func (s DeleteReplicationInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCertificateInput"} - if s.CertificateArn == nil { - invalidParams.Add(request.NewErrParamRequired("CertificateArn")) +func (s *DeleteReplicationInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationInstanceInput"} + if s.ReplicationInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) } if invalidParams.Len() > 0 { @@ -7944,17 +10143,17 @@ func (s *DeleteCertificateInput) Validate() error { return nil } -// SetCertificateArn sets the CertificateArn field's value. -func (s *DeleteCertificateInput) SetCertificateArn(v string) *DeleteCertificateInput { - s.CertificateArn = &v +// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. +func (s *DeleteReplicationInstanceInput) SetReplicationInstanceArn(v string) *DeleteReplicationInstanceInput { + s.ReplicationInstanceArn = &v return s } -type DeleteCertificateOutput struct { +type DeleteReplicationInstanceOutput struct { _ struct{} `type:"structure"` - // The Secure Sockets Layer (SSL) certificate. - Certificate *Certificate `type:"structure"` + // The replication instance that was deleted. + ReplicationInstance *ReplicationInstance `type:"structure"` } // String returns the string representation. @@ -7962,7 +10161,7 @@ type DeleteCertificateOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteCertificateOutput) String() string { +func (s DeleteReplicationInstanceOutput) String() string { return awsutil.Prettify(s) } @@ -7971,28 +10170,23 @@ func (s DeleteCertificateOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteCertificateOutput) GoString() string { +func (s DeleteReplicationInstanceOutput) GoString() string { return s.String() } -// SetCertificate sets the Certificate field's value. -func (s *DeleteCertificateOutput) SetCertificate(v *Certificate) *DeleteCertificateOutput { - s.Certificate = v +// SetReplicationInstance sets the ReplicationInstance field's value. +func (s *DeleteReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *DeleteReplicationInstanceOutput { + s.ReplicationInstance = v return s } -type DeleteConnectionInput struct { +type DeleteReplicationSubnetGroupInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - // - // EndpointArn is a required field - EndpointArn *string `type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the replication instance. + // The subnet group name of the replication instance. // - // ReplicationInstanceArn is a required field - ReplicationInstanceArn *string `type:"string" required:"true"` + // ReplicationSubnetGroupIdentifier is a required field + ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` } // String returns the string representation. @@ -8000,7 +10194,7 @@ type DeleteConnectionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionInput) String() string { +func (s DeleteReplicationSubnetGroupInput) String() string { return awsutil.Prettify(s) } @@ -8009,18 +10203,15 @@ func (s DeleteConnectionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionInput) GoString() string { +func (s DeleteReplicationSubnetGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) +func (s *DeleteReplicationSubnetGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationSubnetGroupInput"} + if s.ReplicationSubnetGroupIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) } if invalidParams.Len() > 0 { @@ -8029,23 +10220,14 @@ func (s *DeleteConnectionInput) Validate() error { return nil } -// SetEndpointArn sets the EndpointArn field's value. -func (s *DeleteConnectionInput) SetEndpointArn(v string) *DeleteConnectionInput { - s.EndpointArn = &v - return s -} - -// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. -func (s *DeleteConnectionInput) SetReplicationInstanceArn(v string) *DeleteConnectionInput { - s.ReplicationInstanceArn = &v +// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. +func (s *DeleteReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *DeleteReplicationSubnetGroupInput { + s.ReplicationSubnetGroupIdentifier = &v return s } -type DeleteConnectionOutput struct { +type DeleteReplicationSubnetGroupOutput struct { _ struct{} `type:"structure"` - - // The connection that is being deleted. - Connection *Connection `type:"structure"` } // String returns the string representation. @@ -8053,7 +10235,7 @@ type DeleteConnectionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionOutput) String() string { +func (s DeleteReplicationSubnetGroupOutput) String() string { return awsutil.Prettify(s) } @@ -8062,23 +10244,17 @@ func (s DeleteConnectionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteConnectionOutput) GoString() string { +func (s DeleteReplicationSubnetGroupOutput) GoString() string { return s.String() } -// SetConnection sets the Connection field's value. -func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { - s.Connection = v - return s -} - -type DeleteEndpointInput struct { +type DeleteReplicationTaskAssessmentRunInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. + // Amazon Resource Name (ARN) of the premigration assessment run to be deleted. // - // EndpointArn is a required field - EndpointArn *string `type:"string" required:"true"` + // ReplicationTaskAssessmentRunArn is a required field + ReplicationTaskAssessmentRunArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -8086,7 +10262,7 @@ type DeleteEndpointInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEndpointInput) String() string { +func (s DeleteReplicationTaskAssessmentRunInput) String() string { return awsutil.Prettify(s) } @@ -8095,15 +10271,15 @@ func (s DeleteEndpointInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEndpointInput) GoString() string { +func (s DeleteReplicationTaskAssessmentRunInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEndpointInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) +func (s *DeleteReplicationTaskAssessmentRunInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationTaskAssessmentRunInput"} + if s.ReplicationTaskAssessmentRunArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationTaskAssessmentRunArn")) } if invalidParams.Len() > 0 { @@ -8112,17 +10288,17 @@ func (s *DeleteEndpointInput) Validate() error { return nil } -// SetEndpointArn sets the EndpointArn field's value. -func (s *DeleteEndpointInput) SetEndpointArn(v string) *DeleteEndpointInput { - s.EndpointArn = &v +// SetReplicationTaskAssessmentRunArn sets the ReplicationTaskAssessmentRunArn field's value. +func (s *DeleteReplicationTaskAssessmentRunInput) SetReplicationTaskAssessmentRunArn(v string) *DeleteReplicationTaskAssessmentRunInput { + s.ReplicationTaskAssessmentRunArn = &v return s } -type DeleteEndpointOutput struct { +type DeleteReplicationTaskAssessmentRunOutput struct { _ struct{} `type:"structure"` - // The endpoint that was deleted. - Endpoint *Endpoint `type:"structure"` + // The ReplicationTaskAssessmentRun object for the deleted assessment run. + ReplicationTaskAssessmentRun *ReplicationTaskAssessmentRun `type:"structure"` } // String returns the string representation. @@ -8130,7 +10306,7 @@ type DeleteEndpointOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEndpointOutput) String() string { +func (s DeleteReplicationTaskAssessmentRunOutput) String() string { return awsutil.Prettify(s) } @@ -8139,23 +10315,23 @@ func (s DeleteEndpointOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEndpointOutput) GoString() string { +func (s DeleteReplicationTaskAssessmentRunOutput) GoString() string { return s.String() } -// SetEndpoint sets the Endpoint field's value. -func (s *DeleteEndpointOutput) SetEndpoint(v *Endpoint) *DeleteEndpointOutput { - s.Endpoint = v +// SetReplicationTaskAssessmentRun sets the ReplicationTaskAssessmentRun field's value. +func (s *DeleteReplicationTaskAssessmentRunOutput) SetReplicationTaskAssessmentRun(v *ReplicationTaskAssessmentRun) *DeleteReplicationTaskAssessmentRunOutput { + s.ReplicationTaskAssessmentRun = v return s } -type DeleteEventSubscriptionInput struct { +type DeleteReplicationTaskInput struct { _ struct{} `type:"structure"` - // The name of the DMS event notification subscription to be deleted. + // The Amazon Resource Name (ARN) of the replication task to be deleted. // - // SubscriptionName is a required field - SubscriptionName *string `type:"string" required:"true"` + // ReplicationTaskArn is a required field + ReplicationTaskArn *string `type:"string" required:"true"` } // String returns the string representation. @@ -8163,7 +10339,7 @@ type DeleteEventSubscriptionInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEventSubscriptionInput) String() string { +func (s DeleteReplicationTaskInput) String() string { return awsutil.Prettify(s) } @@ -8172,15 +10348,15 @@ func (s DeleteEventSubscriptionInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEventSubscriptionInput) GoString() string { +func (s DeleteReplicationTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEventSubscriptionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEventSubscriptionInput"} - if s.SubscriptionName == nil { - invalidParams.Add(request.NewErrParamRequired("SubscriptionName")) +func (s *DeleteReplicationTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationTaskInput"} + if s.ReplicationTaskArn == nil { + invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) } if invalidParams.Len() > 0 { @@ -8189,17 +10365,82 @@ func (s *DeleteEventSubscriptionInput) Validate() error { return nil } -// SetSubscriptionName sets the SubscriptionName field's value. -func (s *DeleteEventSubscriptionInput) SetSubscriptionName(v string) *DeleteEventSubscriptionInput { - s.SubscriptionName = &v +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *DeleteReplicationTaskInput) SetReplicationTaskArn(v string) *DeleteReplicationTaskInput { + s.ReplicationTaskArn = &v return s } -type DeleteEventSubscriptionOutput struct { +type DeleteReplicationTaskOutput struct { _ struct{} `type:"structure"` - // The event subscription that was deleted. - EventSubscription *EventSubscription `type:"structure"` + // The deleted replication task. + ReplicationTask *ReplicationTask `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 DeleteReplicationTaskOutput) 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 DeleteReplicationTaskOutput) GoString() string { + return s.String() +} + +// SetReplicationTask sets the ReplicationTask field's value. +func (s *DeleteReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *DeleteReplicationTaskOutput { + s.ReplicationTask = v + return s +} + +type DescribeAccountAttributesInput 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 DescribeAccountAttributesInput) 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 DescribeAccountAttributesInput) GoString() string { + return s.String() +} + +type DescribeAccountAttributesOutput struct { + _ struct{} `type:"structure"` + + // Account quota information. + AccountQuotas []*AccountQuota `type:"list"` + + // A unique DMS identifier for an account in a particular Amazon Web Services + // Region. The value of this identifier has the following format: c99999999999. + // DMS uses this identifier to name artifacts. For example, DMS uses this identifier + // to name the default Amazon S3 bucket for storing task assessment reports + // in a given Amazon Web Services Region. The format of this S3 bucket name + // is the following: dms-AccountNumber-UniqueAccountIdentifier. Here is an example + // name for this default S3 bucket: dms-111122223333-c44445555666. + // + // DMS supports the UniqueAccountIdentifier parameter in versions 3.1.4 and + // later. + UniqueAccountIdentifier *string `type:"string"` } // String returns the string representation. @@ -8207,7 +10448,7 @@ type DeleteEventSubscriptionOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEventSubscriptionOutput) String() string { +func (s DescribeAccountAttributesOutput) String() string { return awsutil.Prettify(s) } @@ -8216,23 +10457,54 @@ func (s DeleteEventSubscriptionOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteEventSubscriptionOutput) GoString() string { +func (s DescribeAccountAttributesOutput) GoString() string { return s.String() } -// SetEventSubscription sets the EventSubscription field's value. -func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscription) *DeleteEventSubscriptionOutput { - s.EventSubscription = v +// SetAccountQuotas sets the AccountQuotas field's value. +func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput { + s.AccountQuotas = v return s } -type DeleteReplicationInstanceInput struct { +// SetUniqueAccountIdentifier sets the UniqueAccountIdentifier field's value. +func (s *DescribeAccountAttributesOutput) SetUniqueAccountIdentifier(v string) *DescribeAccountAttributesOutput { + s.UniqueAccountIdentifier = &v + return s +} + +type DescribeApplicableIndividualAssessmentsInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the replication instance to be deleted. - // - // ReplicationInstanceArn is a required field - ReplicationInstanceArn *string `type:"string" required:"true"` + // Optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` + + // Maximum number of records to include in the response. If more records exist + // than the specified MaxRecords value, a pagination token called a marker is + // included in the response so that the remaining results can be retrieved. + MaxRecords *int64 `type:"integer"` + + // Name of the migration type that each provided individual assessment must + // support. + MigrationType *string `type:"string" enum:"MigrationTypeValue"` + + // ARN of a replication instance on which you want to base the default list + // of individual assessments. + ReplicationInstanceArn *string `type:"string"` + + // Amazon Resource Name (ARN) of a migration task on which you want to base + // the default list of individual assessments. + ReplicationTaskArn *string `type:"string"` + + // Name of a database engine that the specified replication instance supports + // as a source. + SourceEngineName *string `type:"string"` + + // Name of a database engine that the specified replication instance supports + // as a target. + TargetEngineName *string `type:"string"` } // String returns the string representation. @@ -8240,7 +10512,7 @@ type DeleteReplicationInstanceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationInstanceInput) String() string { +func (s DescribeApplicableIndividualAssessmentsInput) String() string { return awsutil.Prettify(s) } @@ -8249,34 +10521,68 @@ func (s DeleteReplicationInstanceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationInstanceInput) GoString() string { +func (s DescribeApplicableIndividualAssessmentsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationInstanceInput"} - if s.ReplicationInstanceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationInstanceArn")) - } +// SetMarker sets the Marker field's value. +func (s *DescribeApplicableIndividualAssessmentsInput) SetMarker(v string) *DescribeApplicableIndividualAssessmentsInput { + s.Marker = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeApplicableIndividualAssessmentsInput) SetMaxRecords(v int64) *DescribeApplicableIndividualAssessmentsInput { + s.MaxRecords = &v + return s +} + +// SetMigrationType sets the MigrationType field's value. +func (s *DescribeApplicableIndividualAssessmentsInput) SetMigrationType(v string) *DescribeApplicableIndividualAssessmentsInput { + s.MigrationType = &v + return s } // SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. -func (s *DeleteReplicationInstanceInput) SetReplicationInstanceArn(v string) *DeleteReplicationInstanceInput { +func (s *DescribeApplicableIndividualAssessmentsInput) SetReplicationInstanceArn(v string) *DescribeApplicableIndividualAssessmentsInput { s.ReplicationInstanceArn = &v return s } -type DeleteReplicationInstanceOutput struct { +// SetReplicationTaskArn sets the ReplicationTaskArn field's value. +func (s *DescribeApplicableIndividualAssessmentsInput) SetReplicationTaskArn(v string) *DescribeApplicableIndividualAssessmentsInput { + s.ReplicationTaskArn = &v + return s +} + +// SetSourceEngineName sets the SourceEngineName field's value. +func (s *DescribeApplicableIndividualAssessmentsInput) SetSourceEngineName(v string) *DescribeApplicableIndividualAssessmentsInput { + s.SourceEngineName = &v + return s +} + +// SetTargetEngineName sets the TargetEngineName field's value. +func (s *DescribeApplicableIndividualAssessmentsInput) SetTargetEngineName(v string) *DescribeApplicableIndividualAssessmentsInput { + s.TargetEngineName = &v + return s +} + +type DescribeApplicableIndividualAssessmentsOutput struct { _ struct{} `type:"structure"` - // The replication instance that was deleted. - ReplicationInstance *ReplicationInstance `type:"structure"` + // List of names for the individual assessments supported by the premigration + // assessment run that you start based on the specified request parameters. + // For more information on the available individual assessments, including compatibility + // with different migration task configurations, see Working with premigration + // assessment runs (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) + // in the Database Migration Service User Guide. + IndividualAssessmentNames []*string `type:"list"` + + // Pagination token returned for you to pass to a subsequent request. If you + // pass this token as the Marker value in a subsequent request, the response + // includes only records beyond the marker, up to the value specified in the + // request by MaxRecords. + Marker *string `type:"string"` } // String returns the string representation. @@ -8284,7 +10590,7 @@ type DeleteReplicationInstanceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationInstanceOutput) String() string { +func (s DescribeApplicableIndividualAssessmentsOutput) String() string { return awsutil.Prettify(s) } @@ -8293,23 +10599,40 @@ func (s DeleteReplicationInstanceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationInstanceOutput) GoString() string { +func (s DescribeApplicableIndividualAssessmentsOutput) GoString() string { return s.String() } -// SetReplicationInstance sets the ReplicationInstance field's value. -func (s *DeleteReplicationInstanceOutput) SetReplicationInstance(v *ReplicationInstance) *DeleteReplicationInstanceOutput { - s.ReplicationInstance = v +// SetIndividualAssessmentNames sets the IndividualAssessmentNames field's value. +func (s *DescribeApplicableIndividualAssessmentsOutput) SetIndividualAssessmentNames(v []*string) *DescribeApplicableIndividualAssessmentsOutput { + s.IndividualAssessmentNames = v return s } -type DeleteReplicationSubnetGroupInput struct { +// SetMarker sets the Marker field's value. +func (s *DescribeApplicableIndividualAssessmentsOutput) SetMarker(v string) *DescribeApplicableIndividualAssessmentsOutput { + s.Marker = &v + return s +} + +type DescribeCertificatesInput struct { _ struct{} `type:"structure"` - // The subnet group name of the replication instance. + // Filters applied to the certificates described in the form of key-value pairs. + // Valid values are certificate-arn and certificate-id. + Filters []*Filter `type:"list"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination token called a marker + // is included in the response so that the remaining results can be retrieved. // - // ReplicationSubnetGroupIdentifier is a required field - ReplicationSubnetGroupIdentifier *string `type:"string" required:"true"` + // Default: 10 + MaxRecords *int64 `type:"integer"` } // String returns the string representation. @@ -8317,7 +10640,7 @@ type DeleteReplicationSubnetGroupInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationSubnetGroupInput) String() string { +func (s DescribeCertificatesInput) String() string { return awsutil.Prettify(s) } @@ -8326,15 +10649,22 @@ func (s DeleteReplicationSubnetGroupInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationSubnetGroupInput) GoString() string { +func (s DescribeCertificatesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationSubnetGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationSubnetGroupInput"} - if s.ReplicationSubnetGroupIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationSubnetGroupIdentifier")) +func (s *DescribeCertificatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -8343,14 +10673,33 @@ func (s *DeleteReplicationSubnetGroupInput) Validate() error { return nil } -// SetReplicationSubnetGroupIdentifier sets the ReplicationSubnetGroupIdentifier field's value. -func (s *DeleteReplicationSubnetGroupInput) SetReplicationSubnetGroupIdentifier(v string) *DeleteReplicationSubnetGroupInput { - s.ReplicationSubnetGroupIdentifier = &v +// SetFilters sets the Filters field's value. +func (s *DescribeCertificatesInput) SetFilters(v []*Filter) *DescribeCertificatesInput { + s.Filters = v return s } -type DeleteReplicationSubnetGroupOutput struct { +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesInput) SetMarker(v string) *DescribeCertificatesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeCertificatesInput) SetMaxRecords(v int64) *DescribeCertificatesInput { + s.MaxRecords = &v + return s +} + +type DescribeCertificatesOutput struct { _ struct{} `type:"structure"` + + // The Secure Sockets Layer (SSL) certificates associated with the replication + // instance. + Certificates []*Certificate `type:"list"` + + // The pagination token. + Marker *string `type:"string"` } // String returns the string representation. @@ -8358,7 +10707,7 @@ type DeleteReplicationSubnetGroupOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationSubnetGroupOutput) String() string { +func (s DescribeCertificatesOutput) String() string { return awsutil.Prettify(s) } @@ -8367,17 +10716,43 @@ func (s DeleteReplicationSubnetGroupOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationSubnetGroupOutput) GoString() string { +func (s DescribeCertificatesOutput) GoString() string { return s.String() } -type DeleteReplicationTaskAssessmentRunInput struct { +// SetCertificates sets the Certificates field's value. +func (s *DescribeCertificatesOutput) SetCertificates(v []*Certificate) *DescribeCertificatesOutput { + s.Certificates = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeCertificatesOutput) SetMarker(v string) *DescribeCertificatesOutput { + s.Marker = &v + return s +} + +type DescribeConnectionsInput struct { _ struct{} `type:"structure"` - // Amazon Resource Name (ARN) of the premigration assessment run to be deleted. + // The filters applied to the connection. // - // ReplicationTaskAssessmentRunArn is a required field - ReplicationTaskAssessmentRunArn *string `type:"string" required:"true"` + // Valid filter names: endpoint-arn | replication-instance-arn + Filters []*Filter `type:"list"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination token called a marker + // is included in the response so that the remaining results can be retrieved. + // + // Default: 100 + // + // Constraints: Minimum 20, maximum 100. + MaxRecords *int64 `type:"integer"` } // String returns the string representation. @@ -8385,7 +10760,7 @@ type DeleteReplicationTaskAssessmentRunInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskAssessmentRunInput) String() string { +func (s DescribeConnectionsInput) String() string { return awsutil.Prettify(s) } @@ -8394,15 +10769,22 @@ func (s DeleteReplicationTaskAssessmentRunInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskAssessmentRunInput) GoString() string { +func (s DescribeConnectionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationTaskAssessmentRunInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationTaskAssessmentRunInput"} - if s.ReplicationTaskAssessmentRunArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskAssessmentRunArn")) +func (s *DescribeConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -8411,17 +10793,34 @@ func (s *DeleteReplicationTaskAssessmentRunInput) Validate() error { return nil } -// SetReplicationTaskAssessmentRunArn sets the ReplicationTaskAssessmentRunArn field's value. -func (s *DeleteReplicationTaskAssessmentRunInput) SetReplicationTaskAssessmentRunArn(v string) *DeleteReplicationTaskAssessmentRunInput { - s.ReplicationTaskAssessmentRunArn = &v +// SetFilters sets the Filters field's value. +func (s *DescribeConnectionsInput) SetFilters(v []*Filter) *DescribeConnectionsInput { + s.Filters = v return s } -type DeleteReplicationTaskAssessmentRunOutput struct { +// SetMarker sets the Marker field's value. +func (s *DescribeConnectionsInput) SetMarker(v string) *DescribeConnectionsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeConnectionsInput) SetMaxRecords(v int64) *DescribeConnectionsInput { + s.MaxRecords = &v + return s +} + +type DescribeConnectionsOutput struct { _ struct{} `type:"structure"` - // The ReplicationTaskAssessmentRun object for the deleted assessment run. - ReplicationTaskAssessmentRun *ReplicationTaskAssessmentRun `type:"structure"` + // A description of the connections. + Connections []*Connection `type:"list"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` } // String returns the string representation. @@ -8429,7 +10828,7 @@ type DeleteReplicationTaskAssessmentRunOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskAssessmentRunOutput) String() string { +func (s DescribeConnectionsOutput) String() string { return awsutil.Prettify(s) } @@ -8438,23 +10837,39 @@ func (s DeleteReplicationTaskAssessmentRunOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskAssessmentRunOutput) GoString() string { +func (s DescribeConnectionsOutput) GoString() string { return s.String() } -// SetReplicationTaskAssessmentRun sets the ReplicationTaskAssessmentRun field's value. -func (s *DeleteReplicationTaskAssessmentRunOutput) SetReplicationTaskAssessmentRun(v *ReplicationTaskAssessmentRun) *DeleteReplicationTaskAssessmentRunOutput { - s.ReplicationTaskAssessmentRun = v +// SetConnections sets the Connections field's value. +func (s *DescribeConnectionsOutput) SetConnections(v []*Connection) *DescribeConnectionsOutput { + s.Connections = v return s } -type DeleteReplicationTaskInput struct { +// SetMarker sets the Marker field's value. +func (s *DescribeConnectionsOutput) SetMarker(v string) *DescribeConnectionsOutput { + s.Marker = &v + return s +} + +type DescribeEndpointSettingsInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the replication task to be deleted. + // The databse engine used for your source or target endpoint. // - // ReplicationTaskArn is a required field - ReplicationTaskArn *string `type:"string" required:"true"` + // EngineName is a required field + EngineName *string `type:"string" required:"true"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination token called a marker + // is included in the response so that the remaining results can be retrieved. + MaxRecords *int64 `type:"integer"` } // String returns the string representation. @@ -8462,7 +10877,7 @@ type DeleteReplicationTaskInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskInput) String() string { +func (s DescribeEndpointSettingsInput) String() string { return awsutil.Prettify(s) } @@ -8471,15 +10886,15 @@ func (s DeleteReplicationTaskInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskInput) GoString() string { +func (s DescribeEndpointSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteReplicationTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationTaskInput"} - if s.ReplicationTaskArn == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationTaskArn")) +func (s *DescribeEndpointSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointSettingsInput"} + if s.EngineName == nil { + invalidParams.Add(request.NewErrParamRequired("EngineName")) } if invalidParams.Len() > 0 { @@ -8488,17 +10903,35 @@ func (s *DeleteReplicationTaskInput) Validate() error { return nil } -// SetReplicationTaskArn sets the ReplicationTaskArn field's value. -func (s *DeleteReplicationTaskInput) SetReplicationTaskArn(v string) *DeleteReplicationTaskInput { - s.ReplicationTaskArn = &v +// SetEngineName sets the EngineName field's value. +func (s *DescribeEndpointSettingsInput) SetEngineName(v string) *DescribeEndpointSettingsInput { + s.EngineName = &v return s } -type DeleteReplicationTaskOutput struct { +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointSettingsInput) SetMarker(v string) *DescribeEndpointSettingsInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEndpointSettingsInput) SetMaxRecords(v int64) *DescribeEndpointSettingsInput { + s.MaxRecords = &v + return s +} + +type DescribeEndpointSettingsOutput struct { _ struct{} `type:"structure"` - // The deleted replication task. - ReplicationTask *ReplicationTask `type:"structure"` + // Descriptions of the endpoint settings available for your source or target + // database engine. + EndpointSettings []*EndpointSetting `type:"list"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` } // String returns the string representation. @@ -8506,7 +10939,7 @@ type DeleteReplicationTaskOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskOutput) String() string { +func (s DescribeEndpointSettingsOutput) String() string { return awsutil.Prettify(s) } @@ -8515,18 +10948,43 @@ func (s DeleteReplicationTaskOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DeleteReplicationTaskOutput) GoString() string { +func (s DescribeEndpointSettingsOutput) GoString() string { return s.String() } -// SetReplicationTask sets the ReplicationTask field's value. -func (s *DeleteReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *DeleteReplicationTaskOutput { - s.ReplicationTask = v +// SetEndpointSettings sets the EndpointSettings field's value. +func (s *DescribeEndpointSettingsOutput) SetEndpointSettings(v []*EndpointSetting) *DescribeEndpointSettingsOutput { + s.EndpointSettings = v return s } -type DescribeAccountAttributesInput struct { +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointSettingsOutput) SetMarker(v string) *DescribeEndpointSettingsOutput { + s.Marker = &v + return s +} + +type DescribeEndpointTypesInput struct { _ struct{} `type:"structure"` + + // Filters applied to the endpoint types. + // + // Valid filter names: engine-name | endpoint-type + Filters []*Filter `type:"list"` + + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination token called a marker + // is included in the response so that the remaining results can be retrieved. + // + // Default: 100 + // + // Constraints: Minimum 20, maximum 100. + MaxRecords *int64 `type:"integer"` } // String returns the string representation. @@ -8534,7 +10992,7 @@ type DescribeAccountAttributesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeAccountAttributesInput) String() string { +func (s DescribeEndpointTypesInput) String() string { return awsutil.Prettify(s) } @@ -8543,27 +11001,58 @@ func (s DescribeAccountAttributesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeAccountAttributesInput) GoString() string { +func (s DescribeEndpointTypesInput) GoString() string { return s.String() } -type DescribeAccountAttributesOutput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEndpointTypesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointTypesInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEndpointTypesInput) SetFilters(v []*Filter) *DescribeEndpointTypesInput { + s.Filters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointTypesInput) SetMarker(v string) *DescribeEndpointTypesInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEndpointTypesInput) SetMaxRecords(v int64) *DescribeEndpointTypesInput { + s.MaxRecords = &v + return s +} + +type DescribeEndpointTypesOutput struct { _ struct{} `type:"structure"` - // Account quota information. - AccountQuotas []*AccountQuota `type:"list"` + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` - // A unique DMS identifier for an account in a particular Amazon Web Services - // Region. The value of this identifier has the following format: c99999999999. - // DMS uses this identifier to name artifacts. For example, DMS uses this identifier - // to name the default Amazon S3 bucket for storing task assessment reports - // in a given Amazon Web Services Region. The format of this S3 bucket name - // is the following: dms-AccountNumber-UniqueAccountIdentifier. Here is an example - // name for this default S3 bucket: dms-111122223333-c44445555666. - // - // DMS supports the UniqueAccountIdentifier parameter in versions 3.1.4 and - // later. - UniqueAccountIdentifier *string `type:"string"` + // The types of endpoints that are supported. + SupportedEndpointTypes []*SupportedEndpointType `type:"list"` } // String returns the string representation. @@ -8571,7 +11060,7 @@ type DescribeAccountAttributesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeAccountAttributesOutput) String() string { +func (s DescribeEndpointTypesOutput) String() string { return awsutil.Prettify(s) } @@ -8580,54 +11069,43 @@ func (s DescribeAccountAttributesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeAccountAttributesOutput) GoString() string { +func (s DescribeEndpointTypesOutput) GoString() string { return s.String() } -// SetAccountQuotas sets the AccountQuotas field's value. -func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput { - s.AccountQuotas = v +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointTypesOutput) SetMarker(v string) *DescribeEndpointTypesOutput { + s.Marker = &v return s } -// SetUniqueAccountIdentifier sets the UniqueAccountIdentifier field's value. -func (s *DescribeAccountAttributesOutput) SetUniqueAccountIdentifier(v string) *DescribeAccountAttributesOutput { - s.UniqueAccountIdentifier = &v +// SetSupportedEndpointTypes sets the SupportedEndpointTypes field's value. +func (s *DescribeEndpointTypesOutput) SetSupportedEndpointTypes(v []*SupportedEndpointType) *DescribeEndpointTypesOutput { + s.SupportedEndpointTypes = v return s } -type DescribeApplicableIndividualAssessmentsInput struct { +type DescribeEndpointsInput struct { _ struct{} `type:"structure"` - // Optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // Maximum number of records to include in the response. If more records exist - // than the specified MaxRecords value, a pagination token called a marker is - // included in the response so that the remaining results can be retrieved. - MaxRecords *int64 `type:"integer"` - - // Name of the migration type that each provided individual assessment must - // support. - MigrationType *string `type:"string" enum:"MigrationTypeValue"` - - // ARN of a replication instance on which you want to base the default list - // of individual assessments. - ReplicationInstanceArn *string `type:"string"` - - // Amazon Resource Name (ARN) of a migration task on which you want to base - // the default list of individual assessments. - ReplicationTaskArn *string `type:"string"` - - // Name of a database engine that the specified replication instance supports - // as a source. - SourceEngineName *string `type:"string"` + // Filters applied to the endpoints. + // + // Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name + Filters []*Filter `type:"list"` - // Name of a database engine that the specified replication instance supports - // as a target. - TargetEngineName *string `type:"string"` + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination token called a marker + // is included in the response so that the remaining results can be retrieved. + // + // Default: 100 + // + // Constraints: Minimum 20, maximum 100. + MaxRecords *int64 `type:"integer"` } // String returns the string representation. @@ -8635,7 +11113,7 @@ type DescribeApplicableIndividualAssessmentsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeApplicableIndividualAssessmentsInput) String() string { +func (s DescribeEndpointsInput) String() string { return awsutil.Prettify(s) } @@ -8644,67 +11122,57 @@ func (s DescribeApplicableIndividualAssessmentsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeApplicableIndividualAssessmentsInput) GoString() string { +func (s DescribeEndpointsInput) GoString() string { return s.String() } -// SetMarker sets the Marker field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetMarker(v string) *DescribeApplicableIndividualAssessmentsInput { - s.Marker = &v - return s -} - -// SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetMaxRecords(v int64) *DescribeApplicableIndividualAssessmentsInput { - s.MaxRecords = &v - return s -} - -// SetMigrationType sets the MigrationType field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetMigrationType(v string) *DescribeApplicableIndividualAssessmentsInput { - s.MigrationType = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeEndpointsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointsInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } + } -// SetReplicationInstanceArn sets the ReplicationInstanceArn field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetReplicationInstanceArn(v string) *DescribeApplicableIndividualAssessmentsInput { - s.ReplicationInstanceArn = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetReplicationTaskArn sets the ReplicationTaskArn field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetReplicationTaskArn(v string) *DescribeApplicableIndividualAssessmentsInput { - s.ReplicationTaskArn = &v +// SetFilters sets the Filters field's value. +func (s *DescribeEndpointsInput) SetFilters(v []*Filter) *DescribeEndpointsInput { + s.Filters = v return s } -// SetSourceEngineName sets the SourceEngineName field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetSourceEngineName(v string) *DescribeApplicableIndividualAssessmentsInput { - s.SourceEngineName = &v +// SetMarker sets the Marker field's value. +func (s *DescribeEndpointsInput) SetMarker(v string) *DescribeEndpointsInput { + s.Marker = &v return s } -// SetTargetEngineName sets the TargetEngineName field's value. -func (s *DescribeApplicableIndividualAssessmentsInput) SetTargetEngineName(v string) *DescribeApplicableIndividualAssessmentsInput { - s.TargetEngineName = &v +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeEndpointsInput) SetMaxRecords(v int64) *DescribeEndpointsInput { + s.MaxRecords = &v return s } -type DescribeApplicableIndividualAssessmentsOutput struct { +type DescribeEndpointsOutput struct { _ struct{} `type:"structure"` - // List of names for the individual assessments supported by the premigration - // assessment run that you start based on the specified request parameters. - // For more information on the available individual assessments, including compatibility - // with different migration task configurations, see Working with premigration - // assessment runs (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Tasks.AssessmentReport.html) - // in the Database Migration Service User Guide. - IndividualAssessmentNames []*string `type:"list"` + // Endpoint description. + Endpoints []*Endpoint `type:"list"` - // Pagination token returned for you to pass to a subsequent request. If you - // pass this token as the Marker value in a subsequent request, the response - // includes only records beyond the marker, up to the value specified in the - // request by MaxRecords. + // An optional pagination token provided by a previous request. If this parameter + // is specified, the response includes only records beyond the marker, up to + // the value specified by MaxRecords. Marker *string `type:"string"` } @@ -8713,7 +11181,7 @@ type DescribeApplicableIndividualAssessmentsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeApplicableIndividualAssessmentsOutput) String() string { +func (s DescribeEndpointsOutput) String() string { return awsutil.Prettify(s) } @@ -8722,40 +11190,32 @@ func (s DescribeApplicableIndividualAssessmentsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeApplicableIndividualAssessmentsOutput) GoString() string { +func (s DescribeEndpointsOutput) GoString() string { return s.String() } -// SetIndividualAssessmentNames sets the IndividualAssessmentNames field's value. -func (s *DescribeApplicableIndividualAssessmentsOutput) SetIndividualAssessmentNames(v []*string) *DescribeApplicableIndividualAssessmentsOutput { - s.IndividualAssessmentNames = v +// SetEndpoints sets the Endpoints field's value. +func (s *DescribeEndpointsOutput) SetEndpoints(v []*Endpoint) *DescribeEndpointsOutput { + s.Endpoints = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeApplicableIndividualAssessmentsOutput) SetMarker(v string) *DescribeApplicableIndividualAssessmentsOutput { +func (s *DescribeEndpointsOutput) SetMarker(v string) *DescribeEndpointsOutput { s.Marker = &v return s } -type DescribeCertificatesInput struct { +type DescribeEventCategoriesInput struct { _ struct{} `type:"structure"` - // Filters applied to the certificates described in the form of key-value pairs. - // Valid values are certificate-arn and certificate-id. + // Filters applied to the event categories. Filters []*Filter `type:"list"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. + // The type of DMS resource that generates events. // - // Default: 10 - MaxRecords *int64 `type:"integer"` + // Valid values: replication-instance | replication-task + SourceType *string `type:"string"` } // String returns the string representation. @@ -8763,7 +11223,7 @@ type DescribeCertificatesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeCertificatesInput) String() string { +func (s DescribeEventCategoriesInput) String() string { return awsutil.Prettify(s) } @@ -8772,13 +11232,13 @@ func (s DescribeCertificatesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeCertificatesInput) GoString() string { +func (s DescribeEventCategoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeCertificatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeCertificatesInput"} +func (s *DescribeEventCategoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { @@ -8797,32 +11257,22 @@ func (s *DescribeCertificatesInput) Validate() error { } // SetFilters sets the Filters field's value. -func (s *DescribeCertificatesInput) SetFilters(v []*Filter) *DescribeCertificatesInput { +func (s *DescribeEventCategoriesInput) SetFilters(v []*Filter) *DescribeEventCategoriesInput { s.Filters = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeCertificatesInput) SetMarker(v string) *DescribeCertificatesInput { - s.Marker = &v - return s -} - -// SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeCertificatesInput) SetMaxRecords(v int64) *DescribeCertificatesInput { - s.MaxRecords = &v +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput { + s.SourceType = &v return s } -type DescribeCertificatesOutput struct { +type DescribeEventCategoriesOutput struct { _ struct{} `type:"structure"` - // The Secure Sockets Layer (SSL) certificates associated with the replication - // instance. - Certificates []*Certificate `type:"list"` - - // The pagination token. - Marker *string `type:"string"` + // A list of event categories. + EventCategoryGroupList []*EventCategoryGroup `type:"list"` } // String returns the string representation. @@ -8830,7 +11280,7 @@ type DescribeCertificatesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeCertificatesOutput) String() string { +func (s DescribeEventCategoriesOutput) String() string { return awsutil.Prettify(s) } @@ -8839,28 +11289,22 @@ func (s DescribeCertificatesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeCertificatesOutput) GoString() string { +func (s DescribeEventCategoriesOutput) GoString() string { return s.String() } -// SetCertificates sets the Certificates field's value. -func (s *DescribeCertificatesOutput) SetCertificates(v []*Certificate) *DescribeCertificatesOutput { - s.Certificates = v - return s -} - -// SetMarker sets the Marker field's value. -func (s *DescribeCertificatesOutput) SetMarker(v string) *DescribeCertificatesOutput { - s.Marker = &v +// SetEventCategoryGroupList sets the EventCategoryGroupList field's value. +func (s *DescribeEventCategoriesOutput) SetEventCategoryGroupList(v []*EventCategoryGroup) *DescribeEventCategoriesOutput { + s.EventCategoryGroupList = v return s } -type DescribeConnectionsInput struct { +type DescribeEventSubscriptionsInput struct { _ struct{} `type:"structure"` - // The filters applied to the connection. + // Filters applied to event subscriptions. // - // Valid filter names: endpoint-arn | replication-instance-arn + // Valid filter names: event-subscription-arn | event-subscription-id Filters []*Filter `type:"list"` // An optional pagination token provided by a previous request. If this parameter @@ -8876,6 +11320,9 @@ type DescribeConnectionsInput struct { // // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + // The name of the DMS event subscription to be described. + SubscriptionName *string `type:"string"` } // String returns the string representation. @@ -8883,7 +11330,7 @@ type DescribeConnectionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeConnectionsInput) String() string { +func (s DescribeEventSubscriptionsInput) String() string { return awsutil.Prettify(s) } @@ -8892,13 +11339,13 @@ func (s DescribeConnectionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeConnectionsInput) GoString() string { +func (s DescribeEventSubscriptionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeConnectionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeConnectionsInput"} +func (s *DescribeEventSubscriptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventSubscriptionsInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { @@ -8917,28 +11364,34 @@ func (s *DescribeConnectionsInput) Validate() error { } // SetFilters sets the Filters field's value. -func (s *DescribeConnectionsInput) SetFilters(v []*Filter) *DescribeConnectionsInput { +func (s *DescribeEventSubscriptionsInput) SetFilters(v []*Filter) *DescribeEventSubscriptionsInput { s.Filters = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeConnectionsInput) SetMarker(v string) *DescribeConnectionsInput { +func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput { s.Marker = &v return s } // SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeConnectionsInput) SetMaxRecords(v int64) *DescribeConnectionsInput { +func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput { s.MaxRecords = &v return s } -type DescribeConnectionsOutput struct { +// SetSubscriptionName sets the SubscriptionName field's value. +func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput { + s.SubscriptionName = &v + return s +} + +type DescribeEventSubscriptionsOutput struct { _ struct{} `type:"structure"` - // A description of the connections. - Connections []*Connection `type:"list"` + // A list of event subscriptions. + EventSubscriptionsList []*EventSubscription `type:"list"` // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to @@ -8951,7 +11404,7 @@ type DescribeConnectionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeConnectionsOutput) String() string { +func (s DescribeEventSubscriptionsOutput) String() string { return awsutil.Prettify(s) } @@ -8960,29 +11413,36 @@ func (s DescribeConnectionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeConnectionsOutput) GoString() string { +func (s DescribeEventSubscriptionsOutput) GoString() string { return s.String() } -// SetConnections sets the Connections field's value. -func (s *DescribeConnectionsOutput) SetConnections(v []*Connection) *DescribeConnectionsOutput { - s.Connections = v +// SetEventSubscriptionsList sets the EventSubscriptionsList field's value. +func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput { + s.EventSubscriptionsList = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeConnectionsOutput) SetMarker(v string) *DescribeConnectionsOutput { +func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput { s.Marker = &v return s } -type DescribeEndpointSettingsInput struct { +type DescribeEventsInput struct { _ struct{} `type:"structure"` - // The databse engine used for your source or target endpoint. - // - // EngineName is a required field - EngineName *string `type:"string" required:"true"` + // The duration of the events to be listed. + Duration *int64 `type:"integer"` + + // The end time for the events to be listed. + EndTime *time.Time `type:"timestamp"` + + // A list of event categories for the source type that you've chosen. + EventCategories []*string `type:"list"` + + // Filters applied to events. The only valid filter is replication-instance-id. + Filters []*Filter `type:"list"` // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to @@ -8992,7 +11452,22 @@ type DescribeEndpointSettingsInput struct { // The maximum number of records to include in the response. If more records // exist than the specified MaxRecords value, a pagination token called a marker // is included in the response so that the remaining results can be retrieved. + // + // Default: 100 + // + // Constraints: Minimum 20, maximum 100. MaxRecords *int64 `type:"integer"` + + // The identifier of an event source. + SourceIdentifier *string `type:"string"` + + // The type of DMS resource that generates events. + // + // Valid values: replication-instance | replication-task + SourceType *string `type:"string" enum:"SourceType"` + + // The start time for the events to be listed. + StartTime *time.Time `type:"timestamp"` } // String returns the string representation. @@ -9000,7 +11475,7 @@ type DescribeEndpointSettingsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointSettingsInput) String() string { +func (s DescribeEventsInput) String() string { return awsutil.Prettify(s) } @@ -9009,15 +11484,22 @@ func (s DescribeEndpointSettingsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointSettingsInput) GoString() string { +func (s DescribeEventsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointSettingsInput"} - if s.EngineName == nil { - invalidParams.Add(request.NewErrParamRequired("EngineName")) +func (s *DescribeEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"} + if s.Filters != nil { + for i, v := range s.Filters { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -9026,30 +11508,65 @@ func (s *DescribeEndpointSettingsInput) Validate() error { return nil } -// SetEngineName sets the EngineName field's value. -func (s *DescribeEndpointSettingsInput) SetEngineName(v string) *DescribeEndpointSettingsInput { - s.EngineName = &v +// SetDuration sets the Duration field's value. +func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { + s.Duration = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { + s.EndTime = &v + return s +} + +// SetEventCategories sets the EventCategories field's value. +func (s *DescribeEventsInput) SetEventCategories(v []*string) *DescribeEventsInput { + s.EventCategories = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *DescribeEventsInput) SetFilters(v []*Filter) *DescribeEventsInput { + s.Filters = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeEndpointSettingsInput) SetMarker(v string) *DescribeEndpointSettingsInput { +func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { s.Marker = &v return s } // SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeEndpointSettingsInput) SetMaxRecords(v int64) *DescribeEndpointSettingsInput { +func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { s.MaxRecords = &v return s } -type DescribeEndpointSettingsOutput struct { +// SetSourceIdentifier sets the SourceIdentifier field's value. +func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { + s.SourceIdentifier = &v + return s +} + +// SetSourceType sets the SourceType field's value. +func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { + s.SourceType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { + s.StartTime = &v + return s +} + +type DescribeEventsOutput struct { _ struct{} `type:"structure"` - // Descriptions of the endpoint settings available for your source or target - // database engine. - EndpointSettings []*EndpointSetting `type:"list"` + // The events described. + Events []*Event `type:"list"` // An optional pagination token provided by a previous request. If this parameter // is specified, the response includes only records beyond the marker, up to @@ -9062,7 +11579,7 @@ type DescribeEndpointSettingsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointSettingsOutput) String() string { +func (s DescribeEventsOutput) String() string { return awsutil.Prettify(s) } @@ -9071,43 +11588,44 @@ func (s DescribeEndpointSettingsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointSettingsOutput) GoString() string { +func (s DescribeEventsOutput) GoString() string { return s.String() } -// SetEndpointSettings sets the EndpointSettings field's value. -func (s *DescribeEndpointSettingsOutput) SetEndpointSettings(v []*EndpointSetting) *DescribeEndpointSettingsOutput { - s.EndpointSettings = v +// SetEvents sets the Events field's value. +func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { + s.Events = v return s } // SetMarker sets the Marker field's value. -func (s *DescribeEndpointSettingsOutput) SetMarker(v string) *DescribeEndpointSettingsOutput { +func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { s.Marker = &v return s } -type DescribeEndpointTypesInput struct { +type DescribeFleetAdvisorCollectorsInput struct { _ struct{} `type:"structure"` - // Filters applied to the endpoint types. + // If you specify any of the following filters, the output includes information + // for only those collectors that meet the filter criteria: // - // Valid filter names: engine-name | endpoint-type - Filters []*Filter `type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. + // * collector-referenced-id – The ID of the collector agent, for example + // d4610ac5-e323-4ad9-bc50-eaf7249dfe9d. // - // Default: 100 + // * collector-name – The name of the collector agent. // - // Constraints: Minimum 20, maximum 100. + // An example is: describe-fleet-advisor-collectors --filter Name="collector-referenced-id",Values="d4610ac5-e323-4ad9-bc50-eaf7249dfe9d" + Filters []*Filter `type:"list"` + + // Sets the maximum number of records returned in the response. MaxRecords *int64 `type:"integer"` + + // If NextToken is returned by a previous response, 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. Keep all other + // arguments unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9115,7 +11633,7 @@ type DescribeEndpointTypesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointTypesInput) String() string { +func (s DescribeFleetAdvisorCollectorsInput) String() string { return awsutil.Prettify(s) } @@ -9124,13 +11642,13 @@ func (s DescribeEndpointTypesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointTypesInput) GoString() string { +func (s DescribeFleetAdvisorCollectorsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointTypesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointTypesInput"} +func (s *DescribeFleetAdvisorCollectorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAdvisorCollectorsInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { @@ -9149,33 +11667,35 @@ func (s *DescribeEndpointTypesInput) Validate() error { } // SetFilters sets the Filters field's value. -func (s *DescribeEndpointTypesInput) SetFilters(v []*Filter) *DescribeEndpointTypesInput { +func (s *DescribeFleetAdvisorCollectorsInput) SetFilters(v []*Filter) *DescribeFleetAdvisorCollectorsInput { s.Filters = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEndpointTypesInput) SetMarker(v string) *DescribeEndpointTypesInput { - s.Marker = &v +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeFleetAdvisorCollectorsInput) SetMaxRecords(v int64) *DescribeFleetAdvisorCollectorsInput { + s.MaxRecords = &v return s } -// SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeEndpointTypesInput) SetMaxRecords(v int64) *DescribeEndpointTypesInput { - s.MaxRecords = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorCollectorsInput) SetNextToken(v string) *DescribeFleetAdvisorCollectorsInput { + s.NextToken = &v return s } -type DescribeEndpointTypesOutput struct { +type DescribeFleetAdvisorCollectorsOutput struct { _ struct{} `type:"structure"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` + // Provides descriptions of the Fleet Advisor collectors, including the collectors' + // name and ID, and the latest inventory data. + Collectors []*CollectorResponse `type:"list"` - // The types of endpoints that are supported. - SupportedEndpointTypes []*SupportedEndpointType `type:"list"` + // 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. Keep all other arguments + // unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9183,7 +11703,7 @@ type DescribeEndpointTypesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointTypesOutput) String() string { +func (s DescribeFleetAdvisorCollectorsOutput) String() string { return awsutil.Prettify(s) } @@ -9192,43 +11712,51 @@ func (s DescribeEndpointTypesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointTypesOutput) GoString() string { +func (s DescribeFleetAdvisorCollectorsOutput) GoString() string { return s.String() } -// SetMarker sets the Marker field's value. -func (s *DescribeEndpointTypesOutput) SetMarker(v string) *DescribeEndpointTypesOutput { - s.Marker = &v +// SetCollectors sets the Collectors field's value. +func (s *DescribeFleetAdvisorCollectorsOutput) SetCollectors(v []*CollectorResponse) *DescribeFleetAdvisorCollectorsOutput { + s.Collectors = v return s } -// SetSupportedEndpointTypes sets the SupportedEndpointTypes field's value. -func (s *DescribeEndpointTypesOutput) SetSupportedEndpointTypes(v []*SupportedEndpointType) *DescribeEndpointTypesOutput { - s.SupportedEndpointTypes = v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorCollectorsOutput) SetNextToken(v string) *DescribeFleetAdvisorCollectorsOutput { + s.NextToken = &v return s } -type DescribeEndpointsInput struct { +type DescribeFleetAdvisorDatabasesInput struct { _ struct{} `type:"structure"` - // Filters applied to the endpoints. + // If you specify any of the following filters, the output includes information + // for only those databases that meet the filter criteria: // - // Valid filter names: endpoint-arn | endpoint-type | endpoint-id | engine-name - Filters []*Filter `type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. + // * database-id – The ID of the database, for example d4610ac5-e323-4ad9-bc50-eaf7249dfe9d. // - // Default: 100 + // * database-name – The name of the database. // - // Constraints: Minimum 20, maximum 100. + // * database-engine – The name of the database engine. + // + // * server-ip-address – The IP address of the database server. + // + // * database-ip-address – The IP address of the database. + // + // * collector-name – The name of the associated Fleet Advisor collector. + // + // An example is: describe-fleet-advisor-databases --filter Name="database-id",Values="d4610ac5-e323-4ad9-bc50-eaf7249dfe9d" + Filters []*Filter `type:"list"` + + // Sets the maximum number of records returned in the response. MaxRecords *int64 `type:"integer"` + + // If NextToken is returned by a previous response, 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. Keep all other + // arguments unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9236,7 +11764,7 @@ type DescribeEndpointsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsInput) String() string { +func (s DescribeFleetAdvisorDatabasesInput) String() string { return awsutil.Prettify(s) } @@ -9245,13 +11773,13 @@ func (s DescribeEndpointsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsInput) GoString() string { +func (s DescribeFleetAdvisorDatabasesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEndpointsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEndpointsInput"} +func (s *DescribeFleetAdvisorDatabasesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAdvisorDatabasesInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { @@ -9270,33 +11798,35 @@ func (s *DescribeEndpointsInput) Validate() error { } // SetFilters sets the Filters field's value. -func (s *DescribeEndpointsInput) SetFilters(v []*Filter) *DescribeEndpointsInput { +func (s *DescribeFleetAdvisorDatabasesInput) SetFilters(v []*Filter) *DescribeFleetAdvisorDatabasesInput { s.Filters = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEndpointsInput) SetMarker(v string) *DescribeEndpointsInput { - s.Marker = &v +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeFleetAdvisorDatabasesInput) SetMaxRecords(v int64) *DescribeFleetAdvisorDatabasesInput { + s.MaxRecords = &v return s } -// SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeEndpointsInput) SetMaxRecords(v int64) *DescribeEndpointsInput { - s.MaxRecords = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorDatabasesInput) SetNextToken(v string) *DescribeFleetAdvisorDatabasesInput { + s.NextToken = &v return s } -type DescribeEndpointsOutput struct { +type DescribeFleetAdvisorDatabasesOutput struct { _ struct{} `type:"structure"` - // Endpoint description. - Endpoints []*Endpoint `type:"list"` + // Provides descriptions of the Fleet Advisor collector databases, including + // the database's collector, ID, and name. + Databases []*DatabaseResponse `type:"list"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `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. Keep all other arguments + // unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9304,7 +11834,7 @@ type DescribeEndpointsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsOutput) String() string { +func (s DescribeFleetAdvisorDatabasesOutput) String() string { return awsutil.Prettify(s) } @@ -9313,32 +11843,33 @@ func (s DescribeEndpointsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsOutput) GoString() string { +func (s DescribeFleetAdvisorDatabasesOutput) GoString() string { return s.String() } -// SetEndpoints sets the Endpoints field's value. -func (s *DescribeEndpointsOutput) SetEndpoints(v []*Endpoint) *DescribeEndpointsOutput { - s.Endpoints = v +// SetDatabases sets the Databases field's value. +func (s *DescribeFleetAdvisorDatabasesOutput) SetDatabases(v []*DatabaseResponse) *DescribeFleetAdvisorDatabasesOutput { + s.Databases = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEndpointsOutput) SetMarker(v string) *DescribeEndpointsOutput { - s.Marker = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorDatabasesOutput) SetNextToken(v string) *DescribeFleetAdvisorDatabasesOutput { + s.NextToken = &v return s } -type DescribeEventCategoriesInput struct { +type DescribeFleetAdvisorLsaAnalysisInput struct { _ struct{} `type:"structure"` - // Filters applied to the event categories. - Filters []*Filter `type:"list"` + // Sets the maximum number of records returned in the response. + MaxRecords *int64 `type:"integer"` - // The type of DMS resource that generates events. - // - // Valid values: replication-instance | replication-task - SourceType *string `type:"string"` + // If NextToken is returned by a previous response, 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. Keep all other + // arguments unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9346,7 +11877,7 @@ type DescribeEventCategoriesInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventCategoriesInput) String() string { +func (s DescribeFleetAdvisorLsaAnalysisInput) String() string { return awsutil.Prettify(s) } @@ -9355,47 +11886,33 @@ func (s DescribeEventCategoriesInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventCategoriesInput) GoString() string { +func (s DescribeFleetAdvisorLsaAnalysisInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventCategoriesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventCategoriesInput"} - if s.Filters != nil { - for i, v := range s.Filters { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFilters sets the Filters field's value. -func (s *DescribeEventCategoriesInput) SetFilters(v []*Filter) *DescribeEventCategoriesInput { - s.Filters = v +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeFleetAdvisorLsaAnalysisInput) SetMaxRecords(v int64) *DescribeFleetAdvisorLsaAnalysisInput { + s.MaxRecords = &v return s } -// SetSourceType sets the SourceType field's value. -func (s *DescribeEventCategoriesInput) SetSourceType(v string) *DescribeEventCategoriesInput { - s.SourceType = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorLsaAnalysisInput) SetNextToken(v string) *DescribeFleetAdvisorLsaAnalysisInput { + s.NextToken = &v return s } -type DescribeEventCategoriesOutput struct { +type DescribeFleetAdvisorLsaAnalysisOutput struct { _ struct{} `type:"structure"` - // A list of event categories. - EventCategoryGroupList []*EventCategoryGroup `type:"list"` + // A list of FleetAdvisorLsaAnalysisResponse objects. + Analysis []*FleetAdvisorLsaAnalysisResponse `type:"list"` + + // 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. Keep all other arguments + // unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9403,7 +11920,7 @@ type DescribeEventCategoriesOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventCategoriesOutput) String() string { +func (s DescribeFleetAdvisorLsaAnalysisOutput) String() string { return awsutil.Prettify(s) } @@ -9412,40 +11929,41 @@ func (s DescribeEventCategoriesOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventCategoriesOutput) GoString() string { +func (s DescribeFleetAdvisorLsaAnalysisOutput) GoString() string { return s.String() } -// SetEventCategoryGroupList sets the EventCategoryGroupList field's value. -func (s *DescribeEventCategoriesOutput) SetEventCategoryGroupList(v []*EventCategoryGroup) *DescribeEventCategoriesOutput { - s.EventCategoryGroupList = v +// SetAnalysis sets the Analysis field's value. +func (s *DescribeFleetAdvisorLsaAnalysisOutput) SetAnalysis(v []*FleetAdvisorLsaAnalysisResponse) *DescribeFleetAdvisorLsaAnalysisOutput { + s.Analysis = v return s } -type DescribeEventSubscriptionsInput struct { +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorLsaAnalysisOutput) SetNextToken(v string) *DescribeFleetAdvisorLsaAnalysisOutput { + s.NextToken = &v + return s +} + +type DescribeFleetAdvisorSchemaObjectSummaryInput struct { _ struct{} `type:"structure"` - // Filters applied to event subscriptions. + // If you specify any of the following filters, the output includes information + // for only those schema objects that meet the filter criteria: // - // Valid filter names: event-subscription-arn | event-subscription-id + // * schema-id – The ID of the schema, for example d4610ac5-e323-4ad9-bc50-eaf7249dfe9d. + // + // Example: describe-fleet-advisor-schema-object-summary --filter Name="schema-id",Values="50" Filters []*Filter `type:"list"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. - // - // Default: 100 - // - // Constraints: Minimum 20, maximum 100. + // Sets the maximum number of records returned in the response. MaxRecords *int64 `type:"integer"` - // The name of the DMS event subscription to be described. - SubscriptionName *string `type:"string"` + // If NextToken is returned by a previous response, 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. Keep all other + // arguments unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9453,7 +11971,7 @@ type DescribeEventSubscriptionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventSubscriptionsInput) String() string { +func (s DescribeFleetAdvisorSchemaObjectSummaryInput) String() string { return awsutil.Prettify(s) } @@ -9462,13 +11980,13 @@ func (s DescribeEventSubscriptionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventSubscriptionsInput) GoString() string { +func (s DescribeFleetAdvisorSchemaObjectSummaryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventSubscriptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventSubscriptionsInput"} +func (s *DescribeFleetAdvisorSchemaObjectSummaryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAdvisorSchemaObjectSummaryInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { @@ -9487,39 +12005,34 @@ func (s *DescribeEventSubscriptionsInput) Validate() error { } // SetFilters sets the Filters field's value. -func (s *DescribeEventSubscriptionsInput) SetFilters(v []*Filter) *DescribeEventSubscriptionsInput { +func (s *DescribeFleetAdvisorSchemaObjectSummaryInput) SetFilters(v []*Filter) *DescribeFleetAdvisorSchemaObjectSummaryInput { s.Filters = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEventSubscriptionsInput) SetMarker(v string) *DescribeEventSubscriptionsInput { - s.Marker = &v - return s -} - // SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeEventSubscriptionsInput) SetMaxRecords(v int64) *DescribeEventSubscriptionsInput { +func (s *DescribeFleetAdvisorSchemaObjectSummaryInput) SetMaxRecords(v int64) *DescribeFleetAdvisorSchemaObjectSummaryInput { s.MaxRecords = &v return s } -// SetSubscriptionName sets the SubscriptionName field's value. -func (s *DescribeEventSubscriptionsInput) SetSubscriptionName(v string) *DescribeEventSubscriptionsInput { - s.SubscriptionName = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorSchemaObjectSummaryInput) SetNextToken(v string) *DescribeFleetAdvisorSchemaObjectSummaryInput { + s.NextToken = &v return s } -type DescribeEventSubscriptionsOutput struct { +type DescribeFleetAdvisorSchemaObjectSummaryOutput struct { _ struct{} `type:"structure"` - // A list of event subscriptions. - EventSubscriptionsList []*EventSubscription `type:"list"` + // A collection of FleetAdvisorSchemaObjectResponse objects. + FleetAdvisorSchemaObjects []*FleetAdvisorSchemaObjectResponse `type:"list"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `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. Keep all other arguments + // unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9527,7 +12040,7 @@ type DescribeEventSubscriptionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventSubscriptionsOutput) String() string { +func (s DescribeFleetAdvisorSchemaObjectSummaryOutput) String() string { return awsutil.Prettify(s) } @@ -9536,61 +12049,57 @@ func (s DescribeEventSubscriptionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventSubscriptionsOutput) GoString() string { +func (s DescribeFleetAdvisorSchemaObjectSummaryOutput) GoString() string { return s.String() } -// SetEventSubscriptionsList sets the EventSubscriptionsList field's value. -func (s *DescribeEventSubscriptionsOutput) SetEventSubscriptionsList(v []*EventSubscription) *DescribeEventSubscriptionsOutput { - s.EventSubscriptionsList = v +// SetFleetAdvisorSchemaObjects sets the FleetAdvisorSchemaObjects field's value. +func (s *DescribeFleetAdvisorSchemaObjectSummaryOutput) SetFleetAdvisorSchemaObjects(v []*FleetAdvisorSchemaObjectResponse) *DescribeFleetAdvisorSchemaObjectSummaryOutput { + s.FleetAdvisorSchemaObjects = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEventSubscriptionsOutput) SetMarker(v string) *DescribeEventSubscriptionsOutput { - s.Marker = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorSchemaObjectSummaryOutput) SetNextToken(v string) *DescribeFleetAdvisorSchemaObjectSummaryOutput { + s.NextToken = &v return s } -type DescribeEventsInput struct { +type DescribeFleetAdvisorSchemasInput struct { _ struct{} `type:"structure"` - // The duration of the events to be listed. - Duration *int64 `type:"integer"` - - // The end time for the events to be listed. - EndTime *time.Time `type:"timestamp"` - - // A list of event categories for the source type that you've chosen. - EventCategories []*string `type:"list"` - - // Filters applied to events. The only valid filter is replication-instance-id. - Filters []*Filter `type:"list"` - - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `type:"string"` - - // The maximum number of records to include in the response. If more records - // exist than the specified MaxRecords value, a pagination token called a marker - // is included in the response so that the remaining results can be retrieved. + // If you specify any of the following filters, the output includes information + // for only those schemas that meet the filter criteria: // - // Default: 100 + // * complexity – The schema's complexity, for example Simple. // - // Constraints: Minimum 20, maximum 100. - MaxRecords *int64 `type:"integer"` - - // The identifier of an event source. - SourceIdentifier *string `type:"string"` - - // The type of DMS resource that generates events. + // * database-id – The ID of the schema's database. // - // Valid values: replication-instance | replication-task - SourceType *string `type:"string" enum:"SourceType"` + // * database-ip-address – The IP address of the schema's database. + // + // * database-name – The name of the schema's database. + // + // * database-engine – The name of the schema database's engine. + // + // * original-schema-name – The name of the schema's database's main schema. + // + // * schema-id – The ID of the schema, for example 15. + // + // * schema-name – The name of the schema. + // + // * server-ip-address – The IP address of the schema database's server. + // + // An example is: describe-fleet-advisor-schemas --filter Name="schema-id",Values="50" + Filters []*Filter `type:"list"` - // The start time for the events to be listed. - StartTime *time.Time `type:"timestamp"` + // Sets the maximum number of records returned in the response. + MaxRecords *int64 `type:"integer"` + + // If NextToken is returned by a previous response, 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. Keep all other + // arguments unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9598,7 +12107,7 @@ type DescribeEventsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventsInput) String() string { +func (s DescribeFleetAdvisorSchemasInput) String() string { return awsutil.Prettify(s) } @@ -9607,13 +12116,13 @@ func (s DescribeEventsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventsInput) GoString() string { +func (s DescribeFleetAdvisorSchemasInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeEventsInput"} +func (s *DescribeFleetAdvisorSchemasInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAdvisorSchemasInput"} if s.Filters != nil { for i, v := range s.Filters { if v == nil { @@ -9631,70 +12140,35 @@ func (s *DescribeEventsInput) Validate() error { return nil } -// SetDuration sets the Duration field's value. -func (s *DescribeEventsInput) SetDuration(v int64) *DescribeEventsInput { - s.Duration = &v - return s -} - -// SetEndTime sets the EndTime field's value. -func (s *DescribeEventsInput) SetEndTime(v time.Time) *DescribeEventsInput { - s.EndTime = &v - return s -} - -// SetEventCategories sets the EventCategories field's value. -func (s *DescribeEventsInput) SetEventCategories(v []*string) *DescribeEventsInput { - s.EventCategories = v - return s -} - // SetFilters sets the Filters field's value. -func (s *DescribeEventsInput) SetFilters(v []*Filter) *DescribeEventsInput { +func (s *DescribeFleetAdvisorSchemasInput) SetFilters(v []*Filter) *DescribeFleetAdvisorSchemasInput { s.Filters = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEventsInput) SetMarker(v string) *DescribeEventsInput { - s.Marker = &v - return s -} - // SetMaxRecords sets the MaxRecords field's value. -func (s *DescribeEventsInput) SetMaxRecords(v int64) *DescribeEventsInput { +func (s *DescribeFleetAdvisorSchemasInput) SetMaxRecords(v int64) *DescribeFleetAdvisorSchemasInput { s.MaxRecords = &v return s } -// SetSourceIdentifier sets the SourceIdentifier field's value. -func (s *DescribeEventsInput) SetSourceIdentifier(v string) *DescribeEventsInput { - s.SourceIdentifier = &v - return s -} - -// SetSourceType sets the SourceType field's value. -func (s *DescribeEventsInput) SetSourceType(v string) *DescribeEventsInput { - s.SourceType = &v - return s -} - -// SetStartTime sets the StartTime field's value. -func (s *DescribeEventsInput) SetStartTime(v time.Time) *DescribeEventsInput { - s.StartTime = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorSchemasInput) SetNextToken(v string) *DescribeFleetAdvisorSchemasInput { + s.NextToken = &v return s } -type DescribeEventsOutput struct { +type DescribeFleetAdvisorSchemasOutput struct { _ struct{} `type:"structure"` - // The events described. - Events []*Event `type:"list"` + // A collection of SchemaResponse objects. + FleetAdvisorSchemas []*SchemaResponse `type:"list"` - // An optional pagination token provided by a previous request. If this parameter - // is specified, the response includes only records beyond the marker, up to - // the value specified by MaxRecords. - Marker *string `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. Keep all other arguments + // unchanged. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9702,7 +12176,7 @@ type DescribeEventsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventsOutput) String() string { +func (s DescribeFleetAdvisorSchemasOutput) String() string { return awsutil.Prettify(s) } @@ -9711,19 +12185,19 @@ func (s DescribeEventsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEventsOutput) GoString() string { +func (s DescribeFleetAdvisorSchemasOutput) GoString() string { return s.String() } -// SetEvents sets the Events field's value. -func (s *DescribeEventsOutput) SetEvents(v []*Event) *DescribeEventsOutput { - s.Events = v +// SetFleetAdvisorSchemas sets the FleetAdvisorSchemas field's value. +func (s *DescribeFleetAdvisorSchemasOutput) SetFleetAdvisorSchemas(v []*SchemaResponse) *DescribeFleetAdvisorSchemasOutput { + s.FleetAdvisorSchemas = v return s } -// SetMarker sets the Marker field's value. -func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { - s.Marker = &v +// SetNextToken sets the NextToken field's value. +func (s *DescribeFleetAdvisorSchemasOutput) SetNextToken(v string) *DescribeFleetAdvisorSchemasOutput { + s.NextToken = &v return s } @@ -12249,6 +14723,127 @@ func (s *Filter) SetValues(v []*string) *Filter { return s } +// Describes a large-scale assessment (LSA) analysis run by a Fleet Advisor +// collector. +type FleetAdvisorLsaAnalysisResponse struct { + _ struct{} `type:"structure"` + + // The ID of an LSA analysis run by a Fleet Advisor collector. + LsaAnalysisId *string `type:"string"` + + // The status of an LSA analysis run by a Fleet Advisor collector. + Status *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FleetAdvisorLsaAnalysisResponse) 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 FleetAdvisorLsaAnalysisResponse) GoString() string { + return s.String() +} + +// SetLsaAnalysisId sets the LsaAnalysisId field's value. +func (s *FleetAdvisorLsaAnalysisResponse) SetLsaAnalysisId(v string) *FleetAdvisorLsaAnalysisResponse { + s.LsaAnalysisId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *FleetAdvisorLsaAnalysisResponse) SetStatus(v string) *FleetAdvisorLsaAnalysisResponse { + s.Status = &v + return s +} + +// Describes a schema object in a Fleet Advisor collector inventory. +type FleetAdvisorSchemaObjectResponse struct { + _ struct{} `type:"structure"` + + // The number of lines of code in a schema object in a Fleet Advisor collector + // inventory. + CodeLineCount *int64 `type:"long"` + + // The size level of the code in a schema object in a Fleet Advisor collector + // inventory. + CodeSize *int64 `type:"long"` + + // The number of objects in a schema object in a Fleet Advisor collector inventory. + NumberOfObjects *int64 `type:"long"` + + // The type of the schema object, as reported by the database engine. Examples + // include the following: + // + // * function + // + // * trigger + // + // * SYSTEM_TABLE + // + // * QUEUE + ObjectType *string `type:"string"` + + // The ID of a schema object in a Fleet Advisor collector inventory. + SchemaId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FleetAdvisorSchemaObjectResponse) 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 FleetAdvisorSchemaObjectResponse) GoString() string { + return s.String() +} + +// SetCodeLineCount sets the CodeLineCount field's value. +func (s *FleetAdvisorSchemaObjectResponse) SetCodeLineCount(v int64) *FleetAdvisorSchemaObjectResponse { + s.CodeLineCount = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *FleetAdvisorSchemaObjectResponse) SetCodeSize(v int64) *FleetAdvisorSchemaObjectResponse { + s.CodeSize = &v + return s +} + +// SetNumberOfObjects sets the NumberOfObjects field's value. +func (s *FleetAdvisorSchemaObjectResponse) SetNumberOfObjects(v int64) *FleetAdvisorSchemaObjectResponse { + s.NumberOfObjects = &v + return s +} + +// SetObjectType sets the ObjectType field's value. +func (s *FleetAdvisorSchemaObjectResponse) SetObjectType(v string) *FleetAdvisorSchemaObjectResponse { + s.ObjectType = &v + return s +} + +// SetSchemaId sets the SchemaId field's value. +func (s *FleetAdvisorSchemaObjectResponse) SetSchemaId(v string) *FleetAdvisorSchemaObjectResponse { + s.SchemaId = &v + return s +} + // Settings in JSON format for the source GCP MySQL endpoint. type GcpMySQLSettings struct { _ struct{} `type:"structure"` @@ -12734,7 +15329,71 @@ func (s *InsufficientResourceCapacityFault) Code() string { } // Message returns the exception's message. -func (s *InsufficientResourceCapacityFault) Message() string { +func (s *InsufficientResourceCapacityFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InsufficientResourceCapacityFault) OrigErr() error { + return nil +} + +func (s *InsufficientResourceCapacityFault) 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 *InsufficientResourceCapacityFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InsufficientResourceCapacityFault) RequestID() string { + return s.RespMetadata.RequestID +} + +// The certificate was not valid. +type InvalidCertificateFault 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 InvalidCertificateFault) 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 InvalidCertificateFault) GoString() string { + return s.String() +} + +func newErrorInvalidCertificateFault(v protocol.ResponseMetadata) error { + return &InvalidCertificateFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidCertificateFault) Code() string { + return "InvalidCertificateFault" +} + +// Message returns the exception's message. +func (s *InvalidCertificateFault) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -12742,26 +15401,26 @@ func (s *InsufficientResourceCapacityFault) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InsufficientResourceCapacityFault) OrigErr() error { +func (s *InvalidCertificateFault) OrigErr() error { return nil } -func (s *InsufficientResourceCapacityFault) Error() string { +func (s *InvalidCertificateFault) 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 *InsufficientResourceCapacityFault) StatusCode() int { +func (s *InvalidCertificateFault) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *InsufficientResourceCapacityFault) RequestID() string { +func (s *InvalidCertificateFault) RequestID() string { return s.RespMetadata.RequestID } -// The certificate was not valid. -type InvalidCertificateFault struct { +// The action or operation requested isn't valid. +type InvalidOperationFault struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -12773,7 +15432,7 @@ type InvalidCertificateFault struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InvalidCertificateFault) String() string { +func (s InvalidOperationFault) String() string { return awsutil.Prettify(s) } @@ -12782,23 +15441,23 @@ func (s InvalidCertificateFault) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s InvalidCertificateFault) GoString() string { +func (s InvalidOperationFault) GoString() string { return s.String() } -func newErrorInvalidCertificateFault(v protocol.ResponseMetadata) error { - return &InvalidCertificateFault{ +func newErrorInvalidOperationFault(v protocol.ResponseMetadata) error { + return &InvalidOperationFault{ RespMetadata: v, } } // Code returns the exception type name. -func (s *InvalidCertificateFault) Code() string { - return "InvalidCertificateFault" +func (s *InvalidOperationFault) Code() string { + return "InvalidOperationFault" } // Message returns the exception's message. -func (s *InvalidCertificateFault) Message() string { +func (s *InvalidOperationFault) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -12806,21 +15465,21 @@ func (s *InvalidCertificateFault) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidCertificateFault) OrigErr() error { +func (s *InvalidOperationFault) OrigErr() error { return nil } -func (s *InvalidCertificateFault) Error() string { +func (s *InvalidOperationFault) 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 *InvalidCertificateFault) StatusCode() int { +func (s *InvalidOperationFault) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *InvalidCertificateFault) RequestID() string { +func (s *InvalidOperationFault) RequestID() string { return s.RespMetadata.RequestID } @@ -12953,6 +15612,47 @@ func (s *InvalidSubnet) RequestID() string { return s.RespMetadata.RequestID } +// Describes a Fleet Advisor collector inventory. +type InventoryData struct { + _ struct{} `type:"structure"` + + // The number of databases in the Fleet Advisor collector inventory. + NumberOfDatabases *int64 `type:"integer"` + + // The number of schemas in the Fleet Advisor collector inventory. + NumberOfSchemas *int64 `type:"integer"` +} + +// 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 InventoryData) 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 InventoryData) GoString() string { + return s.String() +} + +// SetNumberOfDatabases sets the NumberOfDatabases field's value. +func (s *InventoryData) SetNumberOfDatabases(v int64) *InventoryData { + s.NumberOfDatabases = &v + return s +} + +// SetNumberOfSchemas sets the NumberOfSchemas field's value. +func (s *InventoryData) SetNumberOfSchemas(v int64) *InventoryData { + s.NumberOfSchemas = &v + return s +} + // The ciphertext references a key that doesn't exist or that the DMS account // doesn't have access to. type KMSAccessDeniedFault struct { @@ -15508,7 +18208,8 @@ type MySQLSettings struct { ServerTimezone *string `type:"string"` // Specifies where to migrate source tables on the target, either to a single - // database or multiple databases. + // database or multiple databases. If you specify SPECIFIC_DATABASE, specify + // the database name using the DatabaseName parameter of the Endpoint object. // // Example: targetDbType=MULTIPLE_DATABASES TargetDbType *string `type:"string" enum:"TargetDbType"` @@ -19324,6 +22025,68 @@ func (s *ResourceQuotaExceededFault) RequestID() string { return s.RespMetadata.RequestID } +type RunFleetAdvisorLsaAnalysisInput 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 RunFleetAdvisorLsaAnalysisInput) 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 RunFleetAdvisorLsaAnalysisInput) GoString() string { + return s.String() +} + +type RunFleetAdvisorLsaAnalysisOutput struct { + _ struct{} `type:"structure"` + + // The ID of the LSA analysis run. + LsaAnalysisId *string `type:"string"` + + // The status of the LSA analysis, for example COMPLETED. + Status *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RunFleetAdvisorLsaAnalysisOutput) 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 RunFleetAdvisorLsaAnalysisOutput) GoString() string { + return s.String() +} + +// SetLsaAnalysisId sets the LsaAnalysisId field's value. +func (s *RunFleetAdvisorLsaAnalysisOutput) SetLsaAnalysisId(v string) *RunFleetAdvisorLsaAnalysisOutput { + s.LsaAnalysisId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *RunFleetAdvisorLsaAnalysisOutput) SetStatus(v string) *RunFleetAdvisorLsaAnalysisOutput { + s.Status = &v + return s +} + // Insufficient privileges are preventing access to an Amazon S3 object. type S3AccessDeniedFault struct { _ struct{} `type:"structure"` @@ -20234,6 +22997,230 @@ func (s *SNSNoAuthorizationFault) RequestID() string { return s.RespMetadata.RequestID } +// Describes a schema in a Fleet Advisor collector inventory. +type SchemaResponse struct { + _ struct{} `type:"structure"` + + // The number of lines of code in a schema in a Fleet Advisor collector inventory. + CodeLineCount *int64 `type:"long"` + + // The size level of the code in a schema in a Fleet Advisor collector inventory. + CodeSize *int64 `type:"long"` + + // The complexity level of the code in a schema in a Fleet Advisor collector + // inventory. + Complexity *string `type:"string"` + + // The database for a schema in a Fleet Advisor collector inventory. + DatabaseInstance *DatabaseShortInfoResponse `type:"structure"` + + // Describes a schema in a Fleet Advisor collector inventory. + OriginalSchema *SchemaShortInfoResponse `type:"structure"` + + // The ID of a schema in a Fleet Advisor collector inventory. + SchemaId *string `type:"string"` + + // The name of a schema in a Fleet Advisor collector inventory. + SchemaName *string `type:"string"` + + // The database server for a schema in a Fleet Advisor collector inventory. + Server *ServerShortInfoResponse `type:"structure"` + + // The similarity value for a schema in a Fleet Advisor collector inventory. + // A higher similarity value indicates that a schema is likely to be a duplicate. + Similarity *float64 `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 SchemaResponse) 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 SchemaResponse) GoString() string { + return s.String() +} + +// SetCodeLineCount sets the CodeLineCount field's value. +func (s *SchemaResponse) SetCodeLineCount(v int64) *SchemaResponse { + s.CodeLineCount = &v + return s +} + +// SetCodeSize sets the CodeSize field's value. +func (s *SchemaResponse) SetCodeSize(v int64) *SchemaResponse { + s.CodeSize = &v + return s +} + +// SetComplexity sets the Complexity field's value. +func (s *SchemaResponse) SetComplexity(v string) *SchemaResponse { + s.Complexity = &v + return s +} + +// SetDatabaseInstance sets the DatabaseInstance field's value. +func (s *SchemaResponse) SetDatabaseInstance(v *DatabaseShortInfoResponse) *SchemaResponse { + s.DatabaseInstance = v + return s +} + +// SetOriginalSchema sets the OriginalSchema field's value. +func (s *SchemaResponse) SetOriginalSchema(v *SchemaShortInfoResponse) *SchemaResponse { + s.OriginalSchema = v + return s +} + +// SetSchemaId sets the SchemaId field's value. +func (s *SchemaResponse) SetSchemaId(v string) *SchemaResponse { + s.SchemaId = &v + return s +} + +// SetSchemaName sets the SchemaName field's value. +func (s *SchemaResponse) SetSchemaName(v string) *SchemaResponse { + s.SchemaName = &v + return s +} + +// SetServer sets the Server field's value. +func (s *SchemaResponse) SetServer(v *ServerShortInfoResponse) *SchemaResponse { + s.Server = v + return s +} + +// SetSimilarity sets the Similarity field's value. +func (s *SchemaResponse) SetSimilarity(v float64) *SchemaResponse { + s.Similarity = &v + return s +} + +// Describes a schema in a Fleet Advisor collector inventory. +type SchemaShortInfoResponse struct { + _ struct{} `type:"structure"` + + // The ID of a database in a Fleet Advisor collector inventory. + DatabaseId *string `type:"string"` + + // The IP address of a database in a Fleet Advisor collector inventory. + DatabaseIpAddress *string `type:"string"` + + // The name of a database in a Fleet Advisor collector inventory. + DatabaseName *string `type:"string"` + + // The ID of a schema in a Fleet Advisor collector inventory. + SchemaId *string `type:"string"` + + // The name of a schema in a Fleet Advisor collector inventory. + SchemaName *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SchemaShortInfoResponse) 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 SchemaShortInfoResponse) GoString() string { + return s.String() +} + +// SetDatabaseId sets the DatabaseId field's value. +func (s *SchemaShortInfoResponse) SetDatabaseId(v string) *SchemaShortInfoResponse { + s.DatabaseId = &v + return s +} + +// SetDatabaseIpAddress sets the DatabaseIpAddress field's value. +func (s *SchemaShortInfoResponse) SetDatabaseIpAddress(v string) *SchemaShortInfoResponse { + s.DatabaseIpAddress = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *SchemaShortInfoResponse) SetDatabaseName(v string) *SchemaShortInfoResponse { + s.DatabaseName = &v + return s +} + +// SetSchemaId sets the SchemaId field's value. +func (s *SchemaShortInfoResponse) SetSchemaId(v string) *SchemaShortInfoResponse { + s.SchemaId = &v + return s +} + +// SetSchemaName sets the SchemaName field's value. +func (s *SchemaShortInfoResponse) SetSchemaName(v string) *SchemaShortInfoResponse { + s.SchemaName = &v + return s +} + +// Describes a server in a Fleet Advisor collector inventory. +type ServerShortInfoResponse struct { + _ struct{} `type:"structure"` + + // The IP address of a server in a Fleet Advisor collector inventory. + IpAddress *string `type:"string"` + + // The ID of a server in a Fleet Advisor collector inventory. + ServerId *string `type:"string"` + + // The name address of a server in a Fleet Advisor collector inventory. + ServerName *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServerShortInfoResponse) 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 ServerShortInfoResponse) GoString() string { + return s.String() +} + +// SetIpAddress sets the IpAddress field's value. +func (s *ServerShortInfoResponse) SetIpAddress(v string) *ServerShortInfoResponse { + s.IpAddress = &v + return s +} + +// SetServerId sets the ServerId field's value. +func (s *ServerShortInfoResponse) SetServerId(v string) *ServerShortInfoResponse { + s.ServerId = &v + return s +} + +// SetServerName sets the ServerName field's value. +func (s *ServerShortInfoResponse) SetServerName(v string) *ServerShortInfoResponse { + s.ServerName = &v + return s +} + type StartReplicationTaskAssessmentInput struct { _ struct{} `type:"structure"` @@ -21751,6 +24738,22 @@ func CharLengthSemantics_Values() []string { } } +const ( + // CollectorStatusUnregistered is a CollectorStatus enum value + CollectorStatusUnregistered = "UNREGISTERED" + + // CollectorStatusActive is a CollectorStatus enum value + CollectorStatusActive = "ACTIVE" +) + +// CollectorStatus_Values returns all elements of the CollectorStatus enum +func CollectorStatus_Values() []string { + return []string{ + CollectorStatusUnregistered, + CollectorStatusActive, + } +} + const ( // CompressionTypeValueNone is a CompressionTypeValue enum value CompressionTypeValueNone = "none" @@ -22198,3 +25201,23 @@ func TargetDbType_Values() []string { TargetDbTypeMultipleDatabases, } } + +const ( + // VersionStatusUpToDate is a VersionStatus enum value + VersionStatusUpToDate = "UP_TO_DATE" + + // VersionStatusOutdated is a VersionStatus enum value + VersionStatusOutdated = "OUTDATED" + + // VersionStatusUnsupported is a VersionStatus enum value + VersionStatusUnsupported = "UNSUPPORTED" +) + +// VersionStatus_Values returns all elements of the VersionStatus enum +func VersionStatus_Values() []string { + return []string{ + VersionStatusUpToDate, + VersionStatusOutdated, + VersionStatusUnsupported, + } +} diff --git a/service/databasemigrationservice/databasemigrationserviceiface/interface.go b/service/databasemigrationservice/databasemigrationserviceiface/interface.go index ec1b0de8a34..46eba688269 100644 --- a/service/databasemigrationservice/databasemigrationserviceiface/interface.go +++ b/service/databasemigrationservice/databasemigrationserviceiface/interface.go @@ -80,6 +80,10 @@ type DatabaseMigrationServiceAPI interface { CreateEventSubscriptionWithContext(aws.Context, *databasemigrationservice.CreateEventSubscriptionInput, ...request.Option) (*databasemigrationservice.CreateEventSubscriptionOutput, error) CreateEventSubscriptionRequest(*databasemigrationservice.CreateEventSubscriptionInput) (*request.Request, *databasemigrationservice.CreateEventSubscriptionOutput) + CreateFleetAdvisorCollector(*databasemigrationservice.CreateFleetAdvisorCollectorInput) (*databasemigrationservice.CreateFleetAdvisorCollectorOutput, error) + CreateFleetAdvisorCollectorWithContext(aws.Context, *databasemigrationservice.CreateFleetAdvisorCollectorInput, ...request.Option) (*databasemigrationservice.CreateFleetAdvisorCollectorOutput, error) + CreateFleetAdvisorCollectorRequest(*databasemigrationservice.CreateFleetAdvisorCollectorInput) (*request.Request, *databasemigrationservice.CreateFleetAdvisorCollectorOutput) + CreateReplicationInstance(*databasemigrationservice.CreateReplicationInstanceInput) (*databasemigrationservice.CreateReplicationInstanceOutput, error) CreateReplicationInstanceWithContext(aws.Context, *databasemigrationservice.CreateReplicationInstanceInput, ...request.Option) (*databasemigrationservice.CreateReplicationInstanceOutput, error) CreateReplicationInstanceRequest(*databasemigrationservice.CreateReplicationInstanceInput) (*request.Request, *databasemigrationservice.CreateReplicationInstanceOutput) @@ -108,6 +112,14 @@ type DatabaseMigrationServiceAPI interface { DeleteEventSubscriptionWithContext(aws.Context, *databasemigrationservice.DeleteEventSubscriptionInput, ...request.Option) (*databasemigrationservice.DeleteEventSubscriptionOutput, error) DeleteEventSubscriptionRequest(*databasemigrationservice.DeleteEventSubscriptionInput) (*request.Request, *databasemigrationservice.DeleteEventSubscriptionOutput) + DeleteFleetAdvisorCollector(*databasemigrationservice.DeleteFleetAdvisorCollectorInput) (*databasemigrationservice.DeleteFleetAdvisorCollectorOutput, error) + DeleteFleetAdvisorCollectorWithContext(aws.Context, *databasemigrationservice.DeleteFleetAdvisorCollectorInput, ...request.Option) (*databasemigrationservice.DeleteFleetAdvisorCollectorOutput, error) + DeleteFleetAdvisorCollectorRequest(*databasemigrationservice.DeleteFleetAdvisorCollectorInput) (*request.Request, *databasemigrationservice.DeleteFleetAdvisorCollectorOutput) + + DeleteFleetAdvisorDatabases(*databasemigrationservice.DeleteFleetAdvisorDatabasesInput) (*databasemigrationservice.DeleteFleetAdvisorDatabasesOutput, error) + DeleteFleetAdvisorDatabasesWithContext(aws.Context, *databasemigrationservice.DeleteFleetAdvisorDatabasesInput, ...request.Option) (*databasemigrationservice.DeleteFleetAdvisorDatabasesOutput, error) + DeleteFleetAdvisorDatabasesRequest(*databasemigrationservice.DeleteFleetAdvisorDatabasesInput) (*request.Request, *databasemigrationservice.DeleteFleetAdvisorDatabasesOutput) + DeleteReplicationInstance(*databasemigrationservice.DeleteReplicationInstanceInput) (*databasemigrationservice.DeleteReplicationInstanceOutput, error) DeleteReplicationInstanceWithContext(aws.Context, *databasemigrationservice.DeleteReplicationInstanceInput, ...request.Option) (*databasemigrationservice.DeleteReplicationInstanceOutput, error) DeleteReplicationInstanceRequest(*databasemigrationservice.DeleteReplicationInstanceInput) (*request.Request, *databasemigrationservice.DeleteReplicationInstanceOutput) @@ -188,6 +200,41 @@ type DatabaseMigrationServiceAPI interface { DescribeEventsPages(*databasemigrationservice.DescribeEventsInput, func(*databasemigrationservice.DescribeEventsOutput, bool) bool) error DescribeEventsPagesWithContext(aws.Context, *databasemigrationservice.DescribeEventsInput, func(*databasemigrationservice.DescribeEventsOutput, bool) bool, ...request.Option) error + DescribeFleetAdvisorCollectors(*databasemigrationservice.DescribeFleetAdvisorCollectorsInput) (*databasemigrationservice.DescribeFleetAdvisorCollectorsOutput, error) + DescribeFleetAdvisorCollectorsWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorCollectorsInput, ...request.Option) (*databasemigrationservice.DescribeFleetAdvisorCollectorsOutput, error) + DescribeFleetAdvisorCollectorsRequest(*databasemigrationservice.DescribeFleetAdvisorCollectorsInput) (*request.Request, *databasemigrationservice.DescribeFleetAdvisorCollectorsOutput) + + DescribeFleetAdvisorCollectorsPages(*databasemigrationservice.DescribeFleetAdvisorCollectorsInput, func(*databasemigrationservice.DescribeFleetAdvisorCollectorsOutput, bool) bool) error + DescribeFleetAdvisorCollectorsPagesWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorCollectorsInput, func(*databasemigrationservice.DescribeFleetAdvisorCollectorsOutput, bool) bool, ...request.Option) error + + DescribeFleetAdvisorDatabases(*databasemigrationservice.DescribeFleetAdvisorDatabasesInput) (*databasemigrationservice.DescribeFleetAdvisorDatabasesOutput, error) + DescribeFleetAdvisorDatabasesWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorDatabasesInput, ...request.Option) (*databasemigrationservice.DescribeFleetAdvisorDatabasesOutput, error) + DescribeFleetAdvisorDatabasesRequest(*databasemigrationservice.DescribeFleetAdvisorDatabasesInput) (*request.Request, *databasemigrationservice.DescribeFleetAdvisorDatabasesOutput) + + DescribeFleetAdvisorDatabasesPages(*databasemigrationservice.DescribeFleetAdvisorDatabasesInput, func(*databasemigrationservice.DescribeFleetAdvisorDatabasesOutput, bool) bool) error + DescribeFleetAdvisorDatabasesPagesWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorDatabasesInput, func(*databasemigrationservice.DescribeFleetAdvisorDatabasesOutput, bool) bool, ...request.Option) error + + DescribeFleetAdvisorLsaAnalysis(*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisInput) (*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisOutput, error) + DescribeFleetAdvisorLsaAnalysisWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorLsaAnalysisInput, ...request.Option) (*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisOutput, error) + DescribeFleetAdvisorLsaAnalysisRequest(*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisInput) (*request.Request, *databasemigrationservice.DescribeFleetAdvisorLsaAnalysisOutput) + + DescribeFleetAdvisorLsaAnalysisPages(*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisInput, func(*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisOutput, bool) bool) error + DescribeFleetAdvisorLsaAnalysisPagesWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorLsaAnalysisInput, func(*databasemigrationservice.DescribeFleetAdvisorLsaAnalysisOutput, bool) bool, ...request.Option) error + + DescribeFleetAdvisorSchemaObjectSummary(*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryInput) (*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryOutput, error) + DescribeFleetAdvisorSchemaObjectSummaryWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryInput, ...request.Option) (*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryOutput, error) + DescribeFleetAdvisorSchemaObjectSummaryRequest(*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryInput) (*request.Request, *databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryOutput) + + DescribeFleetAdvisorSchemaObjectSummaryPages(*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryInput, func(*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryOutput, bool) bool) error + DescribeFleetAdvisorSchemaObjectSummaryPagesWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryInput, func(*databasemigrationservice.DescribeFleetAdvisorSchemaObjectSummaryOutput, bool) bool, ...request.Option) error + + DescribeFleetAdvisorSchemas(*databasemigrationservice.DescribeFleetAdvisorSchemasInput) (*databasemigrationservice.DescribeFleetAdvisorSchemasOutput, error) + DescribeFleetAdvisorSchemasWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorSchemasInput, ...request.Option) (*databasemigrationservice.DescribeFleetAdvisorSchemasOutput, error) + DescribeFleetAdvisorSchemasRequest(*databasemigrationservice.DescribeFleetAdvisorSchemasInput) (*request.Request, *databasemigrationservice.DescribeFleetAdvisorSchemasOutput) + + DescribeFleetAdvisorSchemasPages(*databasemigrationservice.DescribeFleetAdvisorSchemasInput, func(*databasemigrationservice.DescribeFleetAdvisorSchemasOutput, bool) bool) error + DescribeFleetAdvisorSchemasPagesWithContext(aws.Context, *databasemigrationservice.DescribeFleetAdvisorSchemasInput, func(*databasemigrationservice.DescribeFleetAdvisorSchemasOutput, bool) bool, ...request.Option) error + DescribeOrderableReplicationInstances(*databasemigrationservice.DescribeOrderableReplicationInstancesInput) (*databasemigrationservice.DescribeOrderableReplicationInstancesOutput, error) DescribeOrderableReplicationInstancesWithContext(aws.Context, *databasemigrationservice.DescribeOrderableReplicationInstancesInput, ...request.Option) (*databasemigrationservice.DescribeOrderableReplicationInstancesOutput, error) DescribeOrderableReplicationInstancesRequest(*databasemigrationservice.DescribeOrderableReplicationInstancesInput) (*request.Request, *databasemigrationservice.DescribeOrderableReplicationInstancesOutput) @@ -317,6 +364,10 @@ type DatabaseMigrationServiceAPI interface { RemoveTagsFromResourceWithContext(aws.Context, *databasemigrationservice.RemoveTagsFromResourceInput, ...request.Option) (*databasemigrationservice.RemoveTagsFromResourceOutput, error) RemoveTagsFromResourceRequest(*databasemigrationservice.RemoveTagsFromResourceInput) (*request.Request, *databasemigrationservice.RemoveTagsFromResourceOutput) + RunFleetAdvisorLsaAnalysis(*databasemigrationservice.RunFleetAdvisorLsaAnalysisInput) (*databasemigrationservice.RunFleetAdvisorLsaAnalysisOutput, error) + RunFleetAdvisorLsaAnalysisWithContext(aws.Context, *databasemigrationservice.RunFleetAdvisorLsaAnalysisInput, ...request.Option) (*databasemigrationservice.RunFleetAdvisorLsaAnalysisOutput, error) + RunFleetAdvisorLsaAnalysisRequest(*databasemigrationservice.RunFleetAdvisorLsaAnalysisInput) (*request.Request, *databasemigrationservice.RunFleetAdvisorLsaAnalysisOutput) + StartReplicationTask(*databasemigrationservice.StartReplicationTaskInput) (*databasemigrationservice.StartReplicationTaskOutput, error) StartReplicationTaskWithContext(aws.Context, *databasemigrationservice.StartReplicationTaskInput, ...request.Option) (*databasemigrationservice.StartReplicationTaskOutput, error) StartReplicationTaskRequest(*databasemigrationservice.StartReplicationTaskInput) (*request.Request, *databasemigrationservice.StartReplicationTaskOutput) diff --git a/service/databasemigrationservice/errors.go b/service/databasemigrationservice/errors.go index 9794a2fd6cf..e3bb88d16ab 100644 --- a/service/databasemigrationservice/errors.go +++ b/service/databasemigrationservice/errors.go @@ -14,6 +14,12 @@ const ( // DMS was denied access to the endpoint. Check that the role is correctly configured. ErrCodeAccessDeniedFault = "AccessDeniedFault" + // ErrCodeCollectorNotFoundFault for service response error code + // "CollectorNotFoundFault". + // + // The specified collector doesn't exist. + ErrCodeCollectorNotFoundFault = "CollectorNotFoundFault" + // ErrCodeInsufficientResourceCapacityFault for service response error code // "InsufficientResourceCapacityFault". // @@ -26,6 +32,12 @@ const ( // The certificate was not valid. ErrCodeInvalidCertificateFault = "InvalidCertificateFault" + // ErrCodeInvalidOperationFault for service response error code + // "InvalidOperationFault". + // + // The action or operation requested isn't valid. + ErrCodeInvalidOperationFault = "InvalidOperationFault" + // ErrCodeInvalidResourceStateFault for service response error code // "InvalidResourceStateFault". // @@ -152,8 +164,10 @@ const ( var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedFault": newErrorAccessDeniedFault, + "CollectorNotFoundFault": newErrorCollectorNotFoundFault, "InsufficientResourceCapacityFault": newErrorInsufficientResourceCapacityFault, "InvalidCertificateFault": newErrorInvalidCertificateFault, + "InvalidOperationFault": newErrorInvalidOperationFault, "InvalidResourceStateFault": newErrorInvalidResourceStateFault, "InvalidSubnet": newErrorInvalidSubnet, "KMSAccessDeniedFault": newErrorKMSAccessDeniedFault, diff --git a/service/iam/api.go b/service/iam/api.go index 8b0ad2cff93..fe6ddbcf88d 100644 --- a/service/iam/api.go +++ b/service/iam/api.go @@ -19901,8 +19901,8 @@ type CreateRoleInput struct { Description *string `type:"string"` // The maximum session duration (in seconds) that you want to set for the specified - // role. If you do not specify a value for this setting, the default maximum - // of one hour is applied. This setting can have a value from 1 hour to 12 hours. + // role. If you do not specify a value for this setting, the default value of + // one hour is applied. This setting can have a value from 1 hour to 12 hours. // // Anyone who assumes the role from the or API can use the DurationSeconds API // parameter or the duration-seconds CLI parameter to request a longer session. @@ -38846,8 +38846,8 @@ type UpdateRoleInput struct { Description *string `type:"string"` // The maximum session duration (in seconds) that you want to set for the specified - // role. If you do not specify a value for this setting, the default maximum - // of one hour is applied. This setting can have a value from 1 hour to 12 hours. + // role. If you do not specify a value for this setting, the default value of + // one hour is applied. This setting can have a value from 1 hour to 12 hours. // // Anyone who assumes the role from the CLI or API can use the DurationSeconds // API parameter or the duration-seconds CLI parameter to request a longer session. diff --git a/service/m2/api.go b/service/m2/api.go new file mode 100644 index 00000000000..b6a249ea69c --- /dev/null +++ b/service/m2/api.go @@ -0,0 +1,10875 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package m2 + +import ( + "fmt" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opCancelBatchJobExecution = "CancelBatchJobExecution" + +// CancelBatchJobExecutionRequest generates a "aws/request.Request" representing the +// client's request for the CancelBatchJobExecution 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 CancelBatchJobExecution for more information on using the CancelBatchJobExecution +// 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 CancelBatchJobExecutionRequest method. +// req, resp := client.CancelBatchJobExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CancelBatchJobExecution +func (c *M2) CancelBatchJobExecutionRequest(input *CancelBatchJobExecutionInput) (req *request.Request, output *CancelBatchJobExecutionOutput) { + op := &request.Operation{ + Name: opCancelBatchJobExecution, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/batch-job-executions/{executionId}/cancel", + } + + if input == nil { + input = &CancelBatchJobExecutionInput{} + } + + output = &CancelBatchJobExecutionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// CancelBatchJobExecution API operation for AWSMainframeModernization. +// +// Cancels the running of a specific batch job execution. +// +// 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 AWSMainframeModernization's +// API operation CancelBatchJobExecution for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CancelBatchJobExecution +func (c *M2) CancelBatchJobExecution(input *CancelBatchJobExecutionInput) (*CancelBatchJobExecutionOutput, error) { + req, out := c.CancelBatchJobExecutionRequest(input) + return out, req.Send() +} + +// CancelBatchJobExecutionWithContext is the same as CancelBatchJobExecution with the addition of +// the ability to pass a context and additional request options. +// +// See CancelBatchJobExecution 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 *M2) CancelBatchJobExecutionWithContext(ctx aws.Context, input *CancelBatchJobExecutionInput, opts ...request.Option) (*CancelBatchJobExecutionOutput, error) { + req, out := c.CancelBatchJobExecutionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateApplication = "CreateApplication" + +// CreateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateApplication 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 CreateApplication for more information on using the CreateApplication +// 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 CreateApplicationRequest method. +// req, resp := client.CreateApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateApplication +func (c *M2) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { + op := &request.Operation{ + Name: opCreateApplication, + HTTPMethod: "POST", + HTTPPath: "/applications", + } + + if input == nil { + input = &CreateApplicationInput{} + } + + output = &CreateApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateApplication API operation for AWSMainframeModernization. +// +// Creates a new application with given parameters. Requires an existing environment +// and application definition file. +// +// 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 AWSMainframeModernization's +// API operation CreateApplication for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ServiceQuotaExceededException +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateApplication +func (c *M2) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { + req, out := c.CreateApplicationRequest(input) + return out, req.Send() +} + +// CreateApplicationWithContext is the same as CreateApplication with the addition of +// the ability to pass a context and additional request options. +// +// See CreateApplication 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 *M2) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) { + req, out := c.CreateApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateDataSetImportTask = "CreateDataSetImportTask" + +// CreateDataSetImportTaskRequest generates a "aws/request.Request" representing the +// client's request for the CreateDataSetImportTask 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 CreateDataSetImportTask for more information on using the CreateDataSetImportTask +// 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 CreateDataSetImportTaskRequest method. +// req, resp := client.CreateDataSetImportTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateDataSetImportTask +func (c *M2) CreateDataSetImportTaskRequest(input *CreateDataSetImportTaskInput) (req *request.Request, output *CreateDataSetImportTaskOutput) { + op := &request.Operation{ + Name: opCreateDataSetImportTask, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/dataset-import-task", + } + + if input == nil { + input = &CreateDataSetImportTaskInput{} + } + + output = &CreateDataSetImportTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDataSetImportTask API operation for AWSMainframeModernization. +// +// Starts a data set import task for a specific application. +// +// 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 AWSMainframeModernization's +// API operation CreateDataSetImportTask for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ServiceQuotaExceededException +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateDataSetImportTask +func (c *M2) CreateDataSetImportTask(input *CreateDataSetImportTaskInput) (*CreateDataSetImportTaskOutput, error) { + req, out := c.CreateDataSetImportTaskRequest(input) + return out, req.Send() +} + +// CreateDataSetImportTaskWithContext is the same as CreateDataSetImportTask with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDataSetImportTask 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 *M2) CreateDataSetImportTaskWithContext(ctx aws.Context, input *CreateDataSetImportTaskInput, opts ...request.Option) (*CreateDataSetImportTaskOutput, error) { + req, out := c.CreateDataSetImportTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateDeployment = "CreateDeployment" + +// CreateDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the CreateDeployment 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 CreateDeployment for more information on using the CreateDeployment +// 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 CreateDeploymentRequest method. +// req, resp := client.CreateDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateDeployment +func (c *M2) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) { + op := &request.Operation{ + Name: opCreateDeployment, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/deployments", + } + + if input == nil { + input = &CreateDeploymentInput{} + } + + output = &CreateDeploymentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateDeployment API operation for AWSMainframeModernization. +// +// Creates and starts a deployment to deploy an application into an environment. +// +// 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 AWSMainframeModernization's +// API operation CreateDeployment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ServiceQuotaExceededException +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateDeployment +func (c *M2) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { + req, out := c.CreateDeploymentRequest(input) + return out, req.Send() +} + +// CreateDeploymentWithContext is the same as CreateDeployment with the addition of +// the ability to pass a context and additional request options. +// +// See CreateDeployment 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 *M2) CreateDeploymentWithContext(ctx aws.Context, input *CreateDeploymentInput, opts ...request.Option) (*CreateDeploymentOutput, error) { + req, out := c.CreateDeploymentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateEnvironment = "CreateEnvironment" + +// CreateEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the CreateEnvironment 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 CreateEnvironment for more information on using the CreateEnvironment +// 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 CreateEnvironmentRequest method. +// req, resp := client.CreateEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateEnvironment +func (c *M2) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *request.Request, output *CreateEnvironmentOutput) { + op := &request.Operation{ + Name: opCreateEnvironment, + HTTPMethod: "POST", + HTTPPath: "/environments", + } + + if input == nil { + input = &CreateEnvironmentInput{} + } + + output = &CreateEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateEnvironment API operation for AWSMainframeModernization. +// +// Creates a runtime environment for a given runtime engine. +// +// 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 AWSMainframeModernization's +// API operation CreateEnvironment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ServiceQuotaExceededException +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateEnvironment +func (c *M2) CreateEnvironment(input *CreateEnvironmentInput) (*CreateEnvironmentOutput, error) { + req, out := c.CreateEnvironmentRequest(input) + return out, req.Send() +} + +// CreateEnvironmentWithContext is the same as CreateEnvironment with the addition of +// the ability to pass a context and additional request options. +// +// See CreateEnvironment 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 *M2) CreateEnvironmentWithContext(ctx aws.Context, input *CreateEnvironmentInput, opts ...request.Option) (*CreateEnvironmentOutput, error) { + req, out := c.CreateEnvironmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplication = "DeleteApplication" + +// DeleteApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplication 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 DeleteApplication for more information on using the DeleteApplication +// 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 DeleteApplicationRequest method. +// req, resp := client.DeleteApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/DeleteApplication +func (c *M2) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { + op := &request.Operation{ + Name: opDeleteApplication, + HTTPMethod: "DELETE", + HTTPPath: "/applications/{applicationId}", + } + + if input == nil { + input = &DeleteApplicationInput{} + } + + output = &DeleteApplicationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteApplication API operation for AWSMainframeModernization. +// +// Deletes a specific application. You cannot delete a running application. +// +// 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 AWSMainframeModernization's +// API operation DeleteApplication for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/DeleteApplication +func (c *M2) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { + req, out := c.DeleteApplicationRequest(input) + return out, req.Send() +} + +// DeleteApplicationWithContext is the same as DeleteApplication with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplication 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 *M2) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) { + req, out := c.DeleteApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteApplicationFromEnvironment = "DeleteApplicationFromEnvironment" + +// DeleteApplicationFromEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteApplicationFromEnvironment 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 DeleteApplicationFromEnvironment for more information on using the DeleteApplicationFromEnvironment +// 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 DeleteApplicationFromEnvironmentRequest method. +// req, resp := client.DeleteApplicationFromEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/DeleteApplicationFromEnvironment +func (c *M2) DeleteApplicationFromEnvironmentRequest(input *DeleteApplicationFromEnvironmentInput) (req *request.Request, output *DeleteApplicationFromEnvironmentOutput) { + op := &request.Operation{ + Name: opDeleteApplicationFromEnvironment, + HTTPMethod: "DELETE", + HTTPPath: "/applications/{applicationId}/environment/{environmentId}", + } + + if input == nil { + input = &DeleteApplicationFromEnvironmentInput{} + } + + output = &DeleteApplicationFromEnvironmentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteApplicationFromEnvironment API operation for AWSMainframeModernization. +// +// Deletes a specific application from a specified environment where it has +// been previously deployed. You cannot delete an environment using DeleteEnvironment, +// if any application has ever been deployed to it. This API removes the association +// of the application with the environment so you can delete the environment +// smoothly. +// +// 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 AWSMainframeModernization's +// API operation DeleteApplicationFromEnvironment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/DeleteApplicationFromEnvironment +func (c *M2) DeleteApplicationFromEnvironment(input *DeleteApplicationFromEnvironmentInput) (*DeleteApplicationFromEnvironmentOutput, error) { + req, out := c.DeleteApplicationFromEnvironmentRequest(input) + return out, req.Send() +} + +// DeleteApplicationFromEnvironmentWithContext is the same as DeleteApplicationFromEnvironment with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteApplicationFromEnvironment 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 *M2) DeleteApplicationFromEnvironmentWithContext(ctx aws.Context, input *DeleteApplicationFromEnvironmentInput, opts ...request.Option) (*DeleteApplicationFromEnvironmentOutput, error) { + req, out := c.DeleteApplicationFromEnvironmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteEnvironment = "DeleteEnvironment" + +// DeleteEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEnvironment 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 DeleteEnvironment for more information on using the DeleteEnvironment +// 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 DeleteEnvironmentRequest method. +// req, resp := client.DeleteEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/DeleteEnvironment +func (c *M2) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req *request.Request, output *DeleteEnvironmentOutput) { + op := &request.Operation{ + Name: opDeleteEnvironment, + HTTPMethod: "DELETE", + HTTPPath: "/environments/{environmentId}", + } + + if input == nil { + input = &DeleteEnvironmentInput{} + } + + output = &DeleteEnvironmentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteEnvironment API operation for AWSMainframeModernization. +// +// Deletes a specific environment. The environment cannot contain deployed applications. +// If it does, you must delete those applications before you delete the environment. +// +// 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 AWSMainframeModernization's +// API operation DeleteEnvironment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/DeleteEnvironment +func (c *M2) DeleteEnvironment(input *DeleteEnvironmentInput) (*DeleteEnvironmentOutput, error) { + req, out := c.DeleteEnvironmentRequest(input) + return out, req.Send() +} + +// DeleteEnvironmentWithContext is the same as DeleteEnvironment with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteEnvironment 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 *M2) DeleteEnvironmentWithContext(ctx aws.Context, input *DeleteEnvironmentInput, opts ...request.Option) (*DeleteEnvironmentOutput, error) { + req, out := c.DeleteEnvironmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetApplication = "GetApplication" + +// GetApplicationRequest generates a "aws/request.Request" representing the +// client's request for the GetApplication operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetApplication for more information on using the GetApplication +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetApplicationRequest method. +// req, resp := client.GetApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetApplication +func (c *M2) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) { + op := &request.Operation{ + Name: opGetApplication, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}", + } + + if input == nil { + input = &GetApplicationInput{} + } + + output = &GetApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetApplication API operation for AWSMainframeModernization. +// +// Describes the details of a specific application. +// +// 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 AWSMainframeModernization's +// API operation GetApplication for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetApplication +func (c *M2) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { + req, out := c.GetApplicationRequest(input) + return out, req.Send() +} + +// GetApplicationWithContext is the same as GetApplication with the addition of +// the ability to pass a context and additional request options. +// +// See GetApplication for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *M2) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) { + req, out := c.GetApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetApplicationVersion = "GetApplicationVersion" + +// GetApplicationVersionRequest generates a "aws/request.Request" representing the +// client's request for the GetApplicationVersion 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 GetApplicationVersion for more information on using the GetApplicationVersion +// 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 GetApplicationVersionRequest method. +// req, resp := client.GetApplicationVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetApplicationVersion +func (c *M2) GetApplicationVersionRequest(input *GetApplicationVersionInput) (req *request.Request, output *GetApplicationVersionOutput) { + op := &request.Operation{ + Name: opGetApplicationVersion, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/versions/{applicationVersion}", + } + + if input == nil { + input = &GetApplicationVersionInput{} + } + + output = &GetApplicationVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetApplicationVersion API operation for AWSMainframeModernization. +// +// Returns details about a specific version of a specific application. +// +// 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 AWSMainframeModernization's +// API operation GetApplicationVersion for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetApplicationVersion +func (c *M2) GetApplicationVersion(input *GetApplicationVersionInput) (*GetApplicationVersionOutput, error) { + req, out := c.GetApplicationVersionRequest(input) + return out, req.Send() +} + +// GetApplicationVersionWithContext is the same as GetApplicationVersion with the addition of +// the ability to pass a context and additional request options. +// +// See GetApplicationVersion 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 *M2) GetApplicationVersionWithContext(ctx aws.Context, input *GetApplicationVersionInput, opts ...request.Option) (*GetApplicationVersionOutput, error) { + req, out := c.GetApplicationVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetBatchJobExecution = "GetBatchJobExecution" + +// GetBatchJobExecutionRequest generates a "aws/request.Request" representing the +// client's request for the GetBatchJobExecution 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 GetBatchJobExecution for more information on using the GetBatchJobExecution +// 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 GetBatchJobExecutionRequest method. +// req, resp := client.GetBatchJobExecutionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetBatchJobExecution +func (c *M2) GetBatchJobExecutionRequest(input *GetBatchJobExecutionInput) (req *request.Request, output *GetBatchJobExecutionOutput) { + op := &request.Operation{ + Name: opGetBatchJobExecution, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/batch-job-executions/{executionId}", + } + + if input == nil { + input = &GetBatchJobExecutionInput{} + } + + output = &GetBatchJobExecutionOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetBatchJobExecution API operation for AWSMainframeModernization. +// +// Gets the details of a specific batch job execution for a specific application. +// +// 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 AWSMainframeModernization's +// API operation GetBatchJobExecution for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetBatchJobExecution +func (c *M2) GetBatchJobExecution(input *GetBatchJobExecutionInput) (*GetBatchJobExecutionOutput, error) { + req, out := c.GetBatchJobExecutionRequest(input) + return out, req.Send() +} + +// GetBatchJobExecutionWithContext is the same as GetBatchJobExecution with the addition of +// the ability to pass a context and additional request options. +// +// See GetBatchJobExecution 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 *M2) GetBatchJobExecutionWithContext(ctx aws.Context, input *GetBatchJobExecutionInput, opts ...request.Option) (*GetBatchJobExecutionOutput, error) { + req, out := c.GetBatchJobExecutionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDataSetDetails = "GetDataSetDetails" + +// GetDataSetDetailsRequest generates a "aws/request.Request" representing the +// client's request for the GetDataSetDetails 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 GetDataSetDetails for more information on using the GetDataSetDetails +// 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 GetDataSetDetailsRequest method. +// req, resp := client.GetDataSetDetailsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetDataSetDetails +func (c *M2) GetDataSetDetailsRequest(input *GetDataSetDetailsInput) (req *request.Request, output *GetDataSetDetailsOutput) { + op := &request.Operation{ + Name: opGetDataSetDetails, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/datasets/{dataSetName}", + } + + if input == nil { + input = &GetDataSetDetailsInput{} + } + + output = &GetDataSetDetailsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDataSetDetails API operation for AWSMainframeModernization. +// +// Gets the details of a specific data set. +// +// 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 AWSMainframeModernization's +// API operation GetDataSetDetails for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetDataSetDetails +func (c *M2) GetDataSetDetails(input *GetDataSetDetailsInput) (*GetDataSetDetailsOutput, error) { + req, out := c.GetDataSetDetailsRequest(input) + return out, req.Send() +} + +// GetDataSetDetailsWithContext is the same as GetDataSetDetails with the addition of +// the ability to pass a context and additional request options. +// +// See GetDataSetDetails 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 *M2) GetDataSetDetailsWithContext(ctx aws.Context, input *GetDataSetDetailsInput, opts ...request.Option) (*GetDataSetDetailsOutput, error) { + req, out := c.GetDataSetDetailsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDataSetImportTask = "GetDataSetImportTask" + +// GetDataSetImportTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetDataSetImportTask 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 GetDataSetImportTask for more information on using the GetDataSetImportTask +// 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 GetDataSetImportTaskRequest method. +// req, resp := client.GetDataSetImportTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetDataSetImportTask +func (c *M2) GetDataSetImportTaskRequest(input *GetDataSetImportTaskInput) (req *request.Request, output *GetDataSetImportTaskOutput) { + op := &request.Operation{ + Name: opGetDataSetImportTask, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/dataset-import-tasks/{taskId}", + } + + if input == nil { + input = &GetDataSetImportTaskInput{} + } + + output = &GetDataSetImportTaskOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDataSetImportTask API operation for AWSMainframeModernization. +// +// Gets the status of a data set import task initiated with the CreateDataSetImportTask +// operation. +// +// 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 AWSMainframeModernization's +// API operation GetDataSetImportTask for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetDataSetImportTask +func (c *M2) GetDataSetImportTask(input *GetDataSetImportTaskInput) (*GetDataSetImportTaskOutput, error) { + req, out := c.GetDataSetImportTaskRequest(input) + return out, req.Send() +} + +// GetDataSetImportTaskWithContext is the same as GetDataSetImportTask with the addition of +// the ability to pass a context and additional request options. +// +// See GetDataSetImportTask 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 *M2) GetDataSetImportTaskWithContext(ctx aws.Context, input *GetDataSetImportTaskInput, opts ...request.Option) (*GetDataSetImportTaskOutput, error) { + req, out := c.GetDataSetImportTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDeployment = "GetDeployment" + +// GetDeploymentRequest generates a "aws/request.Request" representing the +// client's request for the GetDeployment 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 GetDeployment for more information on using the GetDeployment +// 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 GetDeploymentRequest method. +// req, resp := client.GetDeploymentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetDeployment +func (c *M2) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) { + op := &request.Operation{ + Name: opGetDeployment, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/deployments/{deploymentId}", + } + + if input == nil { + input = &GetDeploymentInput{} + } + + output = &GetDeploymentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetDeployment API operation for AWSMainframeModernization. +// +// Gets details of a specific deployment with a given deployment 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 AWSMainframeModernization's +// API operation GetDeployment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetDeployment +func (c *M2) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) { + req, out := c.GetDeploymentRequest(input) + return out, req.Send() +} + +// GetDeploymentWithContext is the same as GetDeployment with the addition of +// the ability to pass a context and additional request options. +// +// See GetDeployment 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 *M2) GetDeploymentWithContext(ctx aws.Context, input *GetDeploymentInput, opts ...request.Option) (*GetDeploymentOutput, error) { + req, out := c.GetDeploymentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetEnvironment = "GetEnvironment" + +// GetEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the GetEnvironment 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 GetEnvironment for more information on using the GetEnvironment +// 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 GetEnvironmentRequest method. +// req, resp := client.GetEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetEnvironment +func (c *M2) GetEnvironmentRequest(input *GetEnvironmentInput) (req *request.Request, output *GetEnvironmentOutput) { + op := &request.Operation{ + Name: opGetEnvironment, + HTTPMethod: "GET", + HTTPPath: "/environments/{environmentId}", + } + + if input == nil { + input = &GetEnvironmentInput{} + } + + output = &GetEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetEnvironment API operation for AWSMainframeModernization. +// +// Describes a specific runtime environment. +// +// 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 AWSMainframeModernization's +// API operation GetEnvironment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/GetEnvironment +func (c *M2) GetEnvironment(input *GetEnvironmentInput) (*GetEnvironmentOutput, error) { + req, out := c.GetEnvironmentRequest(input) + return out, req.Send() +} + +// GetEnvironmentWithContext is the same as GetEnvironment with the addition of +// the ability to pass a context and additional request options. +// +// See GetEnvironment 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 *M2) GetEnvironmentWithContext(ctx aws.Context, input *GetEnvironmentInput, opts ...request.Option) (*GetEnvironmentOutput, error) { + req, out := c.GetEnvironmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListApplicationVersions = "ListApplicationVersions" + +// ListApplicationVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplicationVersions 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 ListApplicationVersions for more information on using the ListApplicationVersions +// 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 ListApplicationVersionsRequest method. +// req, resp := client.ListApplicationVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListApplicationVersions +func (c *M2) ListApplicationVersionsRequest(input *ListApplicationVersionsInput) (req *request.Request, output *ListApplicationVersionsOutput) { + op := &request.Operation{ + Name: opListApplicationVersions, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/versions", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListApplicationVersionsInput{} + } + + output = &ListApplicationVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApplicationVersions API operation for AWSMainframeModernization. +// +// Returns a list of the application versions for a specific application. +// +// 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 AWSMainframeModernization's +// API operation ListApplicationVersions for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListApplicationVersions +func (c *M2) ListApplicationVersions(input *ListApplicationVersionsInput) (*ListApplicationVersionsOutput, error) { + req, out := c.ListApplicationVersionsRequest(input) + return out, req.Send() +} + +// ListApplicationVersionsWithContext is the same as ListApplicationVersions with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplicationVersions 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 *M2) ListApplicationVersionsWithContext(ctx aws.Context, input *ListApplicationVersionsInput, opts ...request.Option) (*ListApplicationVersionsOutput, error) { + req, out := c.ListApplicationVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListApplicationVersionsPages iterates over the pages of a ListApplicationVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApplicationVersions 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 ListApplicationVersions operation. +// pageNum := 0 +// err := client.ListApplicationVersionsPages(params, +// func(page *m2.ListApplicationVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListApplicationVersionsPages(input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool) error { + return c.ListApplicationVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListApplicationVersionsPagesWithContext same as ListApplicationVersionsPages 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 *M2) ListApplicationVersionsPagesWithContext(ctx aws.Context, input *ListApplicationVersionsInput, fn func(*ListApplicationVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApplicationVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApplicationVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListApplicationVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListApplications = "ListApplications" + +// ListApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListApplications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListApplications for more information on using the ListApplications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListApplicationsRequest method. +// req, resp := client.ListApplicationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListApplications +func (c *M2) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { + op := &request.Operation{ + Name: opListApplications, + HTTPMethod: "GET", + HTTPPath: "/applications", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListApplicationsInput{} + } + + output = &ListApplicationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListApplications API operation for AWSMainframeModernization. +// +// Lists the applications associated with a specific Amazon Web Services account. +// You can provide the unique identifier of a specific environment in a query +// parameter to see all applications associated with that environment. +// +// 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 AWSMainframeModernization's +// API operation ListApplications for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListApplications +func (c *M2) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + return out, req.Send() +} + +// ListApplicationsWithContext is the same as ListApplications with the addition of +// the ability to pass a context and additional request options. +// +// See ListApplications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *M2) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { + req, out := c.ListApplicationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListApplicationsPages iterates over the pages of a ListApplications operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApplications method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListApplications operation. +// pageNum := 0 +// err := client.ListApplicationsPages(params, +// func(page *m2.ListApplicationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error { + return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListApplicationsPagesWithContext same as ListApplicationsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *M2) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApplicationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApplicationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListBatchJobDefinitions = "ListBatchJobDefinitions" + +// ListBatchJobDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListBatchJobDefinitions 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 ListBatchJobDefinitions for more information on using the ListBatchJobDefinitions +// 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 ListBatchJobDefinitionsRequest method. +// req, resp := client.ListBatchJobDefinitionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListBatchJobDefinitions +func (c *M2) ListBatchJobDefinitionsRequest(input *ListBatchJobDefinitionsInput) (req *request.Request, output *ListBatchJobDefinitionsOutput) { + op := &request.Operation{ + Name: opListBatchJobDefinitions, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/batch-job-definitions", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListBatchJobDefinitionsInput{} + } + + output = &ListBatchJobDefinitionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBatchJobDefinitions API operation for AWSMainframeModernization. +// +// Lists all the available batch job definitions based on the batch job resources +// uploaded during the application creation. The listed batch job definitions +// can then be used to start a batch job. +// +// 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 AWSMainframeModernization's +// API operation ListBatchJobDefinitions for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListBatchJobDefinitions +func (c *M2) ListBatchJobDefinitions(input *ListBatchJobDefinitionsInput) (*ListBatchJobDefinitionsOutput, error) { + req, out := c.ListBatchJobDefinitionsRequest(input) + return out, req.Send() +} + +// ListBatchJobDefinitionsWithContext is the same as ListBatchJobDefinitions with the addition of +// the ability to pass a context and additional request options. +// +// See ListBatchJobDefinitions 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 *M2) ListBatchJobDefinitionsWithContext(ctx aws.Context, input *ListBatchJobDefinitionsInput, opts ...request.Option) (*ListBatchJobDefinitionsOutput, error) { + req, out := c.ListBatchJobDefinitionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListBatchJobDefinitionsPages iterates over the pages of a ListBatchJobDefinitions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListBatchJobDefinitions 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 ListBatchJobDefinitions operation. +// pageNum := 0 +// err := client.ListBatchJobDefinitionsPages(params, +// func(page *m2.ListBatchJobDefinitionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListBatchJobDefinitionsPages(input *ListBatchJobDefinitionsInput, fn func(*ListBatchJobDefinitionsOutput, bool) bool) error { + return c.ListBatchJobDefinitionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListBatchJobDefinitionsPagesWithContext same as ListBatchJobDefinitionsPages 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 *M2) ListBatchJobDefinitionsPagesWithContext(ctx aws.Context, input *ListBatchJobDefinitionsInput, fn func(*ListBatchJobDefinitionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListBatchJobDefinitionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListBatchJobDefinitionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListBatchJobDefinitionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListBatchJobExecutions = "ListBatchJobExecutions" + +// ListBatchJobExecutionsRequest generates a "aws/request.Request" representing the +// client's request for the ListBatchJobExecutions 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 ListBatchJobExecutions for more information on using the ListBatchJobExecutions +// 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 ListBatchJobExecutionsRequest method. +// req, resp := client.ListBatchJobExecutionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListBatchJobExecutions +func (c *M2) ListBatchJobExecutionsRequest(input *ListBatchJobExecutionsInput) (req *request.Request, output *ListBatchJobExecutionsOutput) { + op := &request.Operation{ + Name: opListBatchJobExecutions, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/batch-job-executions", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListBatchJobExecutionsInput{} + } + + output = &ListBatchJobExecutionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBatchJobExecutions API operation for AWSMainframeModernization. +// +// Lists historical, current, and scheduled batch job executions for a specific +// application. +// +// 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 AWSMainframeModernization's +// API operation ListBatchJobExecutions for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListBatchJobExecutions +func (c *M2) ListBatchJobExecutions(input *ListBatchJobExecutionsInput) (*ListBatchJobExecutionsOutput, error) { + req, out := c.ListBatchJobExecutionsRequest(input) + return out, req.Send() +} + +// ListBatchJobExecutionsWithContext is the same as ListBatchJobExecutions with the addition of +// the ability to pass a context and additional request options. +// +// See ListBatchJobExecutions 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 *M2) ListBatchJobExecutionsWithContext(ctx aws.Context, input *ListBatchJobExecutionsInput, opts ...request.Option) (*ListBatchJobExecutionsOutput, error) { + req, out := c.ListBatchJobExecutionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListBatchJobExecutionsPages iterates over the pages of a ListBatchJobExecutions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListBatchJobExecutions 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 ListBatchJobExecutions operation. +// pageNum := 0 +// err := client.ListBatchJobExecutionsPages(params, +// func(page *m2.ListBatchJobExecutionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListBatchJobExecutionsPages(input *ListBatchJobExecutionsInput, fn func(*ListBatchJobExecutionsOutput, bool) bool) error { + return c.ListBatchJobExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListBatchJobExecutionsPagesWithContext same as ListBatchJobExecutionsPages 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 *M2) ListBatchJobExecutionsPagesWithContext(ctx aws.Context, input *ListBatchJobExecutionsInput, fn func(*ListBatchJobExecutionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListBatchJobExecutionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListBatchJobExecutionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListBatchJobExecutionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListDataSetImportHistory = "ListDataSetImportHistory" + +// ListDataSetImportHistoryRequest generates a "aws/request.Request" representing the +// client's request for the ListDataSetImportHistory 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 ListDataSetImportHistory for more information on using the ListDataSetImportHistory +// 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 ListDataSetImportHistoryRequest method. +// req, resp := client.ListDataSetImportHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListDataSetImportHistory +func (c *M2) ListDataSetImportHistoryRequest(input *ListDataSetImportHistoryInput) (req *request.Request, output *ListDataSetImportHistoryOutput) { + op := &request.Operation{ + Name: opListDataSetImportHistory, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/dataset-import-tasks", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDataSetImportHistoryInput{} + } + + output = &ListDataSetImportHistoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDataSetImportHistory API operation for AWSMainframeModernization. +// +// Lists the data set imports for the specified application. +// +// 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 AWSMainframeModernization's +// API operation ListDataSetImportHistory for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListDataSetImportHistory +func (c *M2) ListDataSetImportHistory(input *ListDataSetImportHistoryInput) (*ListDataSetImportHistoryOutput, error) { + req, out := c.ListDataSetImportHistoryRequest(input) + return out, req.Send() +} + +// ListDataSetImportHistoryWithContext is the same as ListDataSetImportHistory with the addition of +// the ability to pass a context and additional request options. +// +// See ListDataSetImportHistory 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 *M2) ListDataSetImportHistoryWithContext(ctx aws.Context, input *ListDataSetImportHistoryInput, opts ...request.Option) (*ListDataSetImportHistoryOutput, error) { + req, out := c.ListDataSetImportHistoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDataSetImportHistoryPages iterates over the pages of a ListDataSetImportHistory operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDataSetImportHistory 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 ListDataSetImportHistory operation. +// pageNum := 0 +// err := client.ListDataSetImportHistoryPages(params, +// func(page *m2.ListDataSetImportHistoryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListDataSetImportHistoryPages(input *ListDataSetImportHistoryInput, fn func(*ListDataSetImportHistoryOutput, bool) bool) error { + return c.ListDataSetImportHistoryPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDataSetImportHistoryPagesWithContext same as ListDataSetImportHistoryPages 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 *M2) ListDataSetImportHistoryPagesWithContext(ctx aws.Context, input *ListDataSetImportHistoryInput, fn func(*ListDataSetImportHistoryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDataSetImportHistoryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDataSetImportHistoryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDataSetImportHistoryOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListDataSets = "ListDataSets" + +// ListDataSetsRequest generates a "aws/request.Request" representing the +// client's request for the ListDataSets 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 ListDataSets for more information on using the ListDataSets +// 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 ListDataSetsRequest method. +// req, resp := client.ListDataSetsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListDataSets +func (c *M2) ListDataSetsRequest(input *ListDataSetsInput) (req *request.Request, output *ListDataSetsOutput) { + op := &request.Operation{ + Name: opListDataSets, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/datasets", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDataSetsInput{} + } + + output = &ListDataSetsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDataSets API operation for AWSMainframeModernization. +// +// Lists the data sets imported for a specific application. In Amazon Web Services +// Mainframe Modernization, data sets are associated with applications deployed +// on environments. This is known as importing data sets. Currently, Amazon +// Web Services Mainframe Modernization can import data sets into catalogs using +// CreateDataSetImportTask (https://docs.aws.amazon.com/m2/latest/APIReference/API_CreateDataSetImportTask.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 AWSMainframeModernization's +// API operation ListDataSets for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListDataSets +func (c *M2) ListDataSets(input *ListDataSetsInput) (*ListDataSetsOutput, error) { + req, out := c.ListDataSetsRequest(input) + return out, req.Send() +} + +// ListDataSetsWithContext is the same as ListDataSets with the addition of +// the ability to pass a context and additional request options. +// +// See ListDataSets 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 *M2) ListDataSetsWithContext(ctx aws.Context, input *ListDataSetsInput, opts ...request.Option) (*ListDataSetsOutput, error) { + req, out := c.ListDataSetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDataSetsPages iterates over the pages of a ListDataSets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDataSets 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 ListDataSets operation. +// pageNum := 0 +// err := client.ListDataSetsPages(params, +// func(page *m2.ListDataSetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListDataSetsPages(input *ListDataSetsInput, fn func(*ListDataSetsOutput, bool) bool) error { + return c.ListDataSetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDataSetsPagesWithContext same as ListDataSetsPages 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 *M2) ListDataSetsPagesWithContext(ctx aws.Context, input *ListDataSetsInput, fn func(*ListDataSetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDataSetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDataSetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDataSetsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListDeployments = "ListDeployments" + +// ListDeploymentsRequest generates a "aws/request.Request" representing the +// client's request for the ListDeployments 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 ListDeployments for more information on using the ListDeployments +// 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 ListDeploymentsRequest method. +// req, resp := client.ListDeploymentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListDeployments +func (c *M2) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) { + op := &request.Operation{ + Name: opListDeployments, + HTTPMethod: "GET", + HTTPPath: "/applications/{applicationId}/deployments", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListDeploymentsInput{} + } + + output = &ListDeploymentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListDeployments API operation for AWSMainframeModernization. +// +// Returns a list of all deployments of a specific application. A deployment +// is a combination of a specific application and a specific version of that +// application. Each deployment is mapped to a particular application version. +// +// 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 AWSMainframeModernization's +// API operation ListDeployments for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListDeployments +func (c *M2) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { + req, out := c.ListDeploymentsRequest(input) + return out, req.Send() +} + +// ListDeploymentsWithContext is the same as ListDeployments with the addition of +// the ability to pass a context and additional request options. +// +// See ListDeployments 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 *M2) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) { + req, out := c.ListDeploymentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListDeploymentsPages iterates over the pages of a ListDeployments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDeployments 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 ListDeployments operation. +// pageNum := 0 +// err := client.ListDeploymentsPages(params, +// func(page *m2.ListDeploymentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListDeploymentsPages(input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool) error { + return c.ListDeploymentsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDeploymentsPagesWithContext same as ListDeploymentsPages 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 *M2) ListDeploymentsPagesWithContext(ctx aws.Context, input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDeploymentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDeploymentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDeploymentsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListEngineVersions = "ListEngineVersions" + +// ListEngineVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListEngineVersions 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 ListEngineVersions for more information on using the ListEngineVersions +// 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 ListEngineVersionsRequest method. +// req, resp := client.ListEngineVersionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListEngineVersions +func (c *M2) ListEngineVersionsRequest(input *ListEngineVersionsInput) (req *request.Request, output *ListEngineVersionsOutput) { + op := &request.Operation{ + Name: opListEngineVersions, + HTTPMethod: "GET", + HTTPPath: "/engine-versions", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListEngineVersionsInput{} + } + + output = &ListEngineVersionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEngineVersions API operation for AWSMainframeModernization. +// +// Lists the available engine versions. +// +// 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 AWSMainframeModernization's +// API operation ListEngineVersions for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListEngineVersions +func (c *M2) ListEngineVersions(input *ListEngineVersionsInput) (*ListEngineVersionsOutput, error) { + req, out := c.ListEngineVersionsRequest(input) + return out, req.Send() +} + +// ListEngineVersionsWithContext is the same as ListEngineVersions with the addition of +// the ability to pass a context and additional request options. +// +// See ListEngineVersions 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 *M2) ListEngineVersionsWithContext(ctx aws.Context, input *ListEngineVersionsInput, opts ...request.Option) (*ListEngineVersionsOutput, error) { + req, out := c.ListEngineVersionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListEngineVersionsPages iterates over the pages of a ListEngineVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEngineVersions 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 ListEngineVersions operation. +// pageNum := 0 +// err := client.ListEngineVersionsPages(params, +// func(page *m2.ListEngineVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListEngineVersionsPages(input *ListEngineVersionsInput, fn func(*ListEngineVersionsOutput, bool) bool) error { + return c.ListEngineVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListEngineVersionsPagesWithContext same as ListEngineVersionsPages 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 *M2) ListEngineVersionsPagesWithContext(ctx aws.Context, input *ListEngineVersionsInput, fn func(*ListEngineVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEngineVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEngineVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListEngineVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListEnvironments = "ListEnvironments" + +// ListEnvironmentsRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironments 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 ListEnvironments for more information on using the ListEnvironments +// 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 ListEnvironmentsRequest method. +// req, resp := client.ListEnvironmentsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListEnvironments +func (c *M2) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *request.Request, output *ListEnvironmentsOutput) { + op := &request.Operation{ + Name: opListEnvironments, + HTTPMethod: "GET", + HTTPPath: "/environments", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListEnvironmentsInput{} + } + + output = &ListEnvironmentsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListEnvironments API operation for AWSMainframeModernization. +// +// Lists the runtime environments. +// +// 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 AWSMainframeModernization's +// API operation ListEnvironments for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListEnvironments +func (c *M2) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironmentsOutput, error) { + req, out := c.ListEnvironmentsRequest(input) + return out, req.Send() +} + +// ListEnvironmentsWithContext is the same as ListEnvironments with the addition of +// the ability to pass a context and additional request options. +// +// See ListEnvironments 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 *M2) ListEnvironmentsWithContext(ctx aws.Context, input *ListEnvironmentsInput, opts ...request.Option) (*ListEnvironmentsOutput, error) { + req, out := c.ListEnvironmentsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListEnvironmentsPages iterates over the pages of a ListEnvironments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEnvironments 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 ListEnvironments operation. +// pageNum := 0 +// err := client.ListEnvironmentsPages(params, +// func(page *m2.ListEnvironmentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *M2) ListEnvironmentsPages(input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool) error { + return c.ListEnvironmentsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListEnvironmentsPagesWithContext same as ListEnvironmentsPages 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 *M2) ListEnvironmentsPagesWithContext(ctx aws.Context, input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEnvironmentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEnvironmentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListEnvironmentsOutput), !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/m2-2021-04-28/ListTagsForResource +func (c *M2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWSMainframeModernization. +// +// Lists the tags for the specified 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 AWSMainframeModernization's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListTagsForResource +func (c *M2) 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 *M2) 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 opStartApplication = "StartApplication" + +// StartApplicationRequest generates a "aws/request.Request" representing the +// client's request for the StartApplication 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 StartApplication for more information on using the StartApplication +// 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 StartApplicationRequest method. +// req, resp := client.StartApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/StartApplication +func (c *M2) StartApplicationRequest(input *StartApplicationInput) (req *request.Request, output *StartApplicationOutput) { + op := &request.Operation{ + Name: opStartApplication, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/start", + } + + if input == nil { + input = &StartApplicationInput{} + } + + output = &StartApplicationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartApplication API operation for AWSMainframeModernization. +// +// Starts an application that is currently stopped. +// +// 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 AWSMainframeModernization's +// API operation StartApplication for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/StartApplication +func (c *M2) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) { + req, out := c.StartApplicationRequest(input) + return out, req.Send() +} + +// StartApplicationWithContext is the same as StartApplication with the addition of +// the ability to pass a context and additional request options. +// +// See StartApplication 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 *M2) StartApplicationWithContext(ctx aws.Context, input *StartApplicationInput, opts ...request.Option) (*StartApplicationOutput, error) { + req, out := c.StartApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartBatchJob = "StartBatchJob" + +// StartBatchJobRequest generates a "aws/request.Request" representing the +// client's request for the StartBatchJob 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 StartBatchJob for more information on using the StartBatchJob +// 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 StartBatchJobRequest method. +// req, resp := client.StartBatchJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/StartBatchJob +func (c *M2) StartBatchJobRequest(input *StartBatchJobInput) (req *request.Request, output *StartBatchJobOutput) { + op := &request.Operation{ + Name: opStartBatchJob, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/batch-job", + } + + if input == nil { + input = &StartBatchJobInput{} + } + + output = &StartBatchJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// StartBatchJob API operation for AWSMainframeModernization. +// +// Starts a batch job and returns the unique identifier of this execution of +// the batch job. The associated application must be running in order to start +// the batch job. +// +// 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 AWSMainframeModernization's +// API operation StartBatchJob for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/StartBatchJob +func (c *M2) StartBatchJob(input *StartBatchJobInput) (*StartBatchJobOutput, error) { + req, out := c.StartBatchJobRequest(input) + return out, req.Send() +} + +// StartBatchJobWithContext is the same as StartBatchJob with the addition of +// the ability to pass a context and additional request options. +// +// See StartBatchJob 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 *M2) StartBatchJobWithContext(ctx aws.Context, input *StartBatchJobInput, opts ...request.Option) (*StartBatchJobOutput, error) { + req, out := c.StartBatchJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopApplication = "StopApplication" + +// StopApplicationRequest generates a "aws/request.Request" representing the +// client's request for the StopApplication 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 StopApplication for more information on using the StopApplication +// 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 StopApplicationRequest method. +// req, resp := client.StopApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/StopApplication +func (c *M2) StopApplicationRequest(input *StopApplicationInput) (req *request.Request, output *StopApplicationOutput) { + op := &request.Operation{ + Name: opStopApplication, + HTTPMethod: "POST", + HTTPPath: "/applications/{applicationId}/stop", + } + + if input == nil { + input = &StopApplicationInput{} + } + + output = &StopApplicationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopApplication API operation for AWSMainframeModernization. +// +// Stops a running application. +// +// 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 AWSMainframeModernization's +// API operation StopApplication for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/StopApplication +func (c *M2) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) { + req, out := c.StopApplicationRequest(input) + return out, req.Send() +} + +// StopApplicationWithContext is the same as StopApplication with the addition of +// the ability to pass a context and additional request options. +// +// See StopApplication 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 *M2) StopApplicationWithContext(ctx aws.Context, input *StopApplicationInput, opts ...request.Option) (*StopApplicationOutput, error) { + req, out := c.StopApplicationRequest(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/m2-2021-04-28/TagResource +func (c *M2) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWSMainframeModernization. +// +// Adds one or more tags to the specified 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 AWSMainframeModernization's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ServiceQuotaExceededException +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/TagResource +func (c *M2) 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 *M2) 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/m2-2021-04-28/UntagResource +func (c *M2) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWSMainframeModernization. +// +// Removes one or more tags from the specified 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 AWSMainframeModernization's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/UntagResource +func (c *M2) 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 *M2) 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 opUpdateApplication = "UpdateApplication" + +// UpdateApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateApplication 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 UpdateApplication for more information on using the UpdateApplication +// 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 UpdateApplicationRequest method. +// req, resp := client.UpdateApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/UpdateApplication +func (c *M2) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { + op := &request.Operation{ + Name: opUpdateApplication, + HTTPMethod: "PATCH", + HTTPPath: "/applications/{applicationId}", + } + + if input == nil { + input = &UpdateApplicationInput{} + } + + output = &UpdateApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateApplication API operation for AWSMainframeModernization. +// +// Updates an application and creates a new version. +// +// 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 AWSMainframeModernization's +// API operation UpdateApplication for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/UpdateApplication +func (c *M2) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + return out, req.Send() +} + +// UpdateApplicationWithContext is the same as UpdateApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateApplication 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 *M2) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) { + req, out := c.UpdateApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEnvironment = "UpdateEnvironment" + +// UpdateEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEnvironment 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 UpdateEnvironment for more information on using the UpdateEnvironment +// 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 UpdateEnvironmentRequest method. +// req, resp := client.UpdateEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/UpdateEnvironment +func (c *M2) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *UpdateEnvironmentOutput) { + op := &request.Operation{ + Name: opUpdateEnvironment, + HTTPMethod: "PATCH", + HTTPPath: "/environments/{environmentId}", + } + + if input == nil { + input = &UpdateEnvironmentInput{} + } + + output = &UpdateEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEnvironment API operation for AWSMainframeModernization. +// +// Updates the configuration details for a specific environment. +// +// 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 AWSMainframeModernization's +// API operation UpdateEnvironment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// One or more parameters provided in the request is not valid. +// +// * ServiceQuotaExceededException +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +// +// * ConflictException +// The parameters provided in the request conflict with existing resources. +// +// * InternalServerException +// An unexpected error occurred during the processing of the request. +// +// * AccessDeniedException +// The account or role doesn't have the right permissions to make the request. +// +// * ThrottlingException +// The number of requests made exceeds the limit. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/UpdateEnvironment +func (c *M2) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvironmentOutput, error) { + req, out := c.UpdateEnvironmentRequest(input) + return out, req.Send() +} + +// UpdateEnvironmentWithContext is the same as UpdateEnvironment with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEnvironment 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 *M2) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*UpdateEnvironmentOutput, error) { + req, out := c.UpdateEnvironmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The account or role doesn't have the right permissions to make the request. +type AccessDeniedException 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 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", s.Code(), s.Message()) +} + +// 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 +} + +// Defines an alternate key. This value is optional. A legacy data set might +// not have any alternate key defined but if those alternate keys definitions +// exist, provide them, as some applications will make use of them. +type AlternateKey struct { + _ struct{} `type:"structure"` + + // Indicates whether the alternate key values are supposed to be unique for + // the given data set. + AllowDuplicates *bool `locationName:"allowDuplicates" type:"boolean"` + + // A strictly positive integer value representing the length of the alternate + // key. + // + // Length is a required field + Length *int64 `locationName:"length" type:"integer" required:"true"` + + // The name of the alternate key. + Name *string `locationName:"name" type:"string"` + + // A positive integer value representing the offset to mark the start of the + // alternate key part in the record byte array. + // + // Offset is a required field + Offset *int64 `locationName:"offset" type:"integer" 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 AlternateKey) 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 AlternateKey) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AlternateKey) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AlternateKey"} + if s.Length == nil { + invalidParams.Add(request.NewErrParamRequired("Length")) + } + if s.Offset == nil { + invalidParams.Add(request.NewErrParamRequired("Offset")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowDuplicates sets the AllowDuplicates field's value. +func (s *AlternateKey) SetAllowDuplicates(v bool) *AlternateKey { + s.AllowDuplicates = &v + return s +} + +// SetLength sets the Length field's value. +func (s *AlternateKey) SetLength(v int64) *AlternateKey { + s.Length = &v + return s +} + +// SetName sets the Name field's value. +func (s *AlternateKey) SetName(v string) *AlternateKey { + s.Name = &v + return s +} + +// SetOffset sets the Offset field's value. +func (s *AlternateKey) SetOffset(v int64) *AlternateKey { + s.Offset = &v + return s +} + +// A subset of the possible application attributes. Used in the application +// list. +type ApplicationSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the application. + // + // ApplicationArn is a required field + ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The version of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // The timestamp when the application was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // Indicates whether there is an ongoing deployment or if the application has + // ever deployed successfully. + DeploymentStatus *string `locationName:"deploymentStatus" type:"string" enum:"ApplicationDeploymentLifecycle"` + + // The description of the application. + Description *string `locationName:"description" type:"string"` + + // The type of the target platform for this application. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true" enum:"EngineType"` + + // The unique identifier of the runtime environment that hosts this application. + EnvironmentId *string `locationName:"environmentId" type:"string"` + + // The timestamp when the application was last started. Null until the application + // has started running for the first time. + LastStartTime *time.Time `locationName:"lastStartTime" type:"timestamp"` + + // The name of the application. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The status of the application. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ApplicationLifecycle"` + + // Indicates the status of the latest version of the application. + VersionStatus *string `locationName:"versionStatus" type:"string" enum:"ApplicationVersionLifecycle"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplicationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ApplicationSummary) GoString() string { + return s.String() +} + +// SetApplicationArn sets the ApplicationArn field's value. +func (s *ApplicationSummary) SetApplicationArn(v string) *ApplicationSummary { + s.ApplicationArn = &v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ApplicationSummary) SetApplicationId(v string) *ApplicationSummary { + s.ApplicationId = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *ApplicationSummary) SetApplicationVersion(v int64) *ApplicationSummary { + s.ApplicationVersion = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ApplicationSummary) SetCreationTime(v time.Time) *ApplicationSummary { + s.CreationTime = &v + return s +} + +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *ApplicationSummary) SetDeploymentStatus(v string) *ApplicationSummary { + s.DeploymentStatus = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ApplicationSummary) SetDescription(v string) *ApplicationSummary { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *ApplicationSummary) SetEngineType(v string) *ApplicationSummary { + s.EngineType = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *ApplicationSummary) SetEnvironmentId(v string) *ApplicationSummary { + s.EnvironmentId = &v + return s +} + +// SetLastStartTime sets the LastStartTime field's value. +func (s *ApplicationSummary) SetLastStartTime(v time.Time) *ApplicationSummary { + s.LastStartTime = &v + return s +} + +// SetName sets the Name field's value. +func (s *ApplicationSummary) SetName(v string) *ApplicationSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ApplicationSummary) SetStatus(v string) *ApplicationSummary { + s.Status = &v + return s +} + +// SetVersionStatus sets the VersionStatus field's value. +func (s *ApplicationSummary) SetVersionStatus(v string) *ApplicationSummary { + s.VersionStatus = &v + return s +} + +// Defines an application version summary. +type ApplicationVersionSummary struct { + _ struct{} `type:"structure"` + + // The application version. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // The timestamp when the application version was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The status of the application. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ApplicationVersionLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" 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 ApplicationVersionSummary) 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 ApplicationVersionSummary) GoString() string { + return s.String() +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *ApplicationVersionSummary) SetApplicationVersion(v int64) *ApplicationVersionSummary { + s.ApplicationVersion = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ApplicationVersionSummary) SetCreationTime(v time.Time) *ApplicationVersionSummary { + s.CreationTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ApplicationVersionSummary) SetStatus(v string) *ApplicationVersionSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *ApplicationVersionSummary) SetStatusReason(v string) *ApplicationVersionSummary { + s.StatusReason = &v + return s +} + +// Defines the details of a batch job. +type BatchJobDefinition struct { + _ struct{} `type:"structure"` + + // Specifies a file containing a batch job definition. + FileBatchJobDefinition *FileBatchJobDefinition `locationName:"fileBatchJobDefinition" type:"structure"` + + // A script containing a batch job definition. + ScriptBatchJobDefinition *ScriptBatchJobDefinition `locationName:"scriptBatchJobDefinition" 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 BatchJobDefinition) 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 BatchJobDefinition) GoString() string { + return s.String() +} + +// SetFileBatchJobDefinition sets the FileBatchJobDefinition field's value. +func (s *BatchJobDefinition) SetFileBatchJobDefinition(v *FileBatchJobDefinition) *BatchJobDefinition { + s.FileBatchJobDefinition = v + return s +} + +// SetScriptBatchJobDefinition sets the ScriptBatchJobDefinition field's value. +func (s *BatchJobDefinition) SetScriptBatchJobDefinition(v *ScriptBatchJobDefinition) *BatchJobDefinition { + s.ScriptBatchJobDefinition = v + return s +} + +// A subset of the possible batch job attributes. Used in the batch job list. +type BatchJobExecutionSummary struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application that hosts this batch job. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The timestamp when this batch job execution ended. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // The unique identifier of this execution of the batch job. + // + // ExecutionId is a required field + ExecutionId *string `locationName:"executionId" type:"string" required:"true"` + + // The unique identifier of a particular batch job. + JobId *string `locationName:"jobId" type:"string"` + + // The name of a particular batch job. + JobName *string `locationName:"jobName" type:"string"` + + // The type of a particular batch job execution. + JobType *string `locationName:"jobType" type:"string" enum:"BatchJobType"` + + // The timestamp when a particular batch job execution started. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` + + // The status of a particular batch job execution. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"BatchJobExecutionStatus"` +} + +// 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 BatchJobExecutionSummary) 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 BatchJobExecutionSummary) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *BatchJobExecutionSummary) SetApplicationId(v string) *BatchJobExecutionSummary { + s.ApplicationId = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *BatchJobExecutionSummary) SetEndTime(v time.Time) *BatchJobExecutionSummary { + s.EndTime = &v + return s +} + +// SetExecutionId sets the ExecutionId field's value. +func (s *BatchJobExecutionSummary) SetExecutionId(v string) *BatchJobExecutionSummary { + s.ExecutionId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *BatchJobExecutionSummary) SetJobId(v string) *BatchJobExecutionSummary { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *BatchJobExecutionSummary) SetJobName(v string) *BatchJobExecutionSummary { + s.JobName = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *BatchJobExecutionSummary) SetJobType(v string) *BatchJobExecutionSummary { + s.JobType = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *BatchJobExecutionSummary) SetStartTime(v time.Time) *BatchJobExecutionSummary { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *BatchJobExecutionSummary) SetStatus(v string) *BatchJobExecutionSummary { + s.Status = &v + return s +} + +// Identifies a specific batch job. +type BatchJobIdentifier struct { + _ struct{} `type:"structure"` + + // Specifies a file associated with a specific batch job. + FileBatchJobIdentifier *FileBatchJobIdentifier `locationName:"fileBatchJobIdentifier" type:"structure"` + + // A batch job identifier in which the batch job to run is identified by the + // script name. + ScriptBatchJobIdentifier *ScriptBatchJobIdentifier `locationName:"scriptBatchJobIdentifier" 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 BatchJobIdentifier) 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 BatchJobIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchJobIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchJobIdentifier"} + if s.FileBatchJobIdentifier != nil { + if err := s.FileBatchJobIdentifier.Validate(); err != nil { + invalidParams.AddNested("FileBatchJobIdentifier", err.(request.ErrInvalidParams)) + } + } + if s.ScriptBatchJobIdentifier != nil { + if err := s.ScriptBatchJobIdentifier.Validate(); err != nil { + invalidParams.AddNested("ScriptBatchJobIdentifier", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileBatchJobIdentifier sets the FileBatchJobIdentifier field's value. +func (s *BatchJobIdentifier) SetFileBatchJobIdentifier(v *FileBatchJobIdentifier) *BatchJobIdentifier { + s.FileBatchJobIdentifier = v + return s +} + +// SetScriptBatchJobIdentifier sets the ScriptBatchJobIdentifier field's value. +func (s *BatchJobIdentifier) SetScriptBatchJobIdentifier(v *ScriptBatchJobIdentifier) *BatchJobIdentifier { + s.ScriptBatchJobIdentifier = v + return s +} + +type CancelBatchJobExecutionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The unique identifier of the batch job execution. + // + // ExecutionId is a required field + ExecutionId *string `location:"uri" locationName:"executionId" 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 CancelBatchJobExecutionInput) 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 CancelBatchJobExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelBatchJobExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelBatchJobExecutionInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.ExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("ExecutionId")) + } + if s.ExecutionId != nil && len(*s.ExecutionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CancelBatchJobExecutionInput) SetApplicationId(v string) *CancelBatchJobExecutionInput { + s.ApplicationId = &v + return s +} + +// SetExecutionId sets the ExecutionId field's value. +func (s *CancelBatchJobExecutionInput) SetExecutionId(v string) *CancelBatchJobExecutionInput { + s.ExecutionId = &v + return s +} + +type CancelBatchJobExecutionOutput 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 CancelBatchJobExecutionOutput) 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 CancelBatchJobExecutionOutput) GoString() string { + return s.String() +} + +// The parameters provided in the request conflict with existing resources. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The ID of the conflicting resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The type of the conflicting resource. + ResourceType *string `locationName:"resourceType" 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\n%s", s.Code(), s.Message(), s.String()) +} + +// 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 CreateApplicationInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier the service generates to ensure the idempotency + // of the request to create an application. The service generates the clientToken + // when the API call is triggered. The token expires after one hour, so if you + // retry the API within this timeframe with the same clientToken, you will get + // the same response. The service also handles deleting the clientToken after + // it expires. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The application definition for this application. You can specify either inline + // JSON or an S3 bucket location. + // + // Definition is a required field + Definition *Definition `locationName:"definition" type:"structure" required:"true"` + + // The description of the application. + Description *string `locationName:"description" type:"string"` + + // The type of the target platform for this application. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true" enum:"EngineType"` + + // The unique identifier of the application. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // A list of tags to apply to the application. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateApplicationInput) 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 CreateApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} + if s.Definition == nil { + invalidParams.Add(request.NewErrParamRequired("Definition")) + } + if s.EngineType == nil { + invalidParams.Add(request.NewErrParamRequired("EngineType")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Definition != nil { + if err := s.Definition.Validate(); err != nil { + invalidParams.AddNested("Definition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateApplicationInput) SetClientToken(v string) *CreateApplicationInput { + s.ClientToken = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *CreateApplicationInput) SetDefinition(v *Definition) *CreateApplicationInput { + s.Definition = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *CreateApplicationInput) SetEngineType(v string) *CreateApplicationInput { + s.EngineType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateApplicationInput) SetTags(v map[string]*string) *CreateApplicationInput { + s.Tags = v + return s +} + +type CreateApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the application. + // + // ApplicationArn is a required field + ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"` + + // The unique application identifier. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The version number of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" 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 CreateApplicationOutput) 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 CreateApplicationOutput) GoString() string { + return s.String() +} + +// SetApplicationArn sets the ApplicationArn field's value. +func (s *CreateApplicationOutput) SetApplicationArn(v string) *CreateApplicationOutput { + s.ApplicationArn = &v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput { + s.ApplicationId = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *CreateApplicationOutput) SetApplicationVersion(v int64) *CreateApplicationOutput { + s.ApplicationVersion = &v + return s +} + +type CreateDataSetImportTaskInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application for which you want to import data + // sets. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request to create a data set import. The service generates the clientToken + // when the API call is triggered. The token expires after one hour, so if you + // retry the API within this timeframe with the same clientToken, you will get + // the same response. The service also handles deleting the clientToken after + // it expires. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The data set import task configuration. + // + // ImportConfig is a required field + ImportConfig *DataSetImportConfig `locationName:"importConfig" 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 CreateDataSetImportTaskInput) 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 CreateDataSetImportTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDataSetImportTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDataSetImportTaskInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.ImportConfig == nil { + invalidParams.Add(request.NewErrParamRequired("ImportConfig")) + } + if s.ImportConfig != nil { + if err := s.ImportConfig.Validate(); err != nil { + invalidParams.AddNested("ImportConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateDataSetImportTaskInput) SetApplicationId(v string) *CreateDataSetImportTaskInput { + s.ApplicationId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateDataSetImportTaskInput) SetClientToken(v string) *CreateDataSetImportTaskInput { + s.ClientToken = &v + return s +} + +// SetImportConfig sets the ImportConfig field's value. +func (s *CreateDataSetImportTaskInput) SetImportConfig(v *DataSetImportConfig) *CreateDataSetImportTaskInput { + s.ImportConfig = v + return s +} + +type CreateDataSetImportTaskOutput struct { + _ struct{} `type:"structure"` + + // The task identifier. This operation is asynchronous. Use this identifier + // with the GetDataSetImportTask operation to obtain the status of this task. + // + // TaskId is a required field + TaskId *string `locationName:"taskId" 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 CreateDataSetImportTaskOutput) 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 CreateDataSetImportTaskOutput) GoString() string { + return s.String() +} + +// SetTaskId sets the TaskId field's value. +func (s *CreateDataSetImportTaskOutput) SetTaskId(v string) *CreateDataSetImportTaskOutput { + s.TaskId = &v + return s +} + +type CreateDeploymentInput struct { + _ struct{} `type:"structure"` + + // The application identifier. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The version of the application to deploy. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request to create a deployment. The service generates the clientToken + // when the API call is triggered. The token expires after one hour, so if you + // retry the API within this timeframe with the same clientToken, you will get + // the same response. The service also handles deleting the clientToken after + // it expires. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The identifier of the environment where this application will be deployed. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" 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 CreateDeploymentInput) 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 CreateDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.ApplicationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationVersion")) + } + if s.ApplicationVersion != nil && *s.ApplicationVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("ApplicationVersion", 1)) + } + if s.EnvironmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *CreateDeploymentInput) SetApplicationId(v string) *CreateDeploymentInput { + s.ApplicationId = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *CreateDeploymentInput) SetApplicationVersion(v int64) *CreateDeploymentInput { + s.ApplicationVersion = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateDeploymentInput) SetClientToken(v string) *CreateDeploymentInput { + s.ClientToken = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *CreateDeploymentInput) SetEnvironmentId(v string) *CreateDeploymentInput { + s.EnvironmentId = &v + return s +} + +type CreateDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" 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 CreateDeploymentOutput) 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 CreateDeploymentOutput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { + s.DeploymentId = &v + return s +} + +type CreateEnvironmentInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive identifier you provide to ensure the idempotency of + // the request to create an environment. The service generates the clientToken + // when the API call is triggered. The token expires after one hour, so if you + // retry the API within this timeframe with the same clientToken, you will get + // the same response. The service also handles deleting the clientToken after + // it expires. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The description of the environment. + Description *string `locationName:"description" type:"string"` + + // The engine type for the environment. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true" enum:"EngineType"` + + // The version of the engine type for the environment. + EngineVersion *string `locationName:"engineVersion" type:"string"` + + // The details of a high availability configuration for this runtime environment. + HighAvailabilityConfig *HighAvailabilityConfig `locationName:"highAvailabilityConfig" type:"structure"` + + // The type of instance for the environment. + // + // InstanceType is a required field + InstanceType *string `locationName:"instanceType" type:"string" required:"true"` + + // The unique identifier of the environment. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // Configures a desired maintenance window for the environment. If you do not + // provide a value, a random system-generated value will be assigned. + PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` + + // Specifies whether the environment is publicly accessible. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // The list of security groups for the VPC associated with this environment. + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list"` + + // Optional. The storage configurations for this environment. + StorageConfigurations []*StorageConfiguration `locationName:"storageConfigurations" type:"list"` + + // The list of subnets associated with the VPC for this environment. + SubnetIds []*string `locationName:"subnetIds" type:"list"` + + // The tags for the environment. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentInput) 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 CreateEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"} + if s.EngineType == nil { + invalidParams.Add(request.NewErrParamRequired("EngineType")) + } + if s.InstanceType == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceType")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.HighAvailabilityConfig != nil { + if err := s.HighAvailabilityConfig.Validate(); err != nil { + invalidParams.AddNested("HighAvailabilityConfig", err.(request.ErrInvalidParams)) + } + } + if s.StorageConfigurations != nil { + for i, v := range s.StorageConfigurations { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StorageConfigurations", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateEnvironmentInput) SetClientToken(v string) *CreateEnvironmentInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *CreateEnvironmentInput) SetEngineType(v string) *CreateEnvironmentInput { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateEnvironmentInput) SetEngineVersion(v string) *CreateEnvironmentInput { + s.EngineVersion = &v + return s +} + +// SetHighAvailabilityConfig sets the HighAvailabilityConfig field's value. +func (s *CreateEnvironmentInput) SetHighAvailabilityConfig(v *HighAvailabilityConfig) *CreateEnvironmentInput { + s.HighAvailabilityConfig = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *CreateEnvironmentInput) SetInstanceType(v string) *CreateEnvironmentInput { + s.InstanceType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateEnvironmentInput) SetName(v string) *CreateEnvironmentInput { + s.Name = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *CreateEnvironmentInput) SetPreferredMaintenanceWindow(v string) *CreateEnvironmentInput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *CreateEnvironmentInput) SetPubliclyAccessible(v bool) *CreateEnvironmentInput { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *CreateEnvironmentInput) SetSecurityGroupIds(v []*string) *CreateEnvironmentInput { + s.SecurityGroupIds = v + return s +} + +// SetStorageConfigurations sets the StorageConfigurations field's value. +func (s *CreateEnvironmentInput) SetStorageConfigurations(v []*StorageConfiguration) *CreateEnvironmentInput { + s.StorageConfigurations = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *CreateEnvironmentInput) SetSubnetIds(v []*string) *CreateEnvironmentInput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentInput) SetTags(v map[string]*string) *CreateEnvironmentInput { + s.Tags = v + return s +} + +type CreateEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The identifier of this environment. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" 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 CreateEnvironmentOutput) 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 CreateEnvironmentOutput) GoString() string { + return s.String() +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *CreateEnvironmentOutput) SetEnvironmentId(v string) *CreateEnvironmentOutput { + s.EnvironmentId = &v + return s +} + +// Defines a data set. +type DataSet struct { + _ struct{} `type:"structure"` + + // The logical identifier for a specific data set (in mainframe format). + // + // DatasetName is a required field + DatasetName *string `locationName:"datasetName" type:"string" required:"true"` + + // The type of dataset. Possible values include VSAM, IS, PS, GDG, PO, PS, UNKNOWN + // etc. + // + // DatasetOrg is a required field + DatasetOrg *DatasetOrgAttributes `locationName:"datasetOrg" type:"structure" required:"true"` + + // The length of a record. + // + // RecordLength is a required field + RecordLength *RecordLength `locationName:"recordLength" type:"structure" required:"true"` + + // The relative location of the data set in the database or file system. + RelativePath *string `locationName:"relativePath" type:"string"` + + // The storage type of the data set: database or file system. For Micro Focus, + // database corresponds to datastore and file system corresponds to EFS/FSX. + // For Blu Age, there is no support of file system and database corresponds + // to Blusam. + StorageType *string `locationName:"storageType" 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 DataSet) 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 DataSet) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataSet) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataSet"} + if s.DatasetName == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetName")) + } + if s.DatasetOrg == nil { + invalidParams.Add(request.NewErrParamRequired("DatasetOrg")) + } + if s.RecordLength == nil { + invalidParams.Add(request.NewErrParamRequired("RecordLength")) + } + if s.DatasetOrg != nil { + if err := s.DatasetOrg.Validate(); err != nil { + invalidParams.AddNested("DatasetOrg", err.(request.ErrInvalidParams)) + } + } + if s.RecordLength != nil { + if err := s.RecordLength.Validate(); err != nil { + invalidParams.AddNested("RecordLength", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatasetName sets the DatasetName field's value. +func (s *DataSet) SetDatasetName(v string) *DataSet { + s.DatasetName = &v + return s +} + +// SetDatasetOrg sets the DatasetOrg field's value. +func (s *DataSet) SetDatasetOrg(v *DatasetOrgAttributes) *DataSet { + s.DatasetOrg = v + return s +} + +// SetRecordLength sets the RecordLength field's value. +func (s *DataSet) SetRecordLength(v *RecordLength) *DataSet { + s.RecordLength = v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *DataSet) SetRelativePath(v string) *DataSet { + s.RelativePath = &v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *DataSet) SetStorageType(v string) *DataSet { + s.StorageType = &v + return s +} + +// Identifies one or more data sets you want to import with the CreateDataSetImportTask +// operation. +type DataSetImportConfig struct { + _ struct{} `type:"structure"` + + // The data sets. + DataSets []*DataSetImportItem `locationName:"dataSets" min:"1" type:"list"` + + // The Amazon S3 location of the data sets. + S3Location *string `locationName:"s3Location" 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 DataSetImportConfig) 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 DataSetImportConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataSetImportConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataSetImportConfig"} + if s.DataSets != nil && len(s.DataSets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DataSets", 1)) + } + if s.DataSets != nil { + for i, v := range s.DataSets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DataSets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataSets sets the DataSets field's value. +func (s *DataSetImportConfig) SetDataSets(v []*DataSetImportItem) *DataSetImportConfig { + s.DataSets = v + return s +} + +// SetS3Location sets the S3Location field's value. +func (s *DataSetImportConfig) SetS3Location(v string) *DataSetImportConfig { + s.S3Location = &v + return s +} + +// Identifies a specific data set to import from an external location. +type DataSetImportItem struct { + _ struct{} `type:"structure"` + + // The data set. + // + // DataSet is a required field + DataSet *DataSet `locationName:"dataSet" type:"structure" required:"true"` + + // The location of the data set. + // + // ExternalLocation is a required field + ExternalLocation *ExternalLocation `locationName:"externalLocation" 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 DataSetImportItem) 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 DataSetImportItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DataSetImportItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DataSetImportItem"} + if s.DataSet == nil { + invalidParams.Add(request.NewErrParamRequired("DataSet")) + } + if s.ExternalLocation == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalLocation")) + } + if s.DataSet != nil { + if err := s.DataSet.Validate(); err != nil { + invalidParams.AddNested("DataSet", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataSet sets the DataSet field's value. +func (s *DataSetImportItem) SetDataSet(v *DataSet) *DataSetImportItem { + s.DataSet = v + return s +} + +// SetExternalLocation sets the ExternalLocation field's value. +func (s *DataSetImportItem) SetExternalLocation(v *ExternalLocation) *DataSetImportItem { + s.ExternalLocation = v + return s +} + +// Represents a summary of data set imports. +type DataSetImportSummary struct { + _ struct{} `type:"structure"` + + // The number of data set imports that have failed. + // + // Failed is a required field + Failed *int64 `locationName:"failed" type:"integer" required:"true"` + + // The number of data set imports that are in progress. + // + // InProgress is a required field + InProgress *int64 `locationName:"inProgress" type:"integer" required:"true"` + + // The number of data set imports that are pending. + // + // Pending is a required field + Pending *int64 `locationName:"pending" type:"integer" required:"true"` + + // The number of data set imports that have succeeded. + // + // Succeeded is a required field + Succeeded *int64 `locationName:"succeeded" type:"integer" required:"true"` + + // The total number of data set imports. + // + // Total is a required field + Total *int64 `locationName:"total" type:"integer" 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 DataSetImportSummary) 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 DataSetImportSummary) GoString() string { + return s.String() +} + +// SetFailed sets the Failed field's value. +func (s *DataSetImportSummary) SetFailed(v int64) *DataSetImportSummary { + s.Failed = &v + return s +} + +// SetInProgress sets the InProgress field's value. +func (s *DataSetImportSummary) SetInProgress(v int64) *DataSetImportSummary { + s.InProgress = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *DataSetImportSummary) SetPending(v int64) *DataSetImportSummary { + s.Pending = &v + return s +} + +// SetSucceeded sets the Succeeded field's value. +func (s *DataSetImportSummary) SetSucceeded(v int64) *DataSetImportSummary { + s.Succeeded = &v + return s +} + +// SetTotal sets the Total field's value. +func (s *DataSetImportSummary) SetTotal(v int64) *DataSetImportSummary { + s.Total = &v + return s +} + +// Contains information about a data set import task. +type DataSetImportTask struct { + _ struct{} `type:"structure"` + + // The status of the data set import task. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"DataSetTaskLifecycle"` + + // A summary of the data set import task. + // + // Summary is a required field + Summary *DataSetImportSummary `locationName:"summary" type:"structure" required:"true"` + + // The identifier of the data set import task. + // + // TaskId is a required field + TaskId *string `locationName:"taskId" 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 DataSetImportTask) 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 DataSetImportTask) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *DataSetImportTask) SetStatus(v string) *DataSetImportTask { + s.Status = &v + return s +} + +// SetSummary sets the Summary field's value. +func (s *DataSetImportTask) SetSummary(v *DataSetImportSummary) *DataSetImportTask { + s.Summary = v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *DataSetImportTask) SetTaskId(v string) *DataSetImportTask { + s.TaskId = &v + return s +} + +// A subset of the possible data set attributes. +type DataSetSummary struct { + _ struct{} `type:"structure"` + + // The timestamp when the data set was created. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // The name of the data set. + // + // DataSetName is a required field + DataSetName *string `locationName:"dataSetName" type:"string" required:"true"` + + // The type of data set. Possible values include VSAM, IS, PS, GDG, PO, PS, + // or unknown. + DataSetOrg *string `locationName:"dataSetOrg" type:"string"` + + // The format of the data set. + Format *string `locationName:"format" type:"string"` + + // The last time the data set was referenced. + LastReferencedTime *time.Time `locationName:"lastReferencedTime" type:"timestamp"` + + // The last time the data set was updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" 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 DataSetSummary) 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 DataSetSummary) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DataSetSummary) SetCreationTime(v time.Time) *DataSetSummary { + s.CreationTime = &v + return s +} + +// SetDataSetName sets the DataSetName field's value. +func (s *DataSetSummary) SetDataSetName(v string) *DataSetSummary { + s.DataSetName = &v + return s +} + +// SetDataSetOrg sets the DataSetOrg field's value. +func (s *DataSetSummary) SetDataSetOrg(v string) *DataSetSummary { + s.DataSetOrg = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *DataSetSummary) SetFormat(v string) *DataSetSummary { + s.Format = &v + return s +} + +// SetLastReferencedTime sets the LastReferencedTime field's value. +func (s *DataSetSummary) SetLastReferencedTime(v time.Time) *DataSetSummary { + s.LastReferencedTime = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *DataSetSummary) SetLastUpdatedTime(v time.Time) *DataSetSummary { + s.LastUpdatedTime = &v + return s +} + +// Additional details about the data set. Different attributes correspond to +// different data set organizations. The values are populated based on datasetOrg, +// storageType and backend (Blu Age or Micro Focus). +type DatasetDetailOrgAttributes struct { + _ struct{} `type:"structure"` + + // The generation data group of the data set. + Gdg *GdgDetailAttributes `locationName:"gdg" type:"structure"` + + // The details of a VSAM data set. + Vsam *VsamDetailAttributes `locationName:"vsam" 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 DatasetDetailOrgAttributes) 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 DatasetDetailOrgAttributes) GoString() string { + return s.String() +} + +// SetGdg sets the Gdg field's value. +func (s *DatasetDetailOrgAttributes) SetGdg(v *GdgDetailAttributes) *DatasetDetailOrgAttributes { + s.Gdg = v + return s +} + +// SetVsam sets the Vsam field's value. +func (s *DatasetDetailOrgAttributes) SetVsam(v *VsamDetailAttributes) *DatasetDetailOrgAttributes { + s.Vsam = v + return s +} + +// Additional details about the data set. Different attributes correspond to +// different data set organizations. The values are populated based on datasetOrg, +// storageType and backend (Blu Age or Micro Focus). +type DatasetOrgAttributes struct { + _ struct{} `type:"structure"` + + // The generation data group of the data set. + Gdg *GdgAttributes `locationName:"gdg" type:"structure"` + + // The details of a VSAM data set. + Vsam *VsamAttributes `locationName:"vsam" 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 DatasetOrgAttributes) 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 DatasetOrgAttributes) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DatasetOrgAttributes) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DatasetOrgAttributes"} + if s.Vsam != nil { + if err := s.Vsam.Validate(); err != nil { + invalidParams.AddNested("Vsam", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGdg sets the Gdg field's value. +func (s *DatasetOrgAttributes) SetGdg(v *GdgAttributes) *DatasetOrgAttributes { + s.Gdg = v + return s +} + +// SetVsam sets the Vsam field's value. +func (s *DatasetOrgAttributes) SetVsam(v *VsamAttributes) *DatasetOrgAttributes { + s.Vsam = v + return s +} + +// The application definition for a particular application. +type Definition struct { + _ struct{} `type:"structure"` + + // The content of the application definition. This is a JSON object that contains + // the resource configuration/definitions that identify an application. + Content *string `locationName:"content" min:"1" type:"string"` + + // The S3 bucket that contains the application definition. + S3Location *string `locationName:"s3Location" 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 Definition) 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 Definition) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Definition) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Definition"} + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *Definition) SetContent(v string) *Definition { + s.Content = &v + return s +} + +// SetS3Location sets the S3Location field's value. +func (s *Definition) SetS3Location(v string) *Definition { + s.S3Location = &v + return s +} + +type DeleteApplicationFromEnvironmentInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application you want to delete. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The unique identifier of the runtime environment where the application was + // previously deployed. + // + // EnvironmentId is a required field + EnvironmentId *string `location:"uri" locationName:"environmentId" 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 DeleteApplicationFromEnvironmentInput) 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 DeleteApplicationFromEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationFromEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationFromEnvironmentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.EnvironmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentId")) + } + if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteApplicationFromEnvironmentInput) SetApplicationId(v string) *DeleteApplicationFromEnvironmentInput { + s.ApplicationId = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DeleteApplicationFromEnvironmentInput) SetEnvironmentId(v string) *DeleteApplicationFromEnvironmentInput { + s.EnvironmentId = &v + return s +} + +type DeleteApplicationFromEnvironmentOutput 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 DeleteApplicationFromEnvironmentOutput) 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 DeleteApplicationFromEnvironmentOutput) GoString() string { + return s.String() +} + +type DeleteApplicationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application you want to delete. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" 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 DeleteApplicationInput) 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 DeleteApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeleteApplicationInput) SetApplicationId(v string) *DeleteApplicationInput { + s.ApplicationId = &v + return s +} + +type DeleteApplicationOutput 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 DeleteApplicationOutput) 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 DeleteApplicationOutput) GoString() string { + return s.String() +} + +type DeleteEnvironmentInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the runtime environment you want to delete. + // + // EnvironmentId is a required field + EnvironmentId *string `location:"uri" locationName:"environmentId" 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 DeleteEnvironmentInput) 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 DeleteEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentInput"} + if s.EnvironmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentId")) + } + if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DeleteEnvironmentInput) SetEnvironmentId(v string) *DeleteEnvironmentInput { + s.EnvironmentId = &v + return s +} + +type DeleteEnvironmentOutput 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 DeleteEnvironmentOutput) 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 DeleteEnvironmentOutput) GoString() string { + return s.String() +} + +// Contains a summary of a deployed application. +type DeployedVersionSummary struct { + _ struct{} `type:"structure"` + + // The version of the deployed application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // The status of the deployment. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"DeploymentLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" 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 DeployedVersionSummary) 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 DeployedVersionSummary) GoString() string { + return s.String() +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DeployedVersionSummary) SetApplicationVersion(v int64) *DeployedVersionSummary { + s.ApplicationVersion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeployedVersionSummary) SetStatus(v string) *DeployedVersionSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DeployedVersionSummary) SetStatusReason(v string) *DeployedVersionSummary { + s.StatusReason = &v + return s +} + +// A subset of information about a specific deployment. +type DeploymentSummary struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The version of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // The timestamp when the deployment was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The unique identifier of the deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` + + // The unique identifier of the environment. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" type:"string" required:"true"` + + // The current status of the deployment. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"DeploymentLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" 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 DeploymentSummary) 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 DeploymentSummary) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *DeploymentSummary) SetApplicationId(v string) *DeploymentSummary { + s.ApplicationId = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *DeploymentSummary) SetApplicationVersion(v int64) *DeploymentSummary { + s.ApplicationVersion = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *DeploymentSummary) SetCreationTime(v time.Time) *DeploymentSummary { + s.CreationTime = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeploymentSummary) SetDeploymentId(v string) *DeploymentSummary { + s.DeploymentId = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *DeploymentSummary) SetEnvironmentId(v string) *DeploymentSummary { + s.EnvironmentId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentSummary) SetStatus(v string) *DeploymentSummary { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *DeploymentSummary) SetStatusReason(v string) *DeploymentSummary { + s.StatusReason = &v + return s +} + +// Defines the storage configuration for an Amazon EFS file system. +type EfsStorageConfiguration struct { + _ struct{} `type:"structure"` + + // The file system identifier. + // + // FileSystemId is a required field + FileSystemId *string `locationName:"file-system-id" type:"string" required:"true"` + + // The mount point for the file system. + // + // MountPoint is a required field + MountPoint *string `locationName:"mount-point" 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 EfsStorageConfiguration) 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 EfsStorageConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EfsStorageConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EfsStorageConfiguration"} + if s.FileSystemId == nil { + invalidParams.Add(request.NewErrParamRequired("FileSystemId")) + } + if s.MountPoint == nil { + invalidParams.Add(request.NewErrParamRequired("MountPoint")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *EfsStorageConfiguration) SetFileSystemId(v string) *EfsStorageConfiguration { + s.FileSystemId = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *EfsStorageConfiguration) SetMountPoint(v string) *EfsStorageConfiguration { + s.MountPoint = &v + return s +} + +// A subset of information about the engine version for a specific application. +type EngineVersionsSummary struct { + _ struct{} `type:"structure"` + + // The type of target platform for the application. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true"` + + // The version of the engine type used by the application. + // + // EngineVersion is a required field + EngineVersion *string `locationName:"engineVersion" 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 EngineVersionsSummary) 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 EngineVersionsSummary) GoString() string { + return s.String() +} + +// SetEngineType sets the EngineType field's value. +func (s *EngineVersionsSummary) SetEngineType(v string) *EngineVersionsSummary { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *EngineVersionsSummary) SetEngineVersion(v string) *EngineVersionsSummary { + s.EngineVersion = &v + return s +} + +// Contains a subset of the possible environment attributes. Used in the environment +// list. +type EnvironmentSummary struct { + _ struct{} `type:"structure"` + + // The timestamp when the environment was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The target platform for the environment. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true" enum:"EngineType"` + + // The version of the runtime engine. + // + // EngineVersion is a required field + EngineVersion *string `locationName:"engineVersion" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of a particular runtime environment. + // + // EnvironmentArn is a required field + EnvironmentArn *string `locationName:"environmentArn" type:"string" required:"true"` + + // The unique identifier of a particular runtime environment. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" type:"string" required:"true"` + + // The instance type of the environment. + // + // InstanceType is a required field + InstanceType *string `locationName:"instanceType" type:"string" required:"true"` + + // The name of the environment. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The status of the environment + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"EnvironmentLifecycle"` +} + +// 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 EnvironmentSummary) 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 EnvironmentSummary) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *EnvironmentSummary) SetCreationTime(v time.Time) *EnvironmentSummary { + s.CreationTime = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *EnvironmentSummary) SetEngineType(v string) *EnvironmentSummary { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *EnvironmentSummary) SetEngineVersion(v string) *EnvironmentSummary { + s.EngineVersion = &v + return s +} + +// SetEnvironmentArn sets the EnvironmentArn field's value. +func (s *EnvironmentSummary) SetEnvironmentArn(v string) *EnvironmentSummary { + s.EnvironmentArn = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *EnvironmentSummary) SetEnvironmentId(v string) *EnvironmentSummary { + s.EnvironmentId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *EnvironmentSummary) SetInstanceType(v string) *EnvironmentSummary { + s.InstanceType = &v + return s +} + +// SetName sets the Name field's value. +func (s *EnvironmentSummary) SetName(v string) *EnvironmentSummary { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EnvironmentSummary) SetStatus(v string) *EnvironmentSummary { + s.Status = &v + return s +} + +// Defines an external storage location. +type ExternalLocation struct { + _ struct{} `type:"structure"` + + // The URI of the Amazon S3 bucket. + S3Location *string `locationName:"s3Location" 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 ExternalLocation) 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 ExternalLocation) GoString() string { + return s.String() +} + +// SetS3Location sets the S3Location field's value. +func (s *ExternalLocation) SetS3Location(v string) *ExternalLocation { + s.S3Location = &v + return s +} + +// A file containing a batch job definition. +type FileBatchJobDefinition struct { + _ struct{} `type:"structure"` + + // The name of the file containing the batch job definition. + // + // FileName is a required field + FileName *string `locationName:"fileName" type:"string" required:"true"` + + // The path to the file containing the batch job definition. + FolderPath *string `locationName:"folderPath" 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 FileBatchJobDefinition) 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 FileBatchJobDefinition) GoString() string { + return s.String() +} + +// SetFileName sets the FileName field's value. +func (s *FileBatchJobDefinition) SetFileName(v string) *FileBatchJobDefinition { + s.FileName = &v + return s +} + +// SetFolderPath sets the FolderPath field's value. +func (s *FileBatchJobDefinition) SetFolderPath(v string) *FileBatchJobDefinition { + s.FolderPath = &v + return s +} + +// A batch job identifier in which the batch job to run is identified by the +// file name and the relative path to the file name. +type FileBatchJobIdentifier struct { + _ struct{} `type:"structure"` + + // The file name for the batch job identifier. + // + // FileName is a required field + FileName *string `locationName:"fileName" type:"string" required:"true"` + + // The relative path to the file name for the batch job identifier. + FolderPath *string `locationName:"folderPath" 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 FileBatchJobIdentifier) 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 FileBatchJobIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FileBatchJobIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FileBatchJobIdentifier"} + if s.FileName == nil { + invalidParams.Add(request.NewErrParamRequired("FileName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileName sets the FileName field's value. +func (s *FileBatchJobIdentifier) SetFileName(v string) *FileBatchJobIdentifier { + s.FileName = &v + return s +} + +// SetFolderPath sets the FolderPath field's value. +func (s *FileBatchJobIdentifier) SetFolderPath(v string) *FileBatchJobIdentifier { + s.FolderPath = &v + return s +} + +// Defines the storage configuration for an Amazon FSx file system. +type FsxStorageConfiguration struct { + _ struct{} `type:"structure"` + + // The file system identifier. + // + // FileSystemId is a required field + FileSystemId *string `locationName:"file-system-id" type:"string" required:"true"` + + // The mount point for the file system. + // + // MountPoint is a required field + MountPoint *string `locationName:"mount-point" 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 FsxStorageConfiguration) 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 FsxStorageConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FsxStorageConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FsxStorageConfiguration"} + if s.FileSystemId == nil { + invalidParams.Add(request.NewErrParamRequired("FileSystemId")) + } + if s.MountPoint == nil { + invalidParams.Add(request.NewErrParamRequired("MountPoint")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileSystemId sets the FileSystemId field's value. +func (s *FsxStorageConfiguration) SetFileSystemId(v string) *FsxStorageConfiguration { + s.FileSystemId = &v + return s +} + +// SetMountPoint sets the MountPoint field's value. +func (s *FsxStorageConfiguration) SetMountPoint(v string) *FsxStorageConfiguration { + s.MountPoint = &v + return s +} + +// The required attributes for a generation data group data set. A generation +// data set is one of a collection of successive, historically related, catalogued +// data sets that together are known as a generation data group (GDG). Use this +// structure when you want to import a GDG. For more information on GDG, see +// Generation data sets (https://www.ibm.com/docs/en/zos/2.3.0?topic=guide-generation-data-sets). +type GdgAttributes struct { + _ struct{} `type:"structure"` + + // The maximum number of generation data sets, up to 255, in a GDG. + Limit *int64 `locationName:"limit" type:"integer"` + + // The disposition of the data set in the catalog. + RollDisposition *string `locationName:"rollDisposition" 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 GdgAttributes) 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 GdgAttributes) GoString() string { + return s.String() +} + +// SetLimit sets the Limit field's value. +func (s *GdgAttributes) SetLimit(v int64) *GdgAttributes { + s.Limit = &v + return s +} + +// SetRollDisposition sets the RollDisposition field's value. +func (s *GdgAttributes) SetRollDisposition(v string) *GdgAttributes { + s.RollDisposition = &v + return s +} + +// The required attributes for a generation data group data set. A generation +// data set is one of a collection of successive, historically related, catalogued +// data sets that together are known as a generation data group (GDG). Use this +// structure when you want to import a GDG. For more information on GDG, see +// Generation data sets (https://www.ibm.com/docs/en/zos/2.3.0?topic=guide-generation-data-sets). +type GdgDetailAttributes struct { + _ struct{} `type:"structure"` + + // The maximum number of generation data sets, up to 255, in a GDG. + Limit *int64 `locationName:"limit" type:"integer"` + + // The disposition of the data set in the catalog. + RollDisposition *string `locationName:"rollDisposition" 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 GdgDetailAttributes) 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 GdgDetailAttributes) GoString() string { + return s.String() +} + +// SetLimit sets the Limit field's value. +func (s *GdgDetailAttributes) SetLimit(v int64) *GdgDetailAttributes { + s.Limit = &v + return s +} + +// SetRollDisposition sets the RollDisposition field's value. +func (s *GdgDetailAttributes) SetRollDisposition(v string) *GdgDetailAttributes { + s.RollDisposition = &v + return s +} + +type GetApplicationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" 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 GetApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationInput) SetApplicationId(v string) *GetApplicationInput { + s.ApplicationId = &v + return s +} + +type GetApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the application. + // + // ApplicationArn is a required field + ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"` + + // The identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The timestamp when this application was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The version of the application that is deployed. + DeployedVersion *DeployedVersionSummary `locationName:"deployedVersion" type:"structure"` + + // The description of the application. + Description *string `locationName:"description" type:"string"` + + // The type of the target platform for the application. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true" enum:"EngineType"` + + // The identifier of the environment where the application will be deployed. + EnvironmentId *string `locationName:"environmentId" type:"string"` + + // The timestamp when the application was last started. Null until the application + // has started running for the first time. + LastStartTime *time.Time `locationName:"lastStartTime" type:"timestamp"` + + // The latest version of the application. + // + // LatestVersion is a required field + LatestVersion *ApplicationVersionSummary `locationName:"latestVersion" type:"structure" required:"true"` + + // The Amazon Resource Name (ARN) for the network load balancer listener created + // in your Amazon Web Services account. Amazon Web Services Mainframe Modernization + // creates this listener on your behalf the first time you deploy an application. + ListenerArns []*string `locationName:"listenerArns" min:"1" type:"list"` + + // The port associated with the network load balancer listener created in your + // Amazon Web Services account. + ListenerPorts []*int64 `locationName:"listenerPorts" min:"1" type:"list"` + + // The public DNS name of the load balancer created in your Amazon Web Services + // account. + LoadBalancerDnsName *string `locationName:"loadBalancerDnsName" type:"string"` + + // The list of log summaries. Each log summary includes the log type as well + // as the log group identifier. These are CloudWatch logs. The Amazon Web Services + // Mainframe Modernization application log is pushed to CloudWatch under the + // customer's account. + LogGroups []*LogGroupSummary `locationName:"logGroups" type:"list"` + + // The unique identifier of the application. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The status of the application. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ApplicationLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" type:"string"` + + // A list of tags associated with the application. + Tags map[string]*string `locationName:"tags" type:"map"` + + // Returns the Amazon Resource Names (ARNs) of the target groups that are attached + // to the network load balancer. + TargetGroupArns []*string `locationName:"targetGroupArns" 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 GetApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetApplicationOutput) GoString() string { + return s.String() +} + +// SetApplicationArn sets the ApplicationArn field's value. +func (s *GetApplicationOutput) SetApplicationArn(v string) *GetApplicationOutput { + s.ApplicationArn = &v + return s +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationOutput) SetApplicationId(v string) *GetApplicationOutput { + s.ApplicationId = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *GetApplicationOutput) SetCreationTime(v time.Time) *GetApplicationOutput { + s.CreationTime = &v + return s +} + +// SetDeployedVersion sets the DeployedVersion field's value. +func (s *GetApplicationOutput) SetDeployedVersion(v *DeployedVersionSummary) *GetApplicationOutput { + s.DeployedVersion = v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetApplicationOutput) SetDescription(v string) *GetApplicationOutput { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *GetApplicationOutput) SetEngineType(v string) *GetApplicationOutput { + s.EngineType = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *GetApplicationOutput) SetEnvironmentId(v string) *GetApplicationOutput { + s.EnvironmentId = &v + return s +} + +// SetLastStartTime sets the LastStartTime field's value. +func (s *GetApplicationOutput) SetLastStartTime(v time.Time) *GetApplicationOutput { + s.LastStartTime = &v + return s +} + +// SetLatestVersion sets the LatestVersion field's value. +func (s *GetApplicationOutput) SetLatestVersion(v *ApplicationVersionSummary) *GetApplicationOutput { + s.LatestVersion = v + return s +} + +// SetListenerArns sets the ListenerArns field's value. +func (s *GetApplicationOutput) SetListenerArns(v []*string) *GetApplicationOutput { + s.ListenerArns = v + return s +} + +// SetListenerPorts sets the ListenerPorts field's value. +func (s *GetApplicationOutput) SetListenerPorts(v []*int64) *GetApplicationOutput { + s.ListenerPorts = v + return s +} + +// SetLoadBalancerDnsName sets the LoadBalancerDnsName field's value. +func (s *GetApplicationOutput) SetLoadBalancerDnsName(v string) *GetApplicationOutput { + s.LoadBalancerDnsName = &v + return s +} + +// SetLogGroups sets the LogGroups field's value. +func (s *GetApplicationOutput) SetLogGroups(v []*LogGroupSummary) *GetApplicationOutput { + s.LogGroups = v + return s +} + +// SetName sets the Name field's value. +func (s *GetApplicationOutput) SetName(v string) *GetApplicationOutput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetApplicationOutput) SetStatus(v string) *GetApplicationOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *GetApplicationOutput) SetStatusReason(v string) *GetApplicationOutput { + s.StatusReason = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetApplicationOutput) SetTags(v map[string]*string) *GetApplicationOutput { + s.Tags = v + return s +} + +// SetTargetGroupArns sets the TargetGroupArns field's value. +func (s *GetApplicationOutput) SetTargetGroupArns(v []*string) *GetApplicationOutput { + s.TargetGroupArns = v + return s +} + +type GetApplicationVersionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The specific version of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `location:"uri" locationName:"applicationVersion" min:"1" type:"integer" 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 GetApplicationVersionInput) 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 GetApplicationVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApplicationVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationVersionInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.ApplicationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationVersion")) + } + if s.ApplicationVersion != nil && *s.ApplicationVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("ApplicationVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetApplicationVersionInput) SetApplicationId(v string) *GetApplicationVersionInput { + s.ApplicationId = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *GetApplicationVersionInput) SetApplicationVersion(v int64) *GetApplicationVersionInput { + s.ApplicationVersion = &v + return s +} + +type GetApplicationVersionOutput struct { + _ struct{} `type:"structure"` + + // The specific version of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // The timestamp when the application version was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The content of the application definition. This is a JSON object that contains + // the resource configuration/definitions that identify an application. + // + // DefinitionContent is a required field + DefinitionContent *string `locationName:"definitionContent" min:"1" type:"string" required:"true"` + + // The application description. + Description *string `locationName:"description" type:"string"` + + // The name of the application version. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // The status of the application version. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ApplicationVersionLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" 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 GetApplicationVersionOutput) 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 GetApplicationVersionOutput) GoString() string { + return s.String() +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *GetApplicationVersionOutput) SetApplicationVersion(v int64) *GetApplicationVersionOutput { + s.ApplicationVersion = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *GetApplicationVersionOutput) SetCreationTime(v time.Time) *GetApplicationVersionOutput { + s.CreationTime = &v + return s +} + +// SetDefinitionContent sets the DefinitionContent field's value. +func (s *GetApplicationVersionOutput) SetDefinitionContent(v string) *GetApplicationVersionOutput { + s.DefinitionContent = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetApplicationVersionOutput) SetDescription(v string) *GetApplicationVersionOutput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetApplicationVersionOutput) SetName(v string) *GetApplicationVersionOutput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetApplicationVersionOutput) SetStatus(v string) *GetApplicationVersionOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *GetApplicationVersionOutput) SetStatusReason(v string) *GetApplicationVersionOutput { + s.StatusReason = &v + return s +} + +type GetBatchJobExecutionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The unique identifier of the batch job execution. + // + // ExecutionId is a required field + ExecutionId *string `location:"uri" locationName:"executionId" 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 GetBatchJobExecutionInput) 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 GetBatchJobExecutionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBatchJobExecutionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBatchJobExecutionInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.ExecutionId == nil { + invalidParams.Add(request.NewErrParamRequired("ExecutionId")) + } + if s.ExecutionId != nil && len(*s.ExecutionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetBatchJobExecutionInput) SetApplicationId(v string) *GetBatchJobExecutionInput { + s.ApplicationId = &v + return s +} + +// SetExecutionId sets the ExecutionId field's value. +func (s *GetBatchJobExecutionInput) SetExecutionId(v string) *GetBatchJobExecutionInput { + s.ExecutionId = &v + return s +} + +type GetBatchJobExecutionOutput struct { + _ struct{} `type:"structure"` + + // The identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The timestamp when the batch job execution ended. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // The unique identifier for this batch job execution. + // + // ExecutionId is a required field + ExecutionId *string `locationName:"executionId" type:"string" required:"true"` + + // The unique identifier for this batch job. + JobId *string `locationName:"jobId" type:"string"` + + // The name of this batch job. + JobName *string `locationName:"jobName" type:"string"` + + // The type of job. + JobType *string `locationName:"jobType" type:"string" enum:"BatchJobType"` + + // The user for the job. + JobUser *string `locationName:"jobUser" type:"string"` + + // The timestamp when the batch job execution started. + // + // StartTime is a required field + StartTime *time.Time `locationName:"startTime" type:"timestamp" required:"true"` + + // The status of the batch job execution. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"BatchJobExecutionStatus"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" 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 GetBatchJobExecutionOutput) 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 GetBatchJobExecutionOutput) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetBatchJobExecutionOutput) SetApplicationId(v string) *GetBatchJobExecutionOutput { + s.ApplicationId = &v + return s +} + +// SetEndTime sets the EndTime field's value. +func (s *GetBatchJobExecutionOutput) SetEndTime(v time.Time) *GetBatchJobExecutionOutput { + s.EndTime = &v + return s +} + +// SetExecutionId sets the ExecutionId field's value. +func (s *GetBatchJobExecutionOutput) SetExecutionId(v string) *GetBatchJobExecutionOutput { + s.ExecutionId = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetBatchJobExecutionOutput) SetJobId(v string) *GetBatchJobExecutionOutput { + s.JobId = &v + return s +} + +// SetJobName sets the JobName field's value. +func (s *GetBatchJobExecutionOutput) SetJobName(v string) *GetBatchJobExecutionOutput { + s.JobName = &v + return s +} + +// SetJobType sets the JobType field's value. +func (s *GetBatchJobExecutionOutput) SetJobType(v string) *GetBatchJobExecutionOutput { + s.JobType = &v + return s +} + +// SetJobUser sets the JobUser field's value. +func (s *GetBatchJobExecutionOutput) SetJobUser(v string) *GetBatchJobExecutionOutput { + s.JobUser = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *GetBatchJobExecutionOutput) SetStartTime(v time.Time) *GetBatchJobExecutionOutput { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetBatchJobExecutionOutput) SetStatus(v string) *GetBatchJobExecutionOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *GetBatchJobExecutionOutput) SetStatusReason(v string) *GetBatchJobExecutionOutput { + s.StatusReason = &v + return s +} + +type GetDataSetDetailsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application that this data set is associated + // with. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The name of the data set. + // + // DataSetName is a required field + DataSetName *string `location:"uri" locationName:"dataSetName" 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 GetDataSetDetailsInput) 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 GetDataSetDetailsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDataSetDetailsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDataSetDetailsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.DataSetName == nil { + invalidParams.Add(request.NewErrParamRequired("DataSetName")) + } + if s.DataSetName != nil && len(*s.DataSetName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DataSetName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetDataSetDetailsInput) SetApplicationId(v string) *GetDataSetDetailsInput { + s.ApplicationId = &v + return s +} + +// SetDataSetName sets the DataSetName field's value. +func (s *GetDataSetDetailsInput) SetDataSetName(v string) *GetDataSetDetailsInput { + s.DataSetName = &v + return s +} + +type GetDataSetDetailsOutput struct { + _ struct{} `type:"structure"` + + // The size of the block on disk. + Blocksize *int64 `locationName:"blocksize" type:"integer"` + + // The timestamp when the data set was created. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // The name of the data set. + // + // DataSetName is a required field + DataSetName *string `locationName:"dataSetName" type:"string" required:"true"` + + // The type of data set. Possible values include VSAM, IS, PS, GDG, PO, PS, + // or unknown. + DataSetOrg *DatasetDetailOrgAttributes `locationName:"dataSetOrg" type:"structure"` + + // The last time the data set was referenced. + LastReferencedTime *time.Time `locationName:"lastReferencedTime" type:"timestamp"` + + // The last time the data set was updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` + + // The locaion where the data set is stored. + Location *string `locationName:"location" type:"string"` + + // The length of records in the data set. + RecordLength *int64 `locationName:"recordLength" type:"integer"` +} + +// 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 GetDataSetDetailsOutput) 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 GetDataSetDetailsOutput) GoString() string { + return s.String() +} + +// SetBlocksize sets the Blocksize field's value. +func (s *GetDataSetDetailsOutput) SetBlocksize(v int64) *GetDataSetDetailsOutput { + s.Blocksize = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *GetDataSetDetailsOutput) SetCreationTime(v time.Time) *GetDataSetDetailsOutput { + s.CreationTime = &v + return s +} + +// SetDataSetName sets the DataSetName field's value. +func (s *GetDataSetDetailsOutput) SetDataSetName(v string) *GetDataSetDetailsOutput { + s.DataSetName = &v + return s +} + +// SetDataSetOrg sets the DataSetOrg field's value. +func (s *GetDataSetDetailsOutput) SetDataSetOrg(v *DatasetDetailOrgAttributes) *GetDataSetDetailsOutput { + s.DataSetOrg = v + return s +} + +// SetLastReferencedTime sets the LastReferencedTime field's value. +func (s *GetDataSetDetailsOutput) SetLastReferencedTime(v time.Time) *GetDataSetDetailsOutput { + s.LastReferencedTime = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *GetDataSetDetailsOutput) SetLastUpdatedTime(v time.Time) *GetDataSetDetailsOutput { + s.LastUpdatedTime = &v + return s +} + +// SetLocation sets the Location field's value. +func (s *GetDataSetDetailsOutput) SetLocation(v string) *GetDataSetDetailsOutput { + s.Location = &v + return s +} + +// SetRecordLength sets the RecordLength field's value. +func (s *GetDataSetDetailsOutput) SetRecordLength(v int64) *GetDataSetDetailsOutput { + s.RecordLength = &v + return s +} + +type GetDataSetImportTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The application identifier. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The task identifier returned by the CreateDataSetImportTask operation. + // + // TaskId is a required field + TaskId *string `location:"uri" locationName:"taskId" 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 GetDataSetImportTaskInput) 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 GetDataSetImportTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDataSetImportTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDataSetImportTaskInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.TaskId == nil { + invalidParams.Add(request.NewErrParamRequired("TaskId")) + } + if s.TaskId != nil && len(*s.TaskId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TaskId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetDataSetImportTaskInput) SetApplicationId(v string) *GetDataSetImportTaskInput { + s.ApplicationId = &v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *GetDataSetImportTaskInput) SetTaskId(v string) *GetDataSetImportTaskInput { + s.TaskId = &v + return s +} + +type GetDataSetImportTaskOutput struct { + _ struct{} `type:"structure"` + + // The status of the task. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"DataSetTaskLifecycle"` + + // A summary of the status of the task. + Summary *DataSetImportSummary `locationName:"summary" type:"structure"` + + // The task identifier. + // + // TaskId is a required field + TaskId *string `locationName:"taskId" 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 GetDataSetImportTaskOutput) 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 GetDataSetImportTaskOutput) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *GetDataSetImportTaskOutput) SetStatus(v string) *GetDataSetImportTaskOutput { + s.Status = &v + return s +} + +// SetSummary sets the Summary field's value. +func (s *GetDataSetImportTaskOutput) SetSummary(v *DataSetImportSummary) *GetDataSetImportTaskOutput { + s.Summary = v + return s +} + +// SetTaskId sets the TaskId field's value. +func (s *GetDataSetImportTaskOutput) SetTaskId(v string) *GetDataSetImportTaskOutput { + s.TaskId = &v + return s +} + +type GetDeploymentInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The unique identifier for the deployment. + // + // DeploymentId is a required field + DeploymentId *string `location:"uri" locationName:"deploymentId" 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 GetDeploymentInput) 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 GetDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + if s.DeploymentId != nil && len(*s.DeploymentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetDeploymentInput) SetApplicationId(v string) *GetDeploymentInput { + s.ApplicationId = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + +type GetDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `locationName:"applicationId" type:"string" required:"true"` + + // The application version. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" required:"true"` + + // The timestamp when the deployment was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The unique identifier of the deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` + + // The unique identifier of the runtime environment. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" type:"string" required:"true"` + + // The status of the deployment. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"DeploymentLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" 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 GetDeploymentOutput) 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 GetDeploymentOutput) GoString() string { + return s.String() +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *GetDeploymentOutput) SetApplicationId(v string) *GetDeploymentOutput { + s.ApplicationId = &v + return s +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *GetDeploymentOutput) SetApplicationVersion(v int64) *GetDeploymentOutput { + s.ApplicationVersion = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *GetDeploymentOutput) SetCreationTime(v time.Time) *GetDeploymentOutput { + s.CreationTime = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentOutput) SetDeploymentId(v string) *GetDeploymentOutput { + s.DeploymentId = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *GetDeploymentOutput) SetEnvironmentId(v string) *GetDeploymentOutput { + s.EnvironmentId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetDeploymentOutput) SetStatus(v string) *GetDeploymentOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *GetDeploymentOutput) SetStatusReason(v string) *GetDeploymentOutput { + s.StatusReason = &v + return s +} + +type GetEnvironmentInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the runtime environment. + // + // EnvironmentId is a required field + EnvironmentId *string `location:"uri" locationName:"environmentId" 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 GetEnvironmentInput) 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 GetEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentInput"} + if s.EnvironmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentId")) + } + if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *GetEnvironmentInput) SetEnvironmentId(v string) *GetEnvironmentInput { + s.EnvironmentId = &v + return s +} + +type GetEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The number of instances included in the runtime environment. A standalone + // runtime environment has a maxiumum of one instance. Currently, a high availability + // runtime environment has a maximum of two instances. + ActualCapacity *int64 `locationName:"actualCapacity" min:"1" type:"integer"` + + // The timestamp when the runtime environment was created. + // + // CreationTime is a required field + CreationTime *time.Time `locationName:"creationTime" type:"timestamp" required:"true"` + + // The description of the runtime environment. + Description *string `locationName:"description" type:"string"` + + // The target platform for the runtime environment. + // + // EngineType is a required field + EngineType *string `locationName:"engineType" type:"string" required:"true" enum:"EngineType"` + + // The version of the runtime engine. + // + // EngineVersion is a required field + EngineVersion *string `locationName:"engineVersion" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the runtime environment. + // + // EnvironmentArn is a required field + EnvironmentArn *string `locationName:"environmentArn" type:"string" required:"true"` + + // The unique identifier of the runtime environment. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" type:"string" required:"true"` + + // The desired capacity of the high availability configuration for the runtime + // environment. + HighAvailabilityConfig *HighAvailabilityConfig `locationName:"highAvailabilityConfig" type:"structure"` + + // The type of instance underlying the runtime environment. + // + // InstanceType is a required field + InstanceType *string `locationName:"instanceType" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) for the load balancer used with the runtime + // environment. + LoadBalancerArn *string `locationName:"loadBalancerArn" type:"string"` + + // The name of the runtime environment. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` + + // Indicates the pending maintenance scheduled on this environment. + PendingMaintenance *PendingMaintenance `locationName:"pendingMaintenance" type:"structure"` + + // Configures a desired maintenance window for the environment. If you do not + // provide a value, a random system-generated value will be assigned. + PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" type:"string"` + + // Whether applications running in this runtime environment are publicly accessible. + PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"` + + // The unique identifiers of the security groups assigned to this runtime environment. + // + // SecurityGroupIds is a required field + SecurityGroupIds []*string `locationName:"securityGroupIds" type:"list" required:"true"` + + // The status of the runtime environment. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"EnvironmentLifecycle"` + + // The reason for the reported status. + StatusReason *string `locationName:"statusReason" type:"string"` + + // The storage configurations defined for the runtime environment. + StorageConfigurations []*StorageConfiguration `locationName:"storageConfigurations" type:"list"` + + // The unique identifiers of the subnets assigned to this runtime environment. + // + // SubnetIds is a required field + SubnetIds []*string `locationName:"subnetIds" type:"list" required:"true"` + + // The tags defined for this runtime environment. + Tags map[string]*string `locationName:"tags" type:"map"` + + // The unique identifier for the VPC used with this runtime environment. + // + // VpcId is a required field + VpcId *string `locationName:"vpcId" 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 GetEnvironmentOutput) 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 GetEnvironmentOutput) GoString() string { + return s.String() +} + +// SetActualCapacity sets the ActualCapacity field's value. +func (s *GetEnvironmentOutput) SetActualCapacity(v int64) *GetEnvironmentOutput { + s.ActualCapacity = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *GetEnvironmentOutput) SetCreationTime(v time.Time) *GetEnvironmentOutput { + s.CreationTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetEnvironmentOutput) SetDescription(v string) *GetEnvironmentOutput { + s.Description = &v + return s +} + +// SetEngineType sets the EngineType field's value. +func (s *GetEnvironmentOutput) SetEngineType(v string) *GetEnvironmentOutput { + s.EngineType = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *GetEnvironmentOutput) SetEngineVersion(v string) *GetEnvironmentOutput { + s.EngineVersion = &v + return s +} + +// SetEnvironmentArn sets the EnvironmentArn field's value. +func (s *GetEnvironmentOutput) SetEnvironmentArn(v string) *GetEnvironmentOutput { + s.EnvironmentArn = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *GetEnvironmentOutput) SetEnvironmentId(v string) *GetEnvironmentOutput { + s.EnvironmentId = &v + return s +} + +// SetHighAvailabilityConfig sets the HighAvailabilityConfig field's value. +func (s *GetEnvironmentOutput) SetHighAvailabilityConfig(v *HighAvailabilityConfig) *GetEnvironmentOutput { + s.HighAvailabilityConfig = v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *GetEnvironmentOutput) SetInstanceType(v string) *GetEnvironmentOutput { + s.InstanceType = &v + return s +} + +// SetLoadBalancerArn sets the LoadBalancerArn field's value. +func (s *GetEnvironmentOutput) SetLoadBalancerArn(v string) *GetEnvironmentOutput { + s.LoadBalancerArn = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetEnvironmentOutput) SetName(v string) *GetEnvironmentOutput { + s.Name = &v + return s +} + +// SetPendingMaintenance sets the PendingMaintenance field's value. +func (s *GetEnvironmentOutput) SetPendingMaintenance(v *PendingMaintenance) *GetEnvironmentOutput { + s.PendingMaintenance = v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *GetEnvironmentOutput) SetPreferredMaintenanceWindow(v string) *GetEnvironmentOutput { + s.PreferredMaintenanceWindow = &v + return s +} + +// SetPubliclyAccessible sets the PubliclyAccessible field's value. +func (s *GetEnvironmentOutput) SetPubliclyAccessible(v bool) *GetEnvironmentOutput { + s.PubliclyAccessible = &v + return s +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *GetEnvironmentOutput) SetSecurityGroupIds(v []*string) *GetEnvironmentOutput { + s.SecurityGroupIds = v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetEnvironmentOutput) SetStatus(v string) *GetEnvironmentOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *GetEnvironmentOutput) SetStatusReason(v string) *GetEnvironmentOutput { + s.StatusReason = &v + return s +} + +// SetStorageConfigurations sets the StorageConfigurations field's value. +func (s *GetEnvironmentOutput) SetStorageConfigurations(v []*StorageConfiguration) *GetEnvironmentOutput { + s.StorageConfigurations = v + return s +} + +// SetSubnetIds sets the SubnetIds field's value. +func (s *GetEnvironmentOutput) SetSubnetIds(v []*string) *GetEnvironmentOutput { + s.SubnetIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *GetEnvironmentOutput) SetTags(v map[string]*string) *GetEnvironmentOutput { + s.Tags = v + return s +} + +// SetVpcId sets the VpcId field's value. +func (s *GetEnvironmentOutput) SetVpcId(v string) *GetEnvironmentOutput { + s.VpcId = &v + return s +} + +// Defines the details of a high availability configuration. +type HighAvailabilityConfig struct { + _ struct{} `type:"structure"` + + // The number of instances in a high availability configuration. + // + // DesiredCapacity is a required field + DesiredCapacity *int64 `locationName:"desiredCapacity" min:"1" type:"integer" 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 HighAvailabilityConfig) 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 HighAvailabilityConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *HighAvailabilityConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HighAvailabilityConfig"} + if s.DesiredCapacity == nil { + invalidParams.Add(request.NewErrParamRequired("DesiredCapacity")) + } + if s.DesiredCapacity != nil && *s.DesiredCapacity < 1 { + invalidParams.Add(request.NewErrParamMinValue("DesiredCapacity", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *HighAvailabilityConfig) SetDesiredCapacity(v int64) *HighAvailabilityConfig { + s.DesiredCapacity = &v + return s +} + +// An unexpected error occurred during the processing of the request. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The number of seconds to wait before retrying the request. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` +} + +// 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\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListApplicationVersionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The maximum number of application versions to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token returned from a previous call to this operation. This + // specifies the next item to return. To return to the beginning of the list, + // exclude this parameter. + NextToken *string `location:"querystring" 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 ListApplicationVersionsInput) 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 ListApplicationVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListApplicationVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationVersionsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListApplicationVersionsInput) SetApplicationId(v string) *ListApplicationVersionsInput { + s.ApplicationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListApplicationVersionsInput) SetMaxResults(v int64) *ListApplicationVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationVersionsInput) SetNextToken(v string) *ListApplicationVersionsInput { + s.NextToken = &v + return s +} + +type ListApplicationVersionsOutput struct { + _ struct{} `type:"structure"` + + // The list of application versions. + // + // ApplicationVersions is a required field + ApplicationVersions []*ApplicationVersionSummary `locationName:"applicationVersions" type:"list" required:"true"` + + // If there are more items to return, this contains a token that is passed to + // a subsequent call to this operation to retrieve the next set of items. + 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 ListApplicationVersionsOutput) 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 ListApplicationVersionsOutput) GoString() string { + return s.String() +} + +// SetApplicationVersions sets the ApplicationVersions field's value. +func (s *ListApplicationVersionsOutput) SetApplicationVersions(v []*ApplicationVersionSummary) *ListApplicationVersionsOutput { + s.ApplicationVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationVersionsOutput) SetNextToken(v string) *ListApplicationVersionsOutput { + s.NextToken = &v + return s +} + +type ListApplicationsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the runtime environment where the applications are + // deployed. + EnvironmentId *string `location:"querystring" locationName:"environmentId" type:"string"` + + // The maximum number of applications to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The names of the applications. + Names []*string `location:"querystring" locationName:"names" min:"1" type:"list"` + + // A pagination token to control the number of applications displayed in the + // list. + NextToken *string `location:"querystring" 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 ListApplicationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListApplicationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Names != nil && len(s.Names) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Names", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *ListApplicationsInput) SetEnvironmentId(v string) *ListApplicationsInput { + s.EnvironmentId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListApplicationsInput) SetMaxResults(v int64) *ListApplicationsInput { + s.MaxResults = &v + return s +} + +// SetNames sets the Names field's value. +func (s *ListApplicationsInput) SetNames(v []*string) *ListApplicationsInput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { + s.NextToken = &v + return s +} + +type ListApplicationsOutput struct { + _ struct{} `type:"structure"` + + // Returns a list of summary details for all the applications in an environment. + // + // Applications is a required field + Applications []*ApplicationSummary `locationName:"applications" type:"list" required:"true"` + + // A pagination token that's returned when the response doesn't contain all + // applications. + 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 ListApplicationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListApplicationsOutput) GoString() string { + return s.String() +} + +// SetApplications sets the Applications field's value. +func (s *ListApplicationsOutput) SetApplications(v []*ApplicationSummary) *ListApplicationsOutput { + s.Applications = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { + s.NextToken = &v + return s +} + +type ListBatchJobDefinitionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The maximum number of batch job definitions to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token returned from a previous call to this operation. This + // specifies the next item to return. To return to the beginning of the list, + // exclude this parameter. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // If the batch job definition is a FileBatchJobDefinition, the prefix allows + // you to search on the file names of FileBatchJobDefinitions. + Prefix *string `location:"querystring" locationName:"prefix" 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 ListBatchJobDefinitionsInput) 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 ListBatchJobDefinitionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBatchJobDefinitionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBatchJobDefinitionsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListBatchJobDefinitionsInput) SetApplicationId(v string) *ListBatchJobDefinitionsInput { + s.ApplicationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBatchJobDefinitionsInput) SetMaxResults(v int64) *ListBatchJobDefinitionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBatchJobDefinitionsInput) SetNextToken(v string) *ListBatchJobDefinitionsInput { + s.NextToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListBatchJobDefinitionsInput) SetPrefix(v string) *ListBatchJobDefinitionsInput { + s.Prefix = &v + return s +} + +type ListBatchJobDefinitionsOutput struct { + _ struct{} `type:"structure"` + + // The list of batch job definitions. + // + // BatchJobDefinitions is a required field + BatchJobDefinitions []*BatchJobDefinition `locationName:"batchJobDefinitions" type:"list" required:"true"` + + // If there are more items to return, this contains a token that is passed to + // a subsequent call to this operation to retrieve the next set of items. + 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 ListBatchJobDefinitionsOutput) 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 ListBatchJobDefinitionsOutput) GoString() string { + return s.String() +} + +// SetBatchJobDefinitions sets the BatchJobDefinitions field's value. +func (s *ListBatchJobDefinitionsOutput) SetBatchJobDefinitions(v []*BatchJobDefinition) *ListBatchJobDefinitionsOutput { + s.BatchJobDefinitions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBatchJobDefinitionsOutput) SetNextToken(v string) *ListBatchJobDefinitionsOutput { + s.NextToken = &v + return s +} + +type ListBatchJobExecutionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The unique identifier of each batch job execution. + ExecutionIds []*string `location:"querystring" locationName:"executionIds" min:"1" type:"list"` + + // The name of each batch job execution. + JobName *string `location:"querystring" locationName:"jobName" type:"string"` + + // The maximum number of batch job executions to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token to control the number of batch job executions displayed + // in the list. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The time after which the batch job executions started. + StartedAfter *time.Time `location:"querystring" locationName:"startedAfter" type:"timestamp"` + + // The time before the batch job executions started. + StartedBefore *time.Time `location:"querystring" locationName:"startedBefore" type:"timestamp"` + + // The status of the batch job executions. + Status *string `location:"querystring" locationName:"status" type:"string" enum:"BatchJobExecutionStatus"` +} + +// 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 ListBatchJobExecutionsInput) 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 ListBatchJobExecutionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListBatchJobExecutionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBatchJobExecutionsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.ExecutionIds != nil && len(s.ExecutionIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExecutionIds", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListBatchJobExecutionsInput) SetApplicationId(v string) *ListBatchJobExecutionsInput { + s.ApplicationId = &v + return s +} + +// SetExecutionIds sets the ExecutionIds field's value. +func (s *ListBatchJobExecutionsInput) SetExecutionIds(v []*string) *ListBatchJobExecutionsInput { + s.ExecutionIds = v + return s +} + +// SetJobName sets the JobName field's value. +func (s *ListBatchJobExecutionsInput) SetJobName(v string) *ListBatchJobExecutionsInput { + s.JobName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListBatchJobExecutionsInput) SetMaxResults(v int64) *ListBatchJobExecutionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBatchJobExecutionsInput) SetNextToken(v string) *ListBatchJobExecutionsInput { + s.NextToken = &v + return s +} + +// SetStartedAfter sets the StartedAfter field's value. +func (s *ListBatchJobExecutionsInput) SetStartedAfter(v time.Time) *ListBatchJobExecutionsInput { + s.StartedAfter = &v + return s +} + +// SetStartedBefore sets the StartedBefore field's value. +func (s *ListBatchJobExecutionsInput) SetStartedBefore(v time.Time) *ListBatchJobExecutionsInput { + s.StartedBefore = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListBatchJobExecutionsInput) SetStatus(v string) *ListBatchJobExecutionsInput { + s.Status = &v + return s +} + +type ListBatchJobExecutionsOutput struct { + _ struct{} `type:"structure"` + + // Returns a list of batch job executions for an application. + // + // BatchJobExecutions is a required field + BatchJobExecutions []*BatchJobExecutionSummary `locationName:"batchJobExecutions" type:"list" required:"true"` + + // A pagination token that's returned when the response doesn't contain all + // batch job executions. + 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 ListBatchJobExecutionsOutput) 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 ListBatchJobExecutionsOutput) GoString() string { + return s.String() +} + +// SetBatchJobExecutions sets the BatchJobExecutions field's value. +func (s *ListBatchJobExecutionsOutput) SetBatchJobExecutions(v []*BatchJobExecutionSummary) *ListBatchJobExecutionsOutput { + s.BatchJobExecutions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListBatchJobExecutionsOutput) SetNextToken(v string) *ListBatchJobExecutionsOutput { + s.NextToken = &v + return s +} + +type ListDataSetImportHistoryInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The maximum number of objects to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token returned from a previous call to this operation. This + // specifies the next item to return. To return to the beginning of the list, + // exclude this parameter. + NextToken *string `location:"querystring" 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 ListDataSetImportHistoryInput) 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 ListDataSetImportHistoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDataSetImportHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDataSetImportHistoryInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListDataSetImportHistoryInput) SetApplicationId(v string) *ListDataSetImportHistoryInput { + s.ApplicationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDataSetImportHistoryInput) SetMaxResults(v int64) *ListDataSetImportHistoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDataSetImportHistoryInput) SetNextToken(v string) *ListDataSetImportHistoryInput { + s.NextToken = &v + return s +} + +type ListDataSetImportHistoryOutput struct { + _ struct{} `type:"structure"` + + // The data set import tasks. + // + // DataSetImportTasks is a required field + DataSetImportTasks []*DataSetImportTask `locationName:"dataSetImportTasks" type:"list" required:"true"` + + // If there are more items to return, this contains a token that is passed to + // a subsequent call to this operation to retrieve the next set of items. + 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 ListDataSetImportHistoryOutput) 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 ListDataSetImportHistoryOutput) GoString() string { + return s.String() +} + +// SetDataSetImportTasks sets the DataSetImportTasks field's value. +func (s *ListDataSetImportHistoryOutput) SetDataSetImportTasks(v []*DataSetImportTask) *ListDataSetImportHistoryOutput { + s.DataSetImportTasks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDataSetImportHistoryOutput) SetNextToken(v string) *ListDataSetImportHistoryOutput { + s.NextToken = &v + return s +} + +type ListDataSetsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application for which you want to list the associated + // data sets. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The maximum number of objects to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token returned from a previous call to this operation. This + // specifies the next item to return. To return to the beginning of the list, + // exclude this parameter. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The prefix of the data set name, which you can use to filter the list of + // data sets. + Prefix *string `location:"querystring" locationName:"prefix" 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 ListDataSetsInput) 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 ListDataSetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDataSetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDataSetsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListDataSetsInput) SetApplicationId(v string) *ListDataSetsInput { + s.ApplicationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDataSetsInput) SetMaxResults(v int64) *ListDataSetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDataSetsInput) SetNextToken(v string) *ListDataSetsInput { + s.NextToken = &v + return s +} + +// SetPrefix sets the Prefix field's value. +func (s *ListDataSetsInput) SetPrefix(v string) *ListDataSetsInput { + s.Prefix = &v + return s +} + +type ListDataSetsOutput struct { + _ struct{} `type:"structure"` + + // The list of data sets, containing ionformation including the creating time, + // the data set name, the data set organization, the data set format, and the + // last time the data set was referenced or updated. + // + // DataSets is a required field + DataSets []*DataSetSummary `locationName:"dataSets" type:"list" required:"true"` + + // If there are more items to return, this contains a token that is passed to + // a subsequent call to this operation to retrieve the next set of items. + 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 ListDataSetsOutput) 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 ListDataSetsOutput) GoString() string { + return s.String() +} + +// SetDataSets sets the DataSets field's value. +func (s *ListDataSetsOutput) SetDataSets(v []*DataSetSummary) *ListDataSetsOutput { + s.DataSets = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDataSetsOutput) SetNextToken(v string) *ListDataSetsOutput { + s.NextToken = &v + return s +} + +type ListDeploymentsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The application identifier. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The maximum number of objects to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token returned from a previous call to this operation. This + // specifies the next item to return. To return to the beginning of the list, + // exclude this parameter. + NextToken *string `location:"querystring" 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 ListDeploymentsInput) 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 ListDeploymentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDeploymentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *ListDeploymentsInput) SetApplicationId(v string) *ListDeploymentsInput { + s.ApplicationId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeploymentsInput) SetMaxResults(v int64) *ListDeploymentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { + s.NextToken = &v + return s +} + +type ListDeploymentsOutput struct { + _ struct{} `type:"structure"` + + // The list of deployments that is returned. + // + // Deployments is a required field + Deployments []*DeploymentSummary `locationName:"deployments" type:"list" required:"true"` + + // If there are more items to return, this contains a token that is passed to + // a subsequent call to this operation to retrieve the next set of items. + 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 ListDeploymentsOutput) 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 ListDeploymentsOutput) GoString() string { + return s.String() +} + +// SetDeployments sets the Deployments field's value. +func (s *ListDeploymentsOutput) SetDeployments(v []*DeploymentSummary) *ListDeploymentsOutput { + s.Deployments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { + s.NextToken = &v + return s +} + +type ListEngineVersionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The type of target platform. + EngineType *string `location:"querystring" locationName:"engineType" type:"string" enum:"EngineType"` + + // The maximum number of objects to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // A pagination token returned from a previous call to this operation. This + // specifies the next item to return. To return to the beginning of the list, + // exclude this parameter. + NextToken *string `location:"querystring" 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 ListEngineVersionsInput) 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 ListEngineVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEngineVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEngineVersionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEngineType sets the EngineType field's value. +func (s *ListEngineVersionsInput) SetEngineType(v string) *ListEngineVersionsInput { + s.EngineType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListEngineVersionsInput) SetMaxResults(v int64) *ListEngineVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEngineVersionsInput) SetNextToken(v string) *ListEngineVersionsInput { + s.NextToken = &v + return s +} + +type ListEngineVersionsOutput struct { + _ struct{} `type:"structure"` + + // Returns the engine versions. + // + // EngineVersions is a required field + EngineVersions []*EngineVersionsSummary `locationName:"engineVersions" type:"list" required:"true"` + + // If there are more items to return, this contains a token that is passed to + // a subsequent call to this operation to retrieve the next set of items. + 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 ListEngineVersionsOutput) 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 ListEngineVersionsOutput) GoString() string { + return s.String() +} + +// SetEngineVersions sets the EngineVersions field's value. +func (s *ListEngineVersionsOutput) SetEngineVersions(v []*EngineVersionsSummary) *ListEngineVersionsOutput { + s.EngineVersions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEngineVersionsOutput) SetNextToken(v string) *ListEngineVersionsOutput { + s.NextToken = &v + return s +} + +type ListEnvironmentsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The engine type for the environment. + EngineType *string `location:"querystring" locationName:"engineType" type:"string" enum:"EngineType"` + + // The maximum number of environments to return. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The name of the environment. + Names []*string `location:"querystring" locationName:"names" min:"1" type:"list"` + + // A pagination token to control the number of environments displayed in the + // list. + NextToken *string `location:"querystring" 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 ListEnvironmentsInput) 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 ListEnvironmentsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnvironmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Names != nil && len(s.Names) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Names", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEngineType sets the EngineType field's value. +func (s *ListEnvironmentsInput) SetEngineType(v string) *ListEnvironmentsInput { + s.EngineType = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListEnvironmentsInput) SetMaxResults(v int64) *ListEnvironmentsInput { + s.MaxResults = &v + return s +} + +// SetNames sets the Names field's value. +func (s *ListEnvironmentsInput) SetNames(v []*string) *ListEnvironmentsInput { + s.Names = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentsInput) SetNextToken(v string) *ListEnvironmentsInput { + s.NextToken = &v + return s +} + +type ListEnvironmentsOutput struct { + _ struct{} `type:"structure"` + + // Returns a list of summary details for all the environments in your account. + // + // Environments is a required field + Environments []*EnvironmentSummary `locationName:"environments" type:"list" required:"true"` + + // A pagination token that's returned when the response doesn't contain all + // the environments. + 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 ListEnvironmentsOutput) 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 ListEnvironmentsOutput) GoString() string { + return s.String() +} + +// SetEnvironments sets the Environments field's value. +func (s *ListEnvironmentsOutput) SetEnvironments(v []*EnvironmentSummary) *ListEnvironmentsOutput { + s.Environments = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentsOutput) SetNextToken(v string) *ListEnvironmentsOutput { + s.NextToken = &v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The tags for the resource. + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// A subset of the attributes about a log group. In CloudWatch a log group is +// a group of log streams that share the same retention, monitoring, and access +// control settings. +type LogGroupSummary struct { + _ struct{} `type:"structure"` + + // The name of the log group. + // + // LogGroupName is a required field + LogGroupName *string `locationName:"logGroupName" min:"1" type:"string" required:"true"` + + // The type of log. + // + // LogType is a required field + LogType *string `locationName:"logType" 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 LogGroupSummary) 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 LogGroupSummary) GoString() string { + return s.String() +} + +// SetLogGroupName sets the LogGroupName field's value. +func (s *LogGroupSummary) SetLogGroupName(v string) *LogGroupSummary { + s.LogGroupName = &v + return s +} + +// SetLogType sets the LogType field's value. +func (s *LogGroupSummary) SetLogType(v string) *LogGroupSummary { + s.LogType = &v + return s +} + +// The information about the maintenance schedule. +type MaintenanceSchedule struct { + _ struct{} `type:"structure"` + + // The time the scheduled maintenance is to end. + EndTime *time.Time `locationName:"endTime" type:"timestamp"` + + // The time the scheduled maintenance is to start. + 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 MaintenanceSchedule) 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 MaintenanceSchedule) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *MaintenanceSchedule) SetEndTime(v time.Time) *MaintenanceSchedule { + s.EndTime = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *MaintenanceSchedule) SetStartTime(v time.Time) *MaintenanceSchedule { + s.StartTime = &v + return s +} + +// The scheduled maintenance for a runtime engine. +type PendingMaintenance struct { + _ struct{} `type:"structure"` + + // The specific runtime engine that the maintenance schedule applies to. + EngineVersion *string `locationName:"engineVersion" type:"string"` + + // The maintenance schedule for the engine version. + Schedule *MaintenanceSchedule `locationName:"schedule" 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 PendingMaintenance) 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 PendingMaintenance) GoString() string { + return s.String() +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *PendingMaintenance) SetEngineVersion(v string) *PendingMaintenance { + s.EngineVersion = &v + return s +} + +// SetSchedule sets the Schedule field's value. +func (s *PendingMaintenance) SetSchedule(v *MaintenanceSchedule) *PendingMaintenance { + s.Schedule = v + return s +} + +// The primary key for a KSDS data set. +type PrimaryKey struct { + _ struct{} `type:"structure"` + + // A strictly positive integer value representing the length of the primary + // key. + // + // Length is a required field + Length *int64 `locationName:"length" type:"integer" required:"true"` + + // A name for the Primary Key. + Name *string `locationName:"name" type:"string"` + + // A positive integer value representing the offset to mark the start of the + // primary key in the record byte array. + // + // Offset is a required field + Offset *int64 `locationName:"offset" type:"integer" 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 PrimaryKey) 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 PrimaryKey) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PrimaryKey) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PrimaryKey"} + if s.Length == nil { + invalidParams.Add(request.NewErrParamRequired("Length")) + } + if s.Offset == nil { + invalidParams.Add(request.NewErrParamRequired("Offset")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLength sets the Length field's value. +func (s *PrimaryKey) SetLength(v int64) *PrimaryKey { + s.Length = &v + return s +} + +// SetName sets the Name field's value. +func (s *PrimaryKey) SetName(v string) *PrimaryKey { + s.Name = &v + return s +} + +// SetOffset sets the Offset field's value. +func (s *PrimaryKey) SetOffset(v int64) *PrimaryKey { + s.Offset = &v + return s +} + +// The length of the records in the data set. +type RecordLength struct { + _ struct{} `type:"structure"` + + // The maximum record length. In case of fixed, both minimum and maximum are + // the same. + // + // Max is a required field + Max *int64 `locationName:"max" type:"integer" required:"true"` + + // The minimum record length of a record. + // + // Min is a required field + Min *int64 `locationName:"min" type:"integer" 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 RecordLength) 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 RecordLength) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RecordLength) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RecordLength"} + if s.Max == nil { + invalidParams.Add(request.NewErrParamRequired("Max")) + } + if s.Min == nil { + invalidParams.Add(request.NewErrParamRequired("Min")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMax sets the Max field's value. +func (s *RecordLength) SetMax(v int64) *RecordLength { + s.Max = &v + return s +} + +// SetMin sets the Min field's value. +func (s *RecordLength) SetMin(v int64) *RecordLength { + s.Min = &v + return s +} + +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The ID of the missing resource. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The type of the missing resource. + ResourceType *string `locationName:"resourceType" 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 +} + +// A batch job definition contained in a script. +type ScriptBatchJobDefinition struct { + _ struct{} `type:"structure"` + + // The name of the script containing the batch job definition. + // + // ScriptName is a required field + ScriptName *string `locationName:"scriptName" 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 ScriptBatchJobDefinition) 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 ScriptBatchJobDefinition) GoString() string { + return s.String() +} + +// SetScriptName sets the ScriptName field's value. +func (s *ScriptBatchJobDefinition) SetScriptName(v string) *ScriptBatchJobDefinition { + s.ScriptName = &v + return s +} + +// A batch job identifier in which the batch job to run is identified by the +// script name. +type ScriptBatchJobIdentifier struct { + _ struct{} `type:"structure"` + + // The name of the script containing the batch job definition. + // + // ScriptName is a required field + ScriptName *string `locationName:"scriptName" 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 ScriptBatchJobIdentifier) 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 ScriptBatchJobIdentifier) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScriptBatchJobIdentifier) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScriptBatchJobIdentifier"} + if s.ScriptName == nil { + invalidParams.Add(request.NewErrParamRequired("ScriptName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScriptName sets the ScriptName field's value. +func (s *ScriptBatchJobIdentifier) SetScriptName(v string) *ScriptBatchJobIdentifier { + s.ScriptName = &v + return s +} + +// One or more quotas for Amazon Web Services Mainframe Modernization exceeds +// the limit. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The identifier of the exceeded quota. + QuotaCode *string `locationName:"quotaCode" type:"string"` + + // The ID of the resource that is exceeding the quota limit. + ResourceId *string `locationName:"resourceId" type:"string"` + + // The type of resource that is exceeding the quota limit for Amazon Web Services + // Mainframe Modernization. + ResourceType *string `locationName:"resourceType" type:"string"` + + // A code that identifies the service that the exceeded quota belongs to. + ServiceCode *string `locationName:"serviceCode" 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\n%s", s.Code(), s.Message(), s.String()) +} + +// 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 +} + +type StartApplicationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique identifier of the application you want to start. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" 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 StartApplicationInput) 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 StartApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *StartApplicationInput) SetApplicationId(v string) *StartApplicationInput { + s.ApplicationId = &v + return s +} + +type StartApplicationOutput 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 StartApplicationOutput) 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 StartApplicationOutput) GoString() string { + return s.String() +} + +type StartBatchJobInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application associated with this batch job. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The unique identifier of the batch job. + // + // BatchJobIdentifier is a required field + BatchJobIdentifier *BatchJobIdentifier `locationName:"batchJobIdentifier" type:"structure" required:"true"` + + // The collection of batch job parameters. For details about limits for keys + // and values, see Coding variables in JCL (https://www.ibm.com/docs/en/workload-automation/9.3.0?topic=zos-coding-variables-in-jcl). + JobParams map[string]*string `locationName:"jobParams" type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s StartBatchJobInput) 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 StartBatchJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartBatchJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartBatchJobInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.BatchJobIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("BatchJobIdentifier")) + } + if s.BatchJobIdentifier != nil { + if err := s.BatchJobIdentifier.Validate(); err != nil { + invalidParams.AddNested("BatchJobIdentifier", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *StartBatchJobInput) SetApplicationId(v string) *StartBatchJobInput { + s.ApplicationId = &v + return s +} + +// SetBatchJobIdentifier sets the BatchJobIdentifier field's value. +func (s *StartBatchJobInput) SetBatchJobIdentifier(v *BatchJobIdentifier) *StartBatchJobInput { + s.BatchJobIdentifier = v + return s +} + +// SetJobParams sets the JobParams field's value. +func (s *StartBatchJobInput) SetJobParams(v map[string]*string) *StartBatchJobInput { + s.JobParams = v + return s +} + +type StartBatchJobOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of this execution of the batch job. + // + // ExecutionId is a required field + ExecutionId *string `locationName:"executionId" 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 StartBatchJobOutput) 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 StartBatchJobOutput) GoString() string { + return s.String() +} + +// SetExecutionId sets the ExecutionId field's value. +func (s *StartBatchJobOutput) SetExecutionId(v string) *StartBatchJobOutput { + s.ExecutionId = &v + return s +} + +type StopApplicationInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application you want to stop. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // Stopping an application process can take a long time. Setting this parameter + // to true lets you force stop the application so you don't need to wait until + // the process finishes to apply another action on the application. The default + // value is false. + ForceStop *bool `locationName:"forceStop" type:"boolean"` +} + +// 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 StopApplicationInput) 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 StopApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *StopApplicationInput) SetApplicationId(v string) *StopApplicationInput { + s.ApplicationId = &v + return s +} + +// SetForceStop sets the ForceStop field's value. +func (s *StopApplicationInput) SetForceStop(v bool) *StopApplicationInput { + s.ForceStop = &v + return s +} + +type StopApplicationOutput 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 StopApplicationOutput) 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 StopApplicationOutput) GoString() string { + return s.String() +} + +// Defines the storage configuration for an environment. +type StorageConfiguration struct { + _ struct{} `type:"structure"` + + // Defines the storage configuration for an Amazon EFS file system. + Efs *EfsStorageConfiguration `locationName:"efs" type:"structure"` + + // Defines the storage configuration for an Amazon FSx file system. + Fsx *FsxStorageConfiguration `locationName:"fsx" 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 StorageConfiguration) 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 StorageConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StorageConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StorageConfiguration"} + if s.Efs != nil { + if err := s.Efs.Validate(); err != nil { + invalidParams.AddNested("Efs", err.(request.ErrInvalidParams)) + } + } + if s.Fsx != nil { + if err := s.Fsx.Validate(); err != nil { + invalidParams.AddNested("Fsx", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEfs sets the Efs field's value. +func (s *StorageConfiguration) SetEfs(v *EfsStorageConfiguration) *StorageConfiguration { + s.Efs = v + return s +} + +// SetFsx sets the Fsx field's value. +func (s *StorageConfiguration) SetFsx(v *FsxStorageConfiguration) *StorageConfiguration { + s.Fsx = v + return s +} + +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // The tags to add to the resource. + // + // Tags is a required field + Tags map[string]*string `locationName:"tags" type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + +// The number of requests made exceeds the limit. +type ThrottlingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The identifier of the throttled reuqest. + QuotaCode *string `locationName:"quotaCode" type:"string"` + + // The number of seconds to wait before retrying the request. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` + + // The identifier of the service that the throttled request was made to. + ServiceCode *string `locationName:"serviceCode" 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 +} + +type UntagResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Resource Name (ARN) of the resource. + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` + + // The keys of the tags to remove. + // + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + +type UpdateApplicationInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the application you want to update. + // + // ApplicationId is a required field + ApplicationId *string `location:"uri" locationName:"applicationId" type:"string" required:"true"` + + // The current version of the application to update. + // + // CurrentApplicationVersion is a required field + CurrentApplicationVersion *int64 `locationName:"currentApplicationVersion" min:"1" type:"integer" required:"true"` + + // The application definition for this application. You can specify either inline + // JSON or an S3 bucket location. + Definition *Definition `locationName:"definition" type:"structure"` + + // The description of the application to update. + Description *string `locationName:"description" 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 UpdateApplicationInput) 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 UpdateApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} + if s.ApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationId")) + } + if s.ApplicationId != nil && len(*s.ApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationId", 1)) + } + if s.CurrentApplicationVersion == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersion")) + } + if s.CurrentApplicationVersion != nil && *s.CurrentApplicationVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersion", 1)) + } + if s.Definition != nil { + if err := s.Definition.Validate(); err != nil { + invalidParams.AddNested("Definition", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationId sets the ApplicationId field's value. +func (s *UpdateApplicationInput) SetApplicationId(v string) *UpdateApplicationInput { + s.ApplicationId = &v + return s +} + +// SetCurrentApplicationVersion sets the CurrentApplicationVersion field's value. +func (s *UpdateApplicationInput) SetCurrentApplicationVersion(v int64) *UpdateApplicationInput { + s.CurrentApplicationVersion = &v + return s +} + +// SetDefinition sets the Definition field's value. +func (s *UpdateApplicationInput) SetDefinition(v *Definition) *UpdateApplicationInput { + s.Definition = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput { + s.Description = &v + return s +} + +type UpdateApplicationOutput struct { + _ struct{} `type:"structure"` + + // The new version of the application. + // + // ApplicationVersion is a required field + ApplicationVersion *int64 `locationName:"applicationVersion" min:"1" type:"integer" 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 UpdateApplicationOutput) 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 UpdateApplicationOutput) GoString() string { + return s.String() +} + +// SetApplicationVersion sets the ApplicationVersion field's value. +func (s *UpdateApplicationOutput) SetApplicationVersion(v int64) *UpdateApplicationOutput { + s.ApplicationVersion = &v + return s +} + +type UpdateEnvironmentInput struct { + _ struct{} `type:"structure"` + + // Indicates whether to update the environment during the maintenance window. + // The default is false. Currently, Amazon Web Services Mainframe Modernization + // accepts the engineVersion parameter only if applyDuringMaintenanceWindow + // is true. If any parameter other than engineVersion is provided in UpdateEnvironmentRequest, + // it will fail if applyDuringMaintenanceWindow is set to true. + ApplyDuringMaintenanceWindow *bool `locationName:"applyDuringMaintenanceWindow" type:"boolean"` + + // The desired capacity for the environment to update. + DesiredCapacity *int64 `locationName:"desiredCapacity" min:"1" type:"integer"` + + // The version of the runtime engine for the environment. + EngineVersion *string `locationName:"engineVersion" type:"string"` + + // The unique identifier of the runtime environment that you want to update. + // + // EnvironmentId is a required field + EnvironmentId *string `location:"uri" locationName:"environmentId" type:"string" required:"true"` + + // The instance type for the environment to update. + InstanceType *string `locationName:"instanceType" type:"string"` + + // Configures a desired maintenance window for the environment. If you do not + // provide a value, a random system-generated value will be assigned. + PreferredMaintenanceWindow *string `locationName:"preferredMaintenanceWindow" 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 UpdateEnvironmentInput) 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 UpdateEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateEnvironmentInput"} + if s.DesiredCapacity != nil && *s.DesiredCapacity < 1 { + invalidParams.Add(request.NewErrParamMinValue("DesiredCapacity", 1)) + } + if s.EnvironmentId == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentId")) + } + if s.EnvironmentId != nil && len(*s.EnvironmentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplyDuringMaintenanceWindow sets the ApplyDuringMaintenanceWindow field's value. +func (s *UpdateEnvironmentInput) SetApplyDuringMaintenanceWindow(v bool) *UpdateEnvironmentInput { + s.ApplyDuringMaintenanceWindow = &v + return s +} + +// SetDesiredCapacity sets the DesiredCapacity field's value. +func (s *UpdateEnvironmentInput) SetDesiredCapacity(v int64) *UpdateEnvironmentInput { + s.DesiredCapacity = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *UpdateEnvironmentInput) SetEngineVersion(v string) *UpdateEnvironmentInput { + s.EngineVersion = &v + return s +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *UpdateEnvironmentInput) SetEnvironmentId(v string) *UpdateEnvironmentInput { + s.EnvironmentId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *UpdateEnvironmentInput) SetInstanceType(v string) *UpdateEnvironmentInput { + s.InstanceType = &v + return s +} + +// SetPreferredMaintenanceWindow sets the PreferredMaintenanceWindow field's value. +func (s *UpdateEnvironmentInput) SetPreferredMaintenanceWindow(v string) *UpdateEnvironmentInput { + s.PreferredMaintenanceWindow = &v + return s +} + +type UpdateEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the runtime environment that was updated. + // + // EnvironmentId is a required field + EnvironmentId *string `locationName:"environmentId" 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 UpdateEnvironmentOutput) 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 UpdateEnvironmentOutput) GoString() string { + return s.String() +} + +// SetEnvironmentId sets the EnvironmentId field's value. +func (s *UpdateEnvironmentOutput) SetEnvironmentId(v string) *UpdateEnvironmentOutput { + s.EnvironmentId = &v + return s +} + +// One or more parameters provided in the request is not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The list of fields that failed service validation. + FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"` + + Message_ *string `locationName:"message" type:"string"` + + // The reason why it failed service validation. + Reason *string `locationName:"reason" type:"string" enum:"ValidationExceptionReason"` +} + +// 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\n%s", s.Code(), s.Message(), s.String()) +} + +// 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 +} + +// Contains information about a validation exception field. +type ValidationExceptionField struct { + _ struct{} `type:"structure"` + + // The message of the exception field. + // + // Message is a required field + Message *string `locationName:"message" type:"string" required:"true"` + + // The name of the exception field. + // + // Name is a required field + Name *string `locationName:"name" 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 ValidationExceptionField) 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 ValidationExceptionField) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField { + s.Name = &v + return s +} + +// The attributes of a VSAM type data set. +type VsamAttributes struct { + _ struct{} `type:"structure"` + + // The alternate key definitions, if any. A legacy dataset might not have any + // alternate key defined, but if those alternate keys definitions exist, provide + // them as some applications will make use of them. + AlternateKeys []*AlternateKey `locationName:"alternateKeys" type:"list"` + + // Indicates whether indexes for this dataset are stored as compressed values. + // If you have a large data set (typically > 100 Mb), consider setting this + // flag to True. + Compressed *bool `locationName:"compressed" type:"boolean"` + + // The character set used by the data set. Can be ASCII, EBCDIC, or unknown. + Encoding *string `locationName:"encoding" type:"string"` + + // The record format of the data set. + // + // Format is a required field + Format *string `locationName:"format" type:"string" required:"true"` + + // The primary key of the data set. + PrimaryKey *PrimaryKey `locationName:"primaryKey" 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 VsamAttributes) 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 VsamAttributes) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VsamAttributes) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VsamAttributes"} + if s.Format == nil { + invalidParams.Add(request.NewErrParamRequired("Format")) + } + if s.AlternateKeys != nil { + for i, v := range s.AlternateKeys { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AlternateKeys", i), err.(request.ErrInvalidParams)) + } + } + } + if s.PrimaryKey != nil { + if err := s.PrimaryKey.Validate(); err != nil { + invalidParams.AddNested("PrimaryKey", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlternateKeys sets the AlternateKeys field's value. +func (s *VsamAttributes) SetAlternateKeys(v []*AlternateKey) *VsamAttributes { + s.AlternateKeys = v + return s +} + +// SetCompressed sets the Compressed field's value. +func (s *VsamAttributes) SetCompressed(v bool) *VsamAttributes { + s.Compressed = &v + return s +} + +// SetEncoding sets the Encoding field's value. +func (s *VsamAttributes) SetEncoding(v string) *VsamAttributes { + s.Encoding = &v + return s +} + +// SetFormat sets the Format field's value. +func (s *VsamAttributes) SetFormat(v string) *VsamAttributes { + s.Format = &v + return s +} + +// SetPrimaryKey sets the PrimaryKey field's value. +func (s *VsamAttributes) SetPrimaryKey(v *PrimaryKey) *VsamAttributes { + s.PrimaryKey = v + return s +} + +// The attributes of a VSAM type data set. +type VsamDetailAttributes struct { + _ struct{} `type:"structure"` + + // The alternate key definitions, if any. A legacy dataset might not have any + // alternate key defined, but if those alternate keys definitions exist, provide + // them as some applications will make use of them. + AlternateKeys []*AlternateKey `locationName:"alternateKeys" type:"list"` + + // If set to True, enforces loading the data set into cache before it’s used + // by the application. + CacheAtStartup *bool `locationName:"cacheAtStartup" type:"boolean"` + + // Indicates whether indexes for this dataset are stored as compressed values. + // If you have a large data set (typically > 100 Mb), consider setting this + // flag to True. + Compressed *bool `locationName:"compressed" type:"boolean"` + + // The character set used by the data set. Can be ASCII, EBCDIC, or unknown. + Encoding *string `locationName:"encoding" type:"string"` + + // The primary key of the data set. + PrimaryKey *PrimaryKey `locationName:"primaryKey" type:"structure"` + + // The record format of the data set. + RecordFormat *string `locationName:"recordFormat" 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 VsamDetailAttributes) 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 VsamDetailAttributes) GoString() string { + return s.String() +} + +// SetAlternateKeys sets the AlternateKeys field's value. +func (s *VsamDetailAttributes) SetAlternateKeys(v []*AlternateKey) *VsamDetailAttributes { + s.AlternateKeys = v + return s +} + +// SetCacheAtStartup sets the CacheAtStartup field's value. +func (s *VsamDetailAttributes) SetCacheAtStartup(v bool) *VsamDetailAttributes { + s.CacheAtStartup = &v + return s +} + +// SetCompressed sets the Compressed field's value. +func (s *VsamDetailAttributes) SetCompressed(v bool) *VsamDetailAttributes { + s.Compressed = &v + return s +} + +// SetEncoding sets the Encoding field's value. +func (s *VsamDetailAttributes) SetEncoding(v string) *VsamDetailAttributes { + s.Encoding = &v + return s +} + +// SetPrimaryKey sets the PrimaryKey field's value. +func (s *VsamDetailAttributes) SetPrimaryKey(v *PrimaryKey) *VsamDetailAttributes { + s.PrimaryKey = v + return s +} + +// SetRecordFormat sets the RecordFormat field's value. +func (s *VsamDetailAttributes) SetRecordFormat(v string) *VsamDetailAttributes { + s.RecordFormat = &v + return s +} + +const ( + // ApplicationDeploymentLifecycleDeploying is a ApplicationDeploymentLifecycle enum value + ApplicationDeploymentLifecycleDeploying = "Deploying" + + // ApplicationDeploymentLifecycleDeployed is a ApplicationDeploymentLifecycle enum value + ApplicationDeploymentLifecycleDeployed = "Deployed" +) + +// ApplicationDeploymentLifecycle_Values returns all elements of the ApplicationDeploymentLifecycle enum +func ApplicationDeploymentLifecycle_Values() []string { + return []string{ + ApplicationDeploymentLifecycleDeploying, + ApplicationDeploymentLifecycleDeployed, + } +} + +const ( + // ApplicationLifecycleCreating is a ApplicationLifecycle enum value + ApplicationLifecycleCreating = "Creating" + + // ApplicationLifecycleCreated is a ApplicationLifecycle enum value + ApplicationLifecycleCreated = "Created" + + // ApplicationLifecycleAvailable is a ApplicationLifecycle enum value + ApplicationLifecycleAvailable = "Available" + + // ApplicationLifecycleReady is a ApplicationLifecycle enum value + ApplicationLifecycleReady = "Ready" + + // ApplicationLifecycleStarting is a ApplicationLifecycle enum value + ApplicationLifecycleStarting = "Starting" + + // ApplicationLifecycleRunning is a ApplicationLifecycle enum value + ApplicationLifecycleRunning = "Running" + + // ApplicationLifecycleStopping is a ApplicationLifecycle enum value + ApplicationLifecycleStopping = "Stopping" + + // ApplicationLifecycleStopped is a ApplicationLifecycle enum value + ApplicationLifecycleStopped = "Stopped" + + // ApplicationLifecycleFailed is a ApplicationLifecycle enum value + ApplicationLifecycleFailed = "Failed" + + // ApplicationLifecycleDeleting is a ApplicationLifecycle enum value + ApplicationLifecycleDeleting = "Deleting" +) + +// ApplicationLifecycle_Values returns all elements of the ApplicationLifecycle enum +func ApplicationLifecycle_Values() []string { + return []string{ + ApplicationLifecycleCreating, + ApplicationLifecycleCreated, + ApplicationLifecycleAvailable, + ApplicationLifecycleReady, + ApplicationLifecycleStarting, + ApplicationLifecycleRunning, + ApplicationLifecycleStopping, + ApplicationLifecycleStopped, + ApplicationLifecycleFailed, + ApplicationLifecycleDeleting, + } +} + +const ( + // ApplicationVersionLifecycleCreating is a ApplicationVersionLifecycle enum value + ApplicationVersionLifecycleCreating = "Creating" + + // ApplicationVersionLifecycleAvailable is a ApplicationVersionLifecycle enum value + ApplicationVersionLifecycleAvailable = "Available" + + // ApplicationVersionLifecycleFailed is a ApplicationVersionLifecycle enum value + ApplicationVersionLifecycleFailed = "Failed" +) + +// ApplicationVersionLifecycle_Values returns all elements of the ApplicationVersionLifecycle enum +func ApplicationVersionLifecycle_Values() []string { + return []string{ + ApplicationVersionLifecycleCreating, + ApplicationVersionLifecycleAvailable, + ApplicationVersionLifecycleFailed, + } +} + +const ( + // BatchJobExecutionStatusSubmitting is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusSubmitting = "Submitting" + + // BatchJobExecutionStatusHolding is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusHolding = "Holding" + + // BatchJobExecutionStatusDispatching is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusDispatching = "Dispatching" + + // BatchJobExecutionStatusRunning is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusRunning = "Running" + + // BatchJobExecutionStatusCancelling is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusCancelling = "Cancelling" + + // BatchJobExecutionStatusCancelled is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusCancelled = "Cancelled" + + // BatchJobExecutionStatusSucceeded is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusSucceeded = "Succeeded" + + // BatchJobExecutionStatusFailed is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusFailed = "Failed" + + // BatchJobExecutionStatusSucceededWithWarning is a BatchJobExecutionStatus enum value + BatchJobExecutionStatusSucceededWithWarning = "Succeeded With Warning" +) + +// BatchJobExecutionStatus_Values returns all elements of the BatchJobExecutionStatus enum +func BatchJobExecutionStatus_Values() []string { + return []string{ + BatchJobExecutionStatusSubmitting, + BatchJobExecutionStatusHolding, + BatchJobExecutionStatusDispatching, + BatchJobExecutionStatusRunning, + BatchJobExecutionStatusCancelling, + BatchJobExecutionStatusCancelled, + BatchJobExecutionStatusSucceeded, + BatchJobExecutionStatusFailed, + BatchJobExecutionStatusSucceededWithWarning, + } +} + +const ( + // BatchJobTypeVse is a BatchJobType enum value + BatchJobTypeVse = "VSE" + + // BatchJobTypeJes2 is a BatchJobType enum value + BatchJobTypeJes2 = "JES2" + + // BatchJobTypeJes3 is a BatchJobType enum value + BatchJobTypeJes3 = "JES3" +) + +// BatchJobType_Values returns all elements of the BatchJobType enum +func BatchJobType_Values() []string { + return []string{ + BatchJobTypeVse, + BatchJobTypeJes2, + BatchJobTypeJes3, + } +} + +const ( + // DataSetTaskLifecycleCreating is a DataSetTaskLifecycle enum value + DataSetTaskLifecycleCreating = "Creating" + + // DataSetTaskLifecycleRunning is a DataSetTaskLifecycle enum value + DataSetTaskLifecycleRunning = "Running" + + // DataSetTaskLifecycleCompleted is a DataSetTaskLifecycle enum value + DataSetTaskLifecycleCompleted = "Completed" +) + +// DataSetTaskLifecycle_Values returns all elements of the DataSetTaskLifecycle enum +func DataSetTaskLifecycle_Values() []string { + return []string{ + DataSetTaskLifecycleCreating, + DataSetTaskLifecycleRunning, + DataSetTaskLifecycleCompleted, + } +} + +const ( + // DeploymentLifecycleDeploying is a DeploymentLifecycle enum value + DeploymentLifecycleDeploying = "Deploying" + + // DeploymentLifecycleSucceeded is a DeploymentLifecycle enum value + DeploymentLifecycleSucceeded = "Succeeded" + + // DeploymentLifecycleFailed is a DeploymentLifecycle enum value + DeploymentLifecycleFailed = "Failed" +) + +// DeploymentLifecycle_Values returns all elements of the DeploymentLifecycle enum +func DeploymentLifecycle_Values() []string { + return []string{ + DeploymentLifecycleDeploying, + DeploymentLifecycleSucceeded, + DeploymentLifecycleFailed, + } +} + +const ( + // EngineTypeMicrofocus is a EngineType enum value + EngineTypeMicrofocus = "microfocus" + + // EngineTypeBluage is a EngineType enum value + EngineTypeBluage = "bluage" +) + +// EngineType_Values returns all elements of the EngineType enum +func EngineType_Values() []string { + return []string{ + EngineTypeMicrofocus, + EngineTypeBluage, + } +} + +const ( + // EnvironmentLifecycleCreating is a EnvironmentLifecycle enum value + EnvironmentLifecycleCreating = "Creating" + + // EnvironmentLifecycleAvailable is a EnvironmentLifecycle enum value + EnvironmentLifecycleAvailable = "Available" + + // EnvironmentLifecycleDeleting is a EnvironmentLifecycle enum value + EnvironmentLifecycleDeleting = "Deleting" + + // EnvironmentLifecycleFailed is a EnvironmentLifecycle enum value + EnvironmentLifecycleFailed = "Failed" +) + +// EnvironmentLifecycle_Values returns all elements of the EnvironmentLifecycle enum +func EnvironmentLifecycle_Values() []string { + return []string{ + EnvironmentLifecycleCreating, + EnvironmentLifecycleAvailable, + EnvironmentLifecycleDeleting, + EnvironmentLifecycleFailed, + } +} + +const ( + // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value + ValidationExceptionReasonUnknownOperation = "unknownOperation" + + // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value + ValidationExceptionReasonCannotParse = "cannotParse" + + // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value + ValidationExceptionReasonFieldValidationFailed = "fieldValidationFailed" + + // ValidationExceptionReasonOther is a ValidationExceptionReason enum value + ValidationExceptionReasonOther = "other" +) + +// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum +func ValidationExceptionReason_Values() []string { + return []string{ + ValidationExceptionReasonUnknownOperation, + ValidationExceptionReasonCannotParse, + ValidationExceptionReasonFieldValidationFailed, + ValidationExceptionReasonOther, + } +} diff --git a/service/m2/doc.go b/service/m2/doc.go new file mode 100644 index 00000000000..60f395f10bb --- /dev/null +++ b/service/m2/doc.go @@ -0,0 +1,33 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package m2 provides the client and types for making API +// requests to AWSMainframeModernization. +// +// Amazon Web Services Mainframe Modernization provides tools and resources +// to help you plan and implement migration and modernization from mainframes +// to Amazon Web Services managed runtime environments. It provides tools for +// analyzing existing mainframe applications, developing or updating mainframe +// applications using COBOL or PL/I, and implementing an automated pipeline +// for continuous integration and continuous delivery (CI/CD) of the applications. +// +// See https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28 for more information on this service. +// +// See m2 package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/m2/ +// +// Using the Client +// +// To contact AWSMainframeModernization 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 AWSMainframeModernization client M2 for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/m2/#New +package m2 diff --git a/service/m2/errors.go b/service/m2/errors.go new file mode 100644 index 00000000000..e1e45b999a3 --- /dev/null +++ b/service/m2/errors.go @@ -0,0 +1,63 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package m2 + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // The account or role doesn't have the right permissions to make the request. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The parameters provided in the request conflict with existing resources. + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // An unexpected error occurred during the processing of the request. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource was not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // One or more quotas for Amazon Web Services Mainframe Modernization exceeds + // the limit. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The number of requests made exceeds the limit. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // One or more parameters provided in the request is not valid. + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/m2/m2iface/interface.go b/service/m2/m2iface/interface.go new file mode 100644 index 00000000000..270e762c7c0 --- /dev/null +++ b/service/m2/m2iface/interface.go @@ -0,0 +1,219 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package m2iface provides an interface to enable mocking the AWSMainframeModernization 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 m2iface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/m2" +) + +// M2API provides an interface to enable mocking the +// m2.M2 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 +// // AWSMainframeModernization. +// func myFunc(svc m2iface.M2API) bool { +// // Make svc.CancelBatchJobExecution request +// } +// +// func main() { +// sess := session.New() +// svc := m2.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockM2Client struct { +// m2iface.M2API +// } +// func (m *mockM2Client) CancelBatchJobExecution(input *m2.CancelBatchJobExecutionInput) (*m2.CancelBatchJobExecutionOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockM2Client{} +// +// 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 M2API interface { + CancelBatchJobExecution(*m2.CancelBatchJobExecutionInput) (*m2.CancelBatchJobExecutionOutput, error) + CancelBatchJobExecutionWithContext(aws.Context, *m2.CancelBatchJobExecutionInput, ...request.Option) (*m2.CancelBatchJobExecutionOutput, error) + CancelBatchJobExecutionRequest(*m2.CancelBatchJobExecutionInput) (*request.Request, *m2.CancelBatchJobExecutionOutput) + + CreateApplication(*m2.CreateApplicationInput) (*m2.CreateApplicationOutput, error) + CreateApplicationWithContext(aws.Context, *m2.CreateApplicationInput, ...request.Option) (*m2.CreateApplicationOutput, error) + CreateApplicationRequest(*m2.CreateApplicationInput) (*request.Request, *m2.CreateApplicationOutput) + + CreateDataSetImportTask(*m2.CreateDataSetImportTaskInput) (*m2.CreateDataSetImportTaskOutput, error) + CreateDataSetImportTaskWithContext(aws.Context, *m2.CreateDataSetImportTaskInput, ...request.Option) (*m2.CreateDataSetImportTaskOutput, error) + CreateDataSetImportTaskRequest(*m2.CreateDataSetImportTaskInput) (*request.Request, *m2.CreateDataSetImportTaskOutput) + + CreateDeployment(*m2.CreateDeploymentInput) (*m2.CreateDeploymentOutput, error) + CreateDeploymentWithContext(aws.Context, *m2.CreateDeploymentInput, ...request.Option) (*m2.CreateDeploymentOutput, error) + CreateDeploymentRequest(*m2.CreateDeploymentInput) (*request.Request, *m2.CreateDeploymentOutput) + + CreateEnvironment(*m2.CreateEnvironmentInput) (*m2.CreateEnvironmentOutput, error) + CreateEnvironmentWithContext(aws.Context, *m2.CreateEnvironmentInput, ...request.Option) (*m2.CreateEnvironmentOutput, error) + CreateEnvironmentRequest(*m2.CreateEnvironmentInput) (*request.Request, *m2.CreateEnvironmentOutput) + + DeleteApplication(*m2.DeleteApplicationInput) (*m2.DeleteApplicationOutput, error) + DeleteApplicationWithContext(aws.Context, *m2.DeleteApplicationInput, ...request.Option) (*m2.DeleteApplicationOutput, error) + DeleteApplicationRequest(*m2.DeleteApplicationInput) (*request.Request, *m2.DeleteApplicationOutput) + + DeleteApplicationFromEnvironment(*m2.DeleteApplicationFromEnvironmentInput) (*m2.DeleteApplicationFromEnvironmentOutput, error) + DeleteApplicationFromEnvironmentWithContext(aws.Context, *m2.DeleteApplicationFromEnvironmentInput, ...request.Option) (*m2.DeleteApplicationFromEnvironmentOutput, error) + DeleteApplicationFromEnvironmentRequest(*m2.DeleteApplicationFromEnvironmentInput) (*request.Request, *m2.DeleteApplicationFromEnvironmentOutput) + + DeleteEnvironment(*m2.DeleteEnvironmentInput) (*m2.DeleteEnvironmentOutput, error) + DeleteEnvironmentWithContext(aws.Context, *m2.DeleteEnvironmentInput, ...request.Option) (*m2.DeleteEnvironmentOutput, error) + DeleteEnvironmentRequest(*m2.DeleteEnvironmentInput) (*request.Request, *m2.DeleteEnvironmentOutput) + + GetApplication(*m2.GetApplicationInput) (*m2.GetApplicationOutput, error) + GetApplicationWithContext(aws.Context, *m2.GetApplicationInput, ...request.Option) (*m2.GetApplicationOutput, error) + GetApplicationRequest(*m2.GetApplicationInput) (*request.Request, *m2.GetApplicationOutput) + + GetApplicationVersion(*m2.GetApplicationVersionInput) (*m2.GetApplicationVersionOutput, error) + GetApplicationVersionWithContext(aws.Context, *m2.GetApplicationVersionInput, ...request.Option) (*m2.GetApplicationVersionOutput, error) + GetApplicationVersionRequest(*m2.GetApplicationVersionInput) (*request.Request, *m2.GetApplicationVersionOutput) + + GetBatchJobExecution(*m2.GetBatchJobExecutionInput) (*m2.GetBatchJobExecutionOutput, error) + GetBatchJobExecutionWithContext(aws.Context, *m2.GetBatchJobExecutionInput, ...request.Option) (*m2.GetBatchJobExecutionOutput, error) + GetBatchJobExecutionRequest(*m2.GetBatchJobExecutionInput) (*request.Request, *m2.GetBatchJobExecutionOutput) + + GetDataSetDetails(*m2.GetDataSetDetailsInput) (*m2.GetDataSetDetailsOutput, error) + GetDataSetDetailsWithContext(aws.Context, *m2.GetDataSetDetailsInput, ...request.Option) (*m2.GetDataSetDetailsOutput, error) + GetDataSetDetailsRequest(*m2.GetDataSetDetailsInput) (*request.Request, *m2.GetDataSetDetailsOutput) + + GetDataSetImportTask(*m2.GetDataSetImportTaskInput) (*m2.GetDataSetImportTaskOutput, error) + GetDataSetImportTaskWithContext(aws.Context, *m2.GetDataSetImportTaskInput, ...request.Option) (*m2.GetDataSetImportTaskOutput, error) + GetDataSetImportTaskRequest(*m2.GetDataSetImportTaskInput) (*request.Request, *m2.GetDataSetImportTaskOutput) + + GetDeployment(*m2.GetDeploymentInput) (*m2.GetDeploymentOutput, error) + GetDeploymentWithContext(aws.Context, *m2.GetDeploymentInput, ...request.Option) (*m2.GetDeploymentOutput, error) + GetDeploymentRequest(*m2.GetDeploymentInput) (*request.Request, *m2.GetDeploymentOutput) + + GetEnvironment(*m2.GetEnvironmentInput) (*m2.GetEnvironmentOutput, error) + GetEnvironmentWithContext(aws.Context, *m2.GetEnvironmentInput, ...request.Option) (*m2.GetEnvironmentOutput, error) + GetEnvironmentRequest(*m2.GetEnvironmentInput) (*request.Request, *m2.GetEnvironmentOutput) + + ListApplicationVersions(*m2.ListApplicationVersionsInput) (*m2.ListApplicationVersionsOutput, error) + ListApplicationVersionsWithContext(aws.Context, *m2.ListApplicationVersionsInput, ...request.Option) (*m2.ListApplicationVersionsOutput, error) + ListApplicationVersionsRequest(*m2.ListApplicationVersionsInput) (*request.Request, *m2.ListApplicationVersionsOutput) + + ListApplicationVersionsPages(*m2.ListApplicationVersionsInput, func(*m2.ListApplicationVersionsOutput, bool) bool) error + ListApplicationVersionsPagesWithContext(aws.Context, *m2.ListApplicationVersionsInput, func(*m2.ListApplicationVersionsOutput, bool) bool, ...request.Option) error + + ListApplications(*m2.ListApplicationsInput) (*m2.ListApplicationsOutput, error) + ListApplicationsWithContext(aws.Context, *m2.ListApplicationsInput, ...request.Option) (*m2.ListApplicationsOutput, error) + ListApplicationsRequest(*m2.ListApplicationsInput) (*request.Request, *m2.ListApplicationsOutput) + + ListApplicationsPages(*m2.ListApplicationsInput, func(*m2.ListApplicationsOutput, bool) bool) error + ListApplicationsPagesWithContext(aws.Context, *m2.ListApplicationsInput, func(*m2.ListApplicationsOutput, bool) bool, ...request.Option) error + + ListBatchJobDefinitions(*m2.ListBatchJobDefinitionsInput) (*m2.ListBatchJobDefinitionsOutput, error) + ListBatchJobDefinitionsWithContext(aws.Context, *m2.ListBatchJobDefinitionsInput, ...request.Option) (*m2.ListBatchJobDefinitionsOutput, error) + ListBatchJobDefinitionsRequest(*m2.ListBatchJobDefinitionsInput) (*request.Request, *m2.ListBatchJobDefinitionsOutput) + + ListBatchJobDefinitionsPages(*m2.ListBatchJobDefinitionsInput, func(*m2.ListBatchJobDefinitionsOutput, bool) bool) error + ListBatchJobDefinitionsPagesWithContext(aws.Context, *m2.ListBatchJobDefinitionsInput, func(*m2.ListBatchJobDefinitionsOutput, bool) bool, ...request.Option) error + + ListBatchJobExecutions(*m2.ListBatchJobExecutionsInput) (*m2.ListBatchJobExecutionsOutput, error) + ListBatchJobExecutionsWithContext(aws.Context, *m2.ListBatchJobExecutionsInput, ...request.Option) (*m2.ListBatchJobExecutionsOutput, error) + ListBatchJobExecutionsRequest(*m2.ListBatchJobExecutionsInput) (*request.Request, *m2.ListBatchJobExecutionsOutput) + + ListBatchJobExecutionsPages(*m2.ListBatchJobExecutionsInput, func(*m2.ListBatchJobExecutionsOutput, bool) bool) error + ListBatchJobExecutionsPagesWithContext(aws.Context, *m2.ListBatchJobExecutionsInput, func(*m2.ListBatchJobExecutionsOutput, bool) bool, ...request.Option) error + + ListDataSetImportHistory(*m2.ListDataSetImportHistoryInput) (*m2.ListDataSetImportHistoryOutput, error) + ListDataSetImportHistoryWithContext(aws.Context, *m2.ListDataSetImportHistoryInput, ...request.Option) (*m2.ListDataSetImportHistoryOutput, error) + ListDataSetImportHistoryRequest(*m2.ListDataSetImportHistoryInput) (*request.Request, *m2.ListDataSetImportHistoryOutput) + + ListDataSetImportHistoryPages(*m2.ListDataSetImportHistoryInput, func(*m2.ListDataSetImportHistoryOutput, bool) bool) error + ListDataSetImportHistoryPagesWithContext(aws.Context, *m2.ListDataSetImportHistoryInput, func(*m2.ListDataSetImportHistoryOutput, bool) bool, ...request.Option) error + + ListDataSets(*m2.ListDataSetsInput) (*m2.ListDataSetsOutput, error) + ListDataSetsWithContext(aws.Context, *m2.ListDataSetsInput, ...request.Option) (*m2.ListDataSetsOutput, error) + ListDataSetsRequest(*m2.ListDataSetsInput) (*request.Request, *m2.ListDataSetsOutput) + + ListDataSetsPages(*m2.ListDataSetsInput, func(*m2.ListDataSetsOutput, bool) bool) error + ListDataSetsPagesWithContext(aws.Context, *m2.ListDataSetsInput, func(*m2.ListDataSetsOutput, bool) bool, ...request.Option) error + + ListDeployments(*m2.ListDeploymentsInput) (*m2.ListDeploymentsOutput, error) + ListDeploymentsWithContext(aws.Context, *m2.ListDeploymentsInput, ...request.Option) (*m2.ListDeploymentsOutput, error) + ListDeploymentsRequest(*m2.ListDeploymentsInput) (*request.Request, *m2.ListDeploymentsOutput) + + ListDeploymentsPages(*m2.ListDeploymentsInput, func(*m2.ListDeploymentsOutput, bool) bool) error + ListDeploymentsPagesWithContext(aws.Context, *m2.ListDeploymentsInput, func(*m2.ListDeploymentsOutput, bool) bool, ...request.Option) error + + ListEngineVersions(*m2.ListEngineVersionsInput) (*m2.ListEngineVersionsOutput, error) + ListEngineVersionsWithContext(aws.Context, *m2.ListEngineVersionsInput, ...request.Option) (*m2.ListEngineVersionsOutput, error) + ListEngineVersionsRequest(*m2.ListEngineVersionsInput) (*request.Request, *m2.ListEngineVersionsOutput) + + ListEngineVersionsPages(*m2.ListEngineVersionsInput, func(*m2.ListEngineVersionsOutput, bool) bool) error + ListEngineVersionsPagesWithContext(aws.Context, *m2.ListEngineVersionsInput, func(*m2.ListEngineVersionsOutput, bool) bool, ...request.Option) error + + ListEnvironments(*m2.ListEnvironmentsInput) (*m2.ListEnvironmentsOutput, error) + ListEnvironmentsWithContext(aws.Context, *m2.ListEnvironmentsInput, ...request.Option) (*m2.ListEnvironmentsOutput, error) + ListEnvironmentsRequest(*m2.ListEnvironmentsInput) (*request.Request, *m2.ListEnvironmentsOutput) + + ListEnvironmentsPages(*m2.ListEnvironmentsInput, func(*m2.ListEnvironmentsOutput, bool) bool) error + ListEnvironmentsPagesWithContext(aws.Context, *m2.ListEnvironmentsInput, func(*m2.ListEnvironmentsOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*m2.ListTagsForResourceInput) (*m2.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *m2.ListTagsForResourceInput, ...request.Option) (*m2.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*m2.ListTagsForResourceInput) (*request.Request, *m2.ListTagsForResourceOutput) + + StartApplication(*m2.StartApplicationInput) (*m2.StartApplicationOutput, error) + StartApplicationWithContext(aws.Context, *m2.StartApplicationInput, ...request.Option) (*m2.StartApplicationOutput, error) + StartApplicationRequest(*m2.StartApplicationInput) (*request.Request, *m2.StartApplicationOutput) + + StartBatchJob(*m2.StartBatchJobInput) (*m2.StartBatchJobOutput, error) + StartBatchJobWithContext(aws.Context, *m2.StartBatchJobInput, ...request.Option) (*m2.StartBatchJobOutput, error) + StartBatchJobRequest(*m2.StartBatchJobInput) (*request.Request, *m2.StartBatchJobOutput) + + StopApplication(*m2.StopApplicationInput) (*m2.StopApplicationOutput, error) + StopApplicationWithContext(aws.Context, *m2.StopApplicationInput, ...request.Option) (*m2.StopApplicationOutput, error) + StopApplicationRequest(*m2.StopApplicationInput) (*request.Request, *m2.StopApplicationOutput) + + TagResource(*m2.TagResourceInput) (*m2.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *m2.TagResourceInput, ...request.Option) (*m2.TagResourceOutput, error) + TagResourceRequest(*m2.TagResourceInput) (*request.Request, *m2.TagResourceOutput) + + UntagResource(*m2.UntagResourceInput) (*m2.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *m2.UntagResourceInput, ...request.Option) (*m2.UntagResourceOutput, error) + UntagResourceRequest(*m2.UntagResourceInput) (*request.Request, *m2.UntagResourceOutput) + + UpdateApplication(*m2.UpdateApplicationInput) (*m2.UpdateApplicationOutput, error) + UpdateApplicationWithContext(aws.Context, *m2.UpdateApplicationInput, ...request.Option) (*m2.UpdateApplicationOutput, error) + UpdateApplicationRequest(*m2.UpdateApplicationInput) (*request.Request, *m2.UpdateApplicationOutput) + + UpdateEnvironment(*m2.UpdateEnvironmentInput) (*m2.UpdateEnvironmentOutput, error) + UpdateEnvironmentWithContext(aws.Context, *m2.UpdateEnvironmentInput, ...request.Option) (*m2.UpdateEnvironmentOutput, error) + UpdateEnvironmentRequest(*m2.UpdateEnvironmentInput) (*request.Request, *m2.UpdateEnvironmentOutput) +} + +var _ M2API = (*m2.M2)(nil) diff --git a/service/m2/service.go b/service/m2/service.go new file mode 100644 index 00000000000..1b1151aacce --- /dev/null +++ b/service/m2/service.go @@ -0,0 +1,105 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package m2 + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// M2 provides the API operation methods for making requests to +// AWSMainframeModernization. See this package's package overview docs +// for details on the service. +// +// M2 methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type M2 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 = "m2" // Name of service. + EndpointsID = ServiceName // ID to lookup a service endpoint with. + ServiceID = "m2" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the M2 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 M2 client from just a session. +// svc := m2.New(mySession) +// +// // Create a M2 client with additional configuration +// svc := m2.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *M2 { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "m2" + } + 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) *M2 { + svc := &M2{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2021-04-28", + ResolvedRegion: resolvedRegion, + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a M2 operation and runs any +// custom request initialization. +func (c *M2) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/neptune/api.go b/service/neptune/api.go index 88b9872e71c..01d01efa217 100644 --- a/service/neptune/api.go +++ b/service/neptune/api.go @@ -740,6 +740,14 @@ func (c *Neptune) CreateDBClusterRequest(input *CreateDBClusterInput) (req *requ // Subnets in the DB subnet group should cover at least two Availability Zones // unless there is only one Availability Zone. // +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// The GlobalClusterIdentifier doesn't refer to an existing global database +// cluster. +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// The global cluster is in an invalid state and can't perform the requested +// operation. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/CreateDBCluster func (c *Neptune) CreateDBCluster(input *CreateDBClusterInput) (*CreateDBClusterOutput, error) { req, out := c.CreateDBClusterRequest(input) @@ -1508,6 +1516,104 @@ func (c *Neptune) CreateEventSubscriptionWithContext(ctx aws.Context, input *Cre return out, req.Send() } +const opCreateGlobalCluster = "CreateGlobalCluster" + +// CreateGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the CreateGlobalCluster 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 CreateGlobalCluster for more information on using the CreateGlobalCluster +// 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 CreateGlobalClusterRequest method. +// req, resp := client.CreateGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/CreateGlobalCluster +func (c *Neptune) CreateGlobalClusterRequest(input *CreateGlobalClusterInput) (req *request.Request, output *CreateGlobalClusterOutput) { + op := &request.Operation{ + Name: opCreateGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateGlobalClusterInput{} + } + + output = &CreateGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateGlobalCluster API operation for Amazon Neptune. +// +// Creates a Neptune global database spread across multiple Amazon Regions. +// The global database contains a single primary cluster with read-write capability, +// and read-only secondary clusters that receive data from the primary cluster +// through high-speed replication performed by the Neptune storage subsystem. +// +// You can create a global database that is initially empty, and then add a +// primary cluster and secondary clusters to it, or you can specify an existing +// Neptune cluster during the create operation to become the primary cluster +// of the global database. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Neptune's +// API operation CreateGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterAlreadyExistsFault "GlobalClusterAlreadyExistsFault" +// The GlobalClusterIdentifier already exists. Choose a new global database +// identifier (unique name) to create a new global database cluster. +// +// * ErrCodeGlobalClusterQuotaExceededFault "GlobalClusterQuotaExceededFault" +// The number of global database clusters for this account is already at the +// maximum allowed. +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The DB cluster is not in a valid state. +// +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/CreateGlobalCluster +func (c *Neptune) CreateGlobalCluster(input *CreateGlobalClusterInput) (*CreateGlobalClusterOutput, error) { + req, out := c.CreateGlobalClusterRequest(input) + return out, req.Send() +} + +// CreateGlobalClusterWithContext is the same as CreateGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGlobalCluster 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 *Neptune) CreateGlobalClusterWithContext(ctx aws.Context, input *CreateGlobalClusterInput, opts ...request.Option) (*CreateGlobalClusterOutput, error) { + req, out := c.CreateGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteDBCluster = "DeleteDBCluster" // DeleteDBClusterRequest generates a "aws/request.Request" representing the @@ -2224,6 +2330,91 @@ func (c *Neptune) DeleteEventSubscriptionWithContext(ctx aws.Context, input *Del return out, req.Send() } +const opDeleteGlobalCluster = "DeleteGlobalCluster" + +// DeleteGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGlobalCluster 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 DeleteGlobalCluster for more information on using the DeleteGlobalCluster +// 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 DeleteGlobalClusterRequest method. +// req, resp := client.DeleteGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DeleteGlobalCluster +func (c *Neptune) DeleteGlobalClusterRequest(input *DeleteGlobalClusterInput) (req *request.Request, output *DeleteGlobalClusterOutput) { + op := &request.Operation{ + Name: opDeleteGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteGlobalClusterInput{} + } + + output = &DeleteGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteGlobalCluster API operation for Amazon Neptune. +// +// Deletes a global database. The primary and all secondary clusters must already +// be detached or deleted first. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Neptune's +// API operation DeleteGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// The GlobalClusterIdentifier doesn't refer to an existing global database +// cluster. +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// The global cluster is in an invalid state and can't perform the requested +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DeleteGlobalCluster +func (c *Neptune) DeleteGlobalCluster(input *DeleteGlobalClusterInput) (*DeleteGlobalClusterOutput, error) { + req, out := c.DeleteGlobalClusterRequest(input) + return out, req.Send() +} + +// DeleteGlobalClusterWithContext is the same as DeleteGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGlobalCluster 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 *Neptune) DeleteGlobalClusterWithContext(ctx aws.Context, input *DeleteGlobalClusterInput, opts ...request.Option) (*DeleteGlobalClusterOutput, error) { + req, out := c.DeleteGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeDBClusterEndpoints = "DescribeDBClusterEndpoints" // DescribeDBClusterEndpointsRequest generates a "aws/request.Request" representing the @@ -4258,6 +4449,87 @@ func (c *Neptune) DescribeEventsPagesWithContext(ctx aws.Context, input *Describ return p.Err() } +const opDescribeGlobalClusters = "DescribeGlobalClusters" + +// DescribeGlobalClustersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGlobalClusters 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 DescribeGlobalClusters for more information on using the DescribeGlobalClusters +// 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 DescribeGlobalClustersRequest method. +// req, resp := client.DescribeGlobalClustersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DescribeGlobalClusters +func (c *Neptune) DescribeGlobalClustersRequest(input *DescribeGlobalClustersInput) (req *request.Request, output *DescribeGlobalClustersOutput) { + op := &request.Operation{ + Name: opDescribeGlobalClusters, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DescribeGlobalClustersInput{} + } + + output = &DescribeGlobalClustersOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeGlobalClusters API operation for Amazon Neptune. +// +// Returns information about Neptune global database clusters. This API supports +// pagination. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Neptune's +// API operation DescribeGlobalClusters for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// The GlobalClusterIdentifier doesn't refer to an existing global database +// cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DescribeGlobalClusters +func (c *Neptune) DescribeGlobalClusters(input *DescribeGlobalClustersInput) (*DescribeGlobalClustersOutput, error) { + req, out := c.DescribeGlobalClustersRequest(input) + return out, req.Send() +} + +// DescribeGlobalClustersWithContext is the same as DescribeGlobalClusters with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeGlobalClusters 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 *Neptune) DescribeGlobalClustersWithContext(ctx aws.Context, input *DescribeGlobalClustersInput, opts ...request.Option) (*DescribeGlobalClustersOutput, error) { + req, out := c.DescribeGlobalClustersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeOrderableDBInstanceOptions = "DescribeOrderableDBInstanceOptions" // DescribeOrderableDBInstanceOptionsRequest generates a "aws/request.Request" representing the @@ -4707,6 +4979,108 @@ func (c *Neptune) FailoverDBClusterWithContext(ctx aws.Context, input *FailoverD return out, req.Send() } +const opFailoverGlobalCluster = "FailoverGlobalCluster" + +// FailoverGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the FailoverGlobalCluster 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 FailoverGlobalCluster for more information on using the FailoverGlobalCluster +// 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 FailoverGlobalClusterRequest method. +// req, resp := client.FailoverGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/FailoverGlobalCluster +func (c *Neptune) FailoverGlobalClusterRequest(input *FailoverGlobalClusterInput) (req *request.Request, output *FailoverGlobalClusterOutput) { + op := &request.Operation{ + Name: opFailoverGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &FailoverGlobalClusterInput{} + } + + output = &FailoverGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// FailoverGlobalCluster API operation for Amazon Neptune. +// +// Initiates the failover process for a Neptune global database. +// +// A failover for a Neptune global database promotes one of secondary read-only +// DB clusters to be the primary DB cluster and demotes the primary DB cluster +// to being a secondary (read-only) DB cluster. In other words, the role of +// the current primary DB cluster and the selected target secondary DB cluster +// are switched. The selected secondary DB cluster assumes full read/write capabilities +// for the Neptune global database. +// +// This action applies only to Neptune global databases. This action is only +// intended for use on healthy Neptune global databases with healthy Neptune +// DB clusters and no region-wide outages, to test disaster recovery scenarios +// or to reconfigure the global database topology. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Neptune's +// API operation FailoverGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// The GlobalClusterIdentifier doesn't refer to an existing global database +// cluster. +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// The global cluster is in an invalid state and can't perform the requested +// operation. +// +// * ErrCodeInvalidDBClusterStateFault "InvalidDBClusterStateFault" +// The DB cluster is not in a valid state. +// +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/FailoverGlobalCluster +func (c *Neptune) FailoverGlobalCluster(input *FailoverGlobalClusterInput) (*FailoverGlobalClusterOutput, error) { + req, out := c.FailoverGlobalClusterRequest(input) + return out, req.Send() +} + +// FailoverGlobalClusterWithContext is the same as FailoverGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See FailoverGlobalCluster 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 *Neptune) FailoverGlobalClusterWithContext(ctx aws.Context, input *FailoverGlobalClusterInput, opts ...request.Option) (*FailoverGlobalClusterOutput, error) { + req, out := c.FailoverGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the @@ -5631,44 +6005,130 @@ func (c *Neptune) ModifyEventSubscriptionWithContext(ctx aws.Context, input *Mod return out, req.Send() } -const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster" +const opModifyGlobalCluster = "ModifyGlobalCluster" -// PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the -// client's request for the PromoteReadReplicaDBCluster operation. The "output" return +// ModifyGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the ModifyGlobalCluster 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 PromoteReadReplicaDBCluster for more information on using the PromoteReadReplicaDBCluster +// See ModifyGlobalCluster for more information on using the ModifyGlobalCluster // 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 PromoteReadReplicaDBClusterRequest method. -// req, resp := client.PromoteReadReplicaDBClusterRequest(params) +// // Example sending a request using the ModifyGlobalClusterRequest method. +// req, resp := client.ModifyGlobalClusterRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/PromoteReadReplicaDBCluster -func (c *Neptune) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClusterInput) (req *request.Request, output *PromoteReadReplicaDBClusterOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/ModifyGlobalCluster +func (c *Neptune) ModifyGlobalClusterRequest(input *ModifyGlobalClusterInput) (req *request.Request, output *ModifyGlobalClusterOutput) { op := &request.Operation{ - Name: opPromoteReadReplicaDBCluster, + Name: opModifyGlobalCluster, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &PromoteReadReplicaDBClusterInput{} + input = &ModifyGlobalClusterInput{} } - output = &PromoteReadReplicaDBClusterOutput{} + output = &ModifyGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyGlobalCluster API operation for Amazon Neptune. +// +// Modify a setting for an Amazon Neptune global cluster. You can change one +// or more database configuration parameters by specifying these parameters +// and their new values in the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Neptune's +// API operation ModifyGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// The GlobalClusterIdentifier doesn't refer to an existing global database +// cluster. +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// The global cluster is in an invalid state and can't perform the requested +// operation. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/ModifyGlobalCluster +func (c *Neptune) ModifyGlobalCluster(input *ModifyGlobalClusterInput) (*ModifyGlobalClusterOutput, error) { + req, out := c.ModifyGlobalClusterRequest(input) + return out, req.Send() +} + +// ModifyGlobalClusterWithContext is the same as ModifyGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyGlobalCluster 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 *Neptune) ModifyGlobalClusterWithContext(ctx aws.Context, input *ModifyGlobalClusterInput, opts ...request.Option) (*ModifyGlobalClusterOutput, error) { + req, out := c.ModifyGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPromoteReadReplicaDBCluster = "PromoteReadReplicaDBCluster" + +// PromoteReadReplicaDBClusterRequest generates a "aws/request.Request" representing the +// client's request for the PromoteReadReplicaDBCluster 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 PromoteReadReplicaDBCluster for more information on using the PromoteReadReplicaDBCluster +// 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 PromoteReadReplicaDBClusterRequest method. +// req, resp := client.PromoteReadReplicaDBClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/PromoteReadReplicaDBCluster +func (c *Neptune) PromoteReadReplicaDBClusterRequest(input *PromoteReadReplicaDBClusterInput) (req *request.Request, output *PromoteReadReplicaDBClusterOutput) { + op := &request.Operation{ + Name: opPromoteReadReplicaDBCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PromoteReadReplicaDBClusterInput{} + } + + output = &PromoteReadReplicaDBClusterOutput{} req = c.newRequest(op, input, output) return } @@ -5802,6 +6262,95 @@ func (c *Neptune) RebootDBInstanceWithContext(ctx aws.Context, input *RebootDBIn return out, req.Send() } +const opRemoveFromGlobalCluster = "RemoveFromGlobalCluster" + +// RemoveFromGlobalClusterRequest generates a "aws/request.Request" representing the +// client's request for the RemoveFromGlobalCluster 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 RemoveFromGlobalCluster for more information on using the RemoveFromGlobalCluster +// 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 RemoveFromGlobalClusterRequest method. +// req, resp := client.RemoveFromGlobalClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/RemoveFromGlobalCluster +func (c *Neptune) RemoveFromGlobalClusterRequest(input *RemoveFromGlobalClusterInput) (req *request.Request, output *RemoveFromGlobalClusterOutput) { + op := &request.Operation{ + Name: opRemoveFromGlobalCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &RemoveFromGlobalClusterInput{} + } + + output = &RemoveFromGlobalClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// RemoveFromGlobalCluster API operation for Amazon Neptune. +// +// Detaches a Neptune DB cluster from a Neptune global database. A secondary +// cluster becomes a normal standalone cluster with read-write capability instead +// of being read-only, and no longer receives data from a the primary cluster. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Neptune's +// API operation RemoveFromGlobalCluster for usage and error information. +// +// Returned Error Codes: +// * ErrCodeGlobalClusterNotFoundFault "GlobalClusterNotFoundFault" +// The GlobalClusterIdentifier doesn't refer to an existing global database +// cluster. +// +// * ErrCodeInvalidGlobalClusterStateFault "InvalidGlobalClusterStateFault" +// The global cluster is in an invalid state and can't perform the requested +// operation. +// +// * ErrCodeDBClusterNotFoundFault "DBClusterNotFoundFault" +// DBClusterIdentifier does not refer to an existing DB cluster. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/RemoveFromGlobalCluster +func (c *Neptune) RemoveFromGlobalCluster(input *RemoveFromGlobalClusterInput) (*RemoveFromGlobalClusterOutput, error) { + req, out := c.RemoveFromGlobalClusterRequest(input) + return out, req.Send() +} + +// RemoveFromGlobalClusterWithContext is the same as RemoveFromGlobalCluster with the addition of +// the ability to pass a context and additional request options. +// +// See RemoveFromGlobalCluster 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 *Neptune) RemoveFromGlobalClusterWithContext(ctx aws.Context, input *RemoveFromGlobalClusterInput, opts ...request.Option) (*RemoveFromGlobalClusterOutput, error) { + req, out := c.RemoveFromGlobalClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRemoveRoleFromDBCluster = "RemoveRoleFromDBCluster" // RemoveRoleFromDBClusterRequest generates a "aws/request.Request" representing the @@ -8026,6 +8575,10 @@ type CreateDBClusterInput struct { // Example: 1.0.2.1 EngineVersion *string `type:"string"` + // The ID of the Neptune global database to which this new DB cluster should + // be added. + GlobalClusterIdentifier *string `min:"1" type:"string"` + // The Amazon KMS key identifier for an encrypted DB cluster. // // The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption @@ -8150,6 +8703,9 @@ func (s *CreateDBClusterInput) Validate() error { if s.Engine == nil { invalidParams.Add(request.NewErrParamRequired("Engine")) } + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -8241,6 +8797,12 @@ func (s *CreateDBClusterInput) SetEngineVersion(v string) *CreateDBClusterInput return s } +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *CreateDBClusterInput) SetGlobalClusterIdentifier(v string) *CreateDBClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + // SetKmsKeyId sets the KmsKeyId field's value. func (s *CreateDBClusterInput) SetKmsKeyId(v string) *CreateDBClusterInput { s.KmsKeyId = &v @@ -9618,6 +10180,141 @@ func (s *CreateEventSubscriptionOutput) SetEventSubscription(v *EventSubscriptio return s } +type CreateGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // The deletion protection setting for the new global database. The global database + // can't be deleted when deletion protection is enabled. + DeletionProtection *bool `type:"boolean"` + + // The name of the database engine to be used in the global database. + // + // Valid values: neptune + Engine *string `type:"string"` + + // The Neptune engine version to be used by the global database. + // + // Valid values: 1.2.0.0 or above. + EngineVersion *string `type:"string"` + + // The cluster identifier of the new global database cluster. + // + // GlobalClusterIdentifier is a required field + GlobalClusterIdentifier *string `min:"1" type:"string" required:"true"` + + // (Optional) The Amazon Resource Name (ARN) of an existing Neptune DB cluster + // to use as the primary cluster of the new global database. + SourceDBClusterIdentifier *string `type:"string"` + + // The storage encryption setting for the new global database cluster. + StorageEncrypted *bool `type:"boolean"` +} + +// 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 CreateGlobalClusterInput) 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 CreateGlobalClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGlobalClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGlobalClusterInput"} + if s.GlobalClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier")) + } + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *CreateGlobalClusterInput) SetDeletionProtection(v bool) *CreateGlobalClusterInput { + s.DeletionProtection = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *CreateGlobalClusterInput) SetEngine(v string) *CreateGlobalClusterInput { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *CreateGlobalClusterInput) SetEngineVersion(v string) *CreateGlobalClusterInput { + s.EngineVersion = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *CreateGlobalClusterInput) SetGlobalClusterIdentifier(v string) *CreateGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value. +func (s *CreateGlobalClusterInput) SetSourceDBClusterIdentifier(v string) *CreateGlobalClusterInput { + s.SourceDBClusterIdentifier = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *CreateGlobalClusterInput) SetStorageEncrypted(v bool) *CreateGlobalClusterInput { + s.StorageEncrypted = &v + return s +} + +type CreateGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Neptune global database. + // + // This data type is used as a response element for the CreateGlobalCluster, + // DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, + // and RemoveFromGlobalCluster actions. + GlobalCluster *GlobalCluster `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 CreateGlobalClusterOutput) 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 CreateGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *CreateGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *CreateGlobalClusterOutput { + s.GlobalCluster = v + return s +} + // Contains the details of an Amazon Neptune DB cluster. // // This data type is used as a response element in the DescribeDBClusters action. @@ -10763,6 +11460,10 @@ type DBEngineVersion struct { // of the CreateDBInstance action. SupportedTimezones []*Timezone `locationNameList:"Timezone" type:"list"` + // A value that indicates whether you can use Aurora global databases with a + // specific DB engine version. + SupportsGlobalDatabases *bool `type:"boolean"` + // A value that indicates whether the engine version supports exporting the // log types specified by ExportableLogTypes to CloudWatch Logs. SupportsLogExportsToCloudwatchLogs *bool `type:"boolean"` @@ -10847,6 +11548,12 @@ func (s *DBEngineVersion) SetSupportedTimezones(v []*Timezone) *DBEngineVersion return s } +// SetSupportsGlobalDatabases sets the SupportsGlobalDatabases field's value. +func (s *DBEngineVersion) SetSupportsGlobalDatabases(v bool) *DBEngineVersion { + s.SupportsGlobalDatabases = &v + return s +} + // SetSupportsLogExportsToCloudwatchLogs sets the SupportsLogExportsToCloudwatchLogs field's value. func (s *DBEngineVersion) SetSupportsLogExportsToCloudwatchLogs(v bool) *DBEngineVersion { s.SupportsLogExportsToCloudwatchLogs = &v @@ -12514,25 +13221,109 @@ func (s *DeleteEventSubscriptionOutput) SetEventSubscription(v *EventSubscriptio return s } -type DescribeDBClusterEndpointsInput struct { +type DeleteGlobalClusterInput struct { _ struct{} `type:"structure"` - // The identifier of the endpoint to describe. This parameter is stored as a - // lowercase string. - DBClusterEndpointIdentifier *string `type:"string"` - - // The DB cluster identifier of the DB cluster associated with the endpoint. - // This parameter is stored as a lowercase string. - DBClusterIdentifier *string `type:"string"` + // The cluster identifier of the global database cluster being deleted. + // + // GlobalClusterIdentifier is a required field + GlobalClusterIdentifier *string `min:"1" type:"string" required:"true"` +} - // A set of name-value pairs that define which endpoints to include in the output. - // The filters are specified as name-value pairs, in the format Name=endpoint_type,Values=endpoint_type1,endpoint_type2,.... - // Name can be one of: db-cluster-endpoint-type, db-cluster-endpoint-custom-type, - // db-cluster-endpoint-id, db-cluster-endpoint-status. Values for the db-cluster-endpoint-type - // filter can be one or more of: reader, writer, custom. Values for the db-cluster-endpoint-custom-type - // filter can be one or more of: reader, any. Values for the db-cluster-endpoint-status - // filter can be one or more of: available, creating, deleting, inactive, modifying. - Filters []*Filter `locationNameList:"Filter" 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 DeleteGlobalClusterInput) 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 DeleteGlobalClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGlobalClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGlobalClusterInput"} + if s.GlobalClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier")) + } + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *DeleteGlobalClusterInput) SetGlobalClusterIdentifier(v string) *DeleteGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +type DeleteGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Neptune global database. + // + // This data type is used as a response element for the CreateGlobalCluster, + // DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, + // and RemoveFromGlobalCluster actions. + GlobalCluster *GlobalCluster `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 DeleteGlobalClusterOutput) 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 DeleteGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *DeleteGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *DeleteGlobalClusterOutput { + s.GlobalCluster = v + return s +} + +type DescribeDBClusterEndpointsInput struct { + _ struct{} `type:"structure"` + + // The identifier of the endpoint to describe. This parameter is stored as a + // lowercase string. + DBClusterEndpointIdentifier *string `type:"string"` + + // The DB cluster identifier of the DB cluster associated with the endpoint. + // This parameter is stored as a lowercase string. + DBClusterIdentifier *string `type:"string"` + + // A set of name-value pairs that define which endpoints to include in the output. + // The filters are specified as name-value pairs, in the format Name=endpoint_type,Values=endpoint_type1,endpoint_type2,.... + // Name can be one of: db-cluster-endpoint-type, db-cluster-endpoint-custom-type, + // db-cluster-endpoint-id, db-cluster-endpoint-status. Values for the db-cluster-endpoint-type + // filter can be one or more of: reader, writer, custom. Values for the db-cluster-endpoint-custom-type + // filter can be one or more of: reader, any. Values for the db-cluster-endpoint-status + // filter can be one or more of: available, creating, deleting, inactive, modifying. + Filters []*Filter `locationNameList:"Filter" type:"list"` // An optional pagination token provided by a previous DescribeDBClusterEndpoints // request. If this parameter is specified, the response includes only records @@ -14790,6 +15581,122 @@ func (s *DescribeEventsOutput) SetMarker(v string) *DescribeEventsOutput { return s } +type DescribeGlobalClustersInput struct { + _ struct{} `type:"structure"` + + // The user-supplied DB cluster identifier. If this parameter is specified, + // only information about the specified DB cluster is returned. This parameter + // is not case-sensitive. + // + // Constraints: If supplied, must match an existing DB cluster identifier. + GlobalClusterIdentifier *string `min:"1" type:"string"` + + // (Optional) A pagination token returned by a previous call to DescribeGlobalClusters. + // If this parameter is specified, the response will only include records beyond + // the marker, up to the number specified by MaxRecords. + Marker *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a pagination marker token is included + // in the response that you can use to retrieve the remaining results. + // + // Default: 100 + // + // Constraints: Minimum 20, maximum 100. + MaxRecords *int64 `type:"integer"` +} + +// 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 DescribeGlobalClustersInput) 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 DescribeGlobalClustersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGlobalClustersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGlobalClustersInput"} + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *DescribeGlobalClustersInput) SetGlobalClusterIdentifier(v string) *DescribeGlobalClustersInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeGlobalClustersInput) SetMarker(v string) *DescribeGlobalClustersInput { + s.Marker = &v + return s +} + +// SetMaxRecords sets the MaxRecords field's value. +func (s *DescribeGlobalClustersInput) SetMaxRecords(v int64) *DescribeGlobalClustersInput { + s.MaxRecords = &v + return s +} + +type DescribeGlobalClustersOutput struct { + _ struct{} `type:"structure"` + + // The list of global clusters and instances returned by this request. + GlobalClusters []*GlobalCluster `locationNameList:"GlobalClusterMember" type:"list"` + + // A pagination token. If this parameter is returned in the response, more records + // are available, which can be retrieved by one or more additional calls to + // DescribeGlobalClusters. + Marker *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeGlobalClustersOutput) 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 DescribeGlobalClustersOutput) GoString() string { + return s.String() +} + +// SetGlobalClusters sets the GlobalClusters field's value. +func (s *DescribeGlobalClustersOutput) SetGlobalClusters(v []*GlobalCluster) *DescribeGlobalClustersOutput { + s.GlobalClusters = v + return s +} + +// SetMarker sets the Marker field's value. +func (s *DescribeGlobalClustersOutput) SetMarker(v string) *DescribeGlobalClustersOutput { + s.Marker = &v + return s +} + type DescribeOrderableDBInstanceOptionsInput struct { _ struct{} `type:"structure"` @@ -15714,6 +16621,110 @@ func (s *FailoverDBClusterOutput) SetDBCluster(v *DBCluster) *FailoverDBClusterO return s } +type FailoverGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // Identifier of the Neptune global database that should be failed over. The + // identifier is the unique key assigned by the user when the Neptune global + // database was created. In other words, it's the name of the global database + // that you want to fail over. + // + // Constraints: Must match the identifier of an existing Neptune global database. + // + // GlobalClusterIdentifier is a required field + GlobalClusterIdentifier *string `min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the secondary Neptune DB cluster that you + // want to promote to primary for the global database. + // + // TargetDbClusterIdentifier is a required field + TargetDbClusterIdentifier *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FailoverGlobalClusterInput) 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 FailoverGlobalClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *FailoverGlobalClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FailoverGlobalClusterInput"} + if s.GlobalClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier")) + } + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } + if s.TargetDbClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("TargetDbClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *FailoverGlobalClusterInput) SetGlobalClusterIdentifier(v string) *FailoverGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetTargetDbClusterIdentifier sets the TargetDbClusterIdentifier field's value. +func (s *FailoverGlobalClusterInput) SetTargetDbClusterIdentifier(v string) *FailoverGlobalClusterInput { + s.TargetDbClusterIdentifier = &v + return s +} + +type FailoverGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Neptune global database. + // + // This data type is used as a response element for the CreateGlobalCluster, + // DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, + // and RemoveFromGlobalCluster actions. + GlobalCluster *GlobalCluster `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 FailoverGlobalClusterOutput) 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 FailoverGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *FailoverGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *FailoverGlobalClusterOutput { + s.GlobalCluster = v + return s +} + // This type is not currently supported. type Filter struct { _ struct{} `type:"structure"` @@ -15775,6 +16786,171 @@ func (s *Filter) SetValues(v []*string) *Filter { return s } +// Contains the details of an Amazon Neptune global database. +// +// This data type is used as a response element for the CreateGlobalCluster, +// DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, +// and RemoveFromGlobalCluster actions. +type GlobalCluster struct { + _ struct{} `type:"structure"` + + // The deletion protection setting for the global database. + DeletionProtection *bool `type:"boolean"` + + // The Neptune database engine used by the global database ("neptune"). + Engine *string `type:"string"` + + // The Neptune engine version used by the global database. + EngineVersion *string `type:"string"` + + // The Amazon Resource Name (ARN) for the global database. + GlobalClusterArn *string `type:"string"` + + // Contains a user-supplied global database cluster identifier. This identifier + // is the unique key that identifies a global database. + GlobalClusterIdentifier *string `min:"1" type:"string"` + + // A list of cluster ARNs and instance ARNs for all the DB clusters that are + // part of the global database. + GlobalClusterMembers []*GlobalClusterMember `locationNameList:"GlobalClusterMember" type:"list"` + + // An immutable identifier for the global database that is unique within in + // all regions. This identifier is found in CloudTrail log entries whenever + // the KMS key for the DB cluster is accessed. + GlobalClusterResourceId *string `type:"string"` + + // Specifies the current state of this global database. + Status *string `type:"string"` + + // The storage encryption setting for the global database. + StorageEncrypted *bool `type:"boolean"` +} + +// 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 GlobalCluster) 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 GlobalCluster) GoString() string { + return s.String() +} + +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *GlobalCluster) SetDeletionProtection(v bool) *GlobalCluster { + s.DeletionProtection = &v + return s +} + +// SetEngine sets the Engine field's value. +func (s *GlobalCluster) SetEngine(v string) *GlobalCluster { + s.Engine = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *GlobalCluster) SetEngineVersion(v string) *GlobalCluster { + s.EngineVersion = &v + return s +} + +// SetGlobalClusterArn sets the GlobalClusterArn field's value. +func (s *GlobalCluster) SetGlobalClusterArn(v string) *GlobalCluster { + s.GlobalClusterArn = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *GlobalCluster) SetGlobalClusterIdentifier(v string) *GlobalCluster { + s.GlobalClusterIdentifier = &v + return s +} + +// SetGlobalClusterMembers sets the GlobalClusterMembers field's value. +func (s *GlobalCluster) SetGlobalClusterMembers(v []*GlobalClusterMember) *GlobalCluster { + s.GlobalClusterMembers = v + return s +} + +// SetGlobalClusterResourceId sets the GlobalClusterResourceId field's value. +func (s *GlobalCluster) SetGlobalClusterResourceId(v string) *GlobalCluster { + s.GlobalClusterResourceId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GlobalCluster) SetStatus(v string) *GlobalCluster { + s.Status = &v + return s +} + +// SetStorageEncrypted sets the StorageEncrypted field's value. +func (s *GlobalCluster) SetStorageEncrypted(v bool) *GlobalCluster { + s.StorageEncrypted = &v + return s +} + +// A data structure with information about any primary and secondary clusters +// associated with an Neptune global database. +type GlobalClusterMember struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for each Neptune cluster. + DBClusterArn *string `type:"string"` + + // Specifies whether the Neptune cluster is the primary cluster (that is, has + // read-write capability) for the Neptune global database with which it is associated. + IsWriter *bool `type:"boolean"` + + // The Amazon Resource Name (ARN) for each read-only secondary cluster associated + // with the Neptune global database. + Readers []*string `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GlobalClusterMember) 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 GlobalClusterMember) GoString() string { + return s.String() +} + +// SetDBClusterArn sets the DBClusterArn field's value. +func (s *GlobalClusterMember) SetDBClusterArn(v string) *GlobalClusterMember { + s.DBClusterArn = &v + return s +} + +// SetIsWriter sets the IsWriter field's value. +func (s *GlobalClusterMember) SetIsWriter(v bool) *GlobalClusterMember { + s.IsWriter = &v + return s +} + +// SetReaders sets the Readers field's value. +func (s *GlobalClusterMember) SetReaders(v []*string) *GlobalClusterMember { + s.Readers = v + return s +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -15950,7 +17126,7 @@ func (s *ModifyDBClusterEndpointInput) SetStaticMembers(v []*string) *ModifyDBCl } // This data type represents the information you need to connect to an Amazon -// Aurora DB cluster. This data type is used as a response element in the following +// Neptune DB cluster. This data type is used as a response element in the following // actions: // // * CreateDBClusterEndpoint @@ -17464,6 +18640,157 @@ func (s *ModifyEventSubscriptionOutput) SetEventSubscription(v *EventSubscriptio return s } +type ModifyGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // A value that indicates whether major version upgrades are allowed. + // + // Constraints: You must allow major version upgrades if you specify a value + // for the EngineVersion parameter that is a different major version than the + // DB cluster's current version. + // + // If you upgrade the major version of a global database, the cluster and DB + // instance parameter groups are set to the default parameter groups for the + // new version, so you will need to apply any custom parameter groups after + // completing the upgrade. + AllowMajorVersionUpgrade *bool `type:"boolean"` + + // Indicates whether the global database has deletion protection enabled. The + // global database cannot be deleted when deletion protection is enabled. + DeletionProtection *bool `type:"boolean"` + + // The version number of the database engine to which you want to upgrade. Changing + // this parameter will result in an outage. The change is applied during the + // next maintenance window unless ApplyImmediately is enabled. + // + // To list all of the available Neptune engine versions, use the following command: + EngineVersion *string `type:"string"` + + // The DB cluster identifier for the global cluster being modified. This parameter + // is not case-sensitive. + // + // Constraints: Must match the identifier of an existing global database cluster. + // + // GlobalClusterIdentifier is a required field + GlobalClusterIdentifier *string `min:"1" type:"string" required:"true"` + + // A new cluster identifier to assign to the global database. This value is + // stored as a lowercase string. + // + // Constraints: + // + // * Must contain from 1 to 63 letters, numbers, or hyphens. + // + // * The first character must be a letter. + // + // * Can't end with a hyphen or contain two consecutive hyphens + // + // Example: my-cluster2 + NewGlobalClusterIdentifier *string `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 ModifyGlobalClusterInput) 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 ModifyGlobalClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyGlobalClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyGlobalClusterInput"} + if s.GlobalClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier")) + } + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } + if s.NewGlobalClusterIdentifier != nil && len(*s.NewGlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NewGlobalClusterIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAllowMajorVersionUpgrade sets the AllowMajorVersionUpgrade field's value. +func (s *ModifyGlobalClusterInput) SetAllowMajorVersionUpgrade(v bool) *ModifyGlobalClusterInput { + s.AllowMajorVersionUpgrade = &v + return s +} + +// SetDeletionProtection sets the DeletionProtection field's value. +func (s *ModifyGlobalClusterInput) SetDeletionProtection(v bool) *ModifyGlobalClusterInput { + s.DeletionProtection = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ModifyGlobalClusterInput) SetEngineVersion(v string) *ModifyGlobalClusterInput { + s.EngineVersion = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *ModifyGlobalClusterInput) SetGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +// SetNewGlobalClusterIdentifier sets the NewGlobalClusterIdentifier field's value. +func (s *ModifyGlobalClusterInput) SetNewGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput { + s.NewGlobalClusterIdentifier = &v + return s +} + +type ModifyGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Neptune global database. + // + // This data type is used as a response element for the CreateGlobalCluster, + // DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, + // and RemoveFromGlobalCluster actions. + GlobalCluster *GlobalCluster `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 ModifyGlobalClusterOutput) 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 ModifyGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *ModifyGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *ModifyGlobalClusterOutput { + s.GlobalCluster = v + return s +} + // Not supported by Neptune. type OptionGroupMembership struct { _ struct{} `type:"structure"` @@ -17558,6 +18885,10 @@ type OrderableDBInstanceOption struct { // from 1 to 60 seconds. SupportsEnhancedMonitoring *bool `type:"boolean"` + // A value that indicates whether you can use Neptune global databases with + // a specific combination of other DB engine attributes. + SupportsGlobalDatabases *bool `type:"boolean"` + // Indicates whether a DB instance supports IAM database authentication. SupportsIAMDatabaseAuthentication *bool `type:"boolean"` @@ -17682,6 +19013,12 @@ func (s *OrderableDBInstanceOption) SetSupportsEnhancedMonitoring(v bool) *Order return s } +// SetSupportsGlobalDatabases sets the SupportsGlobalDatabases field's value. +func (s *OrderableDBInstanceOption) SetSupportsGlobalDatabases(v bool) *OrderableDBInstanceOption { + s.SupportsGlobalDatabases = &v + return s +} + // SetSupportsIAMDatabaseAuthentication sets the SupportsIAMDatabaseAuthentication field's value. func (s *OrderableDBInstanceOption) SetSupportsIAMDatabaseAuthentication(v bool) *OrderableDBInstanceOption { s.SupportsIAMDatabaseAuthentication = &v @@ -18339,6 +19676,106 @@ func (s *RebootDBInstanceOutput) SetDBInstance(v *DBInstance) *RebootDBInstanceO return s } +type RemoveFromGlobalClusterInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) identifying the cluster to be detached from + // the Neptune global database cluster. + // + // DbClusterIdentifier is a required field + DbClusterIdentifier *string `type:"string" required:"true"` + + // The identifier of the Neptune global database from which to detach the specified + // Neptune DB cluster. + // + // GlobalClusterIdentifier is a required field + GlobalClusterIdentifier *string `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 RemoveFromGlobalClusterInput) 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 RemoveFromGlobalClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveFromGlobalClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveFromGlobalClusterInput"} + if s.DbClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DbClusterIdentifier")) + } + if s.GlobalClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("GlobalClusterIdentifier")) + } + if s.GlobalClusterIdentifier != nil && len(*s.GlobalClusterIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GlobalClusterIdentifier", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDbClusterIdentifier sets the DbClusterIdentifier field's value. +func (s *RemoveFromGlobalClusterInput) SetDbClusterIdentifier(v string) *RemoveFromGlobalClusterInput { + s.DbClusterIdentifier = &v + return s +} + +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *RemoveFromGlobalClusterInput) SetGlobalClusterIdentifier(v string) *RemoveFromGlobalClusterInput { + s.GlobalClusterIdentifier = &v + return s +} + +type RemoveFromGlobalClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains the details of an Amazon Neptune global database. + // + // This data type is used as a response element for the CreateGlobalCluster, + // DescribeGlobalClusters, ModifyGlobalCluster, DeleteGlobalCluster, FailoverGlobalCluster, + // and RemoveFromGlobalCluster actions. + GlobalCluster *GlobalCluster `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 RemoveFromGlobalClusterOutput) 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 RemoveFromGlobalClusterOutput) GoString() string { + return s.String() +} + +// SetGlobalCluster sets the GlobalCluster field's value. +func (s *RemoveFromGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *RemoveFromGlobalClusterOutput { + s.GlobalCluster = v + return s +} + type RemoveRoleFromDBClusterInput struct { _ struct{} `type:"structure"` @@ -19765,6 +21202,10 @@ type UpgradeTarget struct { // A value that indicates whether a database engine is upgraded to a major version. IsMajorVersionUpgrade *bool `type:"boolean"` + + // A value that indicates whether you can use Neptune global databases with + // the target engine version. + SupportsGlobalDatabases *bool `type:"boolean"` } // String returns the string representation. @@ -19815,6 +21256,12 @@ func (s *UpgradeTarget) SetIsMajorVersionUpgrade(v bool) *UpgradeTarget { return s } +// SetSupportsGlobalDatabases sets the SupportsGlobalDatabases field's value. +func (s *UpgradeTarget) SetSupportsGlobalDatabases(v bool) *UpgradeTarget { + s.SupportsGlobalDatabases = &v + return s +} + // Information about valid modifications that you can make to your DB instance. // Contains the result of a successful call to the DescribeValidDBInstanceModifications // action. You can use this information when you call ModifyDBInstance. diff --git a/service/neptune/errors.go b/service/neptune/errors.go index d7fff6471c7..a97d1a0f25c 100644 --- a/service/neptune/errors.go +++ b/service/neptune/errors.go @@ -196,6 +196,27 @@ const ( // You have exceeded the number of events you can subscribe to. ErrCodeEventSubscriptionQuotaExceededFault = "EventSubscriptionQuotaExceeded" + // ErrCodeGlobalClusterAlreadyExistsFault for service response error code + // "GlobalClusterAlreadyExistsFault". + // + // The GlobalClusterIdentifier already exists. Choose a new global database + // identifier (unique name) to create a new global database cluster. + ErrCodeGlobalClusterAlreadyExistsFault = "GlobalClusterAlreadyExistsFault" + + // ErrCodeGlobalClusterNotFoundFault for service response error code + // "GlobalClusterNotFoundFault". + // + // The GlobalClusterIdentifier doesn't refer to an existing global database + // cluster. + ErrCodeGlobalClusterNotFoundFault = "GlobalClusterNotFoundFault" + + // ErrCodeGlobalClusterQuotaExceededFault for service response error code + // "GlobalClusterQuotaExceededFault". + // + // The number of global database clusters for this account is already at the + // maximum allowed. + ErrCodeGlobalClusterQuotaExceededFault = "GlobalClusterQuotaExceededFault" + // ErrCodeInstanceQuotaExceededFault for service response error code // "InstanceQuotaExceeded". // @@ -286,6 +307,13 @@ const ( // The event subscription is in an invalid state. ErrCodeInvalidEventSubscriptionStateFault = "InvalidEventSubscriptionState" + // ErrCodeInvalidGlobalClusterStateFault for service response error code + // "InvalidGlobalClusterStateFault". + // + // The global cluster is in an invalid state and can't perform the requested + // operation. + ErrCodeInvalidGlobalClusterStateFault = "InvalidGlobalClusterStateFault" + // ErrCodeInvalidRestoreFault for service response error code // "InvalidRestoreFault". // diff --git a/service/neptune/neptuneiface/interface.go b/service/neptune/neptuneiface/interface.go index 7e7aa2310e2..abc85e08d47 100644 --- a/service/neptune/neptuneiface/interface.go +++ b/service/neptune/neptuneiface/interface.go @@ -120,6 +120,10 @@ type NeptuneAPI interface { CreateEventSubscriptionWithContext(aws.Context, *neptune.CreateEventSubscriptionInput, ...request.Option) (*neptune.CreateEventSubscriptionOutput, error) CreateEventSubscriptionRequest(*neptune.CreateEventSubscriptionInput) (*request.Request, *neptune.CreateEventSubscriptionOutput) + CreateGlobalCluster(*neptune.CreateGlobalClusterInput) (*neptune.CreateGlobalClusterOutput, error) + CreateGlobalClusterWithContext(aws.Context, *neptune.CreateGlobalClusterInput, ...request.Option) (*neptune.CreateGlobalClusterOutput, error) + CreateGlobalClusterRequest(*neptune.CreateGlobalClusterInput) (*request.Request, *neptune.CreateGlobalClusterOutput) + DeleteDBCluster(*neptune.DeleteDBClusterInput) (*neptune.DeleteDBClusterOutput, error) DeleteDBClusterWithContext(aws.Context, *neptune.DeleteDBClusterInput, ...request.Option) (*neptune.DeleteDBClusterOutput, error) DeleteDBClusterRequest(*neptune.DeleteDBClusterInput) (*request.Request, *neptune.DeleteDBClusterOutput) @@ -152,6 +156,10 @@ type NeptuneAPI interface { DeleteEventSubscriptionWithContext(aws.Context, *neptune.DeleteEventSubscriptionInput, ...request.Option) (*neptune.DeleteEventSubscriptionOutput, error) DeleteEventSubscriptionRequest(*neptune.DeleteEventSubscriptionInput) (*request.Request, *neptune.DeleteEventSubscriptionOutput) + DeleteGlobalCluster(*neptune.DeleteGlobalClusterInput) (*neptune.DeleteGlobalClusterOutput, error) + DeleteGlobalClusterWithContext(aws.Context, *neptune.DeleteGlobalClusterInput, ...request.Option) (*neptune.DeleteGlobalClusterOutput, error) + DeleteGlobalClusterRequest(*neptune.DeleteGlobalClusterInput) (*request.Request, *neptune.DeleteGlobalClusterOutput) + DescribeDBClusterEndpoints(*neptune.DescribeDBClusterEndpointsInput) (*neptune.DescribeDBClusterEndpointsOutput, error) DescribeDBClusterEndpointsWithContext(aws.Context, *neptune.DescribeDBClusterEndpointsInput, ...request.Option) (*neptune.DescribeDBClusterEndpointsOutput, error) DescribeDBClusterEndpointsRequest(*neptune.DescribeDBClusterEndpointsInput) (*request.Request, *neptune.DescribeDBClusterEndpointsOutput) @@ -255,6 +263,10 @@ type NeptuneAPI interface { DescribeEventsPages(*neptune.DescribeEventsInput, func(*neptune.DescribeEventsOutput, bool) bool) error DescribeEventsPagesWithContext(aws.Context, *neptune.DescribeEventsInput, func(*neptune.DescribeEventsOutput, bool) bool, ...request.Option) error + DescribeGlobalClusters(*neptune.DescribeGlobalClustersInput) (*neptune.DescribeGlobalClustersOutput, error) + DescribeGlobalClustersWithContext(aws.Context, *neptune.DescribeGlobalClustersInput, ...request.Option) (*neptune.DescribeGlobalClustersOutput, error) + DescribeGlobalClustersRequest(*neptune.DescribeGlobalClustersInput) (*request.Request, *neptune.DescribeGlobalClustersOutput) + DescribeOrderableDBInstanceOptions(*neptune.DescribeOrderableDBInstanceOptionsInput) (*neptune.DescribeOrderableDBInstanceOptionsOutput, error) DescribeOrderableDBInstanceOptionsWithContext(aws.Context, *neptune.DescribeOrderableDBInstanceOptionsInput, ...request.Option) (*neptune.DescribeOrderableDBInstanceOptionsOutput, error) DescribeOrderableDBInstanceOptionsRequest(*neptune.DescribeOrderableDBInstanceOptionsInput) (*request.Request, *neptune.DescribeOrderableDBInstanceOptionsOutput) @@ -277,6 +289,10 @@ type NeptuneAPI interface { FailoverDBClusterWithContext(aws.Context, *neptune.FailoverDBClusterInput, ...request.Option) (*neptune.FailoverDBClusterOutput, error) FailoverDBClusterRequest(*neptune.FailoverDBClusterInput) (*request.Request, *neptune.FailoverDBClusterOutput) + FailoverGlobalCluster(*neptune.FailoverGlobalClusterInput) (*neptune.FailoverGlobalClusterOutput, error) + FailoverGlobalClusterWithContext(aws.Context, *neptune.FailoverGlobalClusterInput, ...request.Option) (*neptune.FailoverGlobalClusterOutput, error) + FailoverGlobalClusterRequest(*neptune.FailoverGlobalClusterInput) (*request.Request, *neptune.FailoverGlobalClusterOutput) + ListTagsForResource(*neptune.ListTagsForResourceInput) (*neptune.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *neptune.ListTagsForResourceInput, ...request.Option) (*neptune.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*neptune.ListTagsForResourceInput) (*request.Request, *neptune.ListTagsForResourceOutput) @@ -313,6 +329,10 @@ type NeptuneAPI interface { ModifyEventSubscriptionWithContext(aws.Context, *neptune.ModifyEventSubscriptionInput, ...request.Option) (*neptune.ModifyEventSubscriptionOutput, error) ModifyEventSubscriptionRequest(*neptune.ModifyEventSubscriptionInput) (*request.Request, *neptune.ModifyEventSubscriptionOutput) + ModifyGlobalCluster(*neptune.ModifyGlobalClusterInput) (*neptune.ModifyGlobalClusterOutput, error) + ModifyGlobalClusterWithContext(aws.Context, *neptune.ModifyGlobalClusterInput, ...request.Option) (*neptune.ModifyGlobalClusterOutput, error) + ModifyGlobalClusterRequest(*neptune.ModifyGlobalClusterInput) (*request.Request, *neptune.ModifyGlobalClusterOutput) + PromoteReadReplicaDBCluster(*neptune.PromoteReadReplicaDBClusterInput) (*neptune.PromoteReadReplicaDBClusterOutput, error) PromoteReadReplicaDBClusterWithContext(aws.Context, *neptune.PromoteReadReplicaDBClusterInput, ...request.Option) (*neptune.PromoteReadReplicaDBClusterOutput, error) PromoteReadReplicaDBClusterRequest(*neptune.PromoteReadReplicaDBClusterInput) (*request.Request, *neptune.PromoteReadReplicaDBClusterOutput) @@ -321,6 +341,10 @@ type NeptuneAPI interface { RebootDBInstanceWithContext(aws.Context, *neptune.RebootDBInstanceInput, ...request.Option) (*neptune.RebootDBInstanceOutput, error) RebootDBInstanceRequest(*neptune.RebootDBInstanceInput) (*request.Request, *neptune.RebootDBInstanceOutput) + RemoveFromGlobalCluster(*neptune.RemoveFromGlobalClusterInput) (*neptune.RemoveFromGlobalClusterOutput, error) + RemoveFromGlobalClusterWithContext(aws.Context, *neptune.RemoveFromGlobalClusterInput, ...request.Option) (*neptune.RemoveFromGlobalClusterOutput, error) + RemoveFromGlobalClusterRequest(*neptune.RemoveFromGlobalClusterInput) (*request.Request, *neptune.RemoveFromGlobalClusterOutput) + RemoveRoleFromDBCluster(*neptune.RemoveRoleFromDBClusterInput) (*neptune.RemoveRoleFromDBClusterOutput, error) RemoveRoleFromDBClusterWithContext(aws.Context, *neptune.RemoveRoleFromDBClusterInput, ...request.Option) (*neptune.RemoveRoleFromDBClusterOutput, error) RemoveRoleFromDBClusterRequest(*neptune.RemoveRoleFromDBClusterInput) (*request.Request, *neptune.RemoveRoleFromDBClusterOutput) diff --git a/service/redshift/api.go b/service/redshift/api.go index ed8dc6ad147..f97782486de 100644 --- a/service/redshift/api.go +++ b/service/redshift/api.go @@ -9624,6 +9624,99 @@ func (c *Redshift) GetClusterCredentialsWithContext(ctx aws.Context, input *GetC return out, req.Send() } +const opGetClusterCredentialsWithIAM = "GetClusterCredentialsWithIAM" + +// GetClusterCredentialsWithIAMRequest generates a "aws/request.Request" representing the +// client's request for the GetClusterCredentialsWithIAM 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 GetClusterCredentialsWithIAM for more information on using the GetClusterCredentialsWithIAM +// 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 GetClusterCredentialsWithIAMRequest method. +// req, resp := client.GetClusterCredentialsWithIAMRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentialsWithIAM +func (c *Redshift) GetClusterCredentialsWithIAMRequest(input *GetClusterCredentialsWithIAMInput) (req *request.Request, output *GetClusterCredentialsWithIAMOutput) { + op := &request.Operation{ + Name: opGetClusterCredentialsWithIAM, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetClusterCredentialsWithIAMInput{} + } + + output = &GetClusterCredentialsWithIAMOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetClusterCredentialsWithIAM API operation for Amazon Redshift. +// +// Returns a database user name and temporary password with temporary authorization +// to log in to an Amazon Redshift database. The database user is mapped 1:1 +// to the source Identity and Access Management (IAM) identity. For more information +// about IAM identities, see IAM Identities (users, user groups, and roles) +// (https://docs.aws.amazon.com/IAM/latest/UserGuide/id.html) in the Amazon +// Web Services Identity and Access Management User Guide. +// +// The Identity and Access Management (IAM) identity that runs this operation +// must have an IAM policy attached that allows access to all necessary actions +// and resources. For more information about permissions, see Using identity-based +// policies (IAM policies) (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html) +// in the Amazon Redshift Cluster Management Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Redshift's +// API operation GetClusterCredentialsWithIAM for usage and error information. +// +// Returned Error Codes: +// * ErrCodeClusterNotFoundFault "ClusterNotFound" +// The ClusterIdentifier parameter does not refer to an existing cluster. +// +// * ErrCodeUnsupportedOperationFault "UnsupportedOperation" +// The requested operation isn't supported. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/GetClusterCredentialsWithIAM +func (c *Redshift) GetClusterCredentialsWithIAM(input *GetClusterCredentialsWithIAMInput) (*GetClusterCredentialsWithIAMOutput, error) { + req, out := c.GetClusterCredentialsWithIAMRequest(input) + return out, req.Send() +} + +// GetClusterCredentialsWithIAMWithContext is the same as GetClusterCredentialsWithIAM with the addition of +// the ability to pass a context and additional request options. +// +// See GetClusterCredentialsWithIAM 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 *Redshift) GetClusterCredentialsWithIAMWithContext(ctx aws.Context, input *GetClusterCredentialsWithIAMInput, opts ...request.Option) (*GetClusterCredentialsWithIAMOutput, error) { + req, out := c.GetClusterCredentialsWithIAMRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetReservedNodeExchangeConfigurationOptions = "GetReservedNodeExchangeConfigurationOptions" // GetReservedNodeExchangeConfigurationOptionsRequest generates a "aws/request.Request" representing the @@ -26384,7 +26477,7 @@ type GetClusterCredentialsInput struct { AutoCreate *bool `type:"boolean"` // The unique identifier of the cluster that contains the database for which - // your are requesting credentials. This parameter is case sensitive. + // you are requesting credentials. This parameter is case sensitive. // // ClusterIdentifier is a required field ClusterIdentifier *string `type:"string" required:"true"` @@ -26597,6 +26690,140 @@ func (s *GetClusterCredentialsOutput) SetExpiration(v time.Time) *GetClusterCred return s } +type GetClusterCredentialsWithIAMInput struct { + _ struct{} `type:"structure"` + + // The unique identifier of the cluster that contains the database for which + // you are requesting credentials. + // + // ClusterIdentifier is a required field + ClusterIdentifier *string `type:"string" required:"true"` + + // The name of the database for which you are requesting credentials. If the + // database name is specified, the IAM policy must allow access to the resource + // dbname for the specified database name. If the database name is not specified, + // access to all databases is allowed. + DbName *string `type:"string"` + + // The number of seconds until the returned temporary password expires. + // + // Range: 900-3600. Default: 900. + DurationSeconds *int64 `type:"integer"` +} + +// 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 GetClusterCredentialsWithIAMInput) 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 GetClusterCredentialsWithIAMInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetClusterCredentialsWithIAMInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetClusterCredentialsWithIAMInput"} + if s.ClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterIdentifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClusterIdentifier sets the ClusterIdentifier field's value. +func (s *GetClusterCredentialsWithIAMInput) SetClusterIdentifier(v string) *GetClusterCredentialsWithIAMInput { + s.ClusterIdentifier = &v + return s +} + +// SetDbName sets the DbName field's value. +func (s *GetClusterCredentialsWithIAMInput) SetDbName(v string) *GetClusterCredentialsWithIAMInput { + s.DbName = &v + return s +} + +// SetDurationSeconds sets the DurationSeconds field's value. +func (s *GetClusterCredentialsWithIAMInput) SetDurationSeconds(v int64) *GetClusterCredentialsWithIAMInput { + s.DurationSeconds = &v + return s +} + +type GetClusterCredentialsWithIAMOutput struct { + _ struct{} `type:"structure"` + + // A temporary password that you provide when you connect to a database. + // + // DbPassword is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by GetClusterCredentialsWithIAMOutput's + // String and GoString methods. + DbPassword *string `type:"string" sensitive:"true"` + + // A database user name that you provide when you connect to a database. The + // database user is mapped 1:1 to the source IAM identity. + DbUser *string `type:"string"` + + // The time (UTC) when the temporary password expires. After this timestamp, + // a log in with the temporary password fails. + Expiration *time.Time `type:"timestamp"` + + // Reserved for future use. + NextRefreshTime *time.Time `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 GetClusterCredentialsWithIAMOutput) 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 GetClusterCredentialsWithIAMOutput) GoString() string { + return s.String() +} + +// SetDbPassword sets the DbPassword field's value. +func (s *GetClusterCredentialsWithIAMOutput) SetDbPassword(v string) *GetClusterCredentialsWithIAMOutput { + s.DbPassword = &v + return s +} + +// SetDbUser sets the DbUser field's value. +func (s *GetClusterCredentialsWithIAMOutput) SetDbUser(v string) *GetClusterCredentialsWithIAMOutput { + s.DbUser = &v + return s +} + +// SetExpiration sets the Expiration field's value. +func (s *GetClusterCredentialsWithIAMOutput) SetExpiration(v time.Time) *GetClusterCredentialsWithIAMOutput { + s.Expiration = &v + return s +} + +// SetNextRefreshTime sets the NextRefreshTime field's value. +func (s *GetClusterCredentialsWithIAMOutput) SetNextRefreshTime(v time.Time) *GetClusterCredentialsWithIAMOutput { + s.NextRefreshTime = &v + return s +} + type GetReservedNodeExchangeConfigurationOptionsInput struct { _ struct{} `type:"structure"` diff --git a/service/redshift/redshiftiface/interface.go b/service/redshift/redshiftiface/interface.go index 6f13e14d244..26327fa316f 100644 --- a/service/redshift/redshiftiface/interface.go +++ b/service/redshift/redshiftiface/interface.go @@ -494,6 +494,10 @@ type RedshiftAPI interface { GetClusterCredentialsWithContext(aws.Context, *redshift.GetClusterCredentialsInput, ...request.Option) (*redshift.GetClusterCredentialsOutput, error) GetClusterCredentialsRequest(*redshift.GetClusterCredentialsInput) (*request.Request, *redshift.GetClusterCredentialsOutput) + GetClusterCredentialsWithIAM(*redshift.GetClusterCredentialsWithIAMInput) (*redshift.GetClusterCredentialsWithIAMOutput, error) + GetClusterCredentialsWithIAMWithContext(aws.Context, *redshift.GetClusterCredentialsWithIAMInput, ...request.Option) (*redshift.GetClusterCredentialsWithIAMOutput, error) + GetClusterCredentialsWithIAMRequest(*redshift.GetClusterCredentialsWithIAMInput) (*request.Request, *redshift.GetClusterCredentialsWithIAMOutput) + GetReservedNodeExchangeConfigurationOptions(*redshift.GetReservedNodeExchangeConfigurationOptionsInput) (*redshift.GetReservedNodeExchangeConfigurationOptionsOutput, error) GetReservedNodeExchangeConfigurationOptionsWithContext(aws.Context, *redshift.GetReservedNodeExchangeConfigurationOptionsInput, ...request.Option) (*redshift.GetReservedNodeExchangeConfigurationOptionsOutput, error) GetReservedNodeExchangeConfigurationOptionsRequest(*redshift.GetReservedNodeExchangeConfigurationOptionsInput) (*request.Request, *redshift.GetReservedNodeExchangeConfigurationOptionsOutput) diff --git a/service/redshiftserverless/api.go b/service/redshiftserverless/api.go new file mode 100644 index 00000000000..87bdac07e2e --- /dev/null +++ b/service/redshiftserverless/api.go @@ -0,0 +1,9456 @@ +// 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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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/redshift-serverless-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 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 new file mode 100644 index 00000000000..e2c4cb29791 --- /dev/null +++ b/service/redshiftserverless/doc.go @@ -0,0 +1,46 @@ +// 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/redshift-serverless-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 new file mode 100644 index 00000000000..79aa2ea94ef --- /dev/null +++ b/service/redshiftserverless/errors.go @@ -0,0 +1,84 @@ +// 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 new file mode 100644 index 00000000000..0006e8e5c3e --- /dev/null +++ b/service/redshiftserverless/redshiftserverlessiface/interface.go @@ -0,0 +1,230 @@ +// 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 new file mode 100644 index 00000000000..5d42ceb6548 --- /dev/null +++ b/service/redshiftserverless/service.go @@ -0,0 +1,107 @@ +// 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 = "Redshift Serverless" // Name of service. + EndpointsID = "redshift-serverless" // ID to lookup a service endpoint with. + ServiceID = "Redshift Serverless" // 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: "redshift-serverless", + }, + 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 +}