From dce57316190007a9731bd14dc0f86a8a487b0b14 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Mon, 20 Mar 2023 11:23:49 -0700 Subject: [PATCH] Release v1.44.225 (2023-03-20) (#4766) Release v1.44.225 (2023-03-20) === ### Service Client Updates * `service/application-autoscaling`: Updates service API, documentation, and examples * `service/neptune`: Updates service API and documentation * This release makes following few changes. db-cluster-identifier is now a required parameter of create-db-instance. describe-db-cluster will now return PendingModifiedValues and GlobalClusterIdentifier fields in the response. * `service/s3outposts`: Updates service API and documentation * `service/workdocs`: Updates service API, documentation, and paginators * This release adds a new API, SearchResources, which enable users to search through metadata and content of folders, documents, document versions and comments in a WorkDocs site. --- CHANGELOG.md | 11 + aws/endpoints/defaults.go | 3 + aws/version.go | 2 +- .../2016-02-06/api-2.json | 135 +- .../2016-02-06/docs-2.json | 107 +- .../2016-02-06/endpoint-tests-1.json | 178 +- .../2016-02-06/examples-1.json | 155 ++ models/apis/neptune/2014-10-31/api-2.json | 19 +- models/apis/neptune/2014-10-31/docs-2.json | 14 + .../2014-10-31/endpoint-rule-set-1.json | 476 ++--- .../neptune/2014-10-31/endpoint-tests-1.json | 1516 ++------------ models/apis/s3outposts/2017-07-25/api-2.json | 30 +- models/apis/s3outposts/2017-07-25/docs-2.json | 24 + .../2017-07-25/endpoint-tests-1.json | 80 +- models/apis/workdocs/2016-05-01/api-2.json | 311 ++- models/apis/workdocs/2016-05-01/docs-2.json | 239 ++- .../2016-05-01/endpoint-rule-set-1.json | 380 ++-- .../workdocs/2016-05-01/endpoint-tests-1.json | 15 +- .../workdocs/2016-05-01/paginators-1.json | 42 + models/endpoints/endpoints.json | 1 + service/applicationautoscaling/api.go | 785 +++++++- .../applicationautoscalingiface/interface.go | 12 + service/applicationautoscaling/errors.go | 14 + .../applicationautoscaling/examples_test.go | 216 ++ service/neptune/api.go | 119 +- service/s3outposts/api.go | 132 ++ service/s3outposts/errors.go | 8 + service/workdocs/api.go | 1791 +++++++++++++++-- service/workdocs/workdocsiface/interface.go | 25 + 29 files changed, 4726 insertions(+), 2114 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a8e696b35..ff926f2e3ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.44.225 (2023-03-20) +=== + +### Service Client Updates +* `service/application-autoscaling`: Updates service API, documentation, and examples +* `service/neptune`: Updates service API and documentation + * This release makes following few changes. db-cluster-identifier is now a required parameter of create-db-instance. describe-db-cluster will now return PendingModifiedValues and GlobalClusterIdentifier fields in the response. +* `service/s3outposts`: Updates service API and documentation +* `service/workdocs`: Updates service API, documentation, and paginators + * This release adds a new API, SearchResources, which enable users to search through metadata and content of folders, documents, document versions and comments in a WorkDocs site. + Release v1.44.224 (2023-03-17) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 605ec29e52a..458f0da378d 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -27108,6 +27108,9 @@ var awsPartition = partition{ }, Deprecated: boxedTrue, }, + endpointKey{ + Region: "me-central-1", + }: endpoint{}, endpointKey{ Region: "me-south-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 9d30aa30a44..5e4ad9f80c4 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.224" +const SDKVersion = "1.44.225" diff --git a/models/apis/application-autoscaling/2016-02-06/api-2.json b/models/apis/application-autoscaling/2016-02-06/api-2.json index 81be7e88aef..3652c7cc986 100644 --- a/models/apis/application-autoscaling/2016-02-06/api-2.json +++ b/models/apis/application-autoscaling/2016-02-06/api-2.json @@ -119,6 +119,18 @@ {"shape":"InternalServiceException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"} + ] + }, "PutScalingPolicy":{ "name":"PutScalingPolicy", "http":{ @@ -166,6 +178,33 @@ {"shape":"ConcurrentUpdateException"}, {"shape":"InternalServiceException"} ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"TooManyTagsException"}, + {"shape":"ValidationException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ValidationException"} + ] } }, "shapes":{ @@ -192,6 +231,12 @@ "type":"list", "member":{"shape":"Alarm"} }, + "AmazonResourceName":{ + "type":"string", + "max":1011, + "min":1, + "pattern":"^arn:.+:application-autoscaling:.+:[0-9]+:scalable-target\\/[a-zA-Z0-9-]+$" + }, "ConcurrentUpdateException":{ "type":"structure", "members":{ @@ -346,6 +391,7 @@ }, "DisableScaleIn":{"type":"boolean"}, "ErrorMessage":{"type":"string"}, + "ExceptionMessage":{"type":"string"}, "Expression":{ "type":"string", "max":2048, @@ -387,6 +433,19 @@ }, "exception":true }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"AmazonResourceName"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagMap"} + } + }, "MaxResults":{"type":"integer"}, "MetricAggregationType":{ "type":"string", @@ -561,12 +620,14 @@ "MinCapacity":{"shape":"ResourceCapacity"}, "MaxCapacity":{"shape":"ResourceCapacity"}, "RoleARN":{"shape":"ResourceIdMaxLen1600"}, - "SuspendedState":{"shape":"SuspendedState"} + "SuspendedState":{"shape":"SuspendedState"}, + "Tags":{"shape":"TagMap"} } }, "RegisterScalableTargetResponse":{ "type":"structure", "members":{ + "ScalableTargetARN":{"shape":"XmlString"} } }, "ResourceCapacity":{"type":"integer"}, @@ -590,6 +651,14 @@ "max":1023, "min":1 }, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "ResourceName":{"shape":"AmazonResourceName"} + }, + "exception":true + }, "ReturnData":{"type":"boolean"}, "ScalableDimension":{ "type":"string", @@ -635,7 +704,8 @@ "MaxCapacity":{"shape":"ResourceCapacity"}, "RoleARN":{"shape":"ResourceIdMaxLen1600"}, "CreationTime":{"shape":"TimestampType"}, - "SuspendedState":{"shape":"SuspendedState"} + "SuspendedState":{"shape":"SuspendedState"}, + "ScalableTargetARN":{"shape":"XmlString"} } }, "ScalableTargetAction":{ @@ -805,6 +875,43 @@ "ScheduledScalingSuspended":{"shape":"ScalingSuspended"} } }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceARN", + "Tags" + ], + "members":{ + "ResourceARN":{"shape":"AmazonResourceName"}, + "Tags":{"shape":"TagMap"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, "TargetTrackingMetric":{ "type":"structure", "members":{ @@ -898,6 +1005,30 @@ } }, "TimestampType":{"type":"timestamp"}, + "TooManyTagsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "ResourceName":{"shape":"AmazonResourceName"} + }, + "exception":true + }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceARN", + "TagKeys" + ], + "members":{ + "ResourceARN":{"shape":"AmazonResourceName"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "ValidationException":{ "type":"structure", "members":{ diff --git a/models/apis/application-autoscaling/2016-02-06/docs-2.json b/models/apis/application-autoscaling/2016-02-06/docs-2.json index 15ef95953cc..7cad809b8c1 100644 --- a/models/apis/application-autoscaling/2016-02-06/docs-2.json +++ b/models/apis/application-autoscaling/2016-02-06/docs-2.json @@ -9,9 +9,12 @@ "DescribeScalingActivities": "

Provides descriptive information about the scaling activities in the specified namespace from the previous six weeks.

You can filter the results using ResourceId and ScalableDimension.

For information about viewing scaling activities using the Amazon Web Services CLI, see Scaling activities for Application Auto Scaling.

", "DescribeScalingPolicies": "

Describes the Application Auto Scaling scaling policies for the specified service namespace.

You can filter the results using ResourceId, ScalableDimension, and PolicyNames.

For more information, see Target tracking scaling policies and Step scaling policies in the Application Auto Scaling User Guide.

", "DescribeScheduledActions": "

Describes the Application Auto Scaling scheduled actions for the specified service namespace.

You can filter the results using the ResourceId, ScalableDimension, and ScheduledActionNames parameters.

For more information, see Scheduled scaling and Managing scheduled scaling in the Application Auto Scaling User Guide.

", - "PutScalingPolicy": "

Creates or updates a scaling policy for an Application Auto Scaling scalable target.

Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy until you have registered the resource as a scalable target.

Multiple scaling policies can be in force at the same time for the same scalable target. You can have one or more target tracking scaling policies, one or more step scaling policies, or both. However, there is a chance that multiple policies could conflict, instructing the scalable target to scale out or in at the same time. Application Auto Scaling gives precedence to the policy that provides the largest capacity for both scale out and scale in. For example, if one policy increases capacity by 3, another policy increases capacity by 200 percent, and the current capacity is 10, Application Auto Scaling uses the policy with the highest calculated capacity (200% of 10 = 20) and scales out to 30.

We recommend caution, however, when using target tracking scaling policies with step scaling policies because conflicts between these policies can cause undesirable behavior. For example, if the step scaling policy initiates a scale-in activity before the target tracking policy is ready to scale in, the scale-in activity will not be blocked. After the scale-in activity completes, the target tracking policy could instruct the scalable target to scale out again.

For more information, see Target tracking scaling policies and Step scaling policies in the Application Auto Scaling User Guide.

If a scalable target is deregistered, the scalable target is no longer available to execute scaling policies. Any scaling policies that were specified for the scalable target are deleted.

", - "PutScheduledAction": "

Creates or updates a scheduled action for an Application Auto Scaling scalable target.

Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action until you have registered the resource as a scalable target.

When start and end times are specified with a recurring schedule using a cron expression or rates, they form the boundaries for when the recurring action starts and stops.

To update a scheduled action, specify the parameters that you want to change. If you don't specify start and end times, the old values are deleted.

For more information, see Scheduled scaling in the Application Auto Scaling User Guide.

If a scalable target is deregistered, the scalable target is no longer available to run scheduled actions. Any scheduled actions that were specified for the scalable target are deleted.

", - "RegisterScalableTarget": "

Registers or updates a scalable target, the resource that you want to scale.

Scalable targets are uniquely identified by the combination of resource ID, scalable dimension, and namespace, which represents some capacity dimension of the underlying service.

When you register a new scalable target, you must specify values for the minimum and maximum capacity. If the specified resource is not active in the target service, this operation does not change the resource's current capacity. Otherwise, it changes the resource's current capacity to a value that is inside of this range.

If you choose to add a scaling policy, current capacity is adjustable within the specified range when scaling starts. Application Auto Scaling scaling policies will not scale capacity to values that are outside of the minimum and maximum range.

After you register a scalable target, you do not need to register it again to use other Application Auto Scaling operations. To see which resources have been registered, use DescribeScalableTargets. You can also view the scaling policies for a service namespace by using DescribeScalableTargets. If you no longer need a scalable target, you can deregister it by using DeregisterScalableTarget.

To update a scalable target, specify the parameters that you want to change. Include the parameters that identify the scalable target: resource ID, scalable dimension, and namespace. Any parameters that you don't specify are not changed by this update request.

If you call the RegisterScalableTarget API to update an existing scalable target, Application Auto Scaling retrieves the current capacity of the resource. If it is below the minimum capacity or above the maximum capacity, Application Auto Scaling adjusts the capacity of the scalable target to place it within these bounds, even if you don't include the MinCapacity or MaxCapacity request parameters.

" + "ListTagsForResource": "

Returns all the tags on the specified Application Auto Scaling scalable target.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

", + "PutScalingPolicy": "

Creates or updates a scaling policy for an Application Auto Scaling scalable target.

Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy until you have registered the resource as a scalable target.

Multiple scaling policies can be in force at the same time for the same scalable target. You can have one or more target tracking scaling policies, one or more step scaling policies, or both. However, there is a chance that multiple policies could conflict, instructing the scalable target to scale out or in at the same time. Application Auto Scaling gives precedence to the policy that provides the largest capacity for both scale out and scale in. For example, if one policy increases capacity by 3, another policy increases capacity by 200 percent, and the current capacity is 10, Application Auto Scaling uses the policy with the highest calculated capacity (200% of 10 = 20) and scales out to 30.

We recommend caution, however, when using target tracking scaling policies with step scaling policies because conflicts between these policies can cause undesirable behavior. For example, if the step scaling policy initiates a scale-in activity before the target tracking policy is ready to scale in, the scale-in activity will not be blocked. After the scale-in activity completes, the target tracking policy could instruct the scalable target to scale out again.

For more information, see Target tracking scaling policies and Step scaling policies in the Application Auto Scaling User Guide.

If a scalable target is deregistered, the scalable target is no longer available to use scaling policies. Any scaling policies that were specified for the scalable target are deleted.

", + "PutScheduledAction": "

Creates or updates a scheduled action for an Application Auto Scaling scalable target.

Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action until you have registered the resource as a scalable target.

When you specify start and end times with a recurring schedule using a cron expression or rates, they form the boundaries for when the recurring action starts and stops.

To update a scheduled action, specify the parameters that you want to change. If you don't specify start and end times, the old values are deleted.

For more information, see Scheduled scaling in the Application Auto Scaling User Guide.

If a scalable target is deregistered, the scalable target is no longer available to run scheduled actions. Any scheduled actions that were specified for the scalable target are deleted.

", + "RegisterScalableTarget": "

Registers or updates a scalable target, which is the resource that you want to scale.

Scalable targets are uniquely identified by the combination of resource ID, scalable dimension, and namespace, which represents some capacity dimension of the underlying service.

When you register a new scalable target, you must specify values for the minimum and maximum capacity. If the specified resource is not active in the target service, this operation does not change the resource's current capacity. Otherwise, it changes the resource's current capacity to a value that is inside of this range.

If you add a scaling policy, current capacity is adjustable within the specified range when scaling starts. Application Auto Scaling scaling policies will not scale capacity to values that are outside of the minimum and maximum range.

After you register a scalable target, you do not need to register it again to use other Application Auto Scaling operations. To see which resources have been registered, use DescribeScalableTargets. You can also view the scaling policies for a service namespace by using DescribeScalableTargets. If you no longer need a scalable target, you can deregister it by using DeregisterScalableTarget.

To update a scalable target, specify the parameters that you want to change. Include the parameters that identify the scalable target: resource ID, scalable dimension, and namespace. Any parameters that you don't specify are not changed by this update request.

If you call the RegisterScalableTarget API operation to create a scalable target, there might be a brief delay until the operation achieves eventual consistency. You might become aware of this brief delay if you get unexpected errors when performing sequential operations. The typical strategy is to retry the request, and some Amazon Web Services SDKs include automatic backoff and retry logic.

If you call the RegisterScalableTarget API operation to update an existing scalable target, Application Auto Scaling retrieves the current capacity of the resource. If it's below the minimum capacity or above the maximum capacity, Application Auto Scaling adjusts the capacity of the scalable target to place it within these bounds, even if you don't include the MinCapacity or MaxCapacity request parameters.

", + "TagResource": "

Adds or edits tags on an Application Auto Scaling scalable target.

Each tag consists of a tag key and a tag value, which are both case-sensitive strings. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag an Application Auto Scaling scalable target, but you cannot tag a scaling policy or scheduled action.

You can also add tags to an Application Auto Scaling scalable target while creating it (RegisterScalableTarget).

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

Use tags to control access to a scalable target. For more information, see Tagging support for Application Auto Scaling in the Application Auto Scaling User Guide.

", + "UntagResource": "

Deletes tags from an Application Auto Scaling scalable target. To delete a tag, specify the tag key and the Application Auto Scaling scalable target.

" }, "shapes": { "AdjustmentType": { @@ -33,6 +36,16 @@ "ScalingPolicy$Alarms": "

The CloudWatch alarms associated with the scaling policy.

" } }, + "AmazonResourceName": { + "base": null, + "refs": { + "ListTagsForResourceRequest$ResourceARN": "

Specify the ARN of the scalable target.

For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123

To get the ARN for a scalable target, use DescribeScalableTargets.

", + "ResourceNotFoundException$ResourceName": "

The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN).

", + "TagResourceRequest$ResourceARN": "

Identifies the Application Auto Scaling scalable target that you want to apply tags to.

For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123

To get the ARN for a scalable target, use DescribeScalableTargets.

", + "TooManyTagsException$ResourceName": "

The name of the Application Auto Scaling resource. This value is an Amazon Resource Name (ARN).

", + "UntagResourceRequest$ResourceARN": "

Identifies the Application Auto Scaling scalable target from which to remove tags.

For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123

To get the ARN for a scalable target, use DescribeScalableTargets.

" + } + }, "ConcurrentUpdateException": { "base": "

Concurrent updates caused an exception, for example, if you request an update to an Application Auto Scaling resource that already has a pending update.

", "refs": { @@ -140,6 +153,13 @@ "ValidationException$Message": null } }, + "ExceptionMessage": { + "base": null, + "refs": { + "ResourceNotFoundException$Message": null, + "TooManyTagsException$Message": null + } + }, "Expression": { "base": null, "refs": { @@ -178,6 +198,16 @@ "refs": { } }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, "MaxResults": { "base": null, "refs": { @@ -220,7 +250,7 @@ "MetricName": { "base": null, "refs": { - "CustomizedMetricSpecification$MetricName": "

The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.

" + "CustomizedMetricSpecification$MetricName": "

The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metric object that's returned by a call to ListMetrics.

" } }, "MetricNamespace": { @@ -232,8 +262,8 @@ "MetricScale": { "base": null, "refs": { - "StepAdjustment$MetricIntervalLowerBound": "

The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it is exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.

", - "StepAdjustment$MetricIntervalUpperBound": "

The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it is inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.

The upper bound must be greater than the lower bound.

", + "StepAdjustment$MetricIntervalLowerBound": "

The lower bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the lower bound is inclusive (the metric must be greater than or equal to the threshold plus the lower bound). Otherwise, it's exclusive (the metric must be greater than the threshold plus the lower bound). A null value indicates negative infinity.

", + "StepAdjustment$MetricIntervalUpperBound": "

The upper bound for the difference between the alarm threshold and the CloudWatch metric. If the metric value is above the breach threshold, the upper bound is exclusive (the metric must be less than the threshold plus the upper bound). Otherwise, it's inclusive (the metric must be less than or equal to the threshold plus the upper bound). A null value indicates positive infinity.

The upper bound must be greater than the lower bound.

", "TargetTrackingScalingPolicyConfiguration$TargetValue": "

The target value for the metric. Although this property accepts numbers of type Double, it won't accept values that are either too small or too large. Values must be in the range of -2^360 to 2^360. The value must be a valid number based on the choice of metric. For example, if the metric is CPU utilization, then the target value is a percent value that represents how much of the CPU can be used before scaling out.

If the scaling policy specifies the ALBRequestCountPerTarget predefined metric, specify the target utilization as the optimal average request count per target during any one-minute interval.

" } }, @@ -335,7 +365,7 @@ "NotScaledReason$MinCapacity": "

The minimum capacity.

", "NotScaledReason$CurrentCapacity": "

The current capacity.

", "RegisterScalableTargetRequest$MinCapacity": "

The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand. This property is required when registering a new scalable target.

For the following resources, the minimum value allowed is 0.

It's strongly recommended that you specify a value greater than 0. A value greater than 0 means that data points are continuously reported to CloudWatch that scaling policies can use to scale on a metric like average CPU utilization.

For all other resources, the minimum allowed value depends on the type of resource that you are using. If you provide a value that is lower than what a resource can accept, an error occurs. In which case, the error message will provide the minimum value that the resource can accept.

", - "RegisterScalableTargetRequest$MaxCapacity": "

The maximum value that you plan to scale out to. When a scaling policy is in effect, Application Auto Scaling can scale out (expand) as needed to the maximum capacity limit in response to changing demand. This property is required when registering a new scalable target.

Although you can specify a large maximum capacity, note that service quotas may impose lower limits. Each service has its own default quotas for the maximum capacity of the resource. If you want to specify a higher limit, you can request an increase. For more information, consult the documentation for that service. For information about the default quotas for each service, see Service endpoints and quotas in the Amazon Web Services General Reference.

", + "RegisterScalableTargetRequest$MaxCapacity": "

The maximum value that you plan to scale out to. When a scaling policy is in effect, Application Auto Scaling can scale out (expand) as needed to the maximum capacity limit in response to changing demand. This property is required when registering a new scalable target.

Although you can specify a large maximum capacity, note that service quotas might impose lower limits. Each service has its own default quotas for the maximum capacity of the resource. If you want to specify a higher limit, you can request an increase. For more information, consult the documentation for that service. For information about the default quotas for each service, see Service endpoints and quotas in the Amazon Web Services General Reference.

", "ScalableTarget$MinCapacity": "

The minimum value to scale to in response to a scale-in activity.

", "ScalableTarget$MaxCapacity": "

The maximum value to scale to in response to a scale-out activity.

", "ScalableTargetAction$MinCapacity": "

The minimum capacity.

When the scheduled action runs, the resource will have at least this much capacity, but it might have more depending on other settings, such as the target utilization level of a target tracking scaling policy.

", @@ -394,6 +424,11 @@ "PredefinedMetricSpecification$ResourceLabel": "

Identifies the resource associated with the metric type. You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group attached to the Spot Fleet or ECS service.

You create the resource label by appending the final portion of the load balancer ARN and the final portion of the target group ARN into a single value, separated by a forward slash (/). The format of the resource label is:

app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff.

Where:

To find the ARN for an Application Load Balancer, use the DescribeLoadBalancers API operation. To find the ARN for the target group, use the DescribeTargetGroups API operation.

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

The specified resource doesn't exist.

", + "refs": { + } + }, "ReturnData": { "base": null, "refs": { @@ -521,7 +556,7 @@ } }, "StepAdjustment": { - "base": "

Represents a step adjustment for a StepScalingPolicyConfiguration. Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.

For the following examples, suppose that you have an alarm with a breach threshold of 50:

There are a few rules for the step adjustments for your step policy:

", + "base": "

Represents a step adjustment for a StepScalingPolicyConfiguration. Describes an adjustment based on the difference between the value of the aggregated CloudWatch metric and the breach threshold that you've defined for the alarm.

For the following examples, suppose that you have an alarm with a breach threshold of 50:

There are a few rules for the step adjustments for your step policy:

", "refs": { "StepAdjustments$member": null } @@ -546,6 +581,43 @@ "ScalableTarget$SuspendedState": "

Specifies whether the scaling activities for a scalable target are in a suspended state.

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

One or more tag keys. Specify only the tag keys, not the tag values.

" + } + }, + "TagMap": { + "base": null, + "refs": { + "ListTagsForResourceResponse$Tags": "

A list of tags. Each tag consists of a tag key and a tag value.

", + "RegisterScalableTargetRequest$Tags": "

Assigns one or more tags to the scalable target. Use this parameter to tag the scalable target when it is created. To tag an existing scalable target, use the TagResource operation.

Each tag consists of a tag key and a tag value. Both the tag key and the tag value are required. You cannot have more than one tag on a scalable target with the same tag key.

Use tags to control access to a scalable target. For more information, see Tagging support for Application Auto Scaling in the Application Auto Scaling User Guide.

", + "TagResourceRequest$Tags": "

The tags assigned to the resource. A tag is a label that you assign to an AWS resource.

Each tag consists of a tag key and a tag value.

You cannot have more than one tag on an Application Auto Scaling scalable target with the same tag key. If you specify an existing tag key with a different tag value, Application Auto Scaling replaces the current tag value with the specified one.

For information about the rules that apply to tag keys and tag values, see User-defined tag restrictions in the Amazon Web Services Billing and Cost Management User Guide.

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

Represents a specific metric.

Metric is a property of the TargetTrackingMetricStat object.

", "refs": { @@ -633,6 +705,21 @@ "ScheduledAction$CreationTime": "

The date and time that the scheduled action was created.

" } }, + "TooManyTagsException": { + "base": "

The request contains too many tags. Try the request again with fewer tags.

", + "refs": { + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, "ValidationException": { "base": "

An exception was thrown for a validation issue. Review the available parameters for the API request.

", "refs": { @@ -650,12 +737,14 @@ "DescribeScheduledActionsRequest$NextToken": "

The token for the next set of results.

", "DescribeScheduledActionsResponse$NextToken": "

The token required to get the next set of results. This value is null if there are no more results to return.

", "NotScaledReason$Code": "

A code that represents the reason for not scaling.

Valid values:

", + "RegisterScalableTargetResponse$ScalableTargetARN": "

The ARN of the scalable target.

", + "ScalableTarget$ScalableTargetARN": "

The ARN of the scalable target.

", "ScalingActivity$Description": "

A simple description of what action the scaling activity intends to accomplish.

", "ScalingActivity$Cause": "

A simple description of what caused the scaling activity to happen.

", "ScalingActivity$StatusMessage": "

A simple message about the current status of the scaling activity.

", "ScalingActivity$Details": "

The details about the scaling activity.

", "TargetTrackingMetricDataQuery$Label": "

A human-readable label for this metric or expression. This is especially useful if this is a math expression, so that you know what the value represents.

", - "TargetTrackingMetricStat$Stat": "

The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.

The most commonly used metrics for scaling is Average

" + "TargetTrackingMetricStat$Stat": "

The statistic to return. It can include any CloudWatch statistic or extended statistic. For a list of valid values, see the table in Statistics in the Amazon CloudWatch User Guide.

The most commonly used metric for scaling is Average.

" } } } diff --git a/models/apis/application-autoscaling/2016-02-06/endpoint-tests-1.json b/models/apis/application-autoscaling/2016-02-06/endpoint-tests-1.json index 0358f5c1b57..b8bca66a613 100644 --- a/models/apis/application-autoscaling/2016-02-06/endpoint-tests-1.json +++ b/models/apis/application-autoscaling/2016-02-06/endpoint-tests-1.json @@ -8,9 +8,9 @@ } }, "params": { - "Region": "af-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "af-south-1" } }, { @@ -21,9 +21,9 @@ } }, "params": { - "Region": "ap-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-east-1" } }, { @@ -34,9 +34,9 @@ } }, "params": { - "Region": "ap-northeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-1" } }, { @@ -47,9 +47,9 @@ } }, "params": { - "Region": "ap-northeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-2" } }, { @@ -60,9 +60,9 @@ } }, "params": { - "Region": "ap-northeast-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-northeast-3" } }, { @@ -73,9 +73,9 @@ } }, "params": { - "Region": "ap-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-south-1" } }, { @@ -86,9 +86,9 @@ } }, "params": { - "Region": "ap-southeast-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-1" } }, { @@ -99,9 +99,9 @@ } }, "params": { - "Region": "ap-southeast-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-2" } }, { @@ -112,9 +112,9 @@ } }, "params": { - "Region": "ap-southeast-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ap-southeast-3" } }, { @@ -125,9 +125,9 @@ } }, "params": { - "Region": "ca-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "ca-central-1" } }, { @@ -138,9 +138,9 @@ } }, "params": { - "Region": "eu-central-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-central-1" } }, { @@ -151,9 +151,9 @@ } }, "params": { - "Region": "eu-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-north-1" } }, { @@ -164,9 +164,9 @@ } }, "params": { - "Region": "eu-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-south-1" } }, { @@ -177,9 +177,9 @@ } }, "params": { - "Region": "eu-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-1" } }, { @@ -190,9 +190,9 @@ } }, "params": { - "Region": "eu-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-2" } }, { @@ -203,9 +203,9 @@ } }, "params": { - "Region": "eu-west-3", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "eu-west-3" } }, { @@ -216,9 +216,9 @@ } }, "params": { - "Region": "me-south-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "me-south-1" } }, { @@ -229,9 +229,9 @@ } }, "params": { - "Region": "sa-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "sa-east-1" } }, { @@ -242,9 +242,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -255,9 +255,9 @@ } }, "params": { - "Region": "us-east-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-east-2" } }, { @@ -268,9 +268,9 @@ } }, "params": { - "Region": "us-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-1" } }, { @@ -281,9 +281,9 @@ } }, "params": { - "Region": "us-west-2", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-west-2" } }, { @@ -294,9 +294,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -307,9 +307,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-east-1" } }, { @@ -320,9 +320,9 @@ } }, "params": { - "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-east-1" } }, { @@ -333,9 +333,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -346,9 +346,9 @@ } }, "params": { - "Region": "cn-northwest-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "cn-northwest-1" } }, { @@ -359,9 +359,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -372,9 +372,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "cn-north-1" } }, { @@ -385,9 +385,9 @@ } }, "params": { - "Region": "cn-north-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "cn-north-1" } }, { @@ -398,9 +398,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { @@ -411,9 +411,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -424,9 +424,9 @@ } }, "params": { - "Region": "us-gov-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-gov-west-1" } }, { @@ -437,9 +437,9 @@ } }, "params": { - "Region": "us-gov-west-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-gov-west-1" } }, { @@ -450,9 +450,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": true, "UseDualStack": true, - "UseFIPS": true + "Region": "us-gov-east-1" } }, { @@ -463,9 +463,9 @@ } }, "params": { - "Region": "us-gov-east-1", + "UseFIPS": false, "UseDualStack": true, - "UseFIPS": false + "Region": "us-gov-east-1" } }, { @@ -476,9 +476,9 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-iso-east-1" } }, { @@ -489,9 +489,9 @@ } }, "params": { - "Region": "us-iso-west-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-iso-west-1" } }, { @@ -502,9 +502,9 @@ } }, "params": { - "Region": "us-iso-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-iso-east-1" } }, { @@ -515,9 +515,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": false, "UseDualStack": false, - "UseFIPS": false + "Region": "us-isob-east-1" } }, { @@ -528,9 +528,9 @@ } }, "params": { - "Region": "us-isob-east-1", + "UseFIPS": true, "UseDualStack": false, - "UseFIPS": true + "Region": "us-isob-east-1" } }, { @@ -541,9 +541,9 @@ } }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -555,8 +555,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -566,9 +566,9 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, + "Region": "us-east-1", "Endpoint": "https://example.com" } }, @@ -578,9 +578,9 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "Region": "us-east-1", - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, + "Region": "us-east-1", "Endpoint": "https://example.com" } } diff --git a/models/apis/application-autoscaling/2016-02-06/examples-1.json b/models/apis/application-autoscaling/2016-02-06/examples-1.json index 5abcd5544a0..86eca052d86 100644 --- a/models/apis/application-autoscaling/2016-02-06/examples-1.json +++ b/models/apis/application-autoscaling/2016-02-06/examples-1.json @@ -22,6 +22,27 @@ "title": "To delete a scaling policy" } ], + "DeleteScheduledAction": [ + { + "input": { + "ResourceId": "fleet/sample-fleet", + "ScalableDimension": "appstream:fleet:DesiredCapacity", + "ScheduledActionName": "my-recurring-action", + "ServiceNamespace": "appstream" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example deletes a scheduled action for the AppStream 2.0 fleet called sample-fleet.", + "id": "to-delete-a-scheduled-action-1677963329606", + "title": "To delete a scheduled action" + } + ], "DeregisterScalableTarget": [ { "input": { @@ -156,6 +177,73 @@ "title": "To describe scaling policies" } ], + "DescribeScheduledActions": [ + { + "input": { + "ServiceNamespace": "dynamodb" + }, + "output": { + "ScheduledActions": [ + { + "CreationTime": 1561571888.361, + "ResourceId": "table/my-table", + "ScalableDimension": "dynamodb:table:WriteCapacityUnits", + "ScalableTargetAction": { + "MaxCapacity": 20, + "MinCapacity": 15 + }, + "Schedule": "at(2019-05-20T18:35:00)", + "ScheduledActionARN": "arn:aws:autoscaling:us-west-2:123456789012:scheduledAction:2d36aa3b-cdf9-4565-b290-81db519b227d:resource/dynamodb/table/my-table:scheduledActionName/my-first-scheduled-action", + "ScheduledActionName": "my-first-scheduled-action", + "ServiceNamespace": "dynamodb" + }, + { + "CreationTime": 1561571946.021, + "ResourceId": "table/my-table", + "ScalableDimension": "dynamodb:table:WriteCapacityUnits", + "ScalableTargetAction": { + "MaxCapacity": 10, + "MinCapacity": 5 + }, + "Schedule": "at(2019-05-20T18:40:00)", + "ScheduledActionARN": "arn:aws:autoscaling:us-west-2:123456789012:scheduledAction:2d36aa3b-cdf9-4565-b290-81db519b227d:resource/dynamodb/table/my-table:scheduledActionName/my-second-scheduled-action", + "ScheduledActionName": "my-second-scheduled-action", + "ServiceNamespace": "dynamodb" + } + ] + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example describes the scheduled actions for the dynamodb service namespace.", + "id": "to-describe-scheduled-actions-1677965249349", + "title": "To describe scheduled actions" + } + ], + "ListTagsForResource": [ + { + "input": { + "ResourceARN": "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123" + }, + "output": { + "Tags": { + "environment": "production" + } + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example lists the tag key names and values that are attached to the scalable target specified by its ARN.", + "id": "to-list-tags-for-a-scalable-target-1677971474903", + "title": "To list tags for a scalable target" + } + ], "PutScalingPolicy": [ { "input": { @@ -197,6 +285,31 @@ "title": "To apply a target tracking scaling policy with a predefined metric specification" } ], + "PutScheduledAction": [ + { + "input": { + "ResourceId": "table/TestTable", + "ScalableDimension": "dynamodb:table:WriteCapacityUnits", + "ScalableTargetAction": { + "MinCapacity": 6 + }, + "Schedule": "cron(15 12 * * ? *)", + "ScheduledActionName": "my-recurring-action", + "ServiceNamespace": "dynamodb" + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds a scheduled action to a DynamoDB table called TestTable to scale out on a recurring schedule. On the specified schedule (every day at 12:15pm UTC), if the current capacity is below the value specified for MinCapacity, Application Auto Scaling scales out to the value specified by MinCapacity.", + "id": "to-create-a-recurring-scheduled-action-1677970068621", + "title": "To create a recurring scheduled action" + } + ], "RegisterScalableTarget": [ { "input": { @@ -216,6 +329,48 @@ "id": "to-register-a-new-scalable-target-1470864910380", "title": "To register an ECS service as a scalable target" } + ], + "TagResource": [ + { + "input": { + "ResourceARN": "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123", + "Tags": { + "environment": "production" + } + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example adds a tag with the key name \"environment\" and the value \"production\" to the scalable target specified by its ARN.", + "id": "to-add-a-tag-to-a-scalable-target-1677970764620", + "title": "To add a tag to a scalable target" + } + ], + "UntagResource": [ + { + "input": { + "ResourceARN": "arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123", + "TagKeys": [ + "environment" + ] + }, + "output": { + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "This example removes the tag pair with the key name \"environment\" from the scalable target specified by its ARN.", + "id": "to-remove-a-tag-from-a-scalable-target-1677971117168", + "title": "To remove a tag from a scalable target" + } ] } } diff --git a/models/apis/neptune/2014-10-31/api-2.json b/models/apis/neptune/2014-10-31/api-2.json index 46c52d8f572..380713ac42f 100644 --- a/models/apis/neptune/2014-10-31/api-2.json +++ b/models/apis/neptune/2014-10-31/api-2.json @@ -1324,6 +1324,18 @@ "DisableLogTypes":{"shape":"LogTypeList"} } }, + "ClusterPendingModifiedValues":{ + "type":"structure", + "members":{ + "PendingCloudwatchLogsExports":{"shape":"PendingCloudwatchLogsExports"}, + "DBClusterIdentifier":{"shape":"String"}, + "IAMDatabaseAuthenticationEnabled":{"shape":"BooleanOptional"}, + "EngineVersion":{"shape":"String"}, + "BackupRetentionPeriod":{"shape":"IntegerOptional"}, + "AllocatedStorage":{"shape":"IntegerOptional"}, + "Iops":{"shape":"IntegerOptional"} + } + }, "CopyDBClusterParameterGroupMessage":{ "type":"structure", "required":[ @@ -1501,7 +1513,8 @@ "required":[ "DBInstanceIdentifier", "DBInstanceClass", - "Engine" + "Engine", + "DBClusterIdentifier" ], "members":{ "DBName":{"shape":"String"}, @@ -1678,10 +1691,12 @@ "ClusterCreateTime":{"shape":"TStamp"}, "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, "EnabledCloudwatchLogsExports":{"shape":"LogTypeList"}, + "PendingModifiedValues":{"shape":"ClusterPendingModifiedValues"}, "DeletionProtection":{"shape":"BooleanOptional"}, "CrossAccountClone":{"shape":"BooleanOptional"}, "AutomaticRestartTime":{"shape":"TStamp"}, - "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfigurationInfo"} + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfigurationInfo"}, + "GlobalClusterIdentifier":{"shape":"GlobalClusterIdentifier"} }, "wrapper":true }, diff --git a/models/apis/neptune/2014-10-31/docs-2.json b/models/apis/neptune/2014-10-31/docs-2.json index 43a7b0be46c..c6dfdd47c76 100644 --- a/models/apis/neptune/2014-10-31/docs-2.json +++ b/models/apis/neptune/2014-10-31/docs-2.json @@ -194,6 +194,7 @@ "BooleanOptional": { "base": null, "refs": { + "ClusterPendingModifiedValues$IAMDatabaseAuthenticationEnabled": "

A value that indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts is enabled.

", "CopyDBClusterSnapshotMessage$CopyTags": "

True to copy all tags from the source DB cluster snapshot to the target DB cluster snapshot, and otherwise false. The default is false.

", "CreateDBClusterMessage$CopyTagsToSnapshot": "

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

", "CreateDBClusterMessage$StorageEncrypted": "

Specifies whether the DB cluster is encrypted.

", @@ -262,6 +263,12 @@ "ModifyDBInstanceMessage$CloudwatchLogsExportConfiguration": "

The configuration setting for the log types to be enabled for export to CloudWatch Logs for a specific DB instance or DB cluster.

" } }, + "ClusterPendingModifiedValues": { + "base": "

This data type is used as a response element in the ModifyDBCluster operation and contains changes that will be applied during the next maintenance window.

", + "refs": { + "DBCluster$PendingModifiedValues": "

This data type is used as a response element in the ModifyDBCluster operation and contains changes that will be applied during the next maintenance window.

" + } + }, "CopyDBClusterParameterGroupMessage": { "base": null, "refs": { @@ -1192,6 +1199,7 @@ "refs": { "CreateDBClusterMessage$GlobalClusterIdentifier": "

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

", "CreateGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier of the new global database cluster.

", + "DBCluster$GlobalClusterIdentifier": "

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

", "DeleteGlobalClusterMessage$GlobalClusterIdentifier": "

The cluster identifier of the global database cluster being deleted.

", "DescribeGlobalClustersMessage$GlobalClusterIdentifier": "

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

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

", "FailoverGlobalClusterMessage$GlobalClusterIdentifier": "

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

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

", @@ -1271,6 +1279,9 @@ "IntegerOptional": { "base": null, "refs": { + "ClusterPendingModifiedValues$BackupRetentionPeriod": "

The number of days for which automatic DB snapshots are retained.

", + "ClusterPendingModifiedValues$AllocatedStorage": "

The allocated storage size in gibibytes (GiB) for database engines. For Neptune, AllocatedStorage always returns 1, because Neptune DB cluster storage size isn't fixed, but instead automatically adjusts as needed.

", + "ClusterPendingModifiedValues$Iops": "

The Provisioned IOPS (I/O operations per second) value. This setting is only for non-Aurora Multi-AZ DB clusters.

", "CreateDBClusterMessage$BackupRetentionPeriod": "

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

Default: 1

Constraints:

", "CreateDBClusterMessage$Port": "

The port number on which the instances in the DB cluster accept connections.

Default: 8182

", "CreateDBInstanceMessage$AllocatedStorage": "

Not supported by Neptune.

", @@ -1562,6 +1573,7 @@ "PendingCloudwatchLogsExports": { "base": "

A list of the log types whose configuration is still pending. In other words, these log types are in the process of being activated or deactivated.

", "refs": { + "ClusterPendingModifiedValues$PendingCloudwatchLogsExports": "

This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

", "PendingModifiedValues$PendingCloudwatchLogsExports": "

This PendingCloudwatchLogsExports structure specifies pending changes to which CloudWatch logs are enabled and which are disabled.

" } }, @@ -1834,6 +1846,8 @@ "AvailabilityZones$member": null, "CharacterSet$CharacterSetName": "

The name of the character set.

", "CharacterSet$CharacterSetDescription": "

The description of the character set.

", + "ClusterPendingModifiedValues$DBClusterIdentifier": "

The DBClusterIdentifier value for the DB cluster.

", + "ClusterPendingModifiedValues$EngineVersion": "

The database engine version.

", "CopyDBClusterParameterGroupMessage$SourceDBClusterParameterGroupIdentifier": "

The identifier or Amazon Resource Name (ARN) for the source DB cluster parameter group. For information about creating an ARN, see Constructing an Amazon Resource Name (ARN).

Constraints:

", "CopyDBClusterParameterGroupMessage$TargetDBClusterParameterGroupIdentifier": "

The identifier for the copied DB cluster parameter group.

Constraints:

Example: my-cluster-param-group1

", "CopyDBClusterParameterGroupMessage$TargetDBClusterParameterGroupDescription": "

A description for the copied DB cluster parameter group.

", diff --git a/models/apis/neptune/2014-10-31/endpoint-rule-set-1.json b/models/apis/neptune/2014-10-31/endpoint-rule-set-1.json index 1becf46c160..b9aff9f06c8 100644 --- a/models/apis/neptune/2014-10-31/endpoint-rule-set-1.json +++ b/models/apis/neptune/2014-10-31/endpoint-rule-set-1.json @@ -32,13 +32,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -46,23 +45,20 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] - }, - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" } ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], "type": "tree", "rules": [ { @@ -71,67 +67,42 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "endpoint": { + "url": { + "ref": "Endpoint" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", + "fn": "isSet", "argv": [ { - "ref": "UseDualStack" - }, - true + "ref": "Region" + } ] } ], @@ -140,294 +111,263 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "aws.partition", "argv": [ - true, { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] + "ref": "Region" } - ] - }, + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsDualStack" + true ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, + }, { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsFIPS" + true ] } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], + ], "type": "tree", "rules": [ { "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ + true, { - "ref": "Region" - }, - "rds.ca-central-1" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] - } - ], - "endpoint": { - "url": "https://rds-fips.ca-central-1.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ + }, { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ + true, { - "ref": "Region" - }, - "rds.us-east-1" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } ] } ], - "endpoint": { - "url": "https://rds-fips.us-east-1.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ + "type": "tree", + "rules": [ { - "fn": "stringEquals", - "argv": [ + "conditions": [], + "type": "tree", + "rules": [ { - "ref": "Region" - }, - "rds.us-east-2" + "conditions": [], + "endpoint": { + "url": "https://rds-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } ] } - ], - "endpoint": { - "url": "https://rds-fips.us-east-2.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + ] }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ + true, { - "ref": "Region" - }, - "rds.us-west-1" + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } ] } ], - "endpoint": { - "url": "https://rds-fips.us-west-1.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - }, - { - "conditions": [ + "type": "tree", + "rules": [ { - "fn": "stringEquals", - "argv": [ + "conditions": [], + "type": "tree", + "rules": [ { - "ref": "Region" + "conditions": [ + { + "fn": "stringEquals", + "argv": [ + "aws-us-gov", + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "name" + ] + } + ] + } + ], + "endpoint": { + "url": "https://rds.{Region}.amazonaws.com", + "properties": {}, + "headers": {} + }, + "type": "endpoint" }, - "rds.us-west-2" + { + "conditions": [], + "endpoint": { + "url": "https://rds-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } ] } - ], - "endpoint": { - "url": "https://rds-fips.us-west-2.amazonaws.com", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + ] }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "stringEquals", + "fn": "booleanEquals", "argv": [ - "aws-us-gov", + true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, - "name" + "supportsDualStack" ] } ] } ], - "endpoint": { - "url": "https://rds.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] }, { "conditions": [], - "endpoint": { - "url": "https://rds-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [], + "type": "tree", + "rules": [ { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] + "conditions": [], + "endpoint": { + "url": "https://rds.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://rds.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } ] }, { "conditions": [], - "endpoint": { - "url": "https://rds.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } diff --git a/models/apis/neptune/2014-10-31/endpoint-tests-1.json b/models/apis/neptune/2014-10-31/endpoint-tests-1.json index 56a8a41a8bc..6e70aeeabc7 100644 --- a/models/apis/neptune/2014-10-31/endpoint-tests-1.json +++ b/models/apis/neptune/2014-10-31/endpoint-tests-1.json @@ -1,1028 +1,31 @@ { "testCases": [ { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-south-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-south-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-south-1.amazonaws.com" - } - }, - "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://rds-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://rds-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://rds.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://rds.eu-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-south-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-south-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-south-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-south-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-south-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-south-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-south-2", - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.us-gov-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-gov-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-gov-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.me-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.me-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ca-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ca-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.ca-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "ca-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-central-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-central-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "UseFIPS": true, - "Region": "us-iso-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-iso-west-1.c2s.ic.gov" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-iso-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "UseFIPS": false, - "Region": "us-iso-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.us-iso-west-1.c2s.ic.gov" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-iso-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-central-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-central-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-central-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-central-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-central-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-central-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-central-2", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.us-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.us-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.us-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.us-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "us-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "af-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.af-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.af-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "af-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-north-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-north-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-north-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-north-1.amazonaws.com" - } - }, - "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://rds-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://rds-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://rds.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://rds.eu-west-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-3", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-west-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-west-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-2", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "eu-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-west-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.eu-west-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": false, - "Region": "eu-west-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-3", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-northeast-3.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-northeast-3.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-3", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-northeast-3.amazonaws.com" + "url": "https://rds.af-south-1.amazonaws.com" } }, "params": { + "Region": "af-south-1", "UseFIPS": false, - "Region": "ap-northeast-3", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-northeast-2.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-2", "UseDualStack": false } }, { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-northeast-2.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-northeast-2.amazonaws.com" + "url": "https://rds.ap-east-1.amazonaws.com" } }, "params": { + "Region": "ap-east-1", "UseFIPS": false, - "Region": "ap-northeast-2", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-northeast-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-northeast-1", "UseDualStack": false } }, - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-northeast-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-northeast-1", - "UseDualStack": true - } - }, { "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { @@ -1031,733 +34,573 @@ } }, "params": { - "UseFIPS": false, "Region": "ap-northeast-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.me-south-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-south-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.me-south-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "me-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.me-south-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "me-south-1", - "UseDualStack": true - } - }, - { - "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds.me-south-1.amazonaws.com" - } - }, - "params": { "UseFIPS": false, - "Region": "me-south-1", - "UseDualStack": false - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.sa-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "sa-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region sa-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.sa-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "sa-east-1", "UseDualStack": false } }, { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.sa-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.sa-east-1.amazonaws.com" + "url": "https://rds.ap-northeast-2.amazonaws.com" } }, "params": { + "Region": "ap-northeast-2", "UseFIPS": false, - "Region": "sa-east-1", - "UseDualStack": false - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-east-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.ap-east-1.amazonaws.com" - } - }, - "params": { - "UseFIPS": true, - "Region": "ap-east-1", "UseDualStack": false } }, { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds.ap-east-1.api.aws" - } - }, - "params": { - "UseFIPS": false, - "Region": "ap-east-1", - "UseDualStack": true - } - }, - { - "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-east-1.amazonaws.com" + "url": "https://rds.ap-northeast-3.amazonaws.com" } }, "params": { + "Region": "ap-northeast-3", "UseFIPS": false, - "Region": "ap-east-1", "UseDualStack": false } }, { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "UseFIPS": true, - "Region": "cn-north-1", - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.cn-north-1.amazonaws.com.cn" + "url": "https://rds.ap-south-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "cn-north-1", + "Region": "ap-south-1", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.cn-north-1.api.amazonwebservices.com.cn" + "url": "https://rds.ap-southeast-1.amazonaws.com" } }, "params": { + "Region": "ap-southeast-1", "UseFIPS": false, - "Region": "cn-north-1", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.cn-north-1.amazonaws.com.cn" + "url": "https://rds.ap-southeast-2.amazonaws.com" } }, "params": { + "Region": "ap-southeast-2", "UseFIPS": false, - "Region": "cn-north-1", "UseDualStack": false } }, { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-gov-west-1.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-gov-west-1", - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", + "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-gov-west-1.amazonaws.com" + "url": "https://rds.ap-southeast-3.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "us-gov-west-1", + "Region": "ap-southeast-3", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", + "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-gov-west-1.api.aws" + "url": "https://rds.ca-central-1.amazonaws.com" } }, "params": { + "Region": "ca-central-1", "UseFIPS": false, - "Region": "us-gov-west-1", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", + "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-gov-west-1.amazonaws.com" + "url": "https://rds-fips.ca-central-1.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "us-gov-west-1", + "Region": "ca-central-1", + "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-1.api.aws" + "url": "https://rds.eu-central-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-1", - "UseDualStack": true + "Region": "eu-central-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-1.amazonaws.com" + "url": "https://rds.eu-north-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-1", + "Region": "eu-north-1", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack enabled", + "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-1.api.aws" + "url": "https://rds.eu-south-1.amazonaws.com" } }, "params": { + "Region": "eu-south-1", "UseFIPS": false, - "Region": "ap-southeast-1", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", + "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-1.amazonaws.com" + "url": "https://rds.eu-west-1.amazonaws.com" } }, "params": { + "Region": "eu-west-1", "UseFIPS": false, - "Region": "ap-southeast-1", "UseDualStack": false } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", + "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-2.api.aws" + "url": "https://rds.eu-west-2.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-2", - "UseDualStack": true + "Region": "eu-west-2", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", + "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-2.amazonaws.com" + "url": "https://rds.eu-west-3.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-2", + "Region": "eu-west-3", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", + "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-2.api.aws" + "url": "https://rds.me-south-1.amazonaws.com" } }, "params": { + "Region": "me-south-1", "UseFIPS": false, - "Region": "ap-southeast-2", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", + "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-2.amazonaws.com" + "url": "https://rds.sa-east-1.amazonaws.com" } }, "params": { + "Region": "sa-east-1", "UseFIPS": false, - "Region": "ap-southeast-2", "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://rds.us-east-1.amazonaws.com" + } }, "params": { - "UseFIPS": true, - "Region": "us-iso-east-1", - "UseDualStack": true + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.us-iso-east-1.c2s.ic.gov" + "url": "https://rds-fips.us-east-1.amazonaws.com" } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "Region": "us-iso-east-1", "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://rds.us-east-2.amazonaws.com" + } }, "params": { + "Region": "us-east-2", "UseFIPS": false, - "Region": "us-iso-east-1", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-iso-east-1.c2s.ic.gov" + "url": "https://rds-fips.us-east-2.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "us-iso-east-1", + "Region": "us-east-2", + "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack enabled", + "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-3.api.aws" + "url": "https://rds.us-west-1.amazonaws.com" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-3", - "UseDualStack": true + "Region": "us-west-1", + "UseFIPS": false, + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-3 with FIPS enabled and DualStack disabled", + "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-3.amazonaws.com" + "url": "https://rds-fips.us-west-1.amazonaws.com" } }, "params": { + "Region": "us-west-1", "UseFIPS": true, - "Region": "ap-southeast-3", "UseDualStack": false } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack enabled", + "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-3.api.aws" + "url": "https://rds.us-west-2.amazonaws.com" } }, "params": { + "Region": "us-west-2", "UseFIPS": false, - "Region": "ap-southeast-3", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled", + "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-3.amazonaws.com" + "url": "https://rds-fips.us-west-2.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "ap-southeast-3", + "Region": "us-west-2", + "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack enabled", + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-4.api.aws" + "url": "https://rds-fips.us-east-1.api.aws" } }, "params": { + "Region": "us-east-1", "UseFIPS": true, - "Region": "ap-southeast-4", "UseDualStack": true } }, { - "documentation": "For region ap-southeast-4 with FIPS enabled and DualStack disabled", + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://rds-fips.ap-southeast-4.amazonaws.com" + "url": "https://rds.us-east-1.api.aws" } }, "params": { - "UseFIPS": true, - "Region": "ap-southeast-4", - "UseDualStack": false + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-4.api.aws" + "url": "https://rds.cn-north-1.amazonaws.com.cn" } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "Region": "ap-southeast-4", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region ap-southeast-4 with FIPS disabled and DualStack disabled", + "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.ap-southeast-4.amazonaws.com" + "url": "https://rds.cn-northwest-1.amazonaws.com.cn" } }, "params": { + "Region": "cn-northwest-1", "UseFIPS": false, - "Region": "ap-southeast-4", "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://rds-fips.us-east-1.api.aws" + "url": "https://rds-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "Region": "us-east-1", "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.us-east-1.amazonaws.com" + "url": "https://rds-fips.cn-north-1.amazonaws.com.cn" } }, "params": { + "Region": "cn-north-1", "UseFIPS": true, - "Region": "us-east-1", "UseDualStack": false } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://rds.us-east-1.api.aws" + "url": "https://rds.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { + "Region": "cn-north-1", "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": true } }, { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-east-1.amazonaws.com" + "url": "https://rds.us-gov-east-1.amazonaws.com" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://rds-fips.us-east-2.api.aws" - } - }, - "params": { - "UseFIPS": true, - "Region": "us-east-2", - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.us-east-2.amazonaws.com" + "url": "https://rds.us-gov-east-1.amazonaws.com" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "Region": "us-east-2", "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", + "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-east-2.api.aws" + "url": "https://rds.us-gov-west-1.amazonaws.com" } }, "params": { + "Region": "us-gov-west-1", "UseFIPS": false, - "Region": "us-east-2", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", + "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.us-east-2.amazonaws.com" + "url": "https://rds.us-gov-west-1.amazonaws.com" } }, "params": { - "UseFIPS": false, - "Region": "us-east-2", + "Region": "us-gov-west-1", + "UseFIPS": true, "UseDualStack": false } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://rds-fips.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://rds-fips.us-gov-east-1.api.aws" } }, "params": { + "Region": "us-gov-east-1", "UseFIPS": true, - "Region": "cn-northwest-1", "UseDualStack": true } }, { - "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { - "url": "https://rds-fips.cn-northwest-1.amazonaws.com.cn" + "url": "https://rds.us-gov-east-1.api.aws" } }, "params": { - "UseFIPS": true, - "Region": "cn-northwest-1", - "UseDualStack": false + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.cn-northwest-1.api.amazonwebservices.com.cn" + "url": "https://rds.us-iso-east-1.c2s.ic.gov" } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": false, - "Region": "cn-northwest-1", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled", + "documentation": "For region us-iso-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds.cn-northwest-1.amazonaws.com.cn" + "url": "https://rds.us-iso-west-1.c2s.ic.gov" } }, "params": { + "Region": "us-iso-west-1", "UseFIPS": false, - "Region": "cn-northwest-1", "UseDualStack": false } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + "endpoint": { + "url": "https://rds-fips.us-iso-east-1.c2s.ic.gov" + } }, "params": { + "Region": "us-iso-east-1", "UseFIPS": true, - "Region": "us-isob-east-1", - "UseDualStack": true + "UseDualStack": false } }, { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { - "url": "https://rds-fips.us-isob-east-1.sc2s.sgov.gov" + "url": "https://rds.us-isob-east-1.sc2s.sgov.gov" } }, "params": { - "UseFIPS": true, "Region": "us-isob-east-1", + "UseFIPS": false, "UseDualStack": false } }, { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" + "endpoint": { + "url": "https://rds-fips.us-isob-east-1.sc2s.sgov.gov" + } }, "params": { - "UseFIPS": false, "Region": "us-isob-east-1", - "UseDualStack": true + "UseFIPS": true, + "UseDualStack": false } }, { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { - "url": "https://rds.us-isob-east-1.sc2s.sgov.gov" + "url": "https://example.com" } }, "params": { + "Region": "us-east-1", "UseFIPS": false, - "Region": "us-isob-east-1", - "UseDualStack": false + "UseDualStack": false, + "Endpoint": "https://example.com" } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" @@ -1765,7 +608,6 @@ }, "params": { "UseFIPS": false, - "Region": "us-east-1", "UseDualStack": false, "Endpoint": "https://example.com" } @@ -1776,8 +618,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseFIPS": true, "Region": "us-east-1", + "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } @@ -1788,8 +630,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseFIPS": false, "Region": "us-east-1", + "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } diff --git a/models/apis/s3outposts/2017-07-25/api-2.json b/models/apis/s3outposts/2017-07-25/api-2.json index 46418c045cc..3ee25ede8b8 100644 --- a/models/apis/s3outposts/2017-07-25/api-2.json +++ b/models/apis/s3outposts/2017-07-25/api-2.json @@ -27,7 +27,8 @@ {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ConflictException"}, - {"shape":"ThrottlingException"} + {"shape":"ThrottlingException"}, + {"shape":"OutpostOfflineException"} ] }, "DeleteEndpoint":{ @@ -42,7 +43,8 @@ {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"}, - {"shape":"ThrottlingException"} + {"shape":"ThrottlingException"}, + {"shape":"OutpostOfflineException"} ] }, "ListEndpoints":{ @@ -174,7 +176,8 @@ "SubnetId":{"shape":"SubnetId"}, "SecurityGroupId":{"shape":"SecurityGroupId"}, "AccessType":{"shape":"EndpointAccessType"}, - "CustomerOwnedIpv4Pool":{"shape":"CustomerOwnedIpv4Pool"} + "CustomerOwnedIpv4Pool":{"shape":"CustomerOwnedIpv4Pool"}, + "FailedReason":{"shape":"FailedReason"} } }, "EndpointAccessType":{ @@ -197,14 +200,24 @@ "enum":[ "Pending", "Available", - "Deleting" + "Deleting", + "Create_Failed", + "Delete_Failed" ] }, "Endpoints":{ "type":"list", "member":{"shape":"Endpoint"} }, + "ErrorCode":{"type":"string"}, "ErrorMessage":{"type":"string"}, + "FailedReason":{ + "type":"structure", + "members":{ + "ErrorCode":{"shape":"ErrorCode"}, + "Message":{"shape":"Message"} + } + }, "InternalServerException":{ "type":"structure", "members":{ @@ -291,6 +304,7 @@ "max":100, "min":0 }, + "Message":{"type":"string"}, "NetworkInterface":{ "type":"structure", "members":{ @@ -325,6 +339,14 @@ "type":"string", "pattern":"^(op-[a-f0-9]{17}|\\d{12}|ec2)$" }, + "OutpostOfflineException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "Outposts":{ "type":"list", "member":{"shape":"Outpost"} diff --git a/models/apis/s3outposts/2017-07-25/docs-2.json b/models/apis/s3outposts/2017-07-25/docs-2.json index 15064cff7a0..bb208ae305f 100644 --- a/models/apis/s3outposts/2017-07-25/docs-2.json +++ b/models/apis/s3outposts/2017-07-25/docs-2.json @@ -104,17 +104,30 @@ "ListSharedEndpointsResult$Endpoints": "

The list of endpoints associated with the specified Outpost that have been shared by Amazon Web Services Resource Access Manager (RAM).

" } }, + "ErrorCode": { + "base": null, + "refs": { + "FailedReason$ErrorCode": "

The failure code, if any, for a create or delete endpoint operation.

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

The failure reason, if any, for a create or delete endpoint operation.

", + "refs": { + "Endpoint$FailedReason": "

The failure reason, if any, for a create or delete endpoint operation.

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

There was an exception with the internal server.

", "refs": { @@ -158,6 +171,12 @@ "ListSharedEndpointsRequest$MaxResults": "

The maximum number of endpoints that will be returned in the response.

" } }, + "Message": { + "base": null, + "refs": { + "FailedReason$Message": "

Additional error details describing the endpoint failure and recommended action.

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

The container for the network interface.

", "refs": { @@ -209,6 +228,11 @@ "Outpost$OutpostId": "

Specifies the unique identifier for the outpost.

" } }, + "OutpostOfflineException": { + "base": "

The service link connection to your Outposts home Region is down. Check your connection and try again.

", + "refs": { + } + }, "Outposts": { "base": null, "refs": { diff --git a/models/apis/s3outposts/2017-07-25/endpoint-tests-1.json b/models/apis/s3outposts/2017-07-25/endpoint-tests-1.json index 586d1e4f6d7..2d8077a877f 100644 --- a/models/apis/s3outposts/2017-07-25/endpoint-tests-1.json +++ b/models/apis/s3outposts/2017-07-25/endpoint-tests-1.json @@ -8,8 +8,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "af-south-1" } }, @@ -21,8 +21,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-east-1" } }, @@ -34,8 +34,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-northeast-1" } }, @@ -47,8 +47,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-northeast-2" } }, @@ -60,8 +60,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-northeast-3" } }, @@ -73,8 +73,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-south-1" } }, @@ -86,8 +86,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-southeast-1" } }, @@ -99,8 +99,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ap-southeast-2" } }, @@ -112,8 +112,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "ca-central-1" } }, @@ -125,8 +125,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-central-1" } }, @@ -138,8 +138,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-north-1" } }, @@ -151,8 +151,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-south-1" } }, @@ -164,8 +164,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-west-1" } }, @@ -177,8 +177,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-west-2" } }, @@ -190,8 +190,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "eu-west-3" } }, @@ -203,8 +203,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "me-south-1" } }, @@ -216,8 +216,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "sa-east-1" } }, @@ -229,8 +229,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -242,8 +242,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-2" } }, @@ -255,8 +255,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-west-1" } }, @@ -268,8 +268,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-west-2" } }, @@ -281,8 +281,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "us-east-1" } }, @@ -294,8 +294,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1" } }, @@ -307,8 +307,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1" } }, @@ -320,8 +320,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "cn-north-1" } }, @@ -333,8 +333,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "cn-north-1" } }, @@ -346,8 +346,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "cn-north-1" } }, @@ -359,8 +359,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "cn-north-1" } }, @@ -372,8 +372,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": true, + "UseDualStack": true, "Region": "us-gov-east-1" } }, @@ -385,8 +385,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-gov-east-1" } }, @@ -398,8 +398,8 @@ } }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-gov-east-1" } }, @@ -411,8 +411,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-gov-east-1" } }, @@ -424,8 +424,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-iso-east-1" } }, @@ -437,8 +437,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-iso-east-1" } }, @@ -450,8 +450,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-isob-east-1" } }, @@ -463,8 +463,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-isob-east-1" } }, @@ -476,8 +476,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -490,8 +490,8 @@ } }, "params": { - "UseDualStack": false, "UseFIPS": false, + "UseDualStack": false, "Endpoint": "https://example.com" } }, @@ -501,8 +501,8 @@ "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { - "UseDualStack": false, "UseFIPS": true, + "UseDualStack": false, "Region": "us-east-1", "Endpoint": "https://example.com" } @@ -513,8 +513,8 @@ "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { - "UseDualStack": true, "UseFIPS": false, + "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } diff --git a/models/apis/workdocs/2016-05-01/api-2.json b/models/apis/workdocs/2016-05-01/api-2.json index 909de230c81..fb5f5e3eb49 100644 --- a/models/apis/workdocs/2016-05-01/api-2.json +++ b/models/apis/workdocs/2016-05-01/api-2.json @@ -657,7 +657,8 @@ {"shape":"ServiceUnavailableException"}, {"shape":"DraftUploadOutOfSyncException"}, {"shape":"ResourceAlreadyCheckedOutException"}, - {"shape":"InvalidPasswordException"} + {"shape":"InvalidPasswordException"}, + {"shape":"InvalidArgumentException"} ] }, "RemoveAllResourcePermissions":{ @@ -709,6 +710,22 @@ {"shape":"UnauthorizedOperationException"} ] }, + "SearchResources":{ + "name":"SearchResources", + "http":{ + "method":"POST", + "requestUri":"/api/v1/search", + "responseCode":200 + }, + "input":{"shape":"SearchResourcesRequest"}, + "output":{"shape":"SearchResourcesResponse"}, + "errors":[ + {"shape":"InvalidArgumentException"}, + {"shape":"UnauthorizedResourceAccessException"}, + {"shape":"UnauthorizedOperationException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "UpdateDocument":{ "name":"UpdateDocument", "http":{ @@ -924,6 +941,14 @@ "ShareResults":{"shape":"ShareResultsList"} } }, + "AdditionalResponseFieldType":{ + "type":"string", + "enum":["WEBURL"] + }, + "AdditionalResponseFieldsList":{ + "type":"list", + "member":{"shape":"AdditionalResponseFieldType"} + }, "AuthenticationHeaderType":{ "type":"string", "max":8199, @@ -970,7 +995,8 @@ "Contributor":{"shape":"User"}, "CreatedTimestamp":{"shape":"TimestampType"}, "CommentStatus":{"shape":"CommentStatusType"}, - "RecipientId":{"shape":"IdType"} + "RecipientId":{"shape":"IdType"}, + "ContributorId":{"shape":"IdType"} } }, "CommentStatusType":{ @@ -1010,6 +1036,20 @@ "error":{"httpStatusCode":409}, "exception":true }, + "ContentCategoryType":{ + "type":"string", + "enum":[ + "IMAGE", + "DOCUMENT", + "PDF", + "SPREADSHEET", + "PRESENTATION", + "AUDIO", + "VIDEO", + "SOURCE_CODE", + "OTHER" + ] + }, "CreateCommentRequest":{ "type":"structure", "required":[ @@ -1207,6 +1247,13 @@ "min":1, "pattern":"[a-zA-Z0-9._+-/=][a-zA-Z0-9 ._+-/=]*" }, + "DateRangeType":{ + "type":"structure", + "members":{ + "StartValue":{"shape":"TimestampType"}, + "EndValue":{"shape":"TimestampType"} + } + }, "DeactivateUserRequest":{ "type":"structure", "required":["UserId"], @@ -1983,6 +2030,21 @@ "min":1, "pattern":"[\\w,]+" }, + "Filters":{ + "type":"structure", + "members":{ + "TextLocales":{"shape":"TextLocaleTypeList"}, + "ContentCategories":{"shape":"SearchContentCategoryTypeList"}, + "ResourceTypes":{"shape":"SearchResourceTypeList"}, + "Labels":{"shape":"SearchLabelList"}, + "Principals":{"shape":"SearchPrincipalTypeList"}, + "AncestorIds":{"shape":"SearchAncestorIdList"}, + "SearchCollectionTypes":{"shape":"SearchCollectionTypeList"}, + "SizeRange":{"shape":"LongRangeType"}, + "CreatedRange":{"shape":"DateRangeType"}, + "ModifiedRange":{"shape":"DateRangeType"} + } + }, "FolderContentType":{ "type":"string", "enum":[ @@ -2336,6 +2398,42 @@ "error":{"httpStatusCode":401}, "exception":true }, + "LanguageCodeType":{ + "type":"string", + "enum":[ + "AR", + "BG", + "BN", + "DA", + "DE", + "CS", + "EL", + "EN", + "ES", + "FA", + "FI", + "FR", + "HI", + "HU", + "ID", + "IT", + "JA", + "KO", + "LT", + "LV", + "NL", + "NO", + "PT", + "RO", + "RU", + "SV", + "SW", + "TH", + "TR", + "ZH", + "DEFAULT" + ] + }, "LimitExceededException":{ "type":"structure", "members":{ @@ -2365,6 +2463,14 @@ "default" ] }, + "LongRangeType":{ + "type":"structure", + "members":{ + "StartValue":{"shape":"LongType"}, + "EndValue":{"shape":"LongType"} + } + }, + "LongType":{"type":"long"}, "MarkerType":{ "type":"string", "max":2048, @@ -2377,6 +2483,12 @@ "min":0, "sensitive":true }, + "NextMarkerType":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"[\\d]+" + }, "NotificationOptions":{ "type":"structure", "members":{ @@ -2384,6 +2496,16 @@ "EmailMessage":{"shape":"MessageType"} } }, + "OrderByFieldType":{ + "type":"string", + "enum":[ + "RELEVANCE", + "NAME", + "SIZE", + "CREATED_TIMESTAMP", + "MODIFIED_TIMESTAMP" + ] + }, "OrderType":{ "type":"string", "enum":[ @@ -2445,6 +2567,15 @@ "type":"list", "member":{"shape":"Principal"} }, + "PrincipalRoleType":{ + "type":"string", + "enum":[ + "VIEWER", + "CONTRIBUTOR", + "OWNER", + "COOWNER" + ] + }, "PrincipalType":{ "type":"string", "enum":[ @@ -2550,7 +2681,8 @@ "type":"string", "max":255, "min":1, - "pattern":"[\\u0020-\\u202D\\u202F-\\uFFFF]+" + "pattern":"[\\u0020-\\u202D\\u202F-\\uFFFF]+", + "sensitive":true }, "ResourcePath":{ "type":"structure", @@ -2592,6 +2724,38 @@ "DOCUMENT" ] }, + "ResponseItem":{ + "type":"structure", + "members":{ + "ResourceType":{"shape":"ResponseItemType"}, + "WebUrl":{"shape":"ResponseItemWebUrl"}, + "DocumentMetadata":{"shape":"DocumentMetadata"}, + "FolderMetadata":{"shape":"FolderMetadata"}, + "CommentMetadata":{"shape":"CommentMetadata"}, + "DocumentVersionMetadata":{"shape":"DocumentVersionMetadata"} + } + }, + "ResponseItemType":{ + "type":"string", + "enum":[ + "DOCUMENT", + "FOLDER", + "COMMENT", + "DOCUMENT_VERSION" + ] + }, + "ResponseItemWebUrl":{ + "type":"string", + "max":512, + "min":1, + "pattern":"[\\u0020-\\uFFFF]+", + "sensitive":true + }, + "ResponseItemsList":{ + "type":"list", + "member":{"shape":"ResponseItem"}, + "max":100 + }, "RestoreDocumentVersionsRequest":{ "type":"structure", "required":["DocumentId"], @@ -2624,12 +2788,79 @@ "COOWNER" ] }, + "SearchAncestorId":{ + "type":"string", + "max":128, + "min":1 + }, + "SearchAncestorIdList":{ + "type":"list", + "member":{"shape":"SearchAncestorId"}, + "max":10 + }, + "SearchCollectionType":{ + "type":"string", + "enum":[ + "OWNED", + "SHARED_WITH_ME" + ] + }, + "SearchCollectionTypeList":{ + "type":"list", + "member":{"shape":"SearchCollectionType"}, + "max":2 + }, + "SearchContentCategoryTypeList":{ + "type":"list", + "member":{"shape":"ContentCategoryType"}, + "max":9 + }, + "SearchLabel":{ + "type":"string", + "max":128, + "min":1 + }, + "SearchLabelList":{ + "type":"list", + "member":{"shape":"SearchLabel"}, + "max":10 + }, "SearchMarkerType":{ "type":"string", "max":12288, "min":1, "pattern":"[\\u0000-\\u00FF]+" }, + "SearchPrincipalRoleList":{ + "type":"list", + "member":{"shape":"PrincipalRoleType"}, + "max":4 + }, + "SearchPrincipalType":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"IdType"}, + "Roles":{"shape":"SearchPrincipalRoleList"} + } + }, + "SearchPrincipalTypeList":{ + "type":"list", + "member":{"shape":"SearchPrincipalType"}, + "max":10 + }, + "SearchQueryScopeType":{ + "type":"string", + "enum":[ + "NAME", + "CONTENT" + ] + }, + "SearchQueryScopeTypeList":{ + "type":"list", + "member":{"shape":"SearchQueryScopeType"}, + "max":2 + }, "SearchQueryType":{ "type":"string", "max":512, @@ -2637,6 +2868,62 @@ "pattern":"[\\u0020-\\uFFFF]+", "sensitive":true }, + "SearchResourceType":{ + "type":"string", + "enum":[ + "FOLDER", + "DOCUMENT", + "COMMENT", + "DOCUMENT_VERSION" + ] + }, + "SearchResourceTypeList":{ + "type":"list", + "member":{"shape":"SearchResourceType"}, + "max":4 + }, + "SearchResourcesRequest":{ + "type":"structure", + "members":{ + "AuthenticationToken":{ + "shape":"AuthenticationHeaderType", + "location":"header", + "locationName":"Authentication" + }, + "QueryText":{"shape":"SearchQueryType"}, + "QueryScopes":{"shape":"SearchQueryScopeTypeList"}, + "OrganizationId":{"shape":"IdType"}, + "AdditionalResponseFields":{"shape":"AdditionalResponseFieldsList"}, + "Filters":{"shape":"Filters"}, + "OrderBy":{"shape":"SearchResultSortList"}, + "Limit":{"shape":"SearchResultsLimitType"}, + "Marker":{"shape":"NextMarkerType"} + } + }, + "SearchResourcesResponse":{ + "type":"structure", + "members":{ + "Items":{"shape":"ResponseItemsList"}, + "Marker":{"shape":"NextMarkerType"} + } + }, + "SearchResultSortList":{ + "type":"list", + "member":{"shape":"SearchSortResult"}, + "max":1 + }, + "SearchResultsLimitType":{ + "type":"integer", + "max":100, + "min":1 + }, + "SearchSortResult":{ + "type":"structure", + "members":{ + "Field":{"shape":"OrderByFieldType"}, + "Order":{"shape":"SortOrder"} + } + }, "ServiceUnavailableException":{ "type":"structure", "members":{ @@ -2702,6 +2989,13 @@ "value":{"shape":"HeaderValueType"} }, "SizeType":{"type":"long"}, + "SortOrder":{ + "type":"string", + "enum":[ + "ASC", + "DESC" + ] + }, "StorageLimitExceededException":{ "type":"structure", "members":{ @@ -2761,6 +3055,11 @@ "type":"string", "enum":["ALL"] }, + "TextLocaleTypeList":{ + "type":"list", + "member":{"shape":"LanguageCodeType"}, + "max":1 + }, "TimeZoneIdType":{ "type":"string", "max":256, @@ -2930,7 +3229,8 @@ "UserAttributeValueType":{ "type":"string", "max":64, - "min":1 + "min":1, + "sensitive":true }, "UserFilterType":{ "type":"string", @@ -2998,7 +3298,8 @@ "type":"string", "max":256, "min":1, - "pattern":"[\\w\\-+.]+(@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]+)?" + "pattern":"[\\w\\-+.]+(@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]+)?", + "sensitive":true } } } diff --git a/models/apis/workdocs/2016-05-01/docs-2.json b/models/apis/workdocs/2016-05-01/docs-2.json index 5a7d4112440..83eb969de96 100644 --- a/models/apis/workdocs/2016-05-01/docs-2.json +++ b/models/apis/workdocs/2016-05-01/docs-2.json @@ -41,6 +41,7 @@ "RemoveAllResourcePermissions": "

Removes all the permissions from the specified resource.

", "RemoveResourcePermission": "

Removes the permission for the specified principal from the specified resource.

", "RestoreDocumentVersions": "

Recovers a deleted version of an Amazon WorkDocs document.

", + "SearchResources": "

Searches metadata and the content of folders, documents, document versions, and comments.

", "UpdateDocument": "

Updates the specified attributes of a document. The user must have access to both the document and its parent folder, if applicable.

", "UpdateDocumentVersion": "

Changes the status of the document version to ACTIVE.

Amazon WorkDocs also sets its document container to ACTIVE. This is the last step in a document upload, after the client uploads the document to an S3-presigned URL returned by InitiateDocumentVersionUpload.

", "UpdateFolder": "

Updates the specified attributes of the specified folder. The user must have access to both the folder and its parent folder, if applicable.

", @@ -90,6 +91,18 @@ "refs": { } }, + "AdditionalResponseFieldType": { + "base": null, + "refs": { + "AdditionalResponseFieldsList$member": null + } + }, + "AdditionalResponseFieldsList": { + "base": null, + "refs": { + "SearchResourcesRequest$AdditionalResponseFields": "

A list of attributes to include in the response. Used to request fields that are not normally returned in a standard response.

" + } + }, "AuthenticationHeaderType": { "base": null, "refs": { @@ -129,6 +142,7 @@ "RemoveAllResourcePermissionsRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", "RemoveResourcePermissionRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", "RestoreDocumentVersionsRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", + "SearchResourcesRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", "UpdateDocumentRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", "UpdateDocumentVersionRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", "UpdateFolderRequest$AuthenticationToken": "

Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.

", @@ -184,7 +198,8 @@ "CommentMetadata": { "base": "

Describes the metadata of a comment.

", "refs": { - "Activity$CommentMetadata": "

Metadata of the commenting activity. This is an optional field and is filled for commenting activities.

" + "Activity$CommentMetadata": "

Metadata of the commenting activity. This is an optional field and is filled for commenting activities.

", + "ResponseItem$CommentMetadata": "

The comment that matches the query.

" } }, "CommentStatusType": { @@ -218,6 +233,12 @@ "refs": { } }, + "ContentCategoryType": { + "base": null, + "refs": { + "SearchContentCategoryTypeList$member": null + } + }, "CreateCommentRequest": { "base": null, "refs": { @@ -311,6 +332,13 @@ "CustomMetadataMap$value": null } }, + "DateRangeType": { + "base": "

Filters results based on timestamp range (in epochs).

", + "refs": { + "Filters$CreatedRange": "

Filter based on resource’s creation timestamp.

", + "Filters$ModifiedRange": "

Filter based on resource’s modified timestamp.

" + } + }, "DeactivateUserRequest": { "base": null, "refs": { @@ -483,7 +511,8 @@ "refs": { "DocumentMetadataList$member": null, "GetDocumentResponse$Metadata": "

The metadata details of the document.

", - "InitiateDocumentVersionUploadResponse$Metadata": "

The document metadata.

" + "InitiateDocumentVersionUploadResponse$Metadata": "

The document metadata.

", + "ResponseItem$DocumentMetadata": "

The document that matches the query.

" } }, "DocumentMetadataList": { @@ -544,7 +573,8 @@ "refs": { "DocumentMetadata$LatestVersionMetadata": "

The latest version of the document.

", "DocumentVersionMetadataList$member": null, - "GetDocumentVersionResponse$Metadata": "

The version metadata.

" + "GetDocumentVersionResponse$Metadata": "

The version metadata.

", + "ResponseItem$DocumentVersionMetadata": "

The document version that matches the metadata.

" } }, "DocumentVersionMetadataList": { @@ -633,6 +663,12 @@ "GetFolderPathRequest$Fields": "

A comma-separated list of values. Specify \"NAME\" to include the names of the parent folders.

" } }, + "Filters": { + "base": "

Filters results based on entity metadata.

", + "refs": { + "SearchResourcesRequest$Filters": "

Filters results based on entity metadata.

" + } + }, "FolderContentType": { "base": null, "refs": { @@ -644,7 +680,8 @@ "refs": { "CreateFolderResponse$Metadata": "

The metadata of the folder.

", "FolderMetadataList$member": null, - "GetFolderResponse$Metadata": "

The metadata of the folder.

" + "GetFolderResponse$Metadata": "

The metadata of the folder.

", + "ResponseItem$FolderMetadata": "

The folder that matches the query.

" } }, "FolderMetadataList": { @@ -770,6 +807,7 @@ "Activity$OrganizationId": "

The ID of the organization.

", "Comment$RecipientId": "

If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.

", "CommentMetadata$RecipientId": "

The ID of the user being replied to.

", + "CommentMetadata$ContributorId": "

The ID of the user who made the comment.

", "CreateNotificationSubscriptionRequest$OrganizationId": "

The ID of the organization.

", "CreateUserRequest$OrganizationId": "

The ID of the organization.

", "DeactivateUserRequest$UserId": "

The ID of the user.

", @@ -794,6 +832,8 @@ "Principal$Id": "

The ID of the resource.

", "RemoveResourcePermissionRequest$PrincipalId": "

The principal ID of the resource.

", "ResourcePathComponent$Id": "

The ID of the resource path.

", + "SearchPrincipalType$Id": "

UserIds or GroupIds.

", + "SearchResourcesRequest$OrganizationId": "

Filters based on the resource owner OrgId. This is a mandatory parameter when using Admin SigV4 credentials.

", "SharePrincipal$Id": "

The ID of the recipient.

", "ShareResult$PrincipalId": "

The ID of the principal.

", "ShareResult$InviteePrincipalId": "

The ID of the invited user.

", @@ -839,6 +879,12 @@ "refs": { } }, + "LanguageCodeType": { + "base": null, + "refs": { + "TextLocaleTypeList$member": null + } + }, "LimitExceededException": { "base": "

The maximum of 100,000 files and folders under the parent folder has been exceeded.

", "refs": { @@ -867,6 +913,19 @@ "User$Locale": "

The locale of the user.

" } }, + "LongRangeType": { + "base": "

Filter based on size (in bytes).

", + "refs": { + "Filters$SizeRange": "

Filter based on size (in bytes).

" + } + }, + "LongType": { + "base": null, + "refs": { + "LongRangeType$StartValue": "

The size start range (in bytes).

", + "LongRangeType$EndValue": "

The size end range (in bytes).

" + } + }, "MarkerType": { "base": null, "refs": { @@ -883,12 +942,25 @@ "ShareResult$StatusMessage": "

The status message.

" } }, + "NextMarkerType": { + "base": null, + "refs": { + "SearchResourcesRequest$Marker": "

The marker for the next set of results.

", + "SearchResourcesResponse$Marker": "

The marker to use when requesting the next set of results. If there are no additional results, the string is empty.

" + } + }, "NotificationOptions": { "base": "

Set of options which defines notification preferences of given action.

", "refs": { "AddResourcePermissionsRequest$NotificationOptions": "

The notification options.

" } }, + "OrderByFieldType": { + "base": null, + "refs": { + "SearchSortResult$Field": "

Sort search results based on this field name.

" + } + }, "OrderType": { "base": null, "refs": { @@ -971,6 +1043,12 @@ "DescribeResourcePermissionsResponse$Principals": "

The principals.

" } }, + "PrincipalRoleType": { + "base": null, + "refs": { + "SearchPrincipalRoleList$member": null + } + }, "PrincipalType": { "base": null, "refs": { @@ -1115,6 +1193,30 @@ "ResourceMetadata$Type": "

The type of resource.

" } }, + "ResponseItem": { + "base": "

List of Documents, Folders, Comments, and Document Versions matching the query.

", + "refs": { + "ResponseItemsList$member": null + } + }, + "ResponseItemType": { + "base": null, + "refs": { + "ResponseItem$ResourceType": "

The type of item being returned.

" + } + }, + "ResponseItemWebUrl": { + "base": null, + "refs": { + "ResponseItem$WebUrl": "

The webUrl of the item being returned.

" + } + }, + "ResponseItemsList": { + "base": null, + "refs": { + "SearchResourcesResponse$Items": "

List of Documents, Folders, Comments, and Document Versions matching the query.

" + } + }, "RestoreDocumentVersionsRequest": { "base": null, "refs": { @@ -1134,6 +1236,48 @@ "ShareResult$Role": "

The role.

" } }, + "SearchAncestorId": { + "base": null, + "refs": { + "SearchAncestorIdList$member": null + } + }, + "SearchAncestorIdList": { + "base": null, + "refs": { + "Filters$AncestorIds": "

Filter based on resource’s path.

" + } + }, + "SearchCollectionType": { + "base": null, + "refs": { + "SearchCollectionTypeList$member": null + } + }, + "SearchCollectionTypeList": { + "base": null, + "refs": { + "Filters$SearchCollectionTypes": "

Filter based on file groupings.

" + } + }, + "SearchContentCategoryTypeList": { + "base": null, + "refs": { + "Filters$ContentCategories": "

Filters by content category.

" + } + }, + "SearchLabel": { + "base": null, + "refs": { + "SearchLabelList$member": null + } + }, + "SearchLabelList": { + "base": null, + "refs": { + "Filters$Labels": "

Filter by labels using exact match.

" + } + }, "SearchMarkerType": { "base": null, "refs": { @@ -1141,11 +1285,82 @@ "DescribeActivitiesResponse$Marker": "

The marker for the next set of results.

" } }, + "SearchPrincipalRoleList": { + "base": null, + "refs": { + "SearchPrincipalType$Roles": "

The Role of a User or Group.

" + } + }, + "SearchPrincipalType": { + "base": "

Filter based on UserIds or GroupIds.

", + "refs": { + "SearchPrincipalTypeList$member": null + } + }, + "SearchPrincipalTypeList": { + "base": null, + "refs": { + "Filters$Principals": "

Filter based on UserIds or GroupIds.

" + } + }, + "SearchQueryScopeType": { + "base": null, + "refs": { + "SearchQueryScopeTypeList$member": null + } + }, + "SearchQueryScopeTypeList": { + "base": null, + "refs": { + "SearchResourcesRequest$QueryScopes": "

Filter based on the text field type. A Folder has only a name and no content. A Comment has only content and no name. A Document or Document Version has a name and content

" + } + }, "SearchQueryType": { "base": null, "refs": { "DescribeGroupsRequest$SearchQuery": "

A query to describe groups by group name.

", - "DescribeUsersRequest$Query": "

A query to filter users by user name. Remember the following about the Userids and Query parameters:

" + "DescribeUsersRequest$Query": "

A query to filter users by user name. Remember the following about the Userids and Query parameters:

", + "SearchResourcesRequest$QueryText": "

The String to search for. Searches across different text fields based on request parameters. Use double quotes around the query string for exact phrase matches.

" + } + }, + "SearchResourceType": { + "base": null, + "refs": { + "SearchResourceTypeList$member": null + } + }, + "SearchResourceTypeList": { + "base": null, + "refs": { + "Filters$ResourceTypes": "

Filters based on entity type.

" + } + }, + "SearchResourcesRequest": { + "base": null, + "refs": { + } + }, + "SearchResourcesResponse": { + "base": null, + "refs": { + } + }, + "SearchResultSortList": { + "base": null, + "refs": { + "SearchResourcesRequest$OrderBy": "

Order by results in one or more categories.

" + } + }, + "SearchResultsLimitType": { + "base": null, + "refs": { + "SearchResourcesRequest$Limit": "

Max results count per page.

" + } + }, + "SearchSortResult": { + "base": "

The result of the sort operation.

", + "refs": { + "SearchResultSortList$member": null } }, "ServiceUnavailableException": { @@ -1215,6 +1430,12 @@ "UserStorageMetadata$StorageUtilizedInBytes": "

The amount of storage used, in bytes.

" } }, + "SortOrder": { + "base": null, + "refs": { + "SearchSortResult$Order": "

Sort direction.

" + } + }, "StorageLimitExceededException": { "base": "

The storage limit has been exceeded.

", "refs": { @@ -1272,6 +1493,12 @@ "CreateNotificationSubscriptionRequest$SubscriptionType": "

The notification type.

" } }, + "TextLocaleTypeList": { + "base": null, + "refs": { + "Filters$TextLocales": "

Filters by the locale of the content or comment.

" + } + }, "TimeZoneIdType": { "base": null, "refs": { @@ -1286,6 +1513,8 @@ "Activity$TimeStamp": "

The timestamp when the action was performed.

", "Comment$CreatedTimestamp": "

The time that the comment was created.

", "CommentMetadata$CreatedTimestamp": "

The timestamp that the comment was created.

", + "DateRangeType$StartValue": "

Timestamp range start value (in epochs)

", + "DateRangeType$EndValue": "

Timestamp range end value (in epochs).

", "DescribeActivitiesRequest$StartTime": "

The timestamp that determines the starting time of the activities. The response includes the activities performed after the specified timestamp.

", "DescribeActivitiesRequest$EndTime": "

The timestamp that determines the end time of the activities. The response includes the activities performed before the specified timestamp.

", "DocumentMetadata$CreatedTimestamp": "

The time when the document was created.

", diff --git a/models/apis/workdocs/2016-05-01/endpoint-rule-set-1.json b/models/apis/workdocs/2016-05-01/endpoint-rule-set-1.json index 263bf0d6bea..781aaf4e4d9 100644 --- a/models/apis/workdocs/2016-05-01/endpoint-rule-set-1.json +++ b/models/apis/workdocs/2016-05-01/endpoint-rule-set-1.json @@ -3,7 +3,7 @@ "parameters": { "Region": { "builtIn": "AWS::Region", - "required": true, + "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "String" }, @@ -32,13 +32,12 @@ { "conditions": [ { - "fn": "aws.partition", + "fn": "isSet", "argv": [ { - "ref": "Region" + "ref": "Endpoint" } - ], - "assign": "PartitionResult" + ] } ], "type": "tree", @@ -46,14 +45,20 @@ { "conditions": [ { - "fn": "isSet", + "fn": "booleanEquals", "argv": [ { - "ref": "Endpoint" - } + "ref": "UseFIPS" + }, + true ] } ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], "type": "tree", "rules": [ { @@ -62,67 +67,42 @@ "fn": "booleanEquals", "argv": [ { - "ref": "UseFIPS" + "ref": "UseDualStack" }, true ] } ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" + "endpoint": { + "url": { + "ref": "Endpoint" }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "properties": {}, + "headers": {} + }, + "type": "endpoint" } ] - }, + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ { "conditions": [ { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", + "fn": "isSet", "argv": [ { - "ref": "UseDualStack" - }, - true + "ref": "Region" + } ] } ], @@ -131,154 +111,215 @@ { "conditions": [ { - "fn": "booleanEquals", + "fn": "aws.partition", "argv": [ - true, { - "fn": "getAttr", + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsFIPS" + true ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, + }, { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsDualStack" + true ] } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], + ], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, { "conditions": [], - "endpoint": { - "url": "https://workdocs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" } ] - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseFIPS" }, - "supportsFIPS" + true ] } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], + ], "type": "tree", "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, { "conditions": [], - "endpoint": { - "url": "https://workdocs-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" } ] - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ { - "fn": "booleanEquals", - "argv": [ - true, + "conditions": [ { - "fn": "getAttr", + "fn": "booleanEquals", "argv": [ { - "ref": "PartitionResult" + "ref": "UseDualStack" }, - "supportsDualStack" + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" } ] - } - ], - "type": "tree", - "rules": [ + }, { "conditions": [], "type": "tree", @@ -286,7 +327,7 @@ { "conditions": [], "endpoint": { - "url": "https://workdocs.{Region}.{PartitionResult#dualStackDnsSuffix}", + "url": "https://workdocs.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, @@ -295,28 +336,13 @@ ] } ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" } ] }, { "conditions": [], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://workdocs.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] + "error": "Invalid Configuration: Missing Region", + "type": "error" } ] } diff --git a/models/apis/workdocs/2016-05-01/endpoint-tests-1.json b/models/apis/workdocs/2016-05-01/endpoint-tests-1.json index a71de562366..24d3d86a5f5 100644 --- a/models/apis/workdocs/2016-05-01/endpoint-tests-1.json +++ b/models/apis/workdocs/2016-05-01/endpoint-tests-1.json @@ -287,7 +287,7 @@ } }, { - "documentation": "For custom endpoint with fips disabled and dualstack disabled", + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" @@ -300,6 +300,19 @@ "Endpoint": "https://example.com" } }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { diff --git a/models/apis/workdocs/2016-05-01/paginators-1.json b/models/apis/workdocs/2016-05-01/paginators-1.json index 42c39b2ff47..5d528c1069d 100644 --- a/models/apis/workdocs/2016-05-01/paginators-1.json +++ b/models/apis/workdocs/2016-05-01/paginators-1.json @@ -1,5 +1,17 @@ { "pagination": { + "DescribeActivities": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "UserActivities" + }, + "DescribeComments": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Comments" + }, "DescribeDocumentVersions": { "input_token": "Marker", "limit_key": "Limit", @@ -15,11 +27,41 @@ "Documents" ] }, + "DescribeGroups": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Groups" + }, + "DescribeNotificationSubscriptions": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Subscriptions" + }, + "DescribeResourcePermissions": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Principals" + }, + "DescribeRootFolders": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Folders" + }, "DescribeUsers": { "input_token": "Marker", "limit_key": "Limit", "output_token": "Marker", "result_key": "Users" + }, + "SearchResources": { + "input_token": "Marker", + "limit_key": "Limit", + "output_token": "Marker", + "result_key": "Items" } } } \ No newline at end of file diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 931f6e40b68..8f730cb2d9c 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -15598,6 +15598,7 @@ "deprecated" : true, "hostname" : "transfer-fips.us-west-2.amazonaws.com" }, + "me-central-1" : { }, "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { diff --git a/service/applicationautoscaling/api.go b/service/applicationautoscaling/api.go index b091ce2493b..4bad768eca6 100644 --- a/service/applicationautoscaling/api.go +++ b/service/applicationautoscaling/api.go @@ -935,6 +935,88 @@ func (c *ApplicationAutoScaling) DescribeScheduledActionsPagesWithContext(ctx aw return p.Err() } +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource +func (c *ApplicationAutoScaling) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Application Auto Scaling. +// +// Returns all the tags on the specified Application Auto Scaling scalable target. +// +// For general information about tags, including the format and syntax, see +// Tagging Amazon Web Services resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) +// in the Amazon Web Services General Reference. +// +// 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 Application Auto Scaling's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// - ResourceNotFoundException +// The specified resource doesn't exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ListTagsForResource +func (c *ApplicationAutoScaling) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ApplicationAutoScaling) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPutScalingPolicy = "PutScalingPolicy" // PutScalingPolicyRequest generates a "aws/request.Request" representing the @@ -1010,8 +1092,8 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // in the Application Auto Scaling User Guide. // // If a scalable target is deregistered, the scalable target is no longer available -// to execute scaling policies. Any scaling policies that were specified for -// the scalable target are deleted. +// to use scaling policies. Any scaling policies that were specified for the +// scalable target are deleted. // // 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 @@ -1126,9 +1208,9 @@ func (c *ApplicationAutoScaling) PutScheduledActionRequest(input *PutScheduledAc // by those three attributes. You cannot create a scheduled action until you // have registered the resource as a scalable target. // -// When start and end times are specified with a recurring schedule using a -// cron expression or rates, they form the boundaries for when the recurring -// action starts and stops. +// When you specify start and end times with a recurring schedule using a cron +// expression or rates, they form the boundaries for when the recurring action +// starts and stops. // // To update a scheduled action, specify the parameters that you want to change. // If you don't specify start and end times, the old values are deleted. @@ -1231,13 +1313,13 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc output = &RegisterScalableTargetOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // RegisterScalableTarget API operation for Application Auto Scaling. // -// Registers or updates a scalable target, the resource that you want to scale. +// Registers or updates a scalable target, which is the resource that you want +// to scale. // // Scalable targets are uniquely identified by the combination of resource ID, // scalable dimension, and namespace, which represents some capacity dimension @@ -1249,10 +1331,10 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc // capacity. Otherwise, it changes the resource's current capacity to a value // that is inside of this range. // -// If you choose to add a scaling policy, current capacity is adjustable within -// the specified range when scaling starts. Application Auto Scaling scaling -// policies will not scale capacity to values that are outside of the minimum -// and maximum range. +// If you add a scaling policy, current capacity is adjustable within the specified +// range when scaling starts. Application Auto Scaling scaling policies will +// not scale capacity to values that are outside of the minimum and maximum +// range. // // After you register a scalable target, you do not need to register it again // to use other Application Auto Scaling operations. To see which resources @@ -1267,12 +1349,19 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc // dimension, and namespace. Any parameters that you don't specify are not changed // by this update request. // -// If you call the RegisterScalableTarget API to update an existing scalable -// target, Application Auto Scaling retrieves the current capacity of the resource. -// If it is below the minimum capacity or above the maximum capacity, Application -// Auto Scaling adjusts the capacity of the scalable target to place it within -// these bounds, even if you don't include the MinCapacity or MaxCapacity request -// parameters. +// If you call the RegisterScalableTarget API operation to create a scalable +// target, there might be a brief delay until the operation achieves eventual +// consistency (https://en.wikipedia.org/wiki/Eventual_consistency). You might +// become aware of this brief delay if you get unexpected errors when performing +// sequential operations. The typical strategy is to retry the request, and +// some Amazon Web Services SDKs include automatic backoff and retry logic. +// +// If you call the RegisterScalableTarget API operation to update an existing +// scalable target, Application Auto Scaling retrieves the current capacity +// of the resource. If it's below the minimum capacity or above the maximum +// capacity, Application Auto Scaling adjusts the capacity of the scalable target +// to place it within these bounds, even if you don't include the MinCapacity +// or MaxCapacity request parameters. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1320,6 +1409,196 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetWithContext(ctx aws.Conte return out, req.Send() } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource +func (c *ApplicationAutoScaling) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Application Auto Scaling. +// +// Adds or edits tags on an Application Auto Scaling scalable target. +// +// Each tag consists of a tag key and a tag value, which are both case-sensitive +// strings. To add a tag, specify a new tag key and a tag value. To edit a tag, +// specify an existing tag key and a new tag value. +// +// You can use this operation to tag an Application Auto Scaling scalable target, +// but you cannot tag a scaling policy or scheduled action. +// +// You can also add tags to an Application Auto Scaling scalable target while +// creating it (RegisterScalableTarget). +// +// For general information about tags, including the format and syntax, see +// Tagging Amazon Web Services resources (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) +// in the Amazon Web Services General Reference. +// +// Use tags to control access to a scalable target. For more information, see +// Tagging support for Application Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html) +// in the Application Auto Scaling User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Application Auto Scaling's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// The specified resource doesn't exist. +// +// - TooManyTagsException +// The request contains too many tags. Try the request again with fewer tags. +// +// - ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/TagResource +func (c *ApplicationAutoScaling) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ApplicationAutoScaling) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource +func (c *ApplicationAutoScaling) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Application Auto Scaling. +// +// Deletes tags from an Application Auto Scaling scalable target. To delete +// a tag, specify the tag key and the Application Auto Scaling scalable target. +// +// 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 Application Auto Scaling's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// +// - ResourceNotFoundException +// The specified resource doesn't exist. +// +// - ValidationException +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/UntagResource +func (c *ApplicationAutoScaling) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ApplicationAutoScaling) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // Represents a CloudWatch alarm associated with a scaling policy. type Alarm struct { _ struct{} `type:"structure"` @@ -1464,7 +1743,7 @@ type CustomizedMetricSpecification struct { // The name of the metric. To get the exact metric name, namespace, and dimensions, // inspect the Metric (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html) - // object that is returned by a call to ListMetrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html). + // object that's returned by a call to ListMetrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html). MetricName *string `type:"string"` // The metrics to include in the target tracking scaling policy, as a metric @@ -3539,6 +3818,90 @@ func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // Specify the ARN of the scalable target. + // + // For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123 + // + // To get the ARN for a scalable target, use DescribeScalableTargets. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { + s.ResourceARN = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of tags. Each tag consists of a tag key and a tag value. + Tags map[string]*string `type:"map"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // Describes the dimension names and values associated with a metric. type MetricDimension struct { _ struct{} `type:"structure"` @@ -4472,7 +4835,7 @@ type RegisterScalableTargetInput struct { // when registering a new scalable target. // // Although you can specify a large maximum capacity, note that service quotas - // may impose lower limits. Each service has its own default quotas for the + // might impose lower limits. Each service has its own default quotas for the // maximum capacity of the resource. If you want to specify a higher limit, // you can request an increase. For more information, consult the documentation // for that service. For information about the default quotas for each service, @@ -4673,6 +5036,19 @@ type RegisterScalableTargetInput struct { // For more information, see Suspending and resuming scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html) // in the Application Auto Scaling User Guide. SuspendedState *SuspendedState `type:"structure"` + + // Assigns one or more tags to the scalable target. Use this parameter to tag + // the scalable target when it is created. To tag an existing scalable target, + // use the TagResource operation. + // + // Each tag consists of a tag key and a tag value. Both the tag key and the + // tag value are required. You cannot have more than one tag on a scalable target + // with the same tag key. + // + // Use tags to control access to a scalable target. For more information, see + // Tagging support for Application Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/resource-tagging-support.html) + // in the Application Auto Scaling User Guide. + Tags map[string]*string `type:"map"` } // String returns the string representation. @@ -4760,8 +5136,17 @@ func (s *RegisterScalableTargetInput) SetSuspendedState(v *SuspendedState) *Regi return s } +// SetTags sets the Tags field's value. +func (s *RegisterScalableTargetInput) SetTags(v map[string]*string) *RegisterScalableTargetInput { + s.Tags = v + return s +} + type RegisterScalableTargetOutput struct { _ struct{} `type:"structure"` + + // The ARN of the scalable target. + ScalableTargetARN *string `type:"string"` } // String returns the string representation. @@ -4782,6 +5167,80 @@ func (s RegisterScalableTargetOutput) GoString() string { return s.String() } +// SetScalableTargetARN sets the ScalableTargetARN field's value. +func (s *RegisterScalableTargetOutput) SetScalableTargetARN(v string) *RegisterScalableTargetOutput { + s.ScalableTargetARN = &v + return s +} + +// The specified resource doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the Application Auto Scaling resource. This value is an Amazon + // Resource Name (ARN). + ResourceName *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + // Represents a scalable target. type ScalableTarget struct { _ struct{} `type:"structure"` @@ -4932,6 +5391,9 @@ type ScalableTarget struct { // ScalableDimension is a required field ScalableDimension *string `type:"string" required:"true" enum:"ScalableDimension"` + // The ARN of the scalable target. + ScalableTargetARN *string `type:"string"` + // The namespace of the Amazon Web Services service that provides the resource, // or a custom-resource. // @@ -4997,6 +5459,12 @@ func (s *ScalableTarget) SetScalableDimension(v string) *ScalableTarget { return s } +// SetScalableTargetARN sets the ScalableTargetARN field's value. +func (s *ScalableTarget) SetScalableTargetARN(v string) *ScalableTarget { + s.ScalableTargetARN = &v + return s +} + // SetServiceNamespace sets the ServiceNamespace field's value. func (s *ScalableTarget) SetServiceNamespace(v string) *ScalableTarget { s.ServiceNamespace = &v @@ -5868,11 +6336,11 @@ func (s *ScheduledAction) SetTimezone(v string) *ScheduledAction { // For the following examples, suppose that you have an alarm with a breach // threshold of 50: // -// - To trigger the adjustment when the metric is greater than or equal to -// 50 and less than 60, specify a lower bound of 0 and an upper bound of -// 10. +// - To initiate the adjustment when the metric is greater than or equal +// to 50 and less than 60, specify a lower bound of 0 and an upper bound +// of 10. // -// - To trigger the adjustment when the metric is greater than 40 and less +// - To initiate the adjustment when the metric is greater than 40 and less // than or equal to 50, specify a lower bound of -10 and an upper bound of // 0. // @@ -5895,16 +6363,15 @@ type StepAdjustment struct { // The lower bound for the difference between the alarm threshold and the CloudWatch // metric. If the metric value is above the breach threshold, the lower bound // is inclusive (the metric must be greater than or equal to the threshold plus - // the lower bound). Otherwise, it is exclusive (the metric must be greater - // than the threshold plus the lower bound). A null value indicates negative - // infinity. + // the lower bound). Otherwise, it's exclusive (the metric must be greater than + // the threshold plus the lower bound). A null value indicates negative infinity. MetricIntervalLowerBound *float64 `type:"double"` // The upper bound for the difference between the alarm threshold and the CloudWatch // metric. If the metric value is above the breach threshold, the upper bound // is exclusive (the metric must be less than the threshold plus the upper bound). - // Otherwise, it is inclusive (the metric must be less than or equal to the - // threshold plus the upper bound). A null value indicates positive infinity. + // Otherwise, it's inclusive (the metric must be less than or equal to the threshold + // plus the upper bound). A null value indicates positive infinity. // // The upper bound must be greater than the lower bound. MetricIntervalUpperBound *float64 `type:"double"` @@ -6180,6 +6647,108 @@ func (s *SuspendedState) SetScheduledScalingSuspended(v bool) *SuspendedState { return s } +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // Identifies the Application Auto Scaling scalable target that you want to + // apply tags to. + // + // For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123 + // + // To get the ARN for a scalable target, use DescribeScalableTargets. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The tags assigned to the resource. A tag is a label that you assign to an + // AWS resource. + // + // Each tag consists of a tag key and a tag value. + // + // You cannot have more than one tag on an Application Auto Scaling scalable + // target with the same tag key. If you specify an existing tag key with a different + // tag value, Application Auto Scaling replaces the current tag value with the + // specified one. + // + // For information about the rules that apply to tag keys and tag values, see + // User-defined tag restrictions (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html) + // in the Amazon Web Services Billing and Cost Management User Guide. + // + // Tags is a required field + Tags map[string]*string `type:"map" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { + s.ResourceARN = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TagResourceOutput) GoString() string { + return s.String() +} + // Represents a specific metric. // // Metric is a property of the TargetTrackingMetricStat object. @@ -6478,7 +7047,7 @@ type TargetTrackingMetricStat struct { // statistic. For a list of valid values, see the table in Statistics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic) // in the Amazon CloudWatch User Guide. // - // The most commonly used metrics for scaling is Average + // The most commonly used metric for scaling is Average. // // Stat is a required field Stat *string `type:"string" required:"true"` @@ -6749,6 +7318,164 @@ func (s *TargetTrackingScalingPolicyConfiguration) SetTargetValue(v float64) *Ta return s } +// The request contains too many tags. Try the request again with fewer tags. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the Application Auto Scaling resource. This value is an Amazon + // Resource Name (ARN). + ResourceName *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s *TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *TooManyTagsException) OrigErr() error { + return nil +} + +func (s *TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *TooManyTagsException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *TooManyTagsException) RequestID() string { + return s.RespMetadata.RequestID +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // Identifies the Application Auto Scaling scalable target from which to remove + // tags. + // + // For example: arn:aws:application-autoscaling:us-east-1:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123 + // + // To get the ARN for a scalable target, use DescribeScalableTargets. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // One or more tag keys. Specify only the tag keys, not the tag values. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceARN sets the ResourceARN field's value. +func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { + s.ResourceARN = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // An exception was thrown for a validation issue. Review the available parameters // for the API request. type ValidationException struct { diff --git a/service/applicationautoscaling/applicationautoscalingiface/interface.go b/service/applicationautoscaling/applicationautoscalingiface/interface.go index bbbbb60a3d0..bf4a740c751 100644 --- a/service/applicationautoscaling/applicationautoscalingiface/interface.go +++ b/service/applicationautoscaling/applicationautoscalingiface/interface.go @@ -100,6 +100,10 @@ type ApplicationAutoScalingAPI interface { DescribeScheduledActionsPages(*applicationautoscaling.DescribeScheduledActionsInput, func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool) error DescribeScheduledActionsPagesWithContext(aws.Context, *applicationautoscaling.DescribeScheduledActionsInput, func(*applicationautoscaling.DescribeScheduledActionsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*applicationautoscaling.ListTagsForResourceInput) (*applicationautoscaling.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *applicationautoscaling.ListTagsForResourceInput, ...request.Option) (*applicationautoscaling.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*applicationautoscaling.ListTagsForResourceInput) (*request.Request, *applicationautoscaling.ListTagsForResourceOutput) + PutScalingPolicy(*applicationautoscaling.PutScalingPolicyInput) (*applicationautoscaling.PutScalingPolicyOutput, error) PutScalingPolicyWithContext(aws.Context, *applicationautoscaling.PutScalingPolicyInput, ...request.Option) (*applicationautoscaling.PutScalingPolicyOutput, error) PutScalingPolicyRequest(*applicationautoscaling.PutScalingPolicyInput) (*request.Request, *applicationautoscaling.PutScalingPolicyOutput) @@ -111,6 +115,14 @@ type ApplicationAutoScalingAPI interface { RegisterScalableTarget(*applicationautoscaling.RegisterScalableTargetInput) (*applicationautoscaling.RegisterScalableTargetOutput, error) RegisterScalableTargetWithContext(aws.Context, *applicationautoscaling.RegisterScalableTargetInput, ...request.Option) (*applicationautoscaling.RegisterScalableTargetOutput, error) RegisterScalableTargetRequest(*applicationautoscaling.RegisterScalableTargetInput) (*request.Request, *applicationautoscaling.RegisterScalableTargetOutput) + + TagResource(*applicationautoscaling.TagResourceInput) (*applicationautoscaling.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *applicationautoscaling.TagResourceInput, ...request.Option) (*applicationautoscaling.TagResourceOutput, error) + TagResourceRequest(*applicationautoscaling.TagResourceInput) (*request.Request, *applicationautoscaling.TagResourceOutput) + + UntagResource(*applicationautoscaling.UntagResourceInput) (*applicationautoscaling.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *applicationautoscaling.UntagResourceInput, ...request.Option) (*applicationautoscaling.UntagResourceOutput, error) + UntagResourceRequest(*applicationautoscaling.UntagResourceInput) (*request.Request, *applicationautoscaling.UntagResourceOutput) } var _ ApplicationAutoScalingAPI = (*applicationautoscaling.ApplicationAutoScaling)(nil) diff --git a/service/applicationautoscaling/errors.go b/service/applicationautoscaling/errors.go index fd709160648..dcd15c2f380 100644 --- a/service/applicationautoscaling/errors.go +++ b/service/applicationautoscaling/errors.go @@ -55,6 +55,18 @@ const ( // this exception is thrown if the resource cannot be found. ErrCodeObjectNotFoundException = "ObjectNotFoundException" + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The specified resource doesn't exist. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeTooManyTagsException for service response error code + // "TooManyTagsException". + // + // The request contains too many tags. Try the request again with fewer tags. + ErrCodeTooManyTagsException = "TooManyTagsException" + // ErrCodeValidationException for service response error code // "ValidationException". // @@ -70,5 +82,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InvalidNextTokenException": newErrorInvalidNextTokenException, "LimitExceededException": newErrorLimitExceededException, "ObjectNotFoundException": newErrorObjectNotFoundException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyTagsException": newErrorTooManyTagsException, "ValidationException": newErrorValidationException, } diff --git a/service/applicationautoscaling/examples_test.go b/service/applicationautoscaling/examples_test.go index 4cec2777735..a98ce2a03b4 100644 --- a/service/applicationautoscaling/examples_test.go +++ b/service/applicationautoscaling/examples_test.go @@ -63,6 +63,43 @@ func ExampleApplicationAutoScaling_DeleteScalingPolicy_shared00() { fmt.Println(result) } +// To delete a scheduled action +// This example deletes a scheduled action for the AppStream 2.0 fleet called sample-fleet. +func ExampleApplicationAutoScaling_DeleteScheduledAction_shared00() { + svc := applicationautoscaling.New(session.New()) + input := &applicationautoscaling.DeleteScheduledActionInput{ + ResourceId: aws.String("fleet/sample-fleet"), + ScalableDimension: aws.String("appstream:fleet:DesiredCapacity"), + ScheduledActionName: aws.String("my-recurring-action"), + ServiceNamespace: aws.String("appstream"), + } + + result, err := svc.DeleteScheduledAction(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case applicationautoscaling.ErrCodeValidationException: + fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) + case applicationautoscaling.ErrCodeObjectNotFoundException: + fmt.Println(applicationautoscaling.ErrCodeObjectNotFoundException, aerr.Error()) + case applicationautoscaling.ErrCodeConcurrentUpdateException: + fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) + case applicationautoscaling.ErrCodeInternalServiceException: + fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To deregister a scalable target // This example deregisters a scalable target for an Amazon ECS service called web-app // that is running in the default cluster. @@ -207,6 +244,69 @@ func ExampleApplicationAutoScaling_DescribeScalingPolicies_shared00() { fmt.Println(result) } +// To describe scheduled actions +// This example describes the scheduled actions for the dynamodb service namespace. +func ExampleApplicationAutoScaling_DescribeScheduledActions_shared00() { + svc := applicationautoscaling.New(session.New()) + input := &applicationautoscaling.DescribeScheduledActionsInput{ + ServiceNamespace: aws.String("dynamodb"), + } + + result, err := svc.DescribeScheduledActions(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case applicationautoscaling.ErrCodeValidationException: + fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) + case applicationautoscaling.ErrCodeInvalidNextTokenException: + fmt.Println(applicationautoscaling.ErrCodeInvalidNextTokenException, aerr.Error()) + case applicationautoscaling.ErrCodeConcurrentUpdateException: + fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) + case applicationautoscaling.ErrCodeInternalServiceException: + fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To list tags for a scalable target +// This example lists the tag key names and values that are attached to the scalable +// target specified by its ARN. +func ExampleApplicationAutoScaling_ListTagsForResource_shared00() { + svc := applicationautoscaling.New(session.New()) + input := &applicationautoscaling.ListTagsForResourceInput{ + ResourceARN: aws.String("arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123"), + } + + result, err := svc.ListTagsForResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case applicationautoscaling.ErrCodeResourceNotFoundException: + fmt.Println(applicationautoscaling.ErrCodeResourceNotFoundException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To apply a target tracking scaling policy with a predefined metric specification // The following example applies a target tracking scaling policy with a predefined // metric specification to an Amazon ECS service called web-app in the default cluster. @@ -260,6 +360,52 @@ func ExampleApplicationAutoScaling_PutScalingPolicy_shared00() { fmt.Println(result) } +// To create a recurring scheduled action +// This example adds a scheduled action to a DynamoDB table called TestTable to scale +// out on a recurring schedule. On the specified schedule (every day at 12:15pm UTC), +// if the current capacity is below the value specified for MinCapacity, Application +// Auto Scaling scales out to the value specified by MinCapacity. +func ExampleApplicationAutoScaling_PutScheduledAction_shared00() { + svc := applicationautoscaling.New(session.New()) + input := &applicationautoscaling.PutScheduledActionInput{ + ResourceId: aws.String("table/TestTable"), + ScalableDimension: aws.String("dynamodb:table:WriteCapacityUnits"), + ScalableTargetAction: &applicationautoscaling.ScalableTargetAction{ + MinCapacity: aws.Int64(6), + }, + Schedule: aws.String("cron(15 12 * * ? *)"), + ScheduledActionName: aws.String("my-recurring-action"), + ServiceNamespace: aws.String("dynamodb"), + } + + result, err := svc.PutScheduledAction(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case applicationautoscaling.ErrCodeValidationException: + fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) + case applicationautoscaling.ErrCodeLimitExceededException: + fmt.Println(applicationautoscaling.ErrCodeLimitExceededException, aerr.Error()) + case applicationautoscaling.ErrCodeObjectNotFoundException: + fmt.Println(applicationautoscaling.ErrCodeObjectNotFoundException, aerr.Error()) + case applicationautoscaling.ErrCodeConcurrentUpdateException: + fmt.Println(applicationautoscaling.ErrCodeConcurrentUpdateException, aerr.Error()) + case applicationautoscaling.ErrCodeInternalServiceException: + fmt.Println(applicationautoscaling.ErrCodeInternalServiceException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + // To register an ECS service as a scalable target // This example registers a scalable target from an Amazon ECS service called web-app // that is running on the default cluster, with a minimum desired count of 1 task and @@ -299,3 +445,73 @@ func ExampleApplicationAutoScaling_RegisterScalableTarget_shared00() { fmt.Println(result) } + +// To add a tag to a scalable target +// This example adds a tag with the key name "environment" and the value "production" +// to the scalable target specified by its ARN. +func ExampleApplicationAutoScaling_TagResource_shared00() { + svc := applicationautoscaling.New(session.New()) + input := &applicationautoscaling.TagResourceInput{ + ResourceARN: aws.String("arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123"), + Tags: map[string]*string{ + "environment": aws.String("production"), + }, + } + + result, err := svc.TagResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case applicationautoscaling.ErrCodeResourceNotFoundException: + fmt.Println(applicationautoscaling.ErrCodeResourceNotFoundException, aerr.Error()) + case applicationautoscaling.ErrCodeTooManyTagsException: + fmt.Println(applicationautoscaling.ErrCodeTooManyTagsException, aerr.Error()) + case applicationautoscaling.ErrCodeValidationException: + fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} + +// To remove a tag from a scalable target +// This example removes the tag pair with the key name "environment" from the scalable +// target specified by its ARN. +func ExampleApplicationAutoScaling_UntagResource_shared00() { + svc := applicationautoscaling.New(session.New()) + input := &applicationautoscaling.UntagResourceInput{ + ResourceARN: aws.String("arn:aws:application-autoscaling:us-west-2:123456789012:scalable-target/1234abcd56ab78cd901ef1234567890ab123"), + TagKeys: []*string{ + aws.String("environment"), + }, + } + + result, err := svc.UntagResource(input) + if err != nil { + if aerr, ok := err.(awserr.Error); ok { + switch aerr.Code() { + case applicationautoscaling.ErrCodeResourceNotFoundException: + fmt.Println(applicationautoscaling.ErrCodeResourceNotFoundException, aerr.Error()) + case applicationautoscaling.ErrCodeValidationException: + fmt.Println(applicationautoscaling.ErrCodeValidationException, aerr.Error()) + default: + fmt.Println(aerr.Error()) + } + } else { + // Print the error, cast err to awserr.Error to get the Code and + // Message from an error. + fmt.Println(err.Error()) + } + return + } + + fmt.Println(result) +} diff --git a/service/neptune/api.go b/service/neptune/api.go index 8679c8af228..ae689b3cb35 100644 --- a/service/neptune/api.go +++ b/service/neptune/api.go @@ -7799,6 +7799,98 @@ func (s *CloudwatchLogsExportConfiguration) SetEnableLogTypes(v []*string) *Clou return s } +// This data type is used as a response element in the ModifyDBCluster operation +// and contains changes that will be applied during the next maintenance window. +type ClusterPendingModifiedValues struct { + _ struct{} `type:"structure"` + + // The allocated storage size in gibibytes (GiB) for database engines. For Neptune, + // AllocatedStorage always returns 1, because Neptune DB cluster storage size + // isn't fixed, but instead automatically adjusts as needed. + AllocatedStorage *int64 `type:"integer"` + + // The number of days for which automatic DB snapshots are retained. + BackupRetentionPeriod *int64 `type:"integer"` + + // The DBClusterIdentifier value for the DB cluster. + DBClusterIdentifier *string `type:"string"` + + // The database engine version. + EngineVersion *string `type:"string"` + + // A value that indicates whether mapping of Amazon Web Services Identity and + // Access Management (IAM) accounts to database accounts is enabled. + IAMDatabaseAuthenticationEnabled *bool `type:"boolean"` + + // The Provisioned IOPS (I/O operations per second) value. This setting is only + // for non-Aurora Multi-AZ DB clusters. + Iops *int64 `type:"integer"` + + // This PendingCloudwatchLogsExports structure specifies pending changes to + // which CloudWatch logs are enabled and which are disabled. + PendingCloudwatchLogsExports *PendingCloudwatchLogsExports `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 ClusterPendingModifiedValues) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ClusterPendingModifiedValues) GoString() string { + return s.String() +} + +// SetAllocatedStorage sets the AllocatedStorage field's value. +func (s *ClusterPendingModifiedValues) SetAllocatedStorage(v int64) *ClusterPendingModifiedValues { + s.AllocatedStorage = &v + return s +} + +// SetBackupRetentionPeriod sets the BackupRetentionPeriod field's value. +func (s *ClusterPendingModifiedValues) SetBackupRetentionPeriod(v int64) *ClusterPendingModifiedValues { + s.BackupRetentionPeriod = &v + return s +} + +// SetDBClusterIdentifier sets the DBClusterIdentifier field's value. +func (s *ClusterPendingModifiedValues) SetDBClusterIdentifier(v string) *ClusterPendingModifiedValues { + s.DBClusterIdentifier = &v + return s +} + +// SetEngineVersion sets the EngineVersion field's value. +func (s *ClusterPendingModifiedValues) SetEngineVersion(v string) *ClusterPendingModifiedValues { + s.EngineVersion = &v + return s +} + +// SetIAMDatabaseAuthenticationEnabled sets the IAMDatabaseAuthenticationEnabled field's value. +func (s *ClusterPendingModifiedValues) SetIAMDatabaseAuthenticationEnabled(v bool) *ClusterPendingModifiedValues { + s.IAMDatabaseAuthenticationEnabled = &v + return s +} + +// SetIops sets the Iops field's value. +func (s *ClusterPendingModifiedValues) SetIops(v int64) *ClusterPendingModifiedValues { + s.Iops = &v + return s +} + +// SetPendingCloudwatchLogsExports sets the PendingCloudwatchLogsExports field's value. +func (s *ClusterPendingModifiedValues) SetPendingCloudwatchLogsExports(v *PendingCloudwatchLogsExports) *ClusterPendingModifiedValues { + s.PendingCloudwatchLogsExports = v + return s +} + type CopyDBClusterParameterGroupInput struct { _ struct{} `type:"structure"` @@ -9245,7 +9337,9 @@ type CreateDBInstanceInput struct { // For information on creating a DB cluster, see CreateDBCluster. // // Type: String - DBClusterIdentifier *string `type:"string"` + // + // DBClusterIdentifier is a required field + DBClusterIdentifier *string `type:"string" required:"true"` // The compute and memory capacity of the DB instance, for example, db.m4.large. // Not all DB instance classes are available in all Amazon Regions. @@ -9487,6 +9581,9 @@ func (s CreateDBInstanceInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *CreateDBInstanceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateDBInstanceInput"} + if s.DBClusterIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("DBClusterIdentifier")) + } if s.DBInstanceClass == nil { invalidParams.Add(request.NewErrParamRequired("DBInstanceClass")) } @@ -10443,6 +10540,10 @@ type DBCluster struct { // Indicates the database engine version. EngineVersion *string `type:"string"` + // Contains a user-supplied global database cluster identifier. This identifier + // is the unique key that identifies a global database. + GlobalClusterIdentifier *string `min:"1" type:"string"` + // Specifies the ID that Amazon Route 53 assigns when you create a hosted zone. HostedZoneId *string `type:"string"` @@ -10464,6 +10565,10 @@ type DBCluster struct { // Specifies whether the DB cluster has instances in multiple Availability Zones. MultiAZ *bool `type:"boolean"` + // This data type is used as a response element in the ModifyDBCluster operation + // and contains changes that will be applied during the next maintenance window. + PendingModifiedValues *ClusterPendingModifiedValues `type:"structure"` + // Specifies the progress of the operation as a percentage. PercentProgress *string `type:"string"` @@ -10676,6 +10781,12 @@ func (s *DBCluster) SetEngineVersion(v string) *DBCluster { return s } +// SetGlobalClusterIdentifier sets the GlobalClusterIdentifier field's value. +func (s *DBCluster) SetGlobalClusterIdentifier(v string) *DBCluster { + s.GlobalClusterIdentifier = &v + return s +} + // SetHostedZoneId sets the HostedZoneId field's value. func (s *DBCluster) SetHostedZoneId(v string) *DBCluster { s.HostedZoneId = &v @@ -10712,6 +10823,12 @@ func (s *DBCluster) SetMultiAZ(v bool) *DBCluster { return s } +// SetPendingModifiedValues sets the PendingModifiedValues field's value. +func (s *DBCluster) SetPendingModifiedValues(v *ClusterPendingModifiedValues) *DBCluster { + s.PendingModifiedValues = v + return s +} + // SetPercentProgress sets the PercentProgress field's value. func (s *DBCluster) SetPercentProgress(v string) *DBCluster { s.PercentProgress = &v diff --git a/service/s3outposts/api.go b/service/s3outposts/api.go index 5d1c361213b..d14ef7effa2 100644 --- a/service/s3outposts/api.go +++ b/service/s3outposts/api.go @@ -93,6 +93,10 @@ func (c *S3Outposts) CreateEndpointRequest(input *CreateEndpointInput) (req *req // - ThrottlingException // The request was denied due to request throttling. // +// - OutpostOfflineException +// The service link connection to your Outposts home Region is down. Check your +// connection and try again. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/s3outposts-2017-07-25/CreateEndpoint func (c *S3Outposts) CreateEndpoint(input *CreateEndpointInput) (*CreateEndpointOutput, error) { req, out := c.CreateEndpointRequest(input) @@ -193,6 +197,10 @@ func (c *S3Outposts) DeleteEndpointRequest(input *DeleteEndpointInput) (req *req // - ThrottlingException // The request was denied due to request throttling. // +// - OutpostOfflineException +// The service link connection to your Outposts home Region is down. Check your +// connection and try again. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/s3outposts-2017-07-25/DeleteEndpoint func (c *S3Outposts) DeleteEndpoint(input *DeleteEndpointInput) (*DeleteEndpointOutput, error) { req, out := c.DeleteEndpointRequest(input) @@ -1036,6 +1044,9 @@ type Endpoint struct { // The Amazon Resource Name (ARN) of the endpoint. EndpointArn *string `type:"string"` + // The failure reason, if any, for a create or delete endpoint operation. + FailedReason *FailedReason `type:"structure"` + // The network interface of the endpoint. NetworkInterfaces []*NetworkInterface `type:"list"` @@ -1103,6 +1114,12 @@ func (s *Endpoint) SetEndpointArn(v string) *Endpoint { return s } +// SetFailedReason sets the FailedReason field's value. +func (s *Endpoint) SetFailedReason(v *FailedReason) *Endpoint { + s.FailedReason = v + return s +} + // SetNetworkInterfaces sets the NetworkInterfaces field's value. func (s *Endpoint) SetNetworkInterfaces(v []*NetworkInterface) *Endpoint { s.NetworkInterfaces = v @@ -1139,6 +1156,48 @@ func (s *Endpoint) SetVpcId(v string) *Endpoint { return s } +// The failure reason, if any, for a create or delete endpoint operation. +type FailedReason struct { + _ struct{} `type:"structure"` + + // The failure code, if any, for a create or delete endpoint operation. + ErrorCode *string `type:"string"` + + // Additional error details describing the endpoint failure and recommended + // action. + Message *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 FailedReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FailedReason) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *FailedReason) SetErrorCode(v string) *FailedReason { + s.ErrorCode = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *FailedReason) SetMessage(v string) *FailedReason { + s.Message = &v + return s +} + // There was an exception with the internal server. type InternalServerException struct { _ struct{} `type:"structure"` @@ -1604,6 +1663,71 @@ func (s *Outpost) SetOwnerId(v string) *Outpost { return s } +// The service link connection to your Outposts home Region is down. Check your +// connection and try again. +type OutpostOfflineException 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 OutpostOfflineException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s OutpostOfflineException) GoString() string { + return s.String() +} + +func newErrorOutpostOfflineException(v protocol.ResponseMetadata) error { + return &OutpostOfflineException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *OutpostOfflineException) Code() string { + return "OutpostOfflineException" +} + +// Message returns the exception's message. +func (s *OutpostOfflineException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *OutpostOfflineException) OrigErr() error { + return nil +} + +func (s *OutpostOfflineException) 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 *OutpostOfflineException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *OutpostOfflineException) RequestID() string { + return s.RespMetadata.RequestID +} + // The requested resource was not found. type ResourceNotFoundException struct { _ struct{} `type:"structure"` @@ -1821,6 +1945,12 @@ const ( // EndpointStatusDeleting is a EndpointStatus enum value EndpointStatusDeleting = "Deleting" + + // EndpointStatusCreateFailed is a EndpointStatus enum value + EndpointStatusCreateFailed = "Create_Failed" + + // EndpointStatusDeleteFailed is a EndpointStatus enum value + EndpointStatusDeleteFailed = "Delete_Failed" ) // EndpointStatus_Values returns all elements of the EndpointStatus enum @@ -1829,5 +1959,7 @@ func EndpointStatus_Values() []string { EndpointStatusPending, EndpointStatusAvailable, EndpointStatusDeleting, + EndpointStatusCreateFailed, + EndpointStatusDeleteFailed, } } diff --git a/service/s3outposts/errors.go b/service/s3outposts/errors.go index b41844ad380..371ef60f7a9 100644 --- a/service/s3outposts/errors.go +++ b/service/s3outposts/errors.go @@ -26,6 +26,13 @@ const ( // There was an exception with the internal server. ErrCodeInternalServerException = "InternalServerException" + // ErrCodeOutpostOfflineException for service response error code + // "OutpostOfflineException". + // + // The service link connection to your Outposts home Region is down. Check your + // connection and try again. + ErrCodeOutpostOfflineException = "OutpostOfflineException" + // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // @@ -49,6 +56,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "AccessDeniedException": newErrorAccessDeniedException, "ConflictException": newErrorConflictException, "InternalServerException": newErrorInternalServerException, + "OutpostOfflineException": newErrorOutpostOfflineException, "ResourceNotFoundException": newErrorResourceNotFoundException, "ThrottlingException": newErrorThrottlingException, "ValidationException": newErrorValidationException, diff --git a/service/workdocs/api.go b/service/workdocs/api.go index 718d982b5b3..d4201ae26bb 100644 --- a/service/workdocs/api.go +++ b/service/workdocs/api.go @@ -1929,6 +1929,12 @@ func (c *WorkDocs) DescribeActivitiesRequest(input *DescribeActivitiesInput) (re Name: opDescribeActivities, HTTPMethod: "GET", HTTPPath: "/api/v1/activities", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, } if input == nil { @@ -1992,6 +1998,57 @@ func (c *WorkDocs) DescribeActivitiesWithContext(ctx aws.Context, input *Describ return out, req.Send() } +// DescribeActivitiesPages iterates over the pages of a DescribeActivities operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeActivities 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 DescribeActivities operation. +// pageNum := 0 +// err := client.DescribeActivitiesPages(params, +// func(page *workdocs.DescribeActivitiesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) DescribeActivitiesPages(input *DescribeActivitiesInput, fn func(*DescribeActivitiesOutput, bool) bool) error { + return c.DescribeActivitiesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeActivitiesPagesWithContext same as DescribeActivitiesPages 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 *WorkDocs) DescribeActivitiesPagesWithContext(ctx aws.Context, input *DescribeActivitiesInput, fn func(*DescribeActivitiesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeActivitiesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeActivitiesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeActivitiesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeComments = "DescribeComments" // DescribeCommentsRequest generates a "aws/request.Request" representing the @@ -2022,6 +2079,12 @@ func (c *WorkDocs) DescribeCommentsRequest(input *DescribeCommentsInput) (req *r Name: opDescribeComments, HTTPMethod: "GET", HTTPPath: "/api/v1/documents/{DocumentId}/versions/{VersionId}/comments", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, } if input == nil { @@ -2088,6 +2151,57 @@ func (c *WorkDocs) DescribeCommentsWithContext(ctx aws.Context, input *DescribeC return out, req.Send() } +// DescribeCommentsPages iterates over the pages of a DescribeComments operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeComments 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 DescribeComments operation. +// pageNum := 0 +// err := client.DescribeCommentsPages(params, +// func(page *workdocs.DescribeCommentsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) DescribeCommentsPages(input *DescribeCommentsInput, fn func(*DescribeCommentsOutput, bool) bool) error { + return c.DescribeCommentsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeCommentsPagesWithContext same as DescribeCommentsPages 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 *WorkDocs) DescribeCommentsPagesWithContext(ctx aws.Context, input *DescribeCommentsInput, fn func(*DescribeCommentsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeCommentsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeCommentsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeCommentsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeDocumentVersions = "DescribeDocumentVersions" // DescribeDocumentVersionsRequest generates a "aws/request.Request" representing the @@ -2438,6 +2552,12 @@ func (c *WorkDocs) DescribeGroupsRequest(input *DescribeGroupsInput) (req *reque Name: opDescribeGroups, HTTPMethod: "GET", HTTPPath: "/api/v1/groups", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, } if input == nil { @@ -2499,6 +2619,57 @@ func (c *WorkDocs) DescribeGroupsWithContext(ctx aws.Context, input *DescribeGro return out, req.Send() } +// DescribeGroupsPages iterates over the pages of a DescribeGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeGroups 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 DescribeGroups operation. +// pageNum := 0 +// err := client.DescribeGroupsPages(params, +// func(page *workdocs.DescribeGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) DescribeGroupsPages(input *DescribeGroupsInput, fn func(*DescribeGroupsOutput, bool) bool) error { + return c.DescribeGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeGroupsPagesWithContext same as DescribeGroupsPages 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 *WorkDocs) DescribeGroupsPagesWithContext(ctx aws.Context, input *DescribeGroupsInput, fn func(*DescribeGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeNotificationSubscriptions = "DescribeNotificationSubscriptions" // DescribeNotificationSubscriptionsRequest generates a "aws/request.Request" representing the @@ -2529,6 +2700,12 @@ func (c *WorkDocs) DescribeNotificationSubscriptionsRequest(input *DescribeNotif Name: opDescribeNotificationSubscriptions, HTTPMethod: "GET", HTTPPath: "/api/v1/organizations/{OrganizationId}/subscriptions", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, } if input == nil { @@ -2584,6 +2761,57 @@ func (c *WorkDocs) DescribeNotificationSubscriptionsWithContext(ctx aws.Context, return out, req.Send() } +// DescribeNotificationSubscriptionsPages iterates over the pages of a DescribeNotificationSubscriptions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeNotificationSubscriptions 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 DescribeNotificationSubscriptions operation. +// pageNum := 0 +// err := client.DescribeNotificationSubscriptionsPages(params, +// func(page *workdocs.DescribeNotificationSubscriptionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) DescribeNotificationSubscriptionsPages(input *DescribeNotificationSubscriptionsInput, fn func(*DescribeNotificationSubscriptionsOutput, bool) bool) error { + return c.DescribeNotificationSubscriptionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeNotificationSubscriptionsPagesWithContext same as DescribeNotificationSubscriptionsPages 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 *WorkDocs) DescribeNotificationSubscriptionsPagesWithContext(ctx aws.Context, input *DescribeNotificationSubscriptionsInput, fn func(*DescribeNotificationSubscriptionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeNotificationSubscriptionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeNotificationSubscriptionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeNotificationSubscriptionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeResourcePermissions = "DescribeResourcePermissions" // DescribeResourcePermissionsRequest generates a "aws/request.Request" representing the @@ -2614,6 +2842,12 @@ func (c *WorkDocs) DescribeResourcePermissionsRequest(input *DescribeResourcePer Name: opDescribeResourcePermissions, HTTPMethod: "GET", HTTPPath: "/api/v1/resources/{ResourceId}/permissions", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, } if input == nil { @@ -2677,6 +2911,57 @@ func (c *WorkDocs) DescribeResourcePermissionsWithContext(ctx aws.Context, input return out, req.Send() } +// DescribeResourcePermissionsPages iterates over the pages of a DescribeResourcePermissions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeResourcePermissions 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 DescribeResourcePermissions operation. +// pageNum := 0 +// err := client.DescribeResourcePermissionsPages(params, +// func(page *workdocs.DescribeResourcePermissionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) DescribeResourcePermissionsPages(input *DescribeResourcePermissionsInput, fn func(*DescribeResourcePermissionsOutput, bool) bool) error { + return c.DescribeResourcePermissionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeResourcePermissionsPagesWithContext same as DescribeResourcePermissionsPages 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 *WorkDocs) DescribeResourcePermissionsPagesWithContext(ctx aws.Context, input *DescribeResourcePermissionsInput, fn func(*DescribeResourcePermissionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeResourcePermissionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeResourcePermissionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeResourcePermissionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opDescribeRootFolders = "DescribeRootFolders" // DescribeRootFoldersRequest generates a "aws/request.Request" representing the @@ -2707,6 +2992,12 @@ func (c *WorkDocs) DescribeRootFoldersRequest(input *DescribeRootFoldersInput) ( Name: opDescribeRootFolders, HTTPMethod: "GET", HTTPPath: "/api/v1/me/root", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, } if input == nil { @@ -2778,24 +3069,75 @@ func (c *WorkDocs) DescribeRootFoldersWithContext(ctx aws.Context, input *Descri 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. +// DescribeRootFoldersPages iterates over the pages of a DescribeRootFolders operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. +// See DescribeRootFolders method for more information on how to use this operation. // -// See DescribeUsers for more information on using the DescribeUsers -// API call, and error handling. +// Note: This operation can generate multiple requests to a service. // -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// // Example iterating over at most 3 pages of a DescribeRootFolders operation. +// pageNum := 0 +// err := client.DescribeRootFoldersPages(params, +// func(page *workdocs.DescribeRootFoldersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) DescribeRootFoldersPages(input *DescribeRootFoldersInput, fn func(*DescribeRootFoldersOutput, bool) bool) error { + return c.DescribeRootFoldersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeRootFoldersPagesWithContext same as DescribeRootFoldersPages except +// it takes a Context and allows setting request options on the pages. // -// // Example sending a request using the DescribeUsersRequest method. -// req, resp := client.DescribeUsersRequest(params) +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WorkDocs) DescribeRootFoldersPagesWithContext(ctx aws.Context, input *DescribeRootFoldersInput, fn func(*DescribeRootFoldersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeRootFoldersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeRootFoldersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*DescribeRootFoldersOutput), !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 @@ -3732,6 +4074,9 @@ func (c *WorkDocs) InitiateDocumentVersionUploadRequest(input *InitiateDocumentV // - InvalidPasswordException // The password is invalid. // +// - InvalidArgumentException +// The pagination marker or limit fields are not valid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUpload func (c *WorkDocs) InitiateDocumentVersionUpload(input *InitiateDocumentVersionUploadInput) (*InitiateDocumentVersionUploadOutput, error) { req, out := c.InitiateDocumentVersionUploadRequest(input) @@ -4040,6 +4385,152 @@ func (c *WorkDocs) RestoreDocumentVersionsWithContext(ctx aws.Context, input *Re return out, req.Send() } +const opSearchResources = "SearchResources" + +// SearchResourcesRequest generates a "aws/request.Request" representing the +// client's request for the SearchResources 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 SearchResources for more information on using the SearchResources +// 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 SearchResourcesRequest method. +// req, resp := client.SearchResourcesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchResources +func (c *WorkDocs) SearchResourcesRequest(input *SearchResourcesInput) (req *request.Request, output *SearchResourcesOutput) { + op := &request.Operation{ + Name: opSearchResources, + HTTPMethod: "POST", + HTTPPath: "/api/v1/search", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"Marker"}, + LimitToken: "Limit", + TruncationToken: "", + }, + } + + if input == nil { + input = &SearchResourcesInput{} + } + + output = &SearchResourcesOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchResources API operation for Amazon WorkDocs. +// +// Searches metadata and the content of folders, documents, document versions, +// and comments. +// +// 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 WorkDocs's +// API operation SearchResources for usage and error information. +// +// Returned Error Types: +// +// - InvalidArgumentException +// The pagination marker or limit fields are not valid. +// +// - UnauthorizedResourceAccessException +// The caller does not have access to perform the action on the resource. +// +// - UnauthorizedOperationException +// The operation is not permitted. +// +// - ServiceUnavailableException +// One or more of the dependencies is unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/SearchResources +func (c *WorkDocs) SearchResources(input *SearchResourcesInput) (*SearchResourcesOutput, error) { + req, out := c.SearchResourcesRequest(input) + return out, req.Send() +} + +// SearchResourcesWithContext is the same as SearchResources with the addition of +// the ability to pass a context and additional request options. +// +// See SearchResources 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 *WorkDocs) SearchResourcesWithContext(ctx aws.Context, input *SearchResourcesInput, opts ...request.Option) (*SearchResourcesOutput, error) { + req, out := c.SearchResourcesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// SearchResourcesPages iterates over the pages of a SearchResources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchResources 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 SearchResources operation. +// pageNum := 0 +// err := client.SearchResourcesPages(params, +// func(page *workdocs.SearchResourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +func (c *WorkDocs) SearchResourcesPages(input *SearchResourcesInput, fn func(*SearchResourcesOutput, bool) bool) error { + return c.SearchResourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchResourcesPagesWithContext same as SearchResourcesPages 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 *WorkDocs) SearchResourcesPagesWithContext(ctx aws.Context, input *SearchResourcesInput, fn func(*SearchResourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchResourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchResourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchResourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opUpdateDocument = "UpdateDocument" // UpdateDocumentRequest generates a "aws/request.Request" representing the @@ -5046,6 +5537,9 @@ type CommentMetadata struct { // The user who made the comment. Contributor *User `type:"structure"` + // The ID of the user who made the comment. + ContributorId *string `min:"1" type:"string"` + // The timestamp that the comment was created. CreatedTimestamp *time.Time `type:"timestamp"` @@ -5089,6 +5583,12 @@ func (s *CommentMetadata) SetContributor(v *User) *CommentMetadata { return s } +// SetContributorId sets the ContributorId field's value. +func (s *CommentMetadata) SetContributorId(v string) *CommentMetadata { + s.ContributorId = &v + return s +} + // SetCreatedTimestamp sets the CreatedTimestamp field's value. func (s *CommentMetadata) SetCreatedTimestamp(v time.Time) *CommentMetadata { s.CreatedTimestamp = &v @@ -5540,7 +6040,11 @@ type CreateFolderInput struct { AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The name of the new folder. - Name *string `min:"1" type:"string"` + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateFolderInput's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` // The ID of the parent folder. // @@ -5886,8 +6390,12 @@ type CreateUserInput struct { // The given name of the user. // + // GivenName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + // // GivenName is a required field - GivenName *string `min:"1" type:"string" required:"true"` + GivenName *string `min:"1" type:"string" required:"true" sensitive:"true"` // The ID of the organization. OrganizationId *string `min:"1" type:"string"` @@ -5906,16 +6414,24 @@ type CreateUserInput struct { // The surname of the user. // + // Surname is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + // // Surname is a required field - Surname *string `min:"1" type:"string" required:"true"` + Surname *string `min:"1" type:"string" required:"true" sensitive:"true"` // The time zone ID of the user. TimeZoneId *string `min:"1" type:"string"` // The login name of the user. // + // Username is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateUserInput's + // String and GoString methods. + // // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + Username *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation. @@ -6132,6 +6648,47 @@ func (s *CustomMetadataLimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +// Filters results based on timestamp range (in epochs). +type DateRangeType struct { + _ struct{} `type:"structure"` + + // Timestamp range end value (in epochs). + EndValue *time.Time `type:"timestamp"` + + // Timestamp range start value (in epochs) + StartValue *time.Time `type:"timestamp"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DateRangeType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DateRangeType) GoString() string { + return s.String() +} + +// SetEndValue sets the EndValue field's value. +func (s *DateRangeType) SetEndValue(v time.Time) *DateRangeType { + s.EndValue = &v + return s +} + +// SetStartValue sets the StartValue field's value. +func (s *DateRangeType) SetStartValue(v time.Time) *DateRangeType { + s.StartValue = &v + return s +} + type DeactivateUserInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -8808,7 +9365,11 @@ type DocumentVersionMetadata struct { ModifiedTimestamp *time.Time `type:"timestamp"` // The name of the version. - Name *string `min:"1" type:"string"` + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by DocumentVersionMetadata's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` // The signature of the document. Signature *string `type:"string"` @@ -9184,42 +9745,39 @@ func (s *FailedDependencyException) RequestID() string { return s.RespMetadata.RequestID } -// Describes a folder. -type FolderMetadata struct { +// Filters results based on entity metadata. +type Filters struct { _ struct{} `type:"structure"` - // The time when the folder was created. - CreatedTimestamp *time.Time `type:"timestamp"` + // Filter based on resource’s path. + AncestorIds []*string `type:"list"` - // The ID of the creator. - CreatorId *string `min:"1" type:"string"` + // Filters by content category. + ContentCategories []*string `type:"list" enum:"ContentCategoryType"` - // The ID of the folder. - Id *string `min:"1" type:"string"` + // Filter based on resource’s creation timestamp. + CreatedRange *DateRangeType `type:"structure"` - // List of labels on the folder. + // Filter by labels using exact match. Labels []*string `type:"list"` - // The size of the latest version of the folder metadata. - LatestVersionSize *int64 `type:"long"` - - // The time when the folder was updated. - ModifiedTimestamp *time.Time `type:"timestamp"` + // Filter based on resource’s modified timestamp. + ModifiedRange *DateRangeType `type:"structure"` - // The name of the folder. - Name *string `min:"1" type:"string"` + // Filter based on UserIds or GroupIds. + Principals []*SearchPrincipalType `type:"list"` - // The ID of the parent folder. - ParentFolderId *string `min:"1" type:"string"` + // Filters based on entity type. + ResourceTypes []*string `type:"list" enum:"SearchResourceType"` - // The resource state of the folder. - ResourceState *string `type:"string" enum:"ResourceStateType"` + // Filter based on file groupings. + SearchCollectionTypes []*string `type:"list" enum:"SearchCollectionType"` - // The unique identifier created from the subfolders and documents of the folder. - Signature *string `type:"string"` + // Filter based on size (in bytes). + SizeRange *LongRangeType `type:"structure"` - // The size of the folder metadata. - Size *int64 `type:"long"` + // Filters by the locale of the content or comment. + TextLocales []*string `type:"list" enum:"LanguageCodeType"` } // String returns the string representation. @@ -9227,7 +9785,7 @@ type FolderMetadata struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s FolderMetadata) String() string { +func (s Filters) String() string { return awsutil.Prettify(s) } @@ -9236,36 +9794,176 @@ func (s FolderMetadata) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s FolderMetadata) GoString() string { +func (s Filters) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *FolderMetadata) SetCreatedTimestamp(v time.Time) *FolderMetadata { - s.CreatedTimestamp = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filters"} + if s.Principals != nil { + for i, v := range s.Principals { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Principals", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAncestorIds sets the AncestorIds field's value. +func (s *Filters) SetAncestorIds(v []*string) *Filters { + s.AncestorIds = v return s } -// SetCreatorId sets the CreatorId field's value. -func (s *FolderMetadata) SetCreatorId(v string) *FolderMetadata { - s.CreatorId = &v +// SetContentCategories sets the ContentCategories field's value. +func (s *Filters) SetContentCategories(v []*string) *Filters { + s.ContentCategories = v return s } -// SetId sets the Id field's value. -func (s *FolderMetadata) SetId(v string) *FolderMetadata { - s.Id = &v +// SetCreatedRange sets the CreatedRange field's value. +func (s *Filters) SetCreatedRange(v *DateRangeType) *Filters { + s.CreatedRange = v return s } // SetLabels sets the Labels field's value. -func (s *FolderMetadata) SetLabels(v []*string) *FolderMetadata { +func (s *Filters) SetLabels(v []*string) *Filters { s.Labels = v return s } -// SetLatestVersionSize sets the LatestVersionSize field's value. -func (s *FolderMetadata) SetLatestVersionSize(v int64) *FolderMetadata { +// SetModifiedRange sets the ModifiedRange field's value. +func (s *Filters) SetModifiedRange(v *DateRangeType) *Filters { + s.ModifiedRange = v + return s +} + +// SetPrincipals sets the Principals field's value. +func (s *Filters) SetPrincipals(v []*SearchPrincipalType) *Filters { + s.Principals = v + return s +} + +// SetResourceTypes sets the ResourceTypes field's value. +func (s *Filters) SetResourceTypes(v []*string) *Filters { + s.ResourceTypes = v + return s +} + +// SetSearchCollectionTypes sets the SearchCollectionTypes field's value. +func (s *Filters) SetSearchCollectionTypes(v []*string) *Filters { + s.SearchCollectionTypes = v + return s +} + +// SetSizeRange sets the SizeRange field's value. +func (s *Filters) SetSizeRange(v *LongRangeType) *Filters { + s.SizeRange = v + return s +} + +// SetTextLocales sets the TextLocales field's value. +func (s *Filters) SetTextLocales(v []*string) *Filters { + s.TextLocales = v + return s +} + +// Describes a folder. +type FolderMetadata struct { + _ struct{} `type:"structure"` + + // The time when the folder was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The ID of the creator. + CreatorId *string `min:"1" type:"string"` + + // The ID of the folder. + Id *string `min:"1" type:"string"` + + // List of labels on the folder. + Labels []*string `type:"list"` + + // The size of the latest version of the folder metadata. + LatestVersionSize *int64 `type:"long"` + + // The time when the folder was updated. + ModifiedTimestamp *time.Time `type:"timestamp"` + + // The name of the folder. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by FolderMetadata's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` + + // The ID of the parent folder. + ParentFolderId *string `min:"1" type:"string"` + + // The resource state of the folder. + ResourceState *string `type:"string" enum:"ResourceStateType"` + + // The unique identifier created from the subfolders and documents of the folder. + Signature *string `type:"string"` + + // The size of the folder metadata. + Size *int64 `type:"long"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FolderMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s FolderMetadata) GoString() string { + return s.String() +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *FolderMetadata) SetCreatedTimestamp(v time.Time) *FolderMetadata { + s.CreatedTimestamp = &v + return s +} + +// SetCreatorId sets the CreatorId field's value. +func (s *FolderMetadata) SetCreatorId(v string) *FolderMetadata { + s.CreatorId = &v + return s +} + +// SetId sets the Id field's value. +func (s *FolderMetadata) SetId(v string) *FolderMetadata { + s.Id = &v + return s +} + +// SetLabels sets the Labels field's value. +func (s *FolderMetadata) SetLabels(v []*string) *FolderMetadata { + s.Labels = v + return s +} + +// SetLatestVersionSize sets the LatestVersionSize field's value. +func (s *FolderMetadata) SetLatestVersionSize(v int64) *FolderMetadata { s.LatestVersionSize = &v return s } @@ -10311,7 +11009,11 @@ type InitiateDocumentVersionUploadInput struct { Id *string `min:"1" type:"string"` // The name of the document. - Name *string `min:"1" type:"string"` + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by InitiateDocumentVersionUploadInput's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` // The ID of the parent folder. ParentFolderId *string `min:"1" type:"string"` @@ -10769,6 +11471,47 @@ func (s *LimitExceededException) RequestID() string { return s.RespMetadata.RequestID } +// Filter based on size (in bytes). +type LongRangeType struct { + _ struct{} `type:"structure"` + + // The size end range (in bytes). + EndValue *int64 `type:"long"` + + // The size start range (in bytes). + StartValue *int64 `type:"long"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LongRangeType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LongRangeType) GoString() string { + return s.String() +} + +// SetEndValue sets the EndValue field's value. +func (s *LongRangeType) SetEndValue(v int64) *LongRangeType { + s.EndValue = &v + return s +} + +// SetStartValue sets the StartValue field's value. +func (s *LongRangeType) SetStartValue(v int64) *LongRangeType { + s.StartValue = &v + return s +} + // Set of options which defines notification preferences of given action. type NotificationOptions struct { _ struct{} `type:"structure"` @@ -11349,10 +12092,18 @@ type ResourceMetadata struct { Id *string `min:"1" type:"string"` // The name of the resource. - Name *string `min:"1" type:"string"` + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ResourceMetadata's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` // The original name of the resource before a rename operation. - OriginalName *string `min:"1" type:"string"` + // + // OriginalName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ResourceMetadata's + // String and GoString methods. + OriginalName *string `min:"1" type:"string" sensitive:"true"` // The owner of the resource. Owner *UserMetadata `type:"structure"` @@ -11454,68 +12205,444 @@ func (s ResourcePath) GoString() string { return s.String() } -// SetComponents sets the Components field's value. -func (s *ResourcePath) SetComponents(v []*ResourcePathComponent) *ResourcePath { - s.Components = v +// SetComponents sets the Components field's value. +func (s *ResourcePath) SetComponents(v []*ResourcePathComponent) *ResourcePath { + s.Components = v + return s +} + +// Describes the resource path. +type ResourcePathComponent struct { + _ struct{} `type:"structure"` + + // The ID of the resource path. + Id *string `min:"1" type:"string"` + + // The name of the resource path. + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ResourcePathComponent's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourcePathComponent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResourcePathComponent) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *ResourcePathComponent) SetId(v string) *ResourcePathComponent { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ResourcePathComponent) SetName(v string) *ResourcePathComponent { + s.Name = &v + return s +} + +// List of Documents, Folders, Comments, and Document Versions matching the +// query. +type ResponseItem struct { + _ struct{} `type:"structure"` + + // The comment that matches the query. + CommentMetadata *CommentMetadata `type:"structure"` + + // The document that matches the query. + DocumentMetadata *DocumentMetadata `type:"structure"` + + // The document version that matches the metadata. + DocumentVersionMetadata *DocumentVersionMetadata `type:"structure"` + + // The folder that matches the query. + FolderMetadata *FolderMetadata `type:"structure"` + + // The type of item being returned. + ResourceType *string `type:"string" enum:"ResponseItemType"` + + // The webUrl of the item being returned. + // + // WebUrl is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ResponseItem's + // String and GoString methods. + WebUrl *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResponseItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ResponseItem) GoString() string { + return s.String() +} + +// SetCommentMetadata sets the CommentMetadata field's value. +func (s *ResponseItem) SetCommentMetadata(v *CommentMetadata) *ResponseItem { + s.CommentMetadata = v + return s +} + +// SetDocumentMetadata sets the DocumentMetadata field's value. +func (s *ResponseItem) SetDocumentMetadata(v *DocumentMetadata) *ResponseItem { + s.DocumentMetadata = v + return s +} + +// SetDocumentVersionMetadata sets the DocumentVersionMetadata field's value. +func (s *ResponseItem) SetDocumentVersionMetadata(v *DocumentVersionMetadata) *ResponseItem { + s.DocumentVersionMetadata = v + return s +} + +// SetFolderMetadata sets the FolderMetadata field's value. +func (s *ResponseItem) SetFolderMetadata(v *FolderMetadata) *ResponseItem { + s.FolderMetadata = v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ResponseItem) SetResourceType(v string) *ResponseItem { + s.ResourceType = &v + return s +} + +// SetWebUrl sets the WebUrl field's value. +func (s *ResponseItem) SetWebUrl(v string) *ResponseItem { + s.WebUrl = &v + return s +} + +type RestoreDocumentVersionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // Amazon WorkDocs authentication token. Not required when using Amazon Web + // Services administrator credentials to access the API. + // + // AuthenticationToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by RestoreDocumentVersionsInput's + // String and GoString methods. + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` + + // The ID of the document. + // + // DocumentId is a required field + DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestoreDocumentVersionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestoreDocumentVersionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RestoreDocumentVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestoreDocumentVersionsInput"} + if s.AuthenticationToken != nil && len(*s.AuthenticationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthenticationToken", 1)) + } + if s.DocumentId == nil { + invalidParams.Add(request.NewErrParamRequired("DocumentId")) + } + if s.DocumentId != nil && len(*s.DocumentId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthenticationToken sets the AuthenticationToken field's value. +func (s *RestoreDocumentVersionsInput) SetAuthenticationToken(v string) *RestoreDocumentVersionsInput { + s.AuthenticationToken = &v + return s +} + +// SetDocumentId sets the DocumentId field's value. +func (s *RestoreDocumentVersionsInput) SetDocumentId(v string) *RestoreDocumentVersionsInput { + s.DocumentId = &v + return s +} + +type RestoreDocumentVersionsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestoreDocumentVersionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RestoreDocumentVersionsOutput) GoString() string { + return s.String() +} + +// Filter based on UserIds or GroupIds. +type SearchPrincipalType struct { + _ struct{} `type:"structure"` + + // UserIds or GroupIds. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // The Role of a User or Group. + Roles []*string `type:"list" enum:"PrincipalRoleType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchPrincipalType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchPrincipalType) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchPrincipalType) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchPrincipalType"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *SearchPrincipalType) SetId(v string) *SearchPrincipalType { + s.Id = &v + return s +} + +// SetRoles sets the Roles field's value. +func (s *SearchPrincipalType) SetRoles(v []*string) *SearchPrincipalType { + s.Roles = v + return s +} + +type SearchResourcesInput struct { + _ struct{} `type:"structure"` + + // A list of attributes to include in the response. Used to request fields that + // are not normally returned in a standard response. + AdditionalResponseFields []*string `type:"list" enum:"AdditionalResponseFieldType"` + + // Amazon WorkDocs authentication token. Not required when using Amazon Web + // Services administrator credentials to access the API. + // + // AuthenticationToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SearchResourcesInput's + // String and GoString methods. + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` + + // Filters results based on entity metadata. + Filters *Filters `type:"structure"` + + // Max results count per page. + Limit *int64 `min:"1" type:"integer"` + + // The marker for the next set of results. + Marker *string `min:"1" type:"string"` + + // Order by results in one or more categories. + OrderBy []*SearchSortResult `type:"list"` + + // Filters based on the resource owner OrgId. This is a mandatory parameter + // when using Admin SigV4 credentials. + OrganizationId *string `min:"1" type:"string"` + + // Filter based on the text field type. A Folder has only a name and no content. + // A Comment has only content and no name. A Document or Document Version has + // a name and content + QueryScopes []*string `type:"list" enum:"SearchQueryScopeType"` + + // The String to search for. Searches across different text fields based on + // request parameters. Use double quotes around the query string for exact phrase + // matches. + // + // QueryText is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SearchResourcesInput's + // String and GoString methods. + QueryText *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s SearchResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchResourcesInput"} + if s.AuthenticationToken != nil && len(*s.AuthenticationToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AuthenticationToken", 1)) + } + if s.Limit != nil && *s.Limit < 1 { + invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) + } + if s.Marker != nil && len(*s.Marker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) + } + if s.OrganizationId != nil && len(*s.OrganizationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationId", 1)) + } + if s.QueryText != nil && len(*s.QueryText) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryText", 1)) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAdditionalResponseFields sets the AdditionalResponseFields field's value. +func (s *SearchResourcesInput) SetAdditionalResponseFields(v []*string) *SearchResourcesInput { + s.AdditionalResponseFields = v + return s +} + +// SetAuthenticationToken sets the AuthenticationToken field's value. +func (s *SearchResourcesInput) SetAuthenticationToken(v string) *SearchResourcesInput { + s.AuthenticationToken = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *SearchResourcesInput) SetFilters(v *Filters) *SearchResourcesInput { + s.Filters = v return s } -// Describes the resource path. -type ResourcePathComponent struct { - _ struct{} `type:"structure"` - - // The ID of the resource path. - Id *string `min:"1" type:"string"` +// SetLimit sets the Limit field's value. +func (s *SearchResourcesInput) SetLimit(v int64) *SearchResourcesInput { + s.Limit = &v + return s +} - // The name of the resource path. - Name *string `min:"1" type:"string"` +// SetMarker sets the Marker field's value. +func (s *SearchResourcesInput) SetMarker(v string) *SearchResourcesInput { + s.Marker = &v + return s } -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourcePathComponent) String() string { - return awsutil.Prettify(s) +// SetOrderBy sets the OrderBy field's value. +func (s *SearchResourcesInput) SetOrderBy(v []*SearchSortResult) *SearchResourcesInput { + s.OrderBy = v + return s } -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourcePathComponent) GoString() string { - return s.String() +// SetOrganizationId sets the OrganizationId field's value. +func (s *SearchResourcesInput) SetOrganizationId(v string) *SearchResourcesInput { + s.OrganizationId = &v + return s } -// SetId sets the Id field's value. -func (s *ResourcePathComponent) SetId(v string) *ResourcePathComponent { - s.Id = &v +// SetQueryScopes sets the QueryScopes field's value. +func (s *SearchResourcesInput) SetQueryScopes(v []*string) *SearchResourcesInput { + s.QueryScopes = v return s } -// SetName sets the Name field's value. -func (s *ResourcePathComponent) SetName(v string) *ResourcePathComponent { - s.Name = &v +// SetQueryText sets the QueryText field's value. +func (s *SearchResourcesInput) SetQueryText(v string) *SearchResourcesInput { + s.QueryText = &v return s } -type RestoreDocumentVersionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type SearchResourcesOutput struct { + _ struct{} `type:"structure"` - // Amazon WorkDocs authentication token. Not required when using Amazon Web - // Services administrator credentials to access the API. - // - // AuthenticationToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by RestoreDocumentVersionsInput's - // String and GoString methods. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` + // List of Documents, Folders, Comments, and Document Versions matching the + // query. + Items []*ResponseItem `type:"list"` - // The ID of the document. - // - // DocumentId is a required field - DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` + // The marker to use when requesting the next set of results. If there are no + // additional results, the string is empty. + Marker *string `min:"1" type:"string"` } // String returns the string representation. @@ -11523,7 +12650,7 @@ type RestoreDocumentVersionsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RestoreDocumentVersionsInput) String() string { +func (s SearchResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -11532,43 +12659,31 @@ func (s RestoreDocumentVersionsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RestoreDocumentVersionsInput) GoString() string { +func (s SearchResourcesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestoreDocumentVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestoreDocumentVersionsInput"} - if s.AuthenticationToken != nil && len(*s.AuthenticationToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AuthenticationToken", 1)) - } - if s.DocumentId == nil { - invalidParams.Add(request.NewErrParamRequired("DocumentId")) - } - if s.DocumentId != nil && len(*s.DocumentId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DocumentId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAuthenticationToken sets the AuthenticationToken field's value. -func (s *RestoreDocumentVersionsInput) SetAuthenticationToken(v string) *RestoreDocumentVersionsInput { - s.AuthenticationToken = &v +// SetItems sets the Items field's value. +func (s *SearchResourcesOutput) SetItems(v []*ResponseItem) *SearchResourcesOutput { + s.Items = v return s } -// SetDocumentId sets the DocumentId field's value. -func (s *RestoreDocumentVersionsInput) SetDocumentId(v string) *RestoreDocumentVersionsInput { - s.DocumentId = &v +// SetMarker sets the Marker field's value. +func (s *SearchResourcesOutput) SetMarker(v string) *SearchResourcesOutput { + s.Marker = &v return s } -type RestoreDocumentVersionsOutput struct { +// The result of the sort operation. +type SearchSortResult struct { _ struct{} `type:"structure"` + + // Sort search results based on this field name. + Field *string `type:"string" enum:"OrderByFieldType"` + + // Sort direction. + Order *string `type:"string" enum:"SortOrder"` } // String returns the string representation. @@ -11576,7 +12691,7 @@ type RestoreDocumentVersionsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RestoreDocumentVersionsOutput) String() string { +func (s SearchSortResult) String() string { return awsutil.Prettify(s) } @@ -11585,10 +12700,22 @@ func (s RestoreDocumentVersionsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s RestoreDocumentVersionsOutput) GoString() string { +func (s SearchSortResult) GoString() string { return s.String() } +// SetField sets the Field field's value. +func (s *SearchSortResult) SetField(v string) *SearchSortResult { + s.Field = &v + return s +} + +// SetOrder sets the Order field's value. +func (s *SearchSortResult) SetOrder(v string) *SearchSortResult { + s.Order = &v + return s +} + // One or more of the dependencies is unavailable. type ServiceUnavailableException struct { _ struct{} `type:"structure"` @@ -12305,7 +13432,11 @@ type UpdateDocumentInput struct { DocumentId *string `location:"uri" locationName:"DocumentId" min:"1" type:"string" required:"true"` // The name of the document. - Name *string `min:"1" type:"string"` + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateDocumentInput's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` // The ID of the parent folder. ParentFolderId *string `min:"1" type:"string"` @@ -12540,7 +13671,11 @@ type UpdateFolderInput struct { FolderId *string `location:"uri" locationName:"FolderId" min:"1" type:"string" required:"true"` // The name of the folder. - Name *string `min:"1" type:"string"` + // + // Name is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateFolderInput's + // String and GoString methods. + Name *string `min:"1" type:"string" sensitive:"true"` // The ID of the parent folder. ParentFolderId *string `min:"1" type:"string"` @@ -12657,7 +13792,11 @@ type UpdateUserInput struct { AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The given name of the user. - GivenName *string `min:"1" type:"string"` + // + // GivenName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateUserInput's + // String and GoString methods. + GivenName *string `min:"1" type:"string" sensitive:"true"` // Boolean value to determine whether the user is granted Power user privileges. GrantPoweruserPrivileges *string `type:"string" enum:"BooleanEnumType"` @@ -12669,7 +13808,11 @@ type UpdateUserInput struct { StorageRule *StorageRuleType `type:"structure"` // The surname of the user. - Surname *string `min:"1" type:"string"` + // + // Surname is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UpdateUserInput's + // String and GoString methods. + Surname *string `min:"1" type:"string" sensitive:"true"` // The time zone ID of the user. TimeZoneId *string `min:"1" type:"string"` @@ -12874,7 +14017,11 @@ type User struct { EmailAddress *string `min:"1" type:"string" sensitive:"true"` // The given name of the user. - GivenName *string `min:"1" type:"string"` + // + // GivenName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + GivenName *string `min:"1" type:"string" sensitive:"true"` // The ID of the user. Id *string `min:"1" type:"string"` @@ -12901,7 +14048,11 @@ type User struct { Storage *UserStorageMetadata `type:"structure"` // The surname of the user. - Surname *string `min:"1" type:"string"` + // + // Surname is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + Surname *string `min:"1" type:"string" sensitive:"true"` // The time zone ID of the user. TimeZoneId *string `min:"1" type:"string"` @@ -12910,7 +14061,11 @@ type User struct { Type *string `type:"string" enum:"UserType"` // The login name of the user. - Username *string `min:"1" type:"string"` + // + // Username is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by User's + // String and GoString methods. + Username *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -13033,16 +14188,28 @@ type UserMetadata struct { EmailAddress *string `min:"1" type:"string" sensitive:"true"` // The given name of the user before a rename operation. - GivenName *string `min:"1" type:"string"` + // + // GivenName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UserMetadata's + // String and GoString methods. + GivenName *string `min:"1" type:"string" sensitive:"true"` // The ID of the user. Id *string `min:"1" type:"string"` // The surname of the user. - Surname *string `min:"1" type:"string"` + // + // Surname is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UserMetadata's + // String and GoString methods. + Surname *string `min:"1" type:"string" sensitive:"true"` // The name of the user. - Username *string `min:"1" type:"string"` + // + // Username is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by UserMetadata's + // String and GoString methods. + Username *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -13274,6 +14441,18 @@ func ActivityType_Values() []string { } } +const ( + // AdditionalResponseFieldTypeWeburl is a AdditionalResponseFieldType enum value + AdditionalResponseFieldTypeWeburl = "WEBURL" +) + +// AdditionalResponseFieldType_Values returns all elements of the AdditionalResponseFieldType enum +func AdditionalResponseFieldType_Values() []string { + return []string{ + AdditionalResponseFieldTypeWeburl, + } +} + const ( // BooleanEnumTypeTrue is a BooleanEnumType enum value BooleanEnumTypeTrue = "TRUE" @@ -13326,6 +14505,50 @@ func CommentVisibilityType_Values() []string { } } +const ( + // ContentCategoryTypeImage is a ContentCategoryType enum value + ContentCategoryTypeImage = "IMAGE" + + // ContentCategoryTypeDocument is a ContentCategoryType enum value + ContentCategoryTypeDocument = "DOCUMENT" + + // ContentCategoryTypePdf is a ContentCategoryType enum value + ContentCategoryTypePdf = "PDF" + + // ContentCategoryTypeSpreadsheet is a ContentCategoryType enum value + ContentCategoryTypeSpreadsheet = "SPREADSHEET" + + // ContentCategoryTypePresentation is a ContentCategoryType enum value + ContentCategoryTypePresentation = "PRESENTATION" + + // ContentCategoryTypeAudio is a ContentCategoryType enum value + ContentCategoryTypeAudio = "AUDIO" + + // ContentCategoryTypeVideo is a ContentCategoryType enum value + ContentCategoryTypeVideo = "VIDEO" + + // ContentCategoryTypeSourceCode is a ContentCategoryType enum value + ContentCategoryTypeSourceCode = "SOURCE_CODE" + + // ContentCategoryTypeOther is a ContentCategoryType enum value + ContentCategoryTypeOther = "OTHER" +) + +// ContentCategoryType_Values returns all elements of the ContentCategoryType enum +func ContentCategoryType_Values() []string { + return []string{ + ContentCategoryTypeImage, + ContentCategoryTypeDocument, + ContentCategoryTypePdf, + ContentCategoryTypeSpreadsheet, + ContentCategoryTypePresentation, + ContentCategoryTypeAudio, + ContentCategoryTypeVideo, + ContentCategoryTypeSourceCode, + ContentCategoryTypeOther, + } +} + const ( // DocumentSourceTypeOriginal is a DocumentSourceType enum value DocumentSourceTypeOriginal = "ORIGINAL" @@ -13410,6 +14633,138 @@ func FolderContentType_Values() []string { } } +const ( + // LanguageCodeTypeAr is a LanguageCodeType enum value + LanguageCodeTypeAr = "AR" + + // LanguageCodeTypeBg is a LanguageCodeType enum value + LanguageCodeTypeBg = "BG" + + // LanguageCodeTypeBn is a LanguageCodeType enum value + LanguageCodeTypeBn = "BN" + + // LanguageCodeTypeDa is a LanguageCodeType enum value + LanguageCodeTypeDa = "DA" + + // LanguageCodeTypeDe is a LanguageCodeType enum value + LanguageCodeTypeDe = "DE" + + // LanguageCodeTypeCs is a LanguageCodeType enum value + LanguageCodeTypeCs = "CS" + + // LanguageCodeTypeEl is a LanguageCodeType enum value + LanguageCodeTypeEl = "EL" + + // LanguageCodeTypeEn is a LanguageCodeType enum value + LanguageCodeTypeEn = "EN" + + // LanguageCodeTypeEs is a LanguageCodeType enum value + LanguageCodeTypeEs = "ES" + + // LanguageCodeTypeFa is a LanguageCodeType enum value + LanguageCodeTypeFa = "FA" + + // LanguageCodeTypeFi is a LanguageCodeType enum value + LanguageCodeTypeFi = "FI" + + // LanguageCodeTypeFr is a LanguageCodeType enum value + LanguageCodeTypeFr = "FR" + + // LanguageCodeTypeHi is a LanguageCodeType enum value + LanguageCodeTypeHi = "HI" + + // LanguageCodeTypeHu is a LanguageCodeType enum value + LanguageCodeTypeHu = "HU" + + // LanguageCodeTypeId is a LanguageCodeType enum value + LanguageCodeTypeId = "ID" + + // LanguageCodeTypeIt is a LanguageCodeType enum value + LanguageCodeTypeIt = "IT" + + // LanguageCodeTypeJa is a LanguageCodeType enum value + LanguageCodeTypeJa = "JA" + + // LanguageCodeTypeKo is a LanguageCodeType enum value + LanguageCodeTypeKo = "KO" + + // LanguageCodeTypeLt is a LanguageCodeType enum value + LanguageCodeTypeLt = "LT" + + // LanguageCodeTypeLv is a LanguageCodeType enum value + LanguageCodeTypeLv = "LV" + + // LanguageCodeTypeNl is a LanguageCodeType enum value + LanguageCodeTypeNl = "NL" + + // LanguageCodeTypeNo is a LanguageCodeType enum value + LanguageCodeTypeNo = "NO" + + // LanguageCodeTypePt is a LanguageCodeType enum value + LanguageCodeTypePt = "PT" + + // LanguageCodeTypeRo is a LanguageCodeType enum value + LanguageCodeTypeRo = "RO" + + // LanguageCodeTypeRu is a LanguageCodeType enum value + LanguageCodeTypeRu = "RU" + + // LanguageCodeTypeSv is a LanguageCodeType enum value + LanguageCodeTypeSv = "SV" + + // LanguageCodeTypeSw is a LanguageCodeType enum value + LanguageCodeTypeSw = "SW" + + // LanguageCodeTypeTh is a LanguageCodeType enum value + LanguageCodeTypeTh = "TH" + + // LanguageCodeTypeTr is a LanguageCodeType enum value + LanguageCodeTypeTr = "TR" + + // LanguageCodeTypeZh is a LanguageCodeType enum value + LanguageCodeTypeZh = "ZH" + + // LanguageCodeTypeDefault is a LanguageCodeType enum value + LanguageCodeTypeDefault = "DEFAULT" +) + +// LanguageCodeType_Values returns all elements of the LanguageCodeType enum +func LanguageCodeType_Values() []string { + return []string{ + LanguageCodeTypeAr, + LanguageCodeTypeBg, + LanguageCodeTypeBn, + LanguageCodeTypeDa, + LanguageCodeTypeDe, + LanguageCodeTypeCs, + LanguageCodeTypeEl, + LanguageCodeTypeEn, + LanguageCodeTypeEs, + LanguageCodeTypeFa, + LanguageCodeTypeFi, + LanguageCodeTypeFr, + LanguageCodeTypeHi, + LanguageCodeTypeHu, + LanguageCodeTypeId, + LanguageCodeTypeIt, + LanguageCodeTypeJa, + LanguageCodeTypeKo, + LanguageCodeTypeLt, + LanguageCodeTypeLv, + LanguageCodeTypeNl, + LanguageCodeTypeNo, + LanguageCodeTypePt, + LanguageCodeTypeRo, + LanguageCodeTypeRu, + LanguageCodeTypeSv, + LanguageCodeTypeSw, + LanguageCodeTypeTh, + LanguageCodeTypeTr, + LanguageCodeTypeZh, + LanguageCodeTypeDefault, + } +} + const ( // LocaleTypeEn is a LocaleType enum value LocaleTypeEn = "en" @@ -13462,6 +14817,34 @@ func LocaleType_Values() []string { } } +const ( + // OrderByFieldTypeRelevance is a OrderByFieldType enum value + OrderByFieldTypeRelevance = "RELEVANCE" + + // OrderByFieldTypeName is a OrderByFieldType enum value + OrderByFieldTypeName = "NAME" + + // OrderByFieldTypeSize is a OrderByFieldType enum value + OrderByFieldTypeSize = "SIZE" + + // OrderByFieldTypeCreatedTimestamp is a OrderByFieldType enum value + OrderByFieldTypeCreatedTimestamp = "CREATED_TIMESTAMP" + + // OrderByFieldTypeModifiedTimestamp is a OrderByFieldType enum value + OrderByFieldTypeModifiedTimestamp = "MODIFIED_TIMESTAMP" +) + +// OrderByFieldType_Values returns all elements of the OrderByFieldType enum +func OrderByFieldType_Values() []string { + return []string{ + OrderByFieldTypeRelevance, + OrderByFieldTypeName, + OrderByFieldTypeSize, + OrderByFieldTypeCreatedTimestamp, + OrderByFieldTypeModifiedTimestamp, + } +} + const ( // OrderTypeAscending is a OrderType enum value OrderTypeAscending = "ASCENDING" @@ -13478,6 +14861,30 @@ func OrderType_Values() []string { } } +const ( + // PrincipalRoleTypeViewer is a PrincipalRoleType enum value + PrincipalRoleTypeViewer = "VIEWER" + + // PrincipalRoleTypeContributor is a PrincipalRoleType enum value + PrincipalRoleTypeContributor = "CONTRIBUTOR" + + // PrincipalRoleTypeOwner is a PrincipalRoleType enum value + PrincipalRoleTypeOwner = "OWNER" + + // PrincipalRoleTypeCoowner is a PrincipalRoleType enum value + PrincipalRoleTypeCoowner = "COOWNER" +) + +// PrincipalRoleType_Values returns all elements of the PrincipalRoleType enum +func PrincipalRoleType_Values() []string { + return []string{ + PrincipalRoleTypeViewer, + PrincipalRoleTypeContributor, + PrincipalRoleTypeOwner, + PrincipalRoleTypeCoowner, + } +} + const ( // PrincipalTypeUser is a PrincipalType enum value PrincipalTypeUser = "USER" @@ -13574,6 +14981,30 @@ func ResourceType_Values() []string { } } +const ( + // ResponseItemTypeDocument is a ResponseItemType enum value + ResponseItemTypeDocument = "DOCUMENT" + + // ResponseItemTypeFolder is a ResponseItemType enum value + ResponseItemTypeFolder = "FOLDER" + + // ResponseItemTypeComment is a ResponseItemType enum value + ResponseItemTypeComment = "COMMENT" + + // ResponseItemTypeDocumentVersion is a ResponseItemType enum value + ResponseItemTypeDocumentVersion = "DOCUMENT_VERSION" +) + +// ResponseItemType_Values returns all elements of the ResponseItemType enum +func ResponseItemType_Values() []string { + return []string{ + ResponseItemTypeDocument, + ResponseItemTypeFolder, + ResponseItemTypeComment, + ResponseItemTypeDocumentVersion, + } +} + const ( // RolePermissionTypeDirect is a RolePermissionType enum value RolePermissionTypeDirect = "DIRECT" @@ -13614,6 +15045,62 @@ func RoleType_Values() []string { } } +const ( + // SearchCollectionTypeOwned is a SearchCollectionType enum value + SearchCollectionTypeOwned = "OWNED" + + // SearchCollectionTypeSharedWithMe is a SearchCollectionType enum value + SearchCollectionTypeSharedWithMe = "SHARED_WITH_ME" +) + +// SearchCollectionType_Values returns all elements of the SearchCollectionType enum +func SearchCollectionType_Values() []string { + return []string{ + SearchCollectionTypeOwned, + SearchCollectionTypeSharedWithMe, + } +} + +const ( + // SearchQueryScopeTypeName is a SearchQueryScopeType enum value + SearchQueryScopeTypeName = "NAME" + + // SearchQueryScopeTypeContent is a SearchQueryScopeType enum value + SearchQueryScopeTypeContent = "CONTENT" +) + +// SearchQueryScopeType_Values returns all elements of the SearchQueryScopeType enum +func SearchQueryScopeType_Values() []string { + return []string{ + SearchQueryScopeTypeName, + SearchQueryScopeTypeContent, + } +} + +const ( + // SearchResourceTypeFolder is a SearchResourceType enum value + SearchResourceTypeFolder = "FOLDER" + + // SearchResourceTypeDocument is a SearchResourceType enum value + SearchResourceTypeDocument = "DOCUMENT" + + // SearchResourceTypeComment is a SearchResourceType enum value + SearchResourceTypeComment = "COMMENT" + + // SearchResourceTypeDocumentVersion is a SearchResourceType enum value + SearchResourceTypeDocumentVersion = "DOCUMENT_VERSION" +) + +// SearchResourceType_Values returns all elements of the SearchResourceType enum +func SearchResourceType_Values() []string { + return []string{ + SearchResourceTypeFolder, + SearchResourceTypeDocument, + SearchResourceTypeComment, + SearchResourceTypeDocumentVersion, + } +} + const ( // ShareStatusTypeSuccess is a ShareStatusType enum value ShareStatusTypeSuccess = "SUCCESS" @@ -13630,6 +15117,22 @@ func ShareStatusType_Values() []string { } } +const ( + // SortOrderAsc is a SortOrder enum value + SortOrderAsc = "ASC" + + // SortOrderDesc is a SortOrder enum value + SortOrderDesc = "DESC" +) + +// SortOrder_Values returns all elements of the SortOrder enum +func SortOrder_Values() []string { + return []string{ + SortOrderAsc, + SortOrderDesc, + } +} + const ( // StorageTypeUnlimited is a StorageType enum value StorageTypeUnlimited = "UNLIMITED" diff --git a/service/workdocs/workdocsiface/interface.go b/service/workdocs/workdocsiface/interface.go index 1a5357592d0..91fea5ab40e 100644 --- a/service/workdocs/workdocsiface/interface.go +++ b/service/workdocs/workdocsiface/interface.go @@ -140,10 +140,16 @@ type WorkDocsAPI interface { DescribeActivitiesWithContext(aws.Context, *workdocs.DescribeActivitiesInput, ...request.Option) (*workdocs.DescribeActivitiesOutput, error) DescribeActivitiesRequest(*workdocs.DescribeActivitiesInput) (*request.Request, *workdocs.DescribeActivitiesOutput) + DescribeActivitiesPages(*workdocs.DescribeActivitiesInput, func(*workdocs.DescribeActivitiesOutput, bool) bool) error + DescribeActivitiesPagesWithContext(aws.Context, *workdocs.DescribeActivitiesInput, func(*workdocs.DescribeActivitiesOutput, bool) bool, ...request.Option) error + DescribeComments(*workdocs.DescribeCommentsInput) (*workdocs.DescribeCommentsOutput, error) DescribeCommentsWithContext(aws.Context, *workdocs.DescribeCommentsInput, ...request.Option) (*workdocs.DescribeCommentsOutput, error) DescribeCommentsRequest(*workdocs.DescribeCommentsInput) (*request.Request, *workdocs.DescribeCommentsOutput) + DescribeCommentsPages(*workdocs.DescribeCommentsInput, func(*workdocs.DescribeCommentsOutput, bool) bool) error + DescribeCommentsPagesWithContext(aws.Context, *workdocs.DescribeCommentsInput, func(*workdocs.DescribeCommentsOutput, bool) bool, ...request.Option) error + DescribeDocumentVersions(*workdocs.DescribeDocumentVersionsInput) (*workdocs.DescribeDocumentVersionsOutput, error) DescribeDocumentVersionsWithContext(aws.Context, *workdocs.DescribeDocumentVersionsInput, ...request.Option) (*workdocs.DescribeDocumentVersionsOutput, error) DescribeDocumentVersionsRequest(*workdocs.DescribeDocumentVersionsInput) (*request.Request, *workdocs.DescribeDocumentVersionsOutput) @@ -162,18 +168,30 @@ type WorkDocsAPI interface { DescribeGroupsWithContext(aws.Context, *workdocs.DescribeGroupsInput, ...request.Option) (*workdocs.DescribeGroupsOutput, error) DescribeGroupsRequest(*workdocs.DescribeGroupsInput) (*request.Request, *workdocs.DescribeGroupsOutput) + DescribeGroupsPages(*workdocs.DescribeGroupsInput, func(*workdocs.DescribeGroupsOutput, bool) bool) error + DescribeGroupsPagesWithContext(aws.Context, *workdocs.DescribeGroupsInput, func(*workdocs.DescribeGroupsOutput, bool) bool, ...request.Option) error + DescribeNotificationSubscriptions(*workdocs.DescribeNotificationSubscriptionsInput) (*workdocs.DescribeNotificationSubscriptionsOutput, error) DescribeNotificationSubscriptionsWithContext(aws.Context, *workdocs.DescribeNotificationSubscriptionsInput, ...request.Option) (*workdocs.DescribeNotificationSubscriptionsOutput, error) DescribeNotificationSubscriptionsRequest(*workdocs.DescribeNotificationSubscriptionsInput) (*request.Request, *workdocs.DescribeNotificationSubscriptionsOutput) + DescribeNotificationSubscriptionsPages(*workdocs.DescribeNotificationSubscriptionsInput, func(*workdocs.DescribeNotificationSubscriptionsOutput, bool) bool) error + DescribeNotificationSubscriptionsPagesWithContext(aws.Context, *workdocs.DescribeNotificationSubscriptionsInput, func(*workdocs.DescribeNotificationSubscriptionsOutput, bool) bool, ...request.Option) error + DescribeResourcePermissions(*workdocs.DescribeResourcePermissionsInput) (*workdocs.DescribeResourcePermissionsOutput, error) DescribeResourcePermissionsWithContext(aws.Context, *workdocs.DescribeResourcePermissionsInput, ...request.Option) (*workdocs.DescribeResourcePermissionsOutput, error) DescribeResourcePermissionsRequest(*workdocs.DescribeResourcePermissionsInput) (*request.Request, *workdocs.DescribeResourcePermissionsOutput) + DescribeResourcePermissionsPages(*workdocs.DescribeResourcePermissionsInput, func(*workdocs.DescribeResourcePermissionsOutput, bool) bool) error + DescribeResourcePermissionsPagesWithContext(aws.Context, *workdocs.DescribeResourcePermissionsInput, func(*workdocs.DescribeResourcePermissionsOutput, bool) bool, ...request.Option) error + DescribeRootFolders(*workdocs.DescribeRootFoldersInput) (*workdocs.DescribeRootFoldersOutput, error) DescribeRootFoldersWithContext(aws.Context, *workdocs.DescribeRootFoldersInput, ...request.Option) (*workdocs.DescribeRootFoldersOutput, error) DescribeRootFoldersRequest(*workdocs.DescribeRootFoldersInput) (*request.Request, *workdocs.DescribeRootFoldersOutput) + DescribeRootFoldersPages(*workdocs.DescribeRootFoldersInput, func(*workdocs.DescribeRootFoldersOutput, bool) bool) error + DescribeRootFoldersPagesWithContext(aws.Context, *workdocs.DescribeRootFoldersInput, func(*workdocs.DescribeRootFoldersOutput, bool) bool, ...request.Option) error + DescribeUsers(*workdocs.DescribeUsersInput) (*workdocs.DescribeUsersOutput, error) DescribeUsersWithContext(aws.Context, *workdocs.DescribeUsersInput, ...request.Option) (*workdocs.DescribeUsersOutput, error) DescribeUsersRequest(*workdocs.DescribeUsersInput) (*request.Request, *workdocs.DescribeUsersOutput) @@ -225,6 +243,13 @@ type WorkDocsAPI interface { RestoreDocumentVersionsWithContext(aws.Context, *workdocs.RestoreDocumentVersionsInput, ...request.Option) (*workdocs.RestoreDocumentVersionsOutput, error) RestoreDocumentVersionsRequest(*workdocs.RestoreDocumentVersionsInput) (*request.Request, *workdocs.RestoreDocumentVersionsOutput) + SearchResources(*workdocs.SearchResourcesInput) (*workdocs.SearchResourcesOutput, error) + SearchResourcesWithContext(aws.Context, *workdocs.SearchResourcesInput, ...request.Option) (*workdocs.SearchResourcesOutput, error) + SearchResourcesRequest(*workdocs.SearchResourcesInput) (*request.Request, *workdocs.SearchResourcesOutput) + + SearchResourcesPages(*workdocs.SearchResourcesInput, func(*workdocs.SearchResourcesOutput, bool) bool) error + SearchResourcesPagesWithContext(aws.Context, *workdocs.SearchResourcesInput, func(*workdocs.SearchResourcesOutput, bool) bool, ...request.Option) error + UpdateDocument(*workdocs.UpdateDocumentInput) (*workdocs.UpdateDocumentOutput, error) UpdateDocumentWithContext(aws.Context, *workdocs.UpdateDocumentInput, ...request.Option) (*workdocs.UpdateDocumentOutput, error) UpdateDocumentRequest(*workdocs.UpdateDocumentInput) (*request.Request, *workdocs.UpdateDocumentOutput)