diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b5ce158f1c..09bc191a22c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +Release v1.44.168 (2022-12-27) +=== + +### Service Client Updates +* `service/memorydb`: Updates service API, documentation, and paginators +* `service/transfer`: Updates service API + * Add additional operations to throw ThrottlingExceptions + Release v1.44.167 (2022-12-23) === diff --git a/aws/version.go b/aws/version.go index 22c70013edc..905ba4e8b7a 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.167" +const SDKVersion = "1.44.168" diff --git a/models/apis/memorydb/2021-01-01/api-2.json b/models/apis/memorydb/2021-01-01/api-2.json index f20c2363393..ecbd38082b3 100644 --- a/models/apis/memorydb/2021-01-01/api-2.json +++ b/models/apis/memorydb/2021-01-01/api-2.json @@ -340,6 +340,36 @@ {"shape":"InvalidParameterCombinationException"} ] }, + "DescribeReservedNodes":{ + "name":"DescribeReservedNodes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReservedNodesRequest"}, + "output":{"shape":"DescribeReservedNodesResponse"}, + "errors":[ + {"shape":"ReservedNodeNotFoundFault"}, + {"shape":"ServiceLinkedRoleNotFoundFault"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidParameterCombinationException"} + ] + }, + "DescribeReservedNodesOfferings":{ + "name":"DescribeReservedNodesOfferings", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeReservedNodesOfferingsRequest"}, + "output":{"shape":"DescribeReservedNodesOfferingsResponse"}, + "errors":[ + {"shape":"ReservedNodesOfferingNotFoundFault"}, + {"shape":"ServiceLinkedRoleNotFoundFault"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidParameterCombinationException"} + ] + }, "DescribeServiceUpdates":{ "name":"DescribeServiceUpdates", "http":{ @@ -448,6 +478,24 @@ {"shape":"ACLNotFoundFault"} ] }, + "PurchaseReservedNodesOffering":{ + "name":"PurchaseReservedNodesOffering", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PurchaseReservedNodesOfferingRequest"}, + "output":{"shape":"PurchaseReservedNodesOfferingResponse"}, + "errors":[ + {"shape":"ReservedNodesOfferingNotFoundFault"}, + {"shape":"ReservedNodeAlreadyExistsFault"}, + {"shape":"ReservedNodeQuotaExceededFault"}, + {"shape":"ServiceLinkedRoleNotFoundFault"}, + {"shape":"TagQuotaPerResourceExceeded"}, + {"shape":"InvalidParameterValueException"}, + {"shape":"InvalidParameterCombinationException"} + ] + }, "ResetParameterGroup":{ "name":"ResetParameterGroup", "http":{ @@ -1148,6 +1196,43 @@ "Parameters":{"shape":"ParametersList"} } }, + "DescribeReservedNodesOfferingsRequest":{ + "type":"structure", + "members":{ + "ReservedNodesOfferingId":{"shape":"String"}, + "NodeType":{"shape":"String"}, + "Duration":{"shape":"String"}, + "OfferingType":{"shape":"String"}, + "MaxResults":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeReservedNodesOfferingsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"String"}, + "ReservedNodesOfferings":{"shape":"ReservedNodesOfferingList"} + } + }, + "DescribeReservedNodesRequest":{ + "type":"structure", + "members":{ + "ReservationId":{"shape":"String"}, + "ReservedNodesOfferingId":{"shape":"String"}, + "NodeType":{"shape":"String"}, + "Duration":{"shape":"String"}, + "OfferingType":{"shape":"String"}, + "MaxResults":{"shape":"IntegerOptional"}, + "NextToken":{"shape":"String"} + } + }, + "DescribeReservedNodesResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"String"}, + "ReservedNodes":{"shape":"ReservedNodeList"} + } + }, "DescribeServiceUpdatesRequest":{ "type":"structure", "members":{ @@ -1540,12 +1625,98 @@ "type":"list", "member":{"shape":"PendingModifiedServiceUpdate"} }, + "PurchaseReservedNodesOfferingRequest":{ + "type":"structure", + "required":["ReservedNodesOfferingId"], + "members":{ + "ReservedNodesOfferingId":{"shape":"String"}, + "ReservationId":{"shape":"String"}, + "NodeCount":{"shape":"IntegerOptional"}, + "Tags":{"shape":"TagList"} + } + }, + "PurchaseReservedNodesOfferingResponse":{ + "type":"structure", + "members":{ + "ReservedNode":{"shape":"ReservedNode"} + } + }, + "RecurringCharge":{ + "type":"structure", + "members":{ + "RecurringChargeAmount":{"shape":"Double"}, + "RecurringChargeFrequency":{"shape":"String"} + } + }, + "RecurringChargeList":{ + "type":"list", + "member":{"shape":"RecurringCharge"} + }, "ReplicaConfigurationRequest":{ "type":"structure", "members":{ "ReplicaCount":{"shape":"Integer"} } }, + "ReservedNode":{ + "type":"structure", + "members":{ + "ReservationId":{"shape":"String"}, + "ReservedNodesOfferingId":{"shape":"String"}, + "NodeType":{"shape":"String"}, + "StartTime":{"shape":"TStamp"}, + "Duration":{"shape":"Integer"}, + "FixedPrice":{"shape":"Double"}, + "NodeCount":{"shape":"Integer"}, + "OfferingType":{"shape":"String"}, + "State":{"shape":"String"}, + "RecurringCharges":{"shape":"RecurringChargeList"}, + "ARN":{"shape":"String"} + } + }, + "ReservedNodeAlreadyExistsFault":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ReservedNodeList":{ + "type":"list", + "member":{"shape":"ReservedNode"} + }, + "ReservedNodeNotFoundFault":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ReservedNodeQuotaExceededFault":{ + "type":"structure", + "members":{ + }, + "exception":true + }, + "ReservedNodesOffering":{ + "type":"structure", + "members":{ + "ReservedNodesOfferingId":{"shape":"String"}, + "NodeType":{"shape":"String"}, + "Duration":{"shape":"Integer"}, + "FixedPrice":{"shape":"Double"}, + "OfferingType":{"shape":"String"}, + "RecurringCharges":{"shape":"RecurringChargeList"} + } + }, + "ReservedNodesOfferingList":{ + "type":"list", + "member":{"shape":"ReservedNodesOffering"} + }, + "ReservedNodesOfferingNotFoundFault":{ + "type":"structure", + "members":{ + }, + "exception":true + }, "ResetParameterGroupRequest":{ "type":"structure", "required":["ParameterGroupName"], diff --git a/models/apis/memorydb/2021-01-01/docs-2.json b/models/apis/memorydb/2021-01-01/docs-2.json index 7aa743871a4..581ae5c64ce 100644 --- a/models/apis/memorydb/2021-01-01/docs-2.json +++ b/models/apis/memorydb/2021-01-01/docs-2.json @@ -22,6 +22,8 @@ "DescribeEvents": "
Returns events related to clusters, security groups, and parameter groups. You can obtain events specific to a particular cluster, security group, or parameter group by providing the name as a parameter. By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary.
", "DescribeParameterGroups": "Returns a list of parameter group descriptions. If a parameter group name is specified, the list contains only the descriptions for that group.
", "DescribeParameters": "Returns the detailed parameter list for a particular parameter group.
", + "DescribeReservedNodes": "Returns information about reserved nodes for this account, or about a specified reserved node.
", + "DescribeReservedNodesOfferings": "Lists available reserved node offerings.
", "DescribeServiceUpdates": "Returns details of the service updates
", "DescribeSnapshots": "Returns information about cluster snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cluster.
", "DescribeSubnetGroups": "Returns a list of subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group.
", @@ -29,6 +31,7 @@ "FailoverShard": "Used to failover a shard. This API is designed for testing the behavior of your application in case of MemoryDB failover. It is not designed to be used as a production-level tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large scale operational events, Amazon may block this API.
", "ListAllowedNodeTypeUpdates": "Lists all available node types that you can scale to from your cluster's current node type. When you use the UpdateCluster operation to scale your cluster, the value of the NodeType parameter must be one of the node types returned by this operation.
", "ListTags": "Lists all tags currently on a named resource. A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track your MemoryDB resources. For more information, see Tagging your MemoryDB resources
", + "PurchaseReservedNodesOffering": "Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable.
", "ResetParameterGroup": "Modifies the parameters of a parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire parameter group, specify the AllParameters and ParameterGroupName parameters.
", "TagResource": "A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your MemoryDB resources. When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. For more information, see Resource-level permissions.
For example, you can use cost-allocation tags to your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services. For more information, see Using Cost Allocation Tags.
", "UntagResource": "Use this operation to remove tags on a resource
", @@ -435,6 +438,26 @@ "refs": { } }, + "DescribeReservedNodesOfferingsRequest": { + "base": null, + "refs": { + } + }, + "DescribeReservedNodesOfferingsResponse": { + "base": null, + "refs": { + } + }, + "DescribeReservedNodesRequest": { + "base": null, + "refs": { + } + }, + "DescribeReservedNodesResponse": { + "base": null, + "refs": { + } + }, "DescribeServiceUpdatesRequest": { "base": null, "refs": { @@ -478,6 +501,9 @@ "Double": { "base": null, "refs": { + "RecurringCharge$RecurringChargeAmount": "The amount of the recurring charge to run this reserved node.
", + "ReservedNode$FixedPrice": "The fixed price charged for this reserved node.
", + "ReservedNodesOffering$FixedPrice": "The fixed price charged for this reserved node.
", "SlotMigration$ProgressPercentage": "The percentage of the slot migration that is complete.
" } }, @@ -573,6 +599,9 @@ "refs": { "Endpoint$Port": "The port number that the engine is listening on.
", "ReplicaConfigurationRequest$ReplicaCount": "The number of replicas to scale up or down to
", + "ReservedNode$Duration": "The duration of the reservation in seconds.
", + "ReservedNode$NodeCount": "The number of nodes that have been reserved.
", + "ReservedNodesOffering$Duration": "The duration of the reservation in seconds.
", "ShardConfigurationRequest$ShardCount": "The number of shards in the cluster
" } }, @@ -596,10 +625,13 @@ "DescribeEventsRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", "DescribeParameterGroupsRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", "DescribeParametersRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", + "DescribeReservedNodesOfferingsRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
", + "DescribeReservedNodesRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.
", "DescribeServiceUpdatesRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", "DescribeSnapshotsRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", "DescribeSubnetGroupsRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", "DescribeUsersRequest$MaxResults": "The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
", + "PurchaseReservedNodesOfferingRequest$NodeCount": "The number of node instances to reserve.
", "Shard$NumberOfNodes": "The number of nodes in the shard
", "ShardConfiguration$ReplicaCount": "The number of read replica nodes in this shard.
", "UpdateClusterRequest$SnapshotRetentionLimit": "The number of days for which MemoryDB retains automatic cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, a snapshot that was taken today is retained for 5 days before being deleted.
" @@ -815,12 +847,80 @@ "ClusterPendingUpdates$ServiceUpdates": "A list of service updates being applied to the cluster
" } }, + "PurchaseReservedNodesOfferingRequest": { + "base": null, + "refs": { + } + }, + "PurchaseReservedNodesOfferingResponse": { + "base": null, + "refs": { + } + }, + "RecurringCharge": { + "base": "The recurring charge to run this reserved node.
", + "refs": { + "RecurringChargeList$member": null + } + }, + "RecurringChargeList": { + "base": null, + "refs": { + "ReservedNode$RecurringCharges": "The recurring price charged to run this reserved node.
", + "ReservedNodesOffering$RecurringCharges": "The recurring price charged to run this reserved node.
" + } + }, "ReplicaConfigurationRequest": { "base": "A request to configure the number of replicas in a shard
", "refs": { "UpdateClusterRequest$ReplicaConfiguration": "The number of replicas that will reside in each shard
" } }, + "ReservedNode": { + "base": "Represents the output of a PurchaseReservedNodesOffering
operation.
Represents the output of a PurchaseReservedNodesOffering
operation.
You already have a reservation with the given identifier.
", + "refs": { + } + }, + "ReservedNodeList": { + "base": null, + "refs": { + "DescribeReservedNodesResponse$ReservedNodes": "Returns information about reserved nodes for this account, or about a specified reserved node.
" + } + }, + "ReservedNodeNotFoundFault": { + "base": "The requested node does not exist.
", + "refs": { + } + }, + "ReservedNodeQuotaExceededFault": { + "base": "The request cannot be processed because it would exceed the user's node quota.
", + "refs": { + } + }, + "ReservedNodesOffering": { + "base": "The offering type of this node.
", + "refs": { + "ReservedNodesOfferingList$member": null + } + }, + "ReservedNodesOfferingList": { + "base": null, + "refs": { + "DescribeReservedNodesOfferingsResponse$ReservedNodesOfferings": "Lists available reserved node offerings.
" + } + }, + "ReservedNodesOfferingNotFoundFault": { + "base": "The requested node offering does not exist.
", + "refs": { + } + }, "ResetParameterGroupRequest": { "base": null, "refs": { @@ -1081,6 +1181,19 @@ "DescribeParametersRequest$ParameterGroupName": "he name of a specific parameter group to return details for.
", "DescribeParametersRequest$NextToken": "An optional argument to pass in case the total number of records exceeds the value of MaxResults. 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.
", "DescribeParametersResponse$NextToken": "An optional argument to pass in case the total number of records exceeds the value of MaxResults. 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.
", + "DescribeReservedNodesOfferingsRequest$ReservedNodesOfferingId": "The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.
", + "DescribeReservedNodesOfferingsRequest$NodeType": "The node type for the reserved nodes. For more information, see Supported node types.
", + "DescribeReservedNodesOfferingsRequest$Duration": "Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.
", + "DescribeReservedNodesOfferingsRequest$OfferingType": "The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type. Valid values: \"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"
", + "DescribeReservedNodesOfferingsRequest$NextToken": "An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
", + "DescribeReservedNodesOfferingsResponse$NextToken": "An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
", + "DescribeReservedNodesRequest$ReservationId": "The reserved node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.
", + "DescribeReservedNodesRequest$ReservedNodesOfferingId": "The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.
", + "DescribeReservedNodesRequest$NodeType": "The node type filter value. Use this parameter to show only those reservations matching the specified node type. For more information, see Supported node types.
", + "DescribeReservedNodesRequest$Duration": "The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.
", + "DescribeReservedNodesRequest$OfferingType": "The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type. Valid values: \"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"
", + "DescribeReservedNodesRequest$NextToken": "An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
", + "DescribeReservedNodesResponse$NextToken": "An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
", "DescribeServiceUpdatesRequest$ServiceUpdateName": "The unique ID of the service update to describe.
", "DescribeServiceUpdatesRequest$NextToken": "An optional argument to pass in case the total number of records exceeds the value of MaxResults. 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.
", "DescribeServiceUpdatesResponse$NextToken": "An optional argument to pass in case the total number of records exceeds the value of MaxResults. 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.
", @@ -1124,6 +1237,18 @@ "ParameterNameValue$ParameterValue": "The value of the parameter
", "PasswordListInput$member": null, "PendingModifiedServiceUpdate$ServiceUpdateName": "The unique ID of the service update
", + "PurchaseReservedNodesOfferingRequest$ReservedNodesOfferingId": "The ID of the reserved node offering to purchase.
", + "PurchaseReservedNodesOfferingRequest$ReservationId": "A customer-specified identifier to track this reservation.
", + "RecurringCharge$RecurringChargeFrequency": "The frequency of the recurring price charged to run this reserved node.
", + "ReservedNode$ReservationId": "A customer-specified identifier to track this reservation.
", + "ReservedNode$ReservedNodesOfferingId": "The ID of the reserved node offering to purchase.
", + "ReservedNode$NodeType": "The node type for the reserved nodes.
", + "ReservedNode$OfferingType": "The offering type of this reserved node.
", + "ReservedNode$State": "The state of the reserved node.
", + "ReservedNode$ARN": "The Amazon Resource Name (ARN) of the reserved node.
", + "ReservedNodesOffering$ReservedNodesOfferingId": "The offering identifier.
", + "ReservedNodesOffering$NodeType": "The node type for the reserved nodes. For more information, see Supported node types.
", + "ReservedNodesOffering$OfferingType": "The offering type of this reserved node.
", "ResetParameterGroupRequest$ParameterGroupName": "The name of the parameter group to reset.
", "SecurityGroupIdsList$member": null, "SecurityGroupMembership$SecurityGroupId": "The identifier of the security group.
", @@ -1254,6 +1379,7 @@ "DescribeEventsRequest$EndTime": "The end of the time interval for which to retrieve events, specified in ISO 8601 format. Example: 2017-03-30T07:03:49.555Z
", "Event$Date": "The date and time when the event occurred.
", "Node$CreateTime": "The date and time when the node was created.
", + "ReservedNode$StartTime": "The time the reservation started.
", "ServiceUpdate$ReleaseDate": "The date when the service update is initially available
", "ServiceUpdate$AutoUpdateStartDate": "The date at which the service update will be automatically applied
", "ShardDetail$SnapshotCreationTime": "The date and time that the shard's snapshot was created
" @@ -1276,6 +1402,7 @@ "CreateSubnetGroupRequest$Tags": "A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
", "CreateUserRequest$Tags": "A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
", "ListTagsResponse$TagList": "A list of tags as key-value pairs.
", + "PurchaseReservedNodesOfferingRequest$Tags": "A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
", "TagResourceRequest$Tags": "A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.
", "TagResourceResponse$TagList": "A list of tags as key-value pairs.
", "UntagResourceResponse$TagList": "The list of tags removed
" diff --git a/models/apis/memorydb/2021-01-01/endpoint-rule-set-1.json b/models/apis/memorydb/2021-01-01/endpoint-rule-set-1.json index a17efdd8564..012d61ed506 100644 --- a/models/apis/memorydb/2021-01-01/endpoint-rule-set-1.json +++ b/models/apis/memorydb/2021-01-01/endpoint-rule-set-1.json @@ -3,7 +3,7 @@ "parameters": { "Region": { "builtIn": "AWS::Region", - "required": false, + "required": true, "documentation": "The AWS region used to dispatch the request.", "type": "String" }, @@ -52,15 +52,6 @@ "ref": "Endpoint" } ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], "type": "tree", diff --git a/models/apis/memorydb/2021-01-01/endpoint-tests-1.json b/models/apis/memorydb/2021-01-01/endpoint-tests-1.json index e9ba96469bd..d47326f8dea 100644 --- a/models/apis/memorydb/2021-01-01/endpoint-tests-1.json +++ b/models/apis/memorydb/2021-01-01/endpoint-tests-1.json @@ -8,8 +8,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": true, + "Region": "ap-south-1", "UseDualStack": true } }, @@ -21,8 +21,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": true, + "Region": "ap-south-1", "UseDualStack": false } }, @@ -34,8 +34,8 @@ } }, "params": { - "Region": "ap-south-1", "UseFIPS": false, + "Region": "ap-south-1", "UseDualStack": true } }, @@ -47,8 +47,60 @@ } }, "params": { + "UseFIPS": false, "Region": "ap-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-south-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://memory-db-fips.eu-south-1.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-south-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://memory-db-fips.eu-south-1.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-south-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-south-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://memory-db.eu-south-1.api.aws" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-south-1", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://memory-db.eu-south-1.amazonaws.com" + } + }, + "params": { "UseFIPS": false, + "Region": "eu-south-1", "UseDualStack": false } }, @@ -60,8 +112,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": true, + "Region": "ca-central-1", "UseDualStack": true } }, @@ -73,8 +125,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": true, + "Region": "ca-central-1", "UseDualStack": false } }, @@ -86,8 +138,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": false, + "Region": "ca-central-1", "UseDualStack": true } }, @@ -99,8 +151,8 @@ } }, "params": { - "Region": "ca-central-1", "UseFIPS": false, + "Region": "ca-central-1", "UseDualStack": false } }, @@ -112,8 +164,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": true, + "Region": "eu-central-1", "UseDualStack": true } }, @@ -125,8 +177,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": true, + "Region": "eu-central-1", "UseDualStack": false } }, @@ -138,8 +190,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": false, + "Region": "eu-central-1", "UseDualStack": true } }, @@ -151,8 +203,8 @@ } }, "params": { - "Region": "eu-central-1", "UseFIPS": false, + "Region": "eu-central-1", "UseDualStack": false } }, @@ -164,8 +216,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": true, + "Region": "us-west-1", "UseDualStack": true } }, @@ -177,8 +229,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": true, + "Region": "us-west-1", "UseDualStack": false } }, @@ -190,8 +242,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": false, + "Region": "us-west-1", "UseDualStack": true } }, @@ -203,8 +255,8 @@ } }, "params": { - "Region": "us-west-1", "UseFIPS": false, + "Region": "us-west-1", "UseDualStack": false } }, @@ -216,8 +268,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": true, + "Region": "us-west-2", "UseDualStack": true } }, @@ -229,8 +281,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": true, + "Region": "us-west-2", "UseDualStack": false } }, @@ -242,8 +294,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": false, + "Region": "us-west-2", "UseDualStack": true } }, @@ -255,8 +307,8 @@ } }, "params": { - "Region": "us-west-2", "UseFIPS": false, + "Region": "us-west-2", "UseDualStack": false } }, @@ -268,8 +320,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": true, + "Region": "eu-north-1", "UseDualStack": true } }, @@ -281,8 +333,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": true, + "Region": "eu-north-1", "UseDualStack": false } }, @@ -294,8 +346,8 @@ } }, "params": { - "Region": "eu-north-1", "UseFIPS": false, + "Region": "eu-north-1", "UseDualStack": true } }, @@ -307,8 +359,60 @@ } }, "params": { + "UseFIPS": false, "Region": "eu-north-1", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-3 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://memory-db-fips.eu-west-3.api.aws" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-3", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-3 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://memory-db-fips.eu-west-3.amazonaws.com" + } + }, + "params": { + "UseFIPS": true, + "Region": "eu-west-3", + "UseDualStack": false + } + }, + { + "documentation": "For region eu-west-3 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://memory-db.eu-west-3.api.aws" + } + }, + "params": { "UseFIPS": false, + "Region": "eu-west-3", + "UseDualStack": true + } + }, + { + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://memory-db.eu-west-3.amazonaws.com" + } + }, + "params": { + "UseFIPS": false, + "Region": "eu-west-3", "UseDualStack": false } }, @@ -320,8 +424,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": true, + "Region": "eu-west-2", "UseDualStack": true } }, @@ -333,8 +437,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": true, + "Region": "eu-west-2", "UseDualStack": false } }, @@ -346,8 +450,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": false, + "Region": "eu-west-2", "UseDualStack": true } }, @@ -359,8 +463,8 @@ } }, "params": { - "Region": "eu-west-2", "UseFIPS": false, + "Region": "eu-west-2", "UseDualStack": false } }, @@ -372,8 +476,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": true, + "Region": "eu-west-1", "UseDualStack": true } }, @@ -385,8 +489,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": true, + "Region": "eu-west-1", "UseDualStack": false } }, @@ -398,8 +502,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": false, + "Region": "eu-west-1", "UseDualStack": true } }, @@ -411,8 +515,8 @@ } }, "params": { - "Region": "eu-west-1", "UseFIPS": false, + "Region": "eu-west-1", "UseDualStack": false } }, @@ -424,8 +528,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": true, + "Region": "ap-northeast-2", "UseDualStack": true } }, @@ -437,8 +541,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": true, + "Region": "ap-northeast-2", "UseDualStack": false } }, @@ -450,8 +554,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": false, + "Region": "ap-northeast-2", "UseDualStack": true } }, @@ -463,8 +567,8 @@ } }, "params": { - "Region": "ap-northeast-2", "UseFIPS": false, + "Region": "ap-northeast-2", "UseDualStack": false } }, @@ -476,8 +580,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": true, + "Region": "ap-northeast-1", "UseDualStack": true } }, @@ -489,8 +593,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": true, + "Region": "ap-northeast-1", "UseDualStack": false } }, @@ -502,8 +606,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": false, + "Region": "ap-northeast-1", "UseDualStack": true } }, @@ -515,8 +619,8 @@ } }, "params": { - "Region": "ap-northeast-1", "UseFIPS": false, + "Region": "ap-northeast-1", "UseDualStack": false } }, @@ -528,8 +632,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": true, + "Region": "sa-east-1", "UseDualStack": true } }, @@ -541,8 +645,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": true, + "Region": "sa-east-1", "UseDualStack": false } }, @@ -554,8 +658,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": false, + "Region": "sa-east-1", "UseDualStack": true } }, @@ -567,8 +671,8 @@ } }, "params": { - "Region": "sa-east-1", "UseFIPS": false, + "Region": "sa-east-1", "UseDualStack": false } }, @@ -580,8 +684,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": true, + "Region": "ap-east-1", "UseDualStack": true } }, @@ -593,8 +697,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": true, + "Region": "ap-east-1", "UseDualStack": false } }, @@ -606,8 +710,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": false, + "Region": "ap-east-1", "UseDualStack": true } }, @@ -619,8 +723,8 @@ } }, "params": { - "Region": "ap-east-1", "UseFIPS": false, + "Region": "ap-east-1", "UseDualStack": false } }, @@ -632,8 +736,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": true, + "Region": "cn-north-1", "UseDualStack": true } }, @@ -645,8 +749,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": true, + "Region": "cn-north-1", "UseDualStack": false } }, @@ -658,8 +762,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": false, + "Region": "cn-north-1", "UseDualStack": true } }, @@ -671,8 +775,8 @@ } }, "params": { - "Region": "cn-north-1", "UseFIPS": false, + "Region": "cn-north-1", "UseDualStack": false } }, @@ -684,8 +788,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": true, + "Region": "ap-southeast-1", "UseDualStack": true } }, @@ -697,8 +801,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": true, + "Region": "ap-southeast-1", "UseDualStack": false } }, @@ -710,8 +814,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": false, + "Region": "ap-southeast-1", "UseDualStack": true } }, @@ -723,8 +827,8 @@ } }, "params": { - "Region": "ap-southeast-1", "UseFIPS": false, + "Region": "ap-southeast-1", "UseDualStack": false } }, @@ -736,8 +840,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": true, + "Region": "ap-southeast-2", "UseDualStack": true } }, @@ -749,8 +853,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": true, + "Region": "ap-southeast-2", "UseDualStack": false } }, @@ -762,8 +866,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": false, + "Region": "ap-southeast-2", "UseDualStack": true } }, @@ -775,8 +879,8 @@ } }, "params": { - "Region": "ap-southeast-2", "UseFIPS": false, + "Region": "ap-southeast-2", "UseDualStack": false } }, @@ -788,8 +892,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "UseDualStack": true } }, @@ -801,8 +905,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "UseDualStack": false } }, @@ -814,8 +918,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": true } }, @@ -827,8 +931,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": false } }, @@ -840,8 +944,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": true, + "Region": "us-east-2", "UseDualStack": true } }, @@ -853,8 +957,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": true, + "Region": "us-east-2", "UseDualStack": false } }, @@ -866,8 +970,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": false, + "Region": "us-east-2", "UseDualStack": true } }, @@ -879,8 +983,8 @@ } }, "params": { - "Region": "us-east-2", "UseFIPS": false, + "Region": "us-east-2", "UseDualStack": false } }, @@ -892,8 +996,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": true, + "Region": "cn-northwest-1", "UseDualStack": true } }, @@ -905,8 +1009,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": true, + "Region": "cn-northwest-1", "UseDualStack": false } }, @@ -918,8 +1022,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": false, + "Region": "cn-northwest-1", "UseDualStack": true } }, @@ -931,8 +1035,8 @@ } }, "params": { - "Region": "cn-northwest-1", "UseFIPS": false, + "Region": "cn-northwest-1", "UseDualStack": false } }, @@ -944,8 +1048,8 @@ } }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } @@ -956,8 +1060,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", "UseFIPS": true, + "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } @@ -968,8 +1072,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", "UseFIPS": false, + "Region": "us-east-1", "UseDualStack": true, "Endpoint": "https://example.com" } diff --git a/models/apis/memorydb/2021-01-01/paginators-1.json b/models/apis/memorydb/2021-01-01/paginators-1.json index 5677bd8e4a2..06c1b769a69 100644 --- a/models/apis/memorydb/2021-01-01/paginators-1.json +++ b/models/apis/memorydb/2021-01-01/paginators-1.json @@ -1,4 +1,76 @@ { "pagination": { + "DescribeACLs": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ACLs" + }, + "DescribeClusters": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Clusters" + }, + "DescribeEngineVersions": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "EngineVersions" + }, + "DescribeEvents": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Events" + }, + "DescribeParameterGroups": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ParameterGroups" + }, + "DescribeParameters": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Parameters" + }, + "DescribeReservedNodes": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ReservedNodes" + }, + "DescribeReservedNodesOfferings": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ReservedNodesOfferings" + }, + "DescribeServiceUpdates": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ServiceUpdates" + }, + "DescribeSnapshots": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Snapshots" + }, + "DescribeSubnetGroups": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "SubnetGroups" + }, + "DescribeUsers": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Users" + } } -} +} \ No newline at end of file diff --git a/models/apis/transfer/2018-11-05/api-2.json b/models/apis/transfer/2018-11-05/api-2.json index eef4cf75b1b..107cd0d3214 100644 --- a/models/apis/transfer/2018-11-05/api-2.json +++ b/models/apis/transfer/2018-11-05/api-2.json @@ -43,7 +43,8 @@ {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, {"shape":"ResourceExistsException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "CreateConnector":{ @@ -59,7 +60,8 @@ {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, {"shape":"ResourceExistsException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "CreateProfile":{ @@ -74,7 +76,8 @@ {"shape":"ServiceUnavailableException"}, {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "CreateServer":{ @@ -793,7 +796,8 @@ {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, {"shape":"ResourceExistsException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "UpdateAgreement":{ @@ -809,7 +813,8 @@ {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, {"shape":"ResourceExistsException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "UpdateCertificate":{ @@ -824,7 +829,8 @@ {"shape":"ServiceUnavailableException"}, {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "UpdateConnector":{ @@ -840,7 +846,8 @@ {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, {"shape":"ResourceExistsException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "UpdateHostKey":{ @@ -871,7 +878,8 @@ {"shape":"ServiceUnavailableException"}, {"shape":"InternalServiceError"}, {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} ] }, "UpdateServer":{ diff --git a/models/apis/transfer/2018-11-05/endpoint-rule-set-1.json b/models/apis/transfer/2018-11-05/endpoint-rule-set-1.json index 8cdb72e3904..f32cf60f51b 100644 --- a/models/apis/transfer/2018-11-05/endpoint-rule-set-1.json +++ b/models/apis/transfer/2018-11-05/endpoint-rule-set-1.json @@ -52,15 +52,6 @@ "ref": "Endpoint" } ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], "type": "tree", diff --git a/models/apis/transfer/2018-11-05/endpoint-tests-1.json b/models/apis/transfer/2018-11-05/endpoint-tests-1.json index e993248095f..77ffe73eb2a 100644 --- a/models/apis/transfer/2018-11-05/endpoint-tests-1.json +++ b/models/apis/transfer/2018-11-05/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-south-1" + "Region": "ap-south-1", + "UseDualStack": true } }, { @@ -21,9 +21,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-south-1" + "Region": "ap-south-1", + "UseDualStack": false } }, { @@ -34,9 +34,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-south-1" + "Region": "ap-south-1", + "UseDualStack": true } }, { @@ -47,9 +47,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-south-1" + "Region": "ap-south-1", + "UseDualStack": false } }, { @@ -60,9 +60,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-south-1" + "Region": "eu-south-1", + "UseDualStack": true } }, { @@ -73,9 +73,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "eu-south-1" + "Region": "eu-south-1", + "UseDualStack": false } }, { @@ -86,9 +86,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-south-1" + "Region": "eu-south-1", + "UseDualStack": true } }, { @@ -99,9 +99,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-south-1" + "Region": "eu-south-1", + "UseDualStack": false } }, { @@ -112,9 +112,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-gov-east-1" + "Region": "us-gov-east-1", + "UseDualStack": true } }, { @@ -125,9 +125,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-east-1" + "Region": "us-gov-east-1", + "UseDualStack": false } }, { @@ -138,9 +138,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-gov-east-1" + "Region": "us-gov-east-1", + "UseDualStack": true } }, { @@ -151,9 +151,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-east-1" + "Region": "us-gov-east-1", + "UseDualStack": false } }, { @@ -164,9 +164,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ca-central-1" + "Region": "ca-central-1", + "UseDualStack": true } }, { @@ -177,9 +177,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ca-central-1" + "Region": "ca-central-1", + "UseDualStack": false } }, { @@ -190,9 +190,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ca-central-1" + "Region": "ca-central-1", + "UseDualStack": true } }, { @@ -203,9 +203,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ca-central-1" + "Region": "ca-central-1", + "UseDualStack": false } }, { @@ -216,9 +216,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-central-1" + "Region": "eu-central-1", + "UseDualStack": true } }, { @@ -229,9 +229,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "eu-central-1" + "Region": "eu-central-1", + "UseDualStack": false } }, { @@ -242,9 +242,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-central-1" + "Region": "eu-central-1", + "UseDualStack": true } }, { @@ -255,9 +255,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-central-1" + "Region": "eu-central-1", + "UseDualStack": false } }, { @@ -268,9 +268,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-west-1" + "Region": "us-west-1", + "UseDualStack": true } }, { @@ -281,9 +281,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-west-1" + "Region": "us-west-1", + "UseDualStack": false } }, { @@ -294,9 +294,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-west-1" + "Region": "us-west-1", + "UseDualStack": true } }, { @@ -307,9 +307,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-1" + "Region": "us-west-1", + "UseDualStack": false } }, { @@ -320,9 +320,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-west-2" + "Region": "us-west-2", + "UseDualStack": true } }, { @@ -333,9 +333,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-west-2" + "Region": "us-west-2", + "UseDualStack": false } }, { @@ -346,9 +346,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-west-2" + "Region": "us-west-2", + "UseDualStack": true } }, { @@ -359,9 +359,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-west-2" + "Region": "us-west-2", + "UseDualStack": false } }, { @@ -372,9 +372,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "af-south-1" + "Region": "af-south-1", + "UseDualStack": true } }, { @@ -385,9 +385,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "af-south-1" + "Region": "af-south-1", + "UseDualStack": false } }, { @@ -398,9 +398,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "af-south-1" + "Region": "af-south-1", + "UseDualStack": true } }, { @@ -411,9 +411,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "af-south-1" + "Region": "af-south-1", + "UseDualStack": false } }, { @@ -424,9 +424,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-north-1" + "Region": "eu-north-1", + "UseDualStack": true } }, { @@ -437,9 +437,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "eu-north-1" + "Region": "eu-north-1", + "UseDualStack": false } }, { @@ -450,9 +450,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-north-1" + "Region": "eu-north-1", + "UseDualStack": true } }, { @@ -463,9 +463,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-north-1" + "Region": "eu-north-1", + "UseDualStack": false } }, { @@ -476,9 +476,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-west-3" + "Region": "eu-west-3", + "UseDualStack": true } }, { @@ -489,9 +489,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "eu-west-3" + "Region": "eu-west-3", + "UseDualStack": false } }, { @@ -502,9 +502,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-west-3" + "Region": "eu-west-3", + "UseDualStack": true } }, { @@ -515,9 +515,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-3" + "Region": "eu-west-3", + "UseDualStack": false } }, { @@ -528,9 +528,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-west-2" + "Region": "eu-west-2", + "UseDualStack": true } }, { @@ -541,9 +541,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "eu-west-2" + "Region": "eu-west-2", + "UseDualStack": false } }, { @@ -554,9 +554,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-west-2" + "Region": "eu-west-2", + "UseDualStack": true } }, { @@ -567,9 +567,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-2" + "Region": "eu-west-2", + "UseDualStack": false } }, { @@ -580,9 +580,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "eu-west-1" + "Region": "eu-west-1", + "UseDualStack": true } }, { @@ -593,9 +593,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "eu-west-1" + "Region": "eu-west-1", + "UseDualStack": false } }, { @@ -606,9 +606,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "eu-west-1" + "Region": "eu-west-1", + "UseDualStack": true } }, { @@ -619,9 +619,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "eu-west-1" + "Region": "eu-west-1", + "UseDualStack": false } }, { @@ -632,9 +632,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-northeast-3" + "Region": "ap-northeast-3", + "UseDualStack": true } }, { @@ -645,9 +645,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-northeast-3" + "Region": "ap-northeast-3", + "UseDualStack": false } }, { @@ -658,9 +658,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-3" + "Region": "ap-northeast-3", + "UseDualStack": true } }, { @@ -671,9 +671,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-3" + "Region": "ap-northeast-3", + "UseDualStack": false } }, { @@ -684,9 +684,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-northeast-2" + "Region": "ap-northeast-2", + "UseDualStack": true } }, { @@ -697,9 +697,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-northeast-2" + "Region": "ap-northeast-2", + "UseDualStack": false } }, { @@ -710,9 +710,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-2" + "Region": "ap-northeast-2", + "UseDualStack": true } }, { @@ -723,9 +723,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-2" + "Region": "ap-northeast-2", + "UseDualStack": false } }, { @@ -736,9 +736,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-northeast-1" + "Region": "ap-northeast-1", + "UseDualStack": true } }, { @@ -749,9 +749,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-northeast-1" + "Region": "ap-northeast-1", + "UseDualStack": false } }, { @@ -762,9 +762,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-northeast-1" + "Region": "ap-northeast-1", + "UseDualStack": true } }, { @@ -775,9 +775,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-northeast-1" + "Region": "ap-northeast-1", + "UseDualStack": false } }, { @@ -788,9 +788,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "me-south-1" + "Region": "me-south-1", + "UseDualStack": true } }, { @@ -801,9 +801,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "me-south-1" + "Region": "me-south-1", + "UseDualStack": false } }, { @@ -814,9 +814,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "me-south-1" + "Region": "me-south-1", + "UseDualStack": true } }, { @@ -827,9 +827,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "me-south-1" + "Region": "me-south-1", + "UseDualStack": false } }, { @@ -840,9 +840,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "sa-east-1" + "Region": "sa-east-1", + "UseDualStack": true } }, { @@ -853,9 +853,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "sa-east-1" + "Region": "sa-east-1", + "UseDualStack": false } }, { @@ -866,9 +866,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "sa-east-1" + "Region": "sa-east-1", + "UseDualStack": true } }, { @@ -879,9 +879,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "sa-east-1" + "Region": "sa-east-1", + "UseDualStack": false } }, { @@ -892,9 +892,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-east-1" + "Region": "ap-east-1", + "UseDualStack": true } }, { @@ -905,9 +905,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-east-1" + "Region": "ap-east-1", + "UseDualStack": false } }, { @@ -918,9 +918,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-east-1" + "Region": "ap-east-1", + "UseDualStack": true } }, { @@ -931,9 +931,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-east-1" + "Region": "ap-east-1", + "UseDualStack": false } }, { @@ -944,9 +944,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "cn-north-1" + "Region": "cn-north-1", + "UseDualStack": true } }, { @@ -957,9 +957,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "cn-north-1" + "Region": "cn-north-1", + "UseDualStack": false } }, { @@ -970,9 +970,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "cn-north-1" + "Region": "cn-north-1", + "UseDualStack": true } }, { @@ -983,9 +983,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "cn-north-1" + "Region": "cn-north-1", + "UseDualStack": false } }, { @@ -996,9 +996,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-gov-west-1" + "Region": "us-gov-west-1", + "UseDualStack": true } }, { @@ -1009,9 +1009,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-gov-west-1" + "Region": "us-gov-west-1", + "UseDualStack": false } }, { @@ -1022,9 +1022,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-gov-west-1" + "Region": "us-gov-west-1", + "UseDualStack": true } }, { @@ -1035,9 +1035,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-gov-west-1" + "Region": "us-gov-west-1", + "UseDualStack": false } }, { @@ -1048,9 +1048,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-1" + "Region": "ap-southeast-1", + "UseDualStack": true } }, { @@ -1061,9 +1061,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-1" + "Region": "ap-southeast-1", + "UseDualStack": false } }, { @@ -1074,9 +1074,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-1" + "Region": "ap-southeast-1", + "UseDualStack": true } }, { @@ -1087,9 +1087,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-1" + "Region": "ap-southeast-1", + "UseDualStack": false } }, { @@ -1100,9 +1100,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-2" + "Region": "ap-southeast-2", + "UseDualStack": true } }, { @@ -1113,9 +1113,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-2" + "Region": "ap-southeast-2", + "UseDualStack": false } }, { @@ -1126,9 +1126,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-2" + "Region": "ap-southeast-2", + "UseDualStack": true } }, { @@ -1139,9 +1139,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-2" + "Region": "ap-southeast-2", + "UseDualStack": false } }, { @@ -1152,9 +1152,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "ap-southeast-3" + "Region": "ap-southeast-3", + "UseDualStack": true } }, { @@ -1165,9 +1165,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "ap-southeast-3" + "Region": "ap-southeast-3", + "UseDualStack": false } }, { @@ -1178,9 +1178,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "ap-southeast-3" + "Region": "ap-southeast-3", + "UseDualStack": true } }, { @@ -1191,9 +1191,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "ap-southeast-3" + "Region": "ap-southeast-3", + "UseDualStack": false } }, { @@ -1204,9 +1204,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-east-1" + "Region": "us-east-1", + "UseDualStack": true } }, { @@ -1217,9 +1217,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-east-1" + "Region": "us-east-1", + "UseDualStack": false } }, { @@ -1230,9 +1230,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-east-1" + "Region": "us-east-1", + "UseDualStack": true } }, { @@ -1243,9 +1243,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-1" + "Region": "us-east-1", + "UseDualStack": false } }, { @@ -1256,9 +1256,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "us-east-2" + "Region": "us-east-2", + "UseDualStack": true } }, { @@ -1269,9 +1269,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "us-east-2" + "Region": "us-east-2", + "UseDualStack": false } }, { @@ -1282,9 +1282,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "us-east-2" + "Region": "us-east-2", + "UseDualStack": true } }, { @@ -1295,9 +1295,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "us-east-2" + "Region": "us-east-2", + "UseDualStack": false } }, { @@ -1308,9 +1308,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, - "Region": "cn-northwest-1" + "Region": "cn-northwest-1", + "UseDualStack": true } }, { @@ -1321,9 +1321,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, - "Region": "cn-northwest-1" + "Region": "cn-northwest-1", + "UseDualStack": false } }, { @@ -1334,9 +1334,9 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, - "Region": "cn-northwest-1" + "Region": "cn-northwest-1", + "UseDualStack": true } }, { @@ -1347,9 +1347,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, - "Region": "cn-northwest-1" + "Region": "cn-northwest-1", + "UseDualStack": false } }, { @@ -1360,9 +1360,9 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, "Region": "us-east-1", + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -1372,9 +1372,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, "Region": "us-east-1", + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -1384,9 +1384,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, "Region": "us-east-1", + "UseDualStack": true, "Endpoint": "https://example.com" } } diff --git a/service/memorydb/api.go b/service/memorydb/api.go index d6242fb0a73..6dadc998aca 100644 --- a/service/memorydb/api.go +++ b/service/memorydb/api.go @@ -1298,6 +1298,12 @@ func (c *MemoryDB) DescribeACLsRequest(input *DescribeACLsInput) (req *request.R Name: opDescribeACLs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1348,6 +1354,57 @@ func (c *MemoryDB) DescribeACLsWithContext(ctx aws.Context, input *DescribeACLsI return out, req.Send() } +// DescribeACLsPages iterates over the pages of a DescribeACLs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeACLs 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 DescribeACLs operation. +// pageNum := 0 +// err := client.DescribeACLsPages(params, +// func(page *memorydb.DescribeACLsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeACLsPages(input *DescribeACLsInput, fn func(*DescribeACLsOutput, bool) bool) error { + return c.DescribeACLsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeACLsPagesWithContext same as DescribeACLsPages 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 *MemoryDB) DescribeACLsPagesWithContext(ctx aws.Context, input *DescribeACLsInput, fn func(*DescribeACLsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeACLsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeACLsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeACLsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeClusters = "DescribeClusters" // DescribeClustersRequest generates a "aws/request.Request" representing the @@ -1378,6 +1435,12 @@ func (c *MemoryDB) DescribeClustersRequest(input *DescribeClustersInput) (req *r Name: opDescribeClusters, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1433,6 +1496,57 @@ func (c *MemoryDB) DescribeClustersWithContext(ctx aws.Context, input *DescribeC return out, req.Send() } +// DescribeClustersPages iterates over the pages of a DescribeClusters operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeClusters 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 DescribeClusters operation. +// pageNum := 0 +// err := client.DescribeClustersPages(params, +// func(page *memorydb.DescribeClustersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeClustersPages(input *DescribeClustersInput, fn func(*DescribeClustersOutput, bool) bool) error { + return c.DescribeClustersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeClustersPagesWithContext same as DescribeClustersPages 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 *MemoryDB) DescribeClustersPagesWithContext(ctx aws.Context, input *DescribeClustersInput, fn func(*DescribeClustersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeClustersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeClustersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeClustersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeEngineVersions = "DescribeEngineVersions" // DescribeEngineVersionsRequest generates a "aws/request.Request" representing the @@ -1463,6 +1577,12 @@ func (c *MemoryDB) DescribeEngineVersionsRequest(input *DescribeEngineVersionsIn Name: opDescribeEngineVersions, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1515,6 +1635,57 @@ func (c *MemoryDB) DescribeEngineVersionsWithContext(ctx aws.Context, input *Des return out, req.Send() } +// DescribeEngineVersionsPages iterates over the pages of a DescribeEngineVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeEngineVersions 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 DescribeEngineVersions operation. +// pageNum := 0 +// err := client.DescribeEngineVersionsPages(params, +// func(page *memorydb.DescribeEngineVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeEngineVersionsPages(input *DescribeEngineVersionsInput, fn func(*DescribeEngineVersionsOutput, bool) bool) error { + return c.DescribeEngineVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeEngineVersionsPagesWithContext same as DescribeEngineVersionsPages 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 *MemoryDB) DescribeEngineVersionsPagesWithContext(ctx aws.Context, input *DescribeEngineVersionsInput, fn func(*DescribeEngineVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeEngineVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeEngineVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeEngineVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeEvents = "DescribeEvents" // DescribeEventsRequest generates a "aws/request.Request" representing the @@ -1545,6 +1716,12 @@ func (c *MemoryDB) DescribeEventsRequest(input *DescribeEventsInput) (req *reque Name: opDescribeEvents, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1601,6 +1778,57 @@ func (c *MemoryDB) DescribeEventsWithContext(ctx aws.Context, input *DescribeEve return out, req.Send() } +// DescribeEventsPages iterates over the pages of a DescribeEvents operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeEvents 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 DescribeEvents operation. +// pageNum := 0 +// err := client.DescribeEventsPages(params, +// func(page *memorydb.DescribeEventsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeEventsPages(input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool) error { + return c.DescribeEventsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeEventsPagesWithContext same as DescribeEventsPages 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 *MemoryDB) DescribeEventsPagesWithContext(ctx aws.Context, input *DescribeEventsInput, fn func(*DescribeEventsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeEventsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeEventsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeEventsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeParameterGroups = "DescribeParameterGroups" // DescribeParameterGroupsRequest generates a "aws/request.Request" representing the @@ -1631,6 +1859,12 @@ func (c *MemoryDB) DescribeParameterGroupsRequest(input *DescribeParameterGroups Name: opDescribeParameterGroups, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1686,6 +1920,57 @@ func (c *MemoryDB) DescribeParameterGroupsWithContext(ctx aws.Context, input *De return out, req.Send() } +// DescribeParameterGroupsPages iterates over the pages of a DescribeParameterGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeParameterGroups 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 DescribeParameterGroups operation. +// pageNum := 0 +// err := client.DescribeParameterGroupsPages(params, +// func(page *memorydb.DescribeParameterGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeParameterGroupsPages(input *DescribeParameterGroupsInput, fn func(*DescribeParameterGroupsOutput, bool) bool) error { + return c.DescribeParameterGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeParameterGroupsPagesWithContext same as DescribeParameterGroupsPages 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 *MemoryDB) DescribeParameterGroupsPagesWithContext(ctx aws.Context, input *DescribeParameterGroupsInput, fn func(*DescribeParameterGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeParameterGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeParameterGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeParameterGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeParameters = "DescribeParameters" // DescribeParametersRequest generates a "aws/request.Request" representing the @@ -1716,6 +2001,12 @@ func (c *MemoryDB) DescribeParametersRequest(input *DescribeParametersInput) (re Name: opDescribeParameters, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1770,143 +2061,262 @@ func (c *MemoryDB) DescribeParametersWithContext(ctx aws.Context, input *Describ return out, req.Send() } -const opDescribeServiceUpdates = "DescribeServiceUpdates" +// DescribeParametersPages iterates over the pages of a DescribeParameters operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeParameters 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 DescribeParameters operation. +// pageNum := 0 +// err := client.DescribeParametersPages(params, +// func(page *memorydb.DescribeParametersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeParametersPages(input *DescribeParametersInput, fn func(*DescribeParametersOutput, bool) bool) error { + return c.DescribeParametersPagesWithContext(aws.BackgroundContext(), input, fn) +} -// DescribeServiceUpdatesRequest generates a "aws/request.Request" representing the -// client's request for the DescribeServiceUpdates operation. The "output" return +// DescribeParametersPagesWithContext same as DescribeParametersPages 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 *MemoryDB) DescribeParametersPagesWithContext(ctx aws.Context, input *DescribeParametersInput, fn func(*DescribeParametersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeParametersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeParametersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeParametersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeReservedNodes = "DescribeReservedNodes" + +// DescribeReservedNodesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReservedNodes 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 DescribeServiceUpdates for more information on using the DescribeServiceUpdates +// See DescribeReservedNodes for more information on using the DescribeReservedNodes // 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 DescribeServiceUpdatesRequest method. -// req, resp := client.DescribeServiceUpdatesRequest(params) +// // Example sending a request using the DescribeReservedNodesRequest method. +// req, resp := client.DescribeReservedNodesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeServiceUpdates -func (c *MemoryDB) DescribeServiceUpdatesRequest(input *DescribeServiceUpdatesInput) (req *request.Request, output *DescribeServiceUpdatesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeReservedNodes +func (c *MemoryDB) DescribeReservedNodesRequest(input *DescribeReservedNodesInput) (req *request.Request, output *DescribeReservedNodesOutput) { op := &request.Operation{ - Name: opDescribeServiceUpdates, + Name: opDescribeReservedNodes, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &DescribeServiceUpdatesInput{} + input = &DescribeReservedNodesInput{} } - output = &DescribeServiceUpdatesOutput{} + output = &DescribeReservedNodesOutput{} req = c.newRequest(op, input, output) return } -// DescribeServiceUpdates API operation for Amazon MemoryDB. +// DescribeReservedNodes API operation for Amazon MemoryDB. // -// # Returns details of the service updates +// Returns information about reserved nodes for this account, or about a specified +// reserved node. // // 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 MemoryDB's -// API operation DescribeServiceUpdates for usage and error information. +// API operation DescribeReservedNodes for usage and error information. // // Returned Error Types: // +// - ReservedNodeNotFoundFault +// The requested node does not exist. +// +// - ServiceLinkedRoleNotFoundFault +// // - InvalidParameterValueException // // - InvalidParameterCombinationException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeServiceUpdates -func (c *MemoryDB) DescribeServiceUpdates(input *DescribeServiceUpdatesInput) (*DescribeServiceUpdatesOutput, error) { - req, out := c.DescribeServiceUpdatesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeReservedNodes +func (c *MemoryDB) DescribeReservedNodes(input *DescribeReservedNodesInput) (*DescribeReservedNodesOutput, error) { + req, out := c.DescribeReservedNodesRequest(input) return out, req.Send() } -// DescribeServiceUpdatesWithContext is the same as DescribeServiceUpdates with the addition of +// DescribeReservedNodesWithContext is the same as DescribeReservedNodes with the addition of // the ability to pass a context and additional request options. // -// See DescribeServiceUpdates for details on how to use this API operation. +// See DescribeReservedNodes 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 *MemoryDB) DescribeServiceUpdatesWithContext(ctx aws.Context, input *DescribeServiceUpdatesInput, opts ...request.Option) (*DescribeServiceUpdatesOutput, error) { - req, out := c.DescribeServiceUpdatesRequest(input) +func (c *MemoryDB) DescribeReservedNodesWithContext(ctx aws.Context, input *DescribeReservedNodesInput, opts ...request.Option) (*DescribeReservedNodesOutput, error) { + req, out := c.DescribeReservedNodesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeSnapshots = "DescribeSnapshots" +// DescribeReservedNodesPages iterates over the pages of a DescribeReservedNodes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeReservedNodes 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 DescribeReservedNodes operation. +// pageNum := 0 +// err := client.DescribeReservedNodesPages(params, +// func(page *memorydb.DescribeReservedNodesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeReservedNodesPages(input *DescribeReservedNodesInput, fn func(*DescribeReservedNodesOutput, bool) bool) error { + return c.DescribeReservedNodesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// DescribeSnapshotsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSnapshots operation. The "output" return +// DescribeReservedNodesPagesWithContext same as DescribeReservedNodesPages 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 *MemoryDB) DescribeReservedNodesPagesWithContext(ctx aws.Context, input *DescribeReservedNodesInput, fn func(*DescribeReservedNodesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeReservedNodesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReservedNodesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeReservedNodesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeReservedNodesOfferings = "DescribeReservedNodesOfferings" + +// DescribeReservedNodesOfferingsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeReservedNodesOfferings 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 DescribeSnapshots for more information on using the DescribeSnapshots +// See DescribeReservedNodesOfferings for more information on using the DescribeReservedNodesOfferings // 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 DescribeSnapshotsRequest method. -// req, resp := client.DescribeSnapshotsRequest(params) +// // Example sending a request using the DescribeReservedNodesOfferingsRequest method. +// req, resp := client.DescribeReservedNodesOfferingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSnapshots -func (c *MemoryDB) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeReservedNodesOfferings +func (c *MemoryDB) DescribeReservedNodesOfferingsRequest(input *DescribeReservedNodesOfferingsInput) (req *request.Request, output *DescribeReservedNodesOfferingsOutput) { op := &request.Operation{ - Name: opDescribeSnapshots, + Name: opDescribeReservedNodesOfferings, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &DescribeSnapshotsInput{} + input = &DescribeReservedNodesOfferingsInput{} } - output = &DescribeSnapshotsOutput{} + output = &DescribeReservedNodesOfferingsOutput{} req = c.newRequest(op, input, output) return } -// DescribeSnapshots API operation for Amazon MemoryDB. +// DescribeReservedNodesOfferings API operation for Amazon MemoryDB. // -// Returns information about cluster snapshots. By default, DescribeSnapshots -// lists all of your snapshots; it can optionally describe a single snapshot, -// or just the snapshots associated with a particular cluster. +// Lists available reserved node offerings. // // 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 MemoryDB's -// API operation DescribeSnapshots for usage and error information. +// API operation DescribeReservedNodesOfferings for usage and error information. // // Returned Error Types: // -// - SnapshotNotFoundFault +// - ReservedNodesOfferingNotFoundFault +// The requested node offering does not exist. // // - ServiceLinkedRoleNotFoundFault // @@ -1914,127 +2324,515 @@ func (c *MemoryDB) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req // // - InvalidParameterCombinationException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSnapshots -func (c *MemoryDB) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { - req, out := c.DescribeSnapshotsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeReservedNodesOfferings +func (c *MemoryDB) DescribeReservedNodesOfferings(input *DescribeReservedNodesOfferingsInput) (*DescribeReservedNodesOfferingsOutput, error) { + req, out := c.DescribeReservedNodesOfferingsRequest(input) return out, req.Send() } -// DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of +// DescribeReservedNodesOfferingsWithContext is the same as DescribeReservedNodesOfferings with the addition of // the ability to pass a context and additional request options. // -// See DescribeSnapshots for details on how to use this API operation. +// See DescribeReservedNodesOfferings 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 *MemoryDB) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) { - req, out := c.DescribeSnapshotsRequest(input) +func (c *MemoryDB) DescribeReservedNodesOfferingsWithContext(ctx aws.Context, input *DescribeReservedNodesOfferingsInput, opts ...request.Option) (*DescribeReservedNodesOfferingsOutput, error) { + req, out := c.DescribeReservedNodesOfferingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeSubnetGroups = "DescribeSubnetGroups" +// DescribeReservedNodesOfferingsPages iterates over the pages of a DescribeReservedNodesOfferings operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeReservedNodesOfferings 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 DescribeReservedNodesOfferings operation. +// pageNum := 0 +// err := client.DescribeReservedNodesOfferingsPages(params, +// func(page *memorydb.DescribeReservedNodesOfferingsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeReservedNodesOfferingsPages(input *DescribeReservedNodesOfferingsInput, fn func(*DescribeReservedNodesOfferingsOutput, bool) bool) error { + return c.DescribeReservedNodesOfferingsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// DescribeSubnetGroupsRequest generates a "aws/request.Request" representing the -// client's request for the DescribeSubnetGroups operation. The "output" return +// DescribeReservedNodesOfferingsPagesWithContext same as DescribeReservedNodesOfferingsPages 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 *MemoryDB) DescribeReservedNodesOfferingsPagesWithContext(ctx aws.Context, input *DescribeReservedNodesOfferingsInput, fn func(*DescribeReservedNodesOfferingsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeReservedNodesOfferingsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeReservedNodesOfferingsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeReservedNodesOfferingsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeServiceUpdates = "DescribeServiceUpdates" + +// DescribeServiceUpdatesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeServiceUpdates 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 DescribeSubnetGroups for more information on using the DescribeSubnetGroups +// See DescribeServiceUpdates for more information on using the DescribeServiceUpdates // 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 DescribeSubnetGroupsRequest method. -// req, resp := client.DescribeSubnetGroupsRequest(params) +// // Example sending a request using the DescribeServiceUpdatesRequest method. +// req, resp := client.DescribeServiceUpdatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSubnetGroups -func (c *MemoryDB) DescribeSubnetGroupsRequest(input *DescribeSubnetGroupsInput) (req *request.Request, output *DescribeSubnetGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeServiceUpdates +func (c *MemoryDB) DescribeServiceUpdatesRequest(input *DescribeServiceUpdatesInput) (req *request.Request, output *DescribeServiceUpdatesOutput) { op := &request.Operation{ - Name: opDescribeSubnetGroups, + Name: opDescribeServiceUpdates, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &DescribeSubnetGroupsInput{} + input = &DescribeServiceUpdatesInput{} } - output = &DescribeSubnetGroupsOutput{} + output = &DescribeServiceUpdatesOutput{} req = c.newRequest(op, input, output) return } -// DescribeSubnetGroups API operation for Amazon MemoryDB. +// DescribeServiceUpdates API operation for Amazon MemoryDB. // -// Returns a list of subnet group descriptions. If a subnet group name is specified, -// the list contains only the description of that group. +// # Returns details of the service updates // // 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 MemoryDB's -// API operation DescribeSubnetGroups for usage and error information. +// API operation DescribeServiceUpdates for usage and error information. // // Returned Error Types: // -// - SubnetGroupNotFoundFault +// - InvalidParameterValueException // -// - ServiceLinkedRoleNotFoundFault +// - InvalidParameterCombinationException // -// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSubnetGroups -func (c *MemoryDB) DescribeSubnetGroups(input *DescribeSubnetGroupsInput) (*DescribeSubnetGroupsOutput, error) { - req, out := c.DescribeSubnetGroupsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeServiceUpdates +func (c *MemoryDB) DescribeServiceUpdates(input *DescribeServiceUpdatesInput) (*DescribeServiceUpdatesOutput, error) { + req, out := c.DescribeServiceUpdatesRequest(input) return out, req.Send() } -// DescribeSubnetGroupsWithContext is the same as DescribeSubnetGroups with the addition of +// DescribeServiceUpdatesWithContext is the same as DescribeServiceUpdates with the addition of // the ability to pass a context and additional request options. // -// See DescribeSubnetGroups for details on how to use this API operation. +// See DescribeServiceUpdates 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 *MemoryDB) DescribeSubnetGroupsWithContext(ctx aws.Context, input *DescribeSubnetGroupsInput, opts ...request.Option) (*DescribeSubnetGroupsOutput, error) { - req, out := c.DescribeSubnetGroupsRequest(input) +func (c *MemoryDB) DescribeServiceUpdatesWithContext(ctx aws.Context, input *DescribeServiceUpdatesInput, opts ...request.Option) (*DescribeServiceUpdatesOutput, error) { + req, out := c.DescribeServiceUpdatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeUsers = "DescribeUsers" - -// DescribeUsersRequest generates a "aws/request.Request" representing the -// client's request for the DescribeUsers 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. +// DescribeServiceUpdatesPages iterates over the pages of a DescribeServiceUpdates operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// See DescribeUsers for more information on using the DescribeUsers -// API call, and error handling. +// See DescribeServiceUpdates method for more information on how to use this operation. // -// 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. +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the DescribeUsersRequest method. -// req, resp := client.DescribeUsersRequest(params) +// // Example iterating over at most 3 pages of a DescribeServiceUpdates operation. +// pageNum := 0 +// err := client.DescribeServiceUpdatesPages(params, +// func(page *memorydb.DescribeServiceUpdatesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeServiceUpdatesPages(input *DescribeServiceUpdatesInput, fn func(*DescribeServiceUpdatesOutput, bool) bool) error { + return c.DescribeServiceUpdatesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeServiceUpdatesPagesWithContext same as DescribeServiceUpdatesPages 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 *MemoryDB) DescribeServiceUpdatesPagesWithContext(ctx aws.Context, input *DescribeServiceUpdatesInput, fn func(*DescribeServiceUpdatesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeServiceUpdatesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeServiceUpdatesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeServiceUpdatesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeSnapshots = "DescribeSnapshots" + +// DescribeSnapshotsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSnapshots 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 DescribeSnapshots for more information on using the DescribeSnapshots +// 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 DescribeSnapshotsRequest method. +// req, resp := client.DescribeSnapshotsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSnapshots +func (c *MemoryDB) DescribeSnapshotsRequest(input *DescribeSnapshotsInput) (req *request.Request, output *DescribeSnapshotsOutput) { + op := &request.Operation{ + Name: opDescribeSnapshots, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeSnapshotsInput{} + } + + output = &DescribeSnapshotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSnapshots API operation for Amazon MemoryDB. +// +// Returns information about cluster snapshots. By default, DescribeSnapshots +// lists all of your snapshots; it can optionally describe a single snapshot, +// or just the snapshots associated with a particular 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 MemoryDB's +// API operation DescribeSnapshots for usage and error information. +// +// Returned Error Types: +// +// - SnapshotNotFoundFault +// +// - ServiceLinkedRoleNotFoundFault +// +// - InvalidParameterValueException +// +// - InvalidParameterCombinationException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSnapshots +func (c *MemoryDB) DescribeSnapshots(input *DescribeSnapshotsInput) (*DescribeSnapshotsOutput, error) { + req, out := c.DescribeSnapshotsRequest(input) + return out, req.Send() +} + +// DescribeSnapshotsWithContext is the same as DescribeSnapshots with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSnapshots 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 *MemoryDB) DescribeSnapshotsWithContext(ctx aws.Context, input *DescribeSnapshotsInput, opts ...request.Option) (*DescribeSnapshotsOutput, error) { + req, out := c.DescribeSnapshotsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeSnapshotsPages iterates over the pages of a DescribeSnapshots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeSnapshots 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 DescribeSnapshots operation. +// pageNum := 0 +// err := client.DescribeSnapshotsPages(params, +// func(page *memorydb.DescribeSnapshotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeSnapshotsPages(input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool) error { + return c.DescribeSnapshotsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeSnapshotsPagesWithContext same as DescribeSnapshotsPages 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 *MemoryDB) DescribeSnapshotsPagesWithContext(ctx aws.Context, input *DescribeSnapshotsInput, fn func(*DescribeSnapshotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeSnapshotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeSnapshotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeSnapshotsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeSubnetGroups = "DescribeSubnetGroups" + +// DescribeSubnetGroupsRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSubnetGroups 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 DescribeSubnetGroups for more information on using the DescribeSubnetGroups +// 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 DescribeSubnetGroupsRequest method. +// req, resp := client.DescribeSubnetGroupsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSubnetGroups +func (c *MemoryDB) DescribeSubnetGroupsRequest(input *DescribeSubnetGroupsInput) (req *request.Request, output *DescribeSubnetGroupsOutput) { + op := &request.Operation{ + Name: opDescribeSubnetGroups, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &DescribeSubnetGroupsInput{} + } + + output = &DescribeSubnetGroupsOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSubnetGroups API operation for Amazon MemoryDB. +// +// Returns a list of subnet group descriptions. If a subnet group name is specified, +// the list contains only the description of that 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 Amazon MemoryDB's +// API operation DescribeSubnetGroups for usage and error information. +// +// Returned Error Types: +// +// - SubnetGroupNotFoundFault +// +// - ServiceLinkedRoleNotFoundFault +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/DescribeSubnetGroups +func (c *MemoryDB) DescribeSubnetGroups(input *DescribeSubnetGroupsInput) (*DescribeSubnetGroupsOutput, error) { + req, out := c.DescribeSubnetGroupsRequest(input) + return out, req.Send() +} + +// DescribeSubnetGroupsWithContext is the same as DescribeSubnetGroups with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSubnetGroups 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 *MemoryDB) DescribeSubnetGroupsWithContext(ctx aws.Context, input *DescribeSubnetGroupsInput, opts ...request.Option) (*DescribeSubnetGroupsOutput, error) { + req, out := c.DescribeSubnetGroupsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// DescribeSubnetGroupsPages iterates over the pages of a DescribeSubnetGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeSubnetGroups 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 DescribeSubnetGroups operation. +// pageNum := 0 +// err := client.DescribeSubnetGroupsPages(params, +// func(page *memorydb.DescribeSubnetGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeSubnetGroupsPages(input *DescribeSubnetGroupsInput, fn func(*DescribeSubnetGroupsOutput, bool) bool) error { + return c.DescribeSubnetGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeSubnetGroupsPagesWithContext same as DescribeSubnetGroupsPages 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 *MemoryDB) DescribeSubnetGroupsPagesWithContext(ctx aws.Context, input *DescribeSubnetGroupsInput, fn func(*DescribeSubnetGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeSubnetGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeSubnetGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeSubnetGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opDescribeUsers = "DescribeUsers" + +// DescribeUsersRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUsers 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 DescribeUsers for more information on using the DescribeUsers +// 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 DescribeUsersRequest method. +// req, resp := client.DescribeUsersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled @@ -2047,6 +2845,12 @@ func (c *MemoryDB) DescribeUsersRequest(input *DescribeUsersInput) (req *request Name: opDescribeUsers, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -2097,6 +2901,57 @@ func (c *MemoryDB) DescribeUsersWithContext(ctx aws.Context, input *DescribeUser return out, req.Send() } +// DescribeUsersPages iterates over the pages of a DescribeUsers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeUsers 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 DescribeUsers operation. +// pageNum := 0 +// err := client.DescribeUsersPages(params, +// func(page *memorydb.DescribeUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *MemoryDB) DescribeUsersPages(input *DescribeUsersInput, fn func(*DescribeUsersOutput, bool) bool) error { + return c.DescribeUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeUsersPagesWithContext same as DescribeUsersPages 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 *MemoryDB) DescribeUsersPagesWithContext(ctx aws.Context, input *DescribeUsersInput, fn func(*DescribeUsersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeUsersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeUsersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeUsersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opFailoverShard = "FailoverShard" // FailoverShardRequest generates a "aws/request.Request" representing the @@ -2377,17 +3232,111 @@ func (c *MemoryDB) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, op return out, req.Send() } -const opResetParameterGroup = "ResetParameterGroup" +const opPurchaseReservedNodesOffering = "PurchaseReservedNodesOffering" -// ResetParameterGroupRequest generates a "aws/request.Request" representing the -// client's request for the ResetParameterGroup operation. The "output" return +// PurchaseReservedNodesOfferingRequest generates a "aws/request.Request" representing the +// client's request for the PurchaseReservedNodesOffering 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 ResetParameterGroup for more information on using the ResetParameterGroup +// See PurchaseReservedNodesOffering for more information on using the PurchaseReservedNodesOffering +// 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 PurchaseReservedNodesOfferingRequest method. +// req, resp := client.PurchaseReservedNodesOfferingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/PurchaseReservedNodesOffering +func (c *MemoryDB) PurchaseReservedNodesOfferingRequest(input *PurchaseReservedNodesOfferingInput) (req *request.Request, output *PurchaseReservedNodesOfferingOutput) { + op := &request.Operation{ + Name: opPurchaseReservedNodesOffering, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PurchaseReservedNodesOfferingInput{} + } + + output = &PurchaseReservedNodesOfferingOutput{} + req = c.newRequest(op, input, output) + return +} + +// PurchaseReservedNodesOffering API operation for Amazon MemoryDB. +// +// Allows you to purchase a reserved node offering. Reserved nodes are not eligible +// for cancellation and are non-refundable. +// +// 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 MemoryDB's +// API operation PurchaseReservedNodesOffering for usage and error information. +// +// Returned Error Types: +// +// - ReservedNodesOfferingNotFoundFault +// The requested node offering does not exist. +// +// - ReservedNodeAlreadyExistsFault +// You already have a reservation with the given identifier. +// +// - ReservedNodeQuotaExceededFault +// The request cannot be processed because it would exceed the user's node quota. +// +// - ServiceLinkedRoleNotFoundFault +// +// - TagQuotaPerResourceExceeded +// +// - InvalidParameterValueException +// +// - InvalidParameterCombinationException +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/memorydb-2021-01-01/PurchaseReservedNodesOffering +func (c *MemoryDB) PurchaseReservedNodesOffering(input *PurchaseReservedNodesOfferingInput) (*PurchaseReservedNodesOfferingOutput, error) { + req, out := c.PurchaseReservedNodesOfferingRequest(input) + return out, req.Send() +} + +// PurchaseReservedNodesOfferingWithContext is the same as PurchaseReservedNodesOffering with the addition of +// the ability to pass a context and additional request options. +// +// See PurchaseReservedNodesOffering 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 *MemoryDB) PurchaseReservedNodesOfferingWithContext(ctx aws.Context, input *PurchaseReservedNodesOfferingInput, opts ...request.Option) (*PurchaseReservedNodesOfferingOutput, error) { + req, out := c.PurchaseReservedNodesOfferingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opResetParameterGroup = "ResetParameterGroup" + +// ResetParameterGroupRequest generates a "aws/request.Request" representing the +// client's request for the ResetParameterGroup 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 ResetParameterGroup for more information on using the ResetParameterGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration @@ -6641,6 +7590,272 @@ func (s *DescribeParametersOutput) SetParameters(v []*Parameter) *DescribeParame return s } +type DescribeReservedNodesInput struct { + _ struct{} `type:"structure"` + + // The duration filter value, specified in years or seconds. Use this parameter + // to show only reservations for this duration. + Duration *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a marker is included in the response + // so that the remaining results can be retrieved. + MaxResults *int64 `type:"integer"` + + // An optional marker returned from a prior request. Use this marker for pagination + // of results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by MaxRecords. + NextToken *string `type:"string"` + + // The node type filter value. Use this parameter to show only those reservations + // matching the specified node type. For more information, see Supported node + // types (https://docs.aws.amazon.com/memorydb/latest/devguide/nodes.reserved.html#reserved-nodes-supported). + NodeType *string `type:"string"` + + // The offering type filter value. Use this parameter to show only the available + // offerings matching the specified offering type. Valid values: "All Upfront"|"Partial + // Upfront"| "No Upfront" + OfferingType *string `type:"string"` + + // The reserved node identifier filter value. Use this parameter to show only + // the reservation that matches the specified reservation ID. + ReservationId *string `type:"string"` + + // The offering identifier filter value. Use this parameter to show only purchased + // reservations matching the specified offering identifier. + ReservedNodesOfferingId *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 DescribeReservedNodesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeReservedNodesInput) GoString() string { + return s.String() +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedNodesInput) SetDuration(v string) *DescribeReservedNodesInput { + s.Duration = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeReservedNodesInput) SetMaxResults(v int64) *DescribeReservedNodesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedNodesInput) SetNextToken(v string) *DescribeReservedNodesInput { + s.NextToken = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *DescribeReservedNodesInput) SetNodeType(v string) *DescribeReservedNodesInput { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedNodesInput) SetOfferingType(v string) *DescribeReservedNodesInput { + s.OfferingType = &v + return s +} + +// SetReservationId sets the ReservationId field's value. +func (s *DescribeReservedNodesInput) SetReservationId(v string) *DescribeReservedNodesInput { + s.ReservationId = &v + return s +} + +// SetReservedNodesOfferingId sets the ReservedNodesOfferingId field's value. +func (s *DescribeReservedNodesInput) SetReservedNodesOfferingId(v string) *DescribeReservedNodesInput { + s.ReservedNodesOfferingId = &v + return s +} + +type DescribeReservedNodesOfferingsInput struct { + _ struct{} `type:"structure"` + + // Duration filter value, specified in years or seconds. Use this parameter + // to show only reservations for a given duration. + Duration *string `type:"string"` + + // The maximum number of records to include in the response. If more records + // exist than the specified MaxRecords value, a marker is included in the response + // so that the remaining results can be retrieved. + MaxResults *int64 `type:"integer"` + + // An optional marker returned from a prior request. Use this marker for pagination + // of results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by MaxRecords. + NextToken *string `type:"string"` + + // The node type for the reserved nodes. For more information, see Supported + // node types (https://docs.aws.amazon.com/memorydb/latest/devguide/nodes.reserved.html#reserved-nodes-supported). + NodeType *string `type:"string"` + + // The offering type filter value. Use this parameter to show only the available + // offerings matching the specified offering type. Valid values: "All Upfront"|"Partial + // Upfront"| "No Upfront" + OfferingType *string `type:"string"` + + // The offering identifier filter value. Use this parameter to show only the + // available offering that matches the specified reservation identifier. + ReservedNodesOfferingId *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 DescribeReservedNodesOfferingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeReservedNodesOfferingsInput) GoString() string { + return s.String() +} + +// SetDuration sets the Duration field's value. +func (s *DescribeReservedNodesOfferingsInput) SetDuration(v string) *DescribeReservedNodesOfferingsInput { + s.Duration = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeReservedNodesOfferingsInput) SetMaxResults(v int64) *DescribeReservedNodesOfferingsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedNodesOfferingsInput) SetNextToken(v string) *DescribeReservedNodesOfferingsInput { + s.NextToken = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *DescribeReservedNodesOfferingsInput) SetNodeType(v string) *DescribeReservedNodesOfferingsInput { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *DescribeReservedNodesOfferingsInput) SetOfferingType(v string) *DescribeReservedNodesOfferingsInput { + s.OfferingType = &v + return s +} + +// SetReservedNodesOfferingId sets the ReservedNodesOfferingId field's value. +func (s *DescribeReservedNodesOfferingsInput) SetReservedNodesOfferingId(v string) *DescribeReservedNodesOfferingsInput { + s.ReservedNodesOfferingId = &v + return s +} + +type DescribeReservedNodesOfferingsOutput struct { + _ struct{} `type:"structure"` + + // An optional marker returned from a prior request. Use this marker for pagination + // of results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by MaxRecords. + NextToken *string `type:"string"` + + // Lists available reserved node offerings. + ReservedNodesOfferings []*ReservedNodesOffering `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 DescribeReservedNodesOfferingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeReservedNodesOfferingsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedNodesOfferingsOutput) SetNextToken(v string) *DescribeReservedNodesOfferingsOutput { + s.NextToken = &v + return s +} + +// SetReservedNodesOfferings sets the ReservedNodesOfferings field's value. +func (s *DescribeReservedNodesOfferingsOutput) SetReservedNodesOfferings(v []*ReservedNodesOffering) *DescribeReservedNodesOfferingsOutput { + s.ReservedNodesOfferings = v + return s +} + +type DescribeReservedNodesOutput struct { + _ struct{} `type:"structure"` + + // An optional marker returned from a prior request. Use this marker for pagination + // of results from this operation. If this parameter is specified, the response + // includes only records beyond the marker, up to the value specified by MaxRecords. + NextToken *string `type:"string"` + + // Returns information about reserved nodes for this account, or about a specified + // reserved node. + ReservedNodes []*ReservedNode `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 DescribeReservedNodesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeReservedNodesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeReservedNodesOutput) SetNextToken(v string) *DescribeReservedNodesOutput { + s.NextToken = &v + return s +} + +// SetReservedNodes sets the ReservedNodes field's value. +func (s *DescribeReservedNodesOutput) SetReservedNodes(v []*ReservedNode) *DescribeReservedNodesOutput { + s.ReservedNodes = v + return s +} + type DescribeServiceUpdatesInput struct { _ struct{} `type:"structure"` @@ -9214,19 +10429,165 @@ func (s *PendingModifiedServiceUpdate) SetStatus(v string) *PendingModifiedServi return s } -// A request to configure the number of replicas in a shard -type ReplicaConfigurationRequest struct { +type PurchaseReservedNodesOfferingInput struct { _ struct{} `type:"structure"` - // The number of replicas to scale up or down to - ReplicaCount *int64 `type:"integer"` -} + // The number of node instances to reserve. + NodeCount *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". + // A customer-specified identifier to track this reservation. + ReservationId *string `type:"string"` + + // The ID of the reserved node offering to purchase. + // + // ReservedNodesOfferingId is a required field + ReservedNodesOfferingId *string `type:"string" required:"true"` + + // A list of tags to be added to this resource. A tag is a key-value pair. A + // tag key must be accompanied by a tag value, although null is accepted. + Tags []*Tag `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 PurchaseReservedNodesOfferingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurchaseReservedNodesOfferingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PurchaseReservedNodesOfferingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PurchaseReservedNodesOfferingInput"} + if s.ReservedNodesOfferingId == nil { + invalidParams.Add(request.NewErrParamRequired("ReservedNodesOfferingId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNodeCount sets the NodeCount field's value. +func (s *PurchaseReservedNodesOfferingInput) SetNodeCount(v int64) *PurchaseReservedNodesOfferingInput { + s.NodeCount = &v + return s +} + +// SetReservationId sets the ReservationId field's value. +func (s *PurchaseReservedNodesOfferingInput) SetReservationId(v string) *PurchaseReservedNodesOfferingInput { + s.ReservationId = &v + return s +} + +// SetReservedNodesOfferingId sets the ReservedNodesOfferingId field's value. +func (s *PurchaseReservedNodesOfferingInput) SetReservedNodesOfferingId(v string) *PurchaseReservedNodesOfferingInput { + s.ReservedNodesOfferingId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *PurchaseReservedNodesOfferingInput) SetTags(v []*Tag) *PurchaseReservedNodesOfferingInput { + s.Tags = v + return s +} + +type PurchaseReservedNodesOfferingOutput struct { + _ struct{} `type:"structure"` + + // Represents the output of a PurchaseReservedNodesOffering operation. + ReservedNode *ReservedNode `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 PurchaseReservedNodesOfferingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PurchaseReservedNodesOfferingOutput) GoString() string { + return s.String() +} + +// SetReservedNode sets the ReservedNode field's value. +func (s *PurchaseReservedNodesOfferingOutput) SetReservedNode(v *ReservedNode) *PurchaseReservedNodesOfferingOutput { + s.ReservedNode = v + return s +} + +// The recurring charge to run this reserved node. +type RecurringCharge struct { + _ struct{} `type:"structure"` + + // The amount of the recurring charge to run this reserved node. + RecurringChargeAmount *float64 `type:"double"` + + // The frequency of the recurring price charged to run this reserved node. + RecurringChargeFrequency *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 RecurringCharge) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecurringCharge) GoString() string { + return s.String() +} + +// SetRecurringChargeAmount sets the RecurringChargeAmount field's value. +func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge { + s.RecurringChargeAmount = &v + return s +} + +// SetRecurringChargeFrequency sets the RecurringChargeFrequency field's value. +func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge { + s.RecurringChargeFrequency = &v + return s +} + +// A request to configure the number of replicas in a shard +type ReplicaConfigurationRequest struct { + _ struct{} `type:"structure"` + + // The number of replicas to scale up or down to + ReplicaCount *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 ReplicaConfigurationRequest) String() string { return awsutil.Prettify(s) } @@ -9246,6 +10607,462 @@ func (s *ReplicaConfigurationRequest) SetReplicaCount(v int64) *ReplicaConfigura return s } +// Represents the output of a PurchaseReservedNodesOffering operation. +type ReservedNode struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the reserved node. + ARN *string `type:"string"` + + // The duration of the reservation in seconds. + Duration *int64 `type:"integer"` + + // The fixed price charged for this reserved node. + FixedPrice *float64 `type:"double"` + + // The number of nodes that have been reserved. + NodeCount *int64 `type:"integer"` + + // The node type for the reserved nodes. + NodeType *string `type:"string"` + + // The offering type of this reserved node. + OfferingType *string `type:"string"` + + // The recurring price charged to run this reserved node. + RecurringCharges []*RecurringCharge `type:"list"` + + // A customer-specified identifier to track this reservation. + ReservationId *string `type:"string"` + + // The ID of the reserved node offering to purchase. + ReservedNodesOfferingId *string `type:"string"` + + // The time the reservation started. + StartTime *time.Time `type:"timestamp"` + + // The state of the reserved node. + State *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 ReservedNode) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ReservedNode) GoString() string { + return s.String() +} + +// SetARN sets the ARN field's value. +func (s *ReservedNode) SetARN(v string) *ReservedNode { + s.ARN = &v + return s +} + +// SetDuration sets the Duration field's value. +func (s *ReservedNode) SetDuration(v int64) *ReservedNode { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedNode) SetFixedPrice(v float64) *ReservedNode { + s.FixedPrice = &v + return s +} + +// SetNodeCount sets the NodeCount field's value. +func (s *ReservedNode) SetNodeCount(v int64) *ReservedNode { + s.NodeCount = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ReservedNode) SetNodeType(v string) *ReservedNode { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedNode) SetOfferingType(v string) *ReservedNode { + s.OfferingType = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedNode) SetRecurringCharges(v []*RecurringCharge) *ReservedNode { + s.RecurringCharges = v + return s +} + +// SetReservationId sets the ReservationId field's value. +func (s *ReservedNode) SetReservationId(v string) *ReservedNode { + s.ReservationId = &v + return s +} + +// SetReservedNodesOfferingId sets the ReservedNodesOfferingId field's value. +func (s *ReservedNode) SetReservedNodesOfferingId(v string) *ReservedNode { + s.ReservedNodesOfferingId = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ReservedNode) SetStartTime(v time.Time) *ReservedNode { + s.StartTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ReservedNode) SetState(v string) *ReservedNode { + s.State = &v + return s +} + +// You already have a reservation with the given identifier. +type ReservedNodeAlreadyExistsFault 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 ReservedNodeAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ReservedNodeAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorReservedNodeAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &ReservedNodeAlreadyExistsFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ReservedNodeAlreadyExistsFault) Code() string { + return "ReservedNodeAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s *ReservedNodeAlreadyExistsFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ReservedNodeAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s *ReservedNodeAlreadyExistsFault) 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 *ReservedNodeAlreadyExistsFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ReservedNodeAlreadyExistsFault) RequestID() string { + return s.RespMetadata.RequestID +} + +// The requested node does not exist. +type ReservedNodeNotFoundFault 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 ReservedNodeNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ReservedNodeNotFoundFault) GoString() string { + return s.String() +} + +func newErrorReservedNodeNotFoundFault(v protocol.ResponseMetadata) error { + return &ReservedNodeNotFoundFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ReservedNodeNotFoundFault) Code() string { + return "ReservedNodeNotFoundFault" +} + +// Message returns the exception's message. +func (s *ReservedNodeNotFoundFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ReservedNodeNotFoundFault) OrigErr() error { + return nil +} + +func (s *ReservedNodeNotFoundFault) 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 *ReservedNodeNotFoundFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ReservedNodeNotFoundFault) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request cannot be processed because it would exceed the user's node quota. +type ReservedNodeQuotaExceededFault 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 ReservedNodeQuotaExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ReservedNodeQuotaExceededFault) GoString() string { + return s.String() +} + +func newErrorReservedNodeQuotaExceededFault(v protocol.ResponseMetadata) error { + return &ReservedNodeQuotaExceededFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ReservedNodeQuotaExceededFault) Code() string { + return "ReservedNodeQuotaExceededFault" +} + +// Message returns the exception's message. +func (s *ReservedNodeQuotaExceededFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ReservedNodeQuotaExceededFault) OrigErr() error { + return nil +} + +func (s *ReservedNodeQuotaExceededFault) 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 *ReservedNodeQuotaExceededFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ReservedNodeQuotaExceededFault) RequestID() string { + return s.RespMetadata.RequestID +} + +// The offering type of this node. +type ReservedNodesOffering struct { + _ struct{} `type:"structure"` + + // The duration of the reservation in seconds. + Duration *int64 `type:"integer"` + + // The fixed price charged for this reserved node. + FixedPrice *float64 `type:"double"` + + // The node type for the reserved nodes. For more information, see Supported + // node types (https://docs.aws.amazon.com/memorydb/latest/devguide/nodes.reserved.html#reserved-nodes-supported). + NodeType *string `type:"string"` + + // The offering type of this reserved node. + OfferingType *string `type:"string"` + + // The recurring price charged to run this reserved node. + RecurringCharges []*RecurringCharge `type:"list"` + + // The offering identifier. + ReservedNodesOfferingId *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 ReservedNodesOffering) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ReservedNodesOffering) GoString() string { + return s.String() +} + +// SetDuration sets the Duration field's value. +func (s *ReservedNodesOffering) SetDuration(v int64) *ReservedNodesOffering { + s.Duration = &v + return s +} + +// SetFixedPrice sets the FixedPrice field's value. +func (s *ReservedNodesOffering) SetFixedPrice(v float64) *ReservedNodesOffering { + s.FixedPrice = &v + return s +} + +// SetNodeType sets the NodeType field's value. +func (s *ReservedNodesOffering) SetNodeType(v string) *ReservedNodesOffering { + s.NodeType = &v + return s +} + +// SetOfferingType sets the OfferingType field's value. +func (s *ReservedNodesOffering) SetOfferingType(v string) *ReservedNodesOffering { + s.OfferingType = &v + return s +} + +// SetRecurringCharges sets the RecurringCharges field's value. +func (s *ReservedNodesOffering) SetRecurringCharges(v []*RecurringCharge) *ReservedNodesOffering { + s.RecurringCharges = v + return s +} + +// SetReservedNodesOfferingId sets the ReservedNodesOfferingId field's value. +func (s *ReservedNodesOffering) SetReservedNodesOfferingId(v string) *ReservedNodesOffering { + s.ReservedNodesOfferingId = &v + return s +} + +// The requested node offering does not exist. +type ReservedNodesOfferingNotFoundFault 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 ReservedNodesOfferingNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ReservedNodesOfferingNotFoundFault) GoString() string { + return s.String() +} + +func newErrorReservedNodesOfferingNotFoundFault(v protocol.ResponseMetadata) error { + return &ReservedNodesOfferingNotFoundFault{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ReservedNodesOfferingNotFoundFault) Code() string { + return "ReservedNodesOfferingNotFoundFault" +} + +// Message returns the exception's message. +func (s *ReservedNodesOfferingNotFoundFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ReservedNodesOfferingNotFoundFault) OrigErr() error { + return nil +} + +func (s *ReservedNodesOfferingNotFoundFault) 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 *ReservedNodesOfferingNotFoundFault) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ReservedNodesOfferingNotFoundFault) RequestID() string { + return s.RespMetadata.RequestID +} + type ResetParameterGroupInput struct { _ struct{} `type:"structure"` diff --git a/service/memorydb/errors.go b/service/memorydb/errors.go index 475f6d267c9..063f996b6d3 100644 --- a/service/memorydb/errors.go +++ b/service/memorydb/errors.go @@ -124,6 +124,30 @@ const ( // "ParameterGroupQuotaExceededFault". ErrCodeParameterGroupQuotaExceededFault = "ParameterGroupQuotaExceededFault" + // ErrCodeReservedNodeAlreadyExistsFault for service response error code + // "ReservedNodeAlreadyExistsFault". + // + // You already have a reservation with the given identifier. + ErrCodeReservedNodeAlreadyExistsFault = "ReservedNodeAlreadyExistsFault" + + // ErrCodeReservedNodeNotFoundFault for service response error code + // "ReservedNodeNotFoundFault". + // + // The requested node does not exist. + ErrCodeReservedNodeNotFoundFault = "ReservedNodeNotFoundFault" + + // ErrCodeReservedNodeQuotaExceededFault for service response error code + // "ReservedNodeQuotaExceededFault". + // + // The request cannot be processed because it would exceed the user's node quota. + ErrCodeReservedNodeQuotaExceededFault = "ReservedNodeQuotaExceededFault" + + // ErrCodeReservedNodesOfferingNotFoundFault for service response error code + // "ReservedNodesOfferingNotFoundFault". + // + // The requested node offering does not exist. + ErrCodeReservedNodesOfferingNotFoundFault = "ReservedNodesOfferingNotFoundFault" + // ErrCodeServiceLinkedRoleNotFoundFault for service response error code // "ServiceLinkedRoleNotFoundFault". ErrCodeServiceLinkedRoleNotFoundFault = "ServiceLinkedRoleNotFoundFault" @@ -235,6 +259,10 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "ParameterGroupAlreadyExistsFault": newErrorParameterGroupAlreadyExistsFault, "ParameterGroupNotFoundFault": newErrorParameterGroupNotFoundFault, "ParameterGroupQuotaExceededFault": newErrorParameterGroupQuotaExceededFault, + "ReservedNodeAlreadyExistsFault": newErrorReservedNodeAlreadyExistsFault, + "ReservedNodeNotFoundFault": newErrorReservedNodeNotFoundFault, + "ReservedNodeQuotaExceededFault": newErrorReservedNodeQuotaExceededFault, + "ReservedNodesOfferingNotFoundFault": newErrorReservedNodesOfferingNotFoundFault, "ServiceLinkedRoleNotFoundFault": newErrorServiceLinkedRoleNotFoundFault, "ServiceUpdateNotFoundFault": newErrorServiceUpdateNotFoundFault, "ShardNotFoundFault": newErrorShardNotFoundFault, diff --git a/service/memorydb/memorydbiface/interface.go b/service/memorydb/memorydbiface/interface.go index ecbd564cbf4..2370585d205 100644 --- a/service/memorydb/memorydbiface/interface.go +++ b/service/memorydb/memorydbiface/interface.go @@ -120,42 +120,86 @@ type MemoryDBAPI interface { DescribeACLsWithContext(aws.Context, *memorydb.DescribeACLsInput, ...request.Option) (*memorydb.DescribeACLsOutput, error) DescribeACLsRequest(*memorydb.DescribeACLsInput) (*request.Request, *memorydb.DescribeACLsOutput) + DescribeACLsPages(*memorydb.DescribeACLsInput, func(*memorydb.DescribeACLsOutput, bool) bool) error + DescribeACLsPagesWithContext(aws.Context, *memorydb.DescribeACLsInput, func(*memorydb.DescribeACLsOutput, bool) bool, ...request.Option) error + DescribeClusters(*memorydb.DescribeClustersInput) (*memorydb.DescribeClustersOutput, error) DescribeClustersWithContext(aws.Context, *memorydb.DescribeClustersInput, ...request.Option) (*memorydb.DescribeClustersOutput, error) DescribeClustersRequest(*memorydb.DescribeClustersInput) (*request.Request, *memorydb.DescribeClustersOutput) + DescribeClustersPages(*memorydb.DescribeClustersInput, func(*memorydb.DescribeClustersOutput, bool) bool) error + DescribeClustersPagesWithContext(aws.Context, *memorydb.DescribeClustersInput, func(*memorydb.DescribeClustersOutput, bool) bool, ...request.Option) error + DescribeEngineVersions(*memorydb.DescribeEngineVersionsInput) (*memorydb.DescribeEngineVersionsOutput, error) DescribeEngineVersionsWithContext(aws.Context, *memorydb.DescribeEngineVersionsInput, ...request.Option) (*memorydb.DescribeEngineVersionsOutput, error) DescribeEngineVersionsRequest(*memorydb.DescribeEngineVersionsInput) (*request.Request, *memorydb.DescribeEngineVersionsOutput) + DescribeEngineVersionsPages(*memorydb.DescribeEngineVersionsInput, func(*memorydb.DescribeEngineVersionsOutput, bool) bool) error + DescribeEngineVersionsPagesWithContext(aws.Context, *memorydb.DescribeEngineVersionsInput, func(*memorydb.DescribeEngineVersionsOutput, bool) bool, ...request.Option) error + DescribeEvents(*memorydb.DescribeEventsInput) (*memorydb.DescribeEventsOutput, error) DescribeEventsWithContext(aws.Context, *memorydb.DescribeEventsInput, ...request.Option) (*memorydb.DescribeEventsOutput, error) DescribeEventsRequest(*memorydb.DescribeEventsInput) (*request.Request, *memorydb.DescribeEventsOutput) + DescribeEventsPages(*memorydb.DescribeEventsInput, func(*memorydb.DescribeEventsOutput, bool) bool) error + DescribeEventsPagesWithContext(aws.Context, *memorydb.DescribeEventsInput, func(*memorydb.DescribeEventsOutput, bool) bool, ...request.Option) error + DescribeParameterGroups(*memorydb.DescribeParameterGroupsInput) (*memorydb.DescribeParameterGroupsOutput, error) DescribeParameterGroupsWithContext(aws.Context, *memorydb.DescribeParameterGroupsInput, ...request.Option) (*memorydb.DescribeParameterGroupsOutput, error) DescribeParameterGroupsRequest(*memorydb.DescribeParameterGroupsInput) (*request.Request, *memorydb.DescribeParameterGroupsOutput) + DescribeParameterGroupsPages(*memorydb.DescribeParameterGroupsInput, func(*memorydb.DescribeParameterGroupsOutput, bool) bool) error + DescribeParameterGroupsPagesWithContext(aws.Context, *memorydb.DescribeParameterGroupsInput, func(*memorydb.DescribeParameterGroupsOutput, bool) bool, ...request.Option) error + DescribeParameters(*memorydb.DescribeParametersInput) (*memorydb.DescribeParametersOutput, error) DescribeParametersWithContext(aws.Context, *memorydb.DescribeParametersInput, ...request.Option) (*memorydb.DescribeParametersOutput, error) DescribeParametersRequest(*memorydb.DescribeParametersInput) (*request.Request, *memorydb.DescribeParametersOutput) + DescribeParametersPages(*memorydb.DescribeParametersInput, func(*memorydb.DescribeParametersOutput, bool) bool) error + DescribeParametersPagesWithContext(aws.Context, *memorydb.DescribeParametersInput, func(*memorydb.DescribeParametersOutput, bool) bool, ...request.Option) error + + DescribeReservedNodes(*memorydb.DescribeReservedNodesInput) (*memorydb.DescribeReservedNodesOutput, error) + DescribeReservedNodesWithContext(aws.Context, *memorydb.DescribeReservedNodesInput, ...request.Option) (*memorydb.DescribeReservedNodesOutput, error) + DescribeReservedNodesRequest(*memorydb.DescribeReservedNodesInput) (*request.Request, *memorydb.DescribeReservedNodesOutput) + + DescribeReservedNodesPages(*memorydb.DescribeReservedNodesInput, func(*memorydb.DescribeReservedNodesOutput, bool) bool) error + DescribeReservedNodesPagesWithContext(aws.Context, *memorydb.DescribeReservedNodesInput, func(*memorydb.DescribeReservedNodesOutput, bool) bool, ...request.Option) error + + DescribeReservedNodesOfferings(*memorydb.DescribeReservedNodesOfferingsInput) (*memorydb.DescribeReservedNodesOfferingsOutput, error) + DescribeReservedNodesOfferingsWithContext(aws.Context, *memorydb.DescribeReservedNodesOfferingsInput, ...request.Option) (*memorydb.DescribeReservedNodesOfferingsOutput, error) + DescribeReservedNodesOfferingsRequest(*memorydb.DescribeReservedNodesOfferingsInput) (*request.Request, *memorydb.DescribeReservedNodesOfferingsOutput) + + DescribeReservedNodesOfferingsPages(*memorydb.DescribeReservedNodesOfferingsInput, func(*memorydb.DescribeReservedNodesOfferingsOutput, bool) bool) error + DescribeReservedNodesOfferingsPagesWithContext(aws.Context, *memorydb.DescribeReservedNodesOfferingsInput, func(*memorydb.DescribeReservedNodesOfferingsOutput, bool) bool, ...request.Option) error + DescribeServiceUpdates(*memorydb.DescribeServiceUpdatesInput) (*memorydb.DescribeServiceUpdatesOutput, error) DescribeServiceUpdatesWithContext(aws.Context, *memorydb.DescribeServiceUpdatesInput, ...request.Option) (*memorydb.DescribeServiceUpdatesOutput, error) DescribeServiceUpdatesRequest(*memorydb.DescribeServiceUpdatesInput) (*request.Request, *memorydb.DescribeServiceUpdatesOutput) + DescribeServiceUpdatesPages(*memorydb.DescribeServiceUpdatesInput, func(*memorydb.DescribeServiceUpdatesOutput, bool) bool) error + DescribeServiceUpdatesPagesWithContext(aws.Context, *memorydb.DescribeServiceUpdatesInput, func(*memorydb.DescribeServiceUpdatesOutput, bool) bool, ...request.Option) error + DescribeSnapshots(*memorydb.DescribeSnapshotsInput) (*memorydb.DescribeSnapshotsOutput, error) DescribeSnapshotsWithContext(aws.Context, *memorydb.DescribeSnapshotsInput, ...request.Option) (*memorydb.DescribeSnapshotsOutput, error) DescribeSnapshotsRequest(*memorydb.DescribeSnapshotsInput) (*request.Request, *memorydb.DescribeSnapshotsOutput) + DescribeSnapshotsPages(*memorydb.DescribeSnapshotsInput, func(*memorydb.DescribeSnapshotsOutput, bool) bool) error + DescribeSnapshotsPagesWithContext(aws.Context, *memorydb.DescribeSnapshotsInput, func(*memorydb.DescribeSnapshotsOutput, bool) bool, ...request.Option) error + DescribeSubnetGroups(*memorydb.DescribeSubnetGroupsInput) (*memorydb.DescribeSubnetGroupsOutput, error) DescribeSubnetGroupsWithContext(aws.Context, *memorydb.DescribeSubnetGroupsInput, ...request.Option) (*memorydb.DescribeSubnetGroupsOutput, error) DescribeSubnetGroupsRequest(*memorydb.DescribeSubnetGroupsInput) (*request.Request, *memorydb.DescribeSubnetGroupsOutput) + DescribeSubnetGroupsPages(*memorydb.DescribeSubnetGroupsInput, func(*memorydb.DescribeSubnetGroupsOutput, bool) bool) error + DescribeSubnetGroupsPagesWithContext(aws.Context, *memorydb.DescribeSubnetGroupsInput, func(*memorydb.DescribeSubnetGroupsOutput, bool) bool, ...request.Option) error + DescribeUsers(*memorydb.DescribeUsersInput) (*memorydb.DescribeUsersOutput, error) DescribeUsersWithContext(aws.Context, *memorydb.DescribeUsersInput, ...request.Option) (*memorydb.DescribeUsersOutput, error) DescribeUsersRequest(*memorydb.DescribeUsersInput) (*request.Request, *memorydb.DescribeUsersOutput) + DescribeUsersPages(*memorydb.DescribeUsersInput, func(*memorydb.DescribeUsersOutput, bool) bool) error + DescribeUsersPagesWithContext(aws.Context, *memorydb.DescribeUsersInput, func(*memorydb.DescribeUsersOutput, bool) bool, ...request.Option) error + FailoverShard(*memorydb.FailoverShardInput) (*memorydb.FailoverShardOutput, error) FailoverShardWithContext(aws.Context, *memorydb.FailoverShardInput, ...request.Option) (*memorydb.FailoverShardOutput, error) FailoverShardRequest(*memorydb.FailoverShardInput) (*request.Request, *memorydb.FailoverShardOutput) @@ -168,6 +212,10 @@ type MemoryDBAPI interface { ListTagsWithContext(aws.Context, *memorydb.ListTagsInput, ...request.Option) (*memorydb.ListTagsOutput, error) ListTagsRequest(*memorydb.ListTagsInput) (*request.Request, *memorydb.ListTagsOutput) + PurchaseReservedNodesOffering(*memorydb.PurchaseReservedNodesOfferingInput) (*memorydb.PurchaseReservedNodesOfferingOutput, error) + PurchaseReservedNodesOfferingWithContext(aws.Context, *memorydb.PurchaseReservedNodesOfferingInput, ...request.Option) (*memorydb.PurchaseReservedNodesOfferingOutput, error) + PurchaseReservedNodesOfferingRequest(*memorydb.PurchaseReservedNodesOfferingInput) (*request.Request, *memorydb.PurchaseReservedNodesOfferingOutput) + ResetParameterGroup(*memorydb.ResetParameterGroupInput) (*memorydb.ResetParameterGroupOutput, error) ResetParameterGroupWithContext(aws.Context, *memorydb.ResetParameterGroupInput, ...request.Option) (*memorydb.ResetParameterGroupOutput, error) ResetParameterGroupRequest(*memorydb.ResetParameterGroupInput) (*request.Request, *memorydb.ResetParameterGroupOutput) diff --git a/service/transfer/api.go b/service/transfer/api.go index 1b42d375b18..5a5649bb8b8 100644 --- a/service/transfer/api.go +++ b/service/transfer/api.go @@ -191,6 +191,9 @@ func (c *Transfer) CreateAgreementRequest(input *CreateAgreementInput) (req *req // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateAgreement func (c *Transfer) CreateAgreement(input *CreateAgreementInput) (*CreateAgreementOutput, error) { req, out := c.CreateAgreementRequest(input) @@ -288,6 +291,9 @@ func (c *Transfer) CreateConnectorRequest(input *CreateConnectorInput) (req *req // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateConnector func (c *Transfer) CreateConnector(input *CreateConnectorInput) (*CreateConnectorOutput, error) { req, out := c.CreateConnectorRequest(input) @@ -379,6 +385,9 @@ func (c *Transfer) CreateProfileRequest(input *CreateProfileInput) (req *request // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateProfile func (c *Transfer) CreateProfile(input *CreateProfileInput) (*CreateProfileOutput, error) { req, out := c.CreateProfileRequest(input) @@ -5492,6 +5501,9 @@ func (c *Transfer) UpdateAccessRequest(input *UpdateAccessInput) (req *request.R // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateAccess func (c *Transfer) UpdateAccess(input *UpdateAccessInput) (*UpdateAccessOutput, error) { req, out := c.UpdateAccessRequest(input) @@ -5588,6 +5600,9 @@ func (c *Transfer) UpdateAgreementRequest(input *UpdateAgreementInput) (req *req // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateAgreement func (c *Transfer) UpdateAgreement(input *UpdateAgreementInput) (*UpdateAgreementOutput, error) { req, out := c.UpdateAgreementRequest(input) @@ -5679,6 +5694,9 @@ func (c *Transfer) UpdateCertificateRequest(input *UpdateCertificateInput) (req // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateCertificate func (c *Transfer) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) { req, out := c.UpdateCertificateRequest(input) @@ -5775,6 +5793,9 @@ func (c *Transfer) UpdateConnectorRequest(input *UpdateConnectorInput) (req *req // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateConnector func (c *Transfer) UpdateConnector(input *UpdateConnectorInput) (*UpdateConnectorOutput, error) { req, out := c.UpdateConnectorRequest(input) @@ -5963,6 +5984,9 @@ func (c *Transfer) UpdateProfileRequest(input *UpdateProfileInput) (req *request // This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer // Family service. // +// - ThrottlingException +// The request was denied due to request throttling. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/UpdateProfile func (c *Transfer) UpdateProfile(input *UpdateProfileInput) (*UpdateProfileOutput, error) { req, out := c.UpdateProfileRequest(input)