From 7765b5509c719ac9c6a744097fe499e780a9aed7 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Wed, 24 Nov 2021 11:14:30 -0800 Subject: [PATCH] Release v1.42.12 (2021-11-24) (#4187) Release v1.42.12 (2021-11-24) === ### Service Client Updates * `service/autoscaling`: Updates service API and documentation * Customers can now configure predictive scaling policies to proactively scale EC2 Auto Scaling groups based on any CloudWatch metrics that more accurately represent the load on the group than the four predefined metrics. They can also use math expressions to further customize the metrics. * `service/customer-profiles`: Updates service API and documentation * `service/elasticache`: Updates service documentation * Doc only update for ElastiCache * `service/imagebuilder`: Updates service API and documentation * `service/iotsitewise`: Updates service API, documentation, and paginators * `service/lambda`: Updates service API, documentation, and paginators * Remove Lambda function url apis * `service/proton`: Updates service API, documentation, and paginators * `service/timestream-query`: Updates service API, documentation, and paginators * `service/timestream-write`: Updates service API and documentation * `service/translate`: Updates service API and documentation ### SDK Bugs * `aws/crr`: Fixed a race condition that caused concurrent calls relying on endpoint discovery to share the same `url.URL` reference in their operation's `http.Request`. --- CHANGELOG.md | 21 + CHANGELOG_PENDING.md | 1 - aws/version.go | 2 +- models/apis/autoscaling/2011-01-01/api-2.json | 77 +- .../apis/autoscaling/2011-01-01/docs-2.json | 90 +- .../customer-profiles/2020-08-15/api-2.json | 310 +- .../customer-profiles/2020-08-15/docs-2.json | 220 +- .../apis/elasticache/2015-02-02/docs-2.json | 34 +- .../apis/imagebuilder/2019-12-02/api-2.json | 28 +- .../apis/imagebuilder/2019-12-02/docs-2.json | 30 +- models/apis/iotsitewise/2019-12-02/api-2.json | 286 +- .../apis/iotsitewise/2019-12-02/docs-2.json | 131 +- .../iotsitewise/2019-12-02/paginators-1.json | 6 + models/apis/lambda/2015-03-31/api-2.json | 326 - models/apis/lambda/2015-03-31/docs-2.json | 209 +- .../apis/lambda/2015-03-31/paginators-1.json | 6 - models/apis/proton/2020-07-20/api-2.json | 978 +- models/apis/proton/2020-07-20/docs-2.json | 811 +- .../apis/proton/2020-07-20/paginators-1.json | 41 + .../timestream-query/2018-11-01/api-2.json | 751 +- .../timestream-query/2018-11-01/docs-2.json | 552 +- .../2018-11-01/paginators-1.json | 12 + .../timestream-write/2018-11-01/api-2.json | 121 +- .../timestream-write/2018-11-01/docs-2.json | 152 +- models/apis/translate/2017-07-01/api-2.json | 22 +- models/apis/translate/2017-07-01/docs-2.json | 27 +- service/autoscaling/api.go | 550 +- service/customerprofiles/api.go | 1825 ++- .../customerprofilesiface/interface.go | 12 + service/elasticache/api.go | 332 +- service/imagebuilder/api.go | 37 +- service/iotsitewise/api.go | 1807 ++- .../iotsitewise/iotsitewiseiface/interface.go | 23 + service/lambda/api.go | 1480 +- service/lambda/lambdaiface/interface.go | 23 - service/proton/api.go | 12948 +++++++++++----- service/proton/doc.go | 37 +- service/proton/errors.go | 4 +- service/proton/protoniface/interface.go | 96 + service/timestreamquery/api.go | 5500 ++++++- service/timestreamquery/doc.go | 2 + service/timestreamquery/errors.go | 30 +- .../timestreamqueryiface/interface.go | 46 + service/timestreamwrite/api.go | 679 +- service/timestreamwrite/errors.go | 10 +- service/translate/api.go | 142 +- 46 files changed, 23669 insertions(+), 7158 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68041a7997..fd3100ebbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +Release v1.42.12 (2021-11-24) +=== + +### Service Client Updates +* `service/autoscaling`: Updates service API and documentation + * Customers can now configure predictive scaling policies to proactively scale EC2 Auto Scaling groups based on any CloudWatch metrics that more accurately represent the load on the group than the four predefined metrics. They can also use math expressions to further customize the metrics. +* `service/customer-profiles`: Updates service API and documentation +* `service/elasticache`: Updates service documentation + * Doc only update for ElastiCache +* `service/imagebuilder`: Updates service API and documentation +* `service/iotsitewise`: Updates service API, documentation, and paginators +* `service/lambda`: Updates service API, documentation, and paginators + * Remove Lambda function url apis +* `service/proton`: Updates service API, documentation, and paginators +* `service/timestream-query`: Updates service API, documentation, and paginators +* `service/timestream-write`: Updates service API and documentation +* `service/translate`: Updates service API and documentation + +### SDK Bugs +* `aws/crr`: Fixed a race condition that caused concurrent calls relying on endpoint discovery to share the same `url.URL` reference in their operation's `http.Request`. + Release v1.42.11 (2021-11-23) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 397d85bc53..8a1927a39c 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -3,4 +3,3 @@ ### SDK Enhancements ### SDK Bugs -* `aws/crr`: Fixed a race condition that caused concurrent calls relying on endpoint discovery to share the same `url.URL` reference in their operation's `http.Request`. diff --git a/aws/version.go b/aws/version.go index 1655bdbd0d..c1c3a395dc 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.42.11" +const SDKVersion = "1.42.12" diff --git a/models/apis/autoscaling/2011-01-01/api-2.json b/models/apis/autoscaling/2011-01-01/api-2.json index f88d2460cb..9640c6b08d 100644 --- a/models/apis/autoscaling/2011-01-01/api-2.json +++ b/models/apis/autoscaling/2011-01-01/api-2.json @@ -2401,6 +2401,18 @@ "Max":{"shape":"NullablePositiveInteger"} } }, + "Metric":{ + "type":"structure", + "required":[ + "Namespace", + "MetricName" + ], + "members":{ + "Namespace":{"shape":"MetricNamespace"}, + "MetricName":{"shape":"MetricName"}, + "Dimensions":{"shape":"MetricDimensions"} + } + }, "MetricCollectionType":{ "type":"structure", "members":{ @@ -2411,6 +2423,21 @@ "type":"list", "member":{"shape":"MetricCollectionType"} }, + "MetricDataQueries":{ + "type":"list", + "member":{"shape":"MetricDataQuery"} + }, + "MetricDataQuery":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"XmlStringMaxLen255"}, + "Expression":{"shape":"XmlStringMaxLen1023"}, + "MetricStat":{"shape":"MetricStat"}, + "Label":{"shape":"XmlStringMetricLabel"}, + "ReturnData":{"shape":"ReturnData"} + } + }, "MetricDimension":{ "type":"structure", "required":[ @@ -2441,6 +2468,18 @@ "MetricName":{"type":"string"}, "MetricNamespace":{"type":"string"}, "MetricScale":{"type":"double"}, + "MetricStat":{ + "type":"structure", + "required":[ + "Metric", + "Stat" + ], + "members":{ + "Metric":{"shape":"Metric"}, + "Stat":{"shape":"XmlStringMetricStat"}, + "Unit":{"shape":"MetricUnit"} + } + }, "MetricStatistic":{ "type":"string", "enum":[ @@ -2600,6 +2639,27 @@ "MaxCapacityBuffer":{"shape":"PredictiveScalingMaxCapacityBuffer"} } }, + "PredictiveScalingCustomizedCapacityMetric":{ + "type":"structure", + "required":["MetricDataQueries"], + "members":{ + "MetricDataQueries":{"shape":"MetricDataQueries"} + } + }, + "PredictiveScalingCustomizedLoadMetric":{ + "type":"structure", + "required":["MetricDataQueries"], + "members":{ + "MetricDataQueries":{"shape":"MetricDataQueries"} + } + }, + "PredictiveScalingCustomizedScalingMetric":{ + "type":"structure", + "required":["MetricDataQueries"], + "members":{ + "MetricDataQueries":{"shape":"MetricDataQueries"} + } + }, "PredictiveScalingForecastTimestamps":{ "type":"list", "member":{"shape":"TimestampType"} @@ -2627,7 +2687,10 @@ "TargetValue":{"shape":"MetricScale"}, "PredefinedMetricPairSpecification":{"shape":"PredictiveScalingPredefinedMetricPair"}, "PredefinedScalingMetricSpecification":{"shape":"PredictiveScalingPredefinedScalingMetric"}, - "PredefinedLoadMetricSpecification":{"shape":"PredictiveScalingPredefinedLoadMetric"} + "PredefinedLoadMetricSpecification":{"shape":"PredictiveScalingPredefinedLoadMetric"}, + "CustomizedScalingMetricSpecification":{"shape":"PredictiveScalingCustomizedScalingMetric"}, + "CustomizedLoadMetricSpecification":{"shape":"PredictiveScalingCustomizedLoadMetric"}, + "CustomizedCapacityMetricSpecification":{"shape":"PredictiveScalingCustomizedCapacityMetric"} } }, "PredictiveScalingMetricSpecifications":{ @@ -2851,6 +2914,7 @@ "min":1, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, + "ReturnData":{"type":"boolean"}, "ScalingActivityInProgressFault":{ "type":"structure", "members":{ @@ -3270,6 +3334,17 @@ "min":1, "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" }, + "XmlStringMetricLabel":{ + "type":"string", + "max":2047, + "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + }, + "XmlStringMetricStat":{ + "type":"string", + "max":100, + "min":1, + "pattern":"[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDC00-\\uDBFF\\uDFFF\\r\\n\\t]*" + }, "XmlStringUserData":{ "type":"string", "max":21847, diff --git a/models/apis/autoscaling/2011-01-01/docs-2.json b/models/apis/autoscaling/2011-01-01/docs-2.json index b4b2653713..56c34fc438 100644 --- a/models/apis/autoscaling/2011-01-01/docs-2.json +++ b/models/apis/autoscaling/2011-01-01/docs-2.json @@ -1290,6 +1290,12 @@ "InstanceRequirements$MemoryMiB": "
The minimum and maximum instance memory size for an instance type, in MiB.
" } }, + "Metric": { + "base": "Represents a specific metric.
", + "refs": { + "MetricStat$Metric": "The CloudWatch metric to return, including the metric name, namespace, and dimensions. To get the exact metric name, namespace, and dimensions, inspect the Metric object that is returned by a call to ListMetrics.
" + } + }, "MetricCollectionType": { "base": "Describes a metric.
", "refs": { @@ -1302,6 +1308,20 @@ "DescribeMetricCollectionTypesAnswer$Metrics": "One or more metrics.
" } }, + "MetricDataQueries": { + "base": null, + "refs": { + "PredictiveScalingCustomizedCapacityMetric$MetricDataQueries": "One or more metric data queries to provide the data points for a capacity metric. Use multiple metric data queries only if you are performing a math expression on returned data.
", + "PredictiveScalingCustomizedLoadMetric$MetricDataQueries": "One or more metric data queries to provide the data points for a load metric. Use multiple metric data queries only if you are performing a math expression on returned data.
", + "PredictiveScalingCustomizedScalingMetric$MetricDataQueries": "One or more metric data queries to provide the data points for a scaling metric. Use multiple metric data queries only if you are performing a math expression on returned data.
" + } + }, + "MetricDataQuery": { + "base": "The metric data to return. Also defines whether this call is returning data for one metric only, or whether it is performing a math expression on the values of returned metric statistics to create a new time series. A time series is a series of data points, each of which is associated with a timestamp.
For more information and examples, see Advanced predictive scaling policy configurations using customized metrics in the Amazon EC2 Auto Scaling User Guide.
", + "refs": { + "MetricDataQueries$member": null + } + }, "MetricDimension": { "base": "Describes the dimension of a metric.
", "refs": { @@ -1323,7 +1343,8 @@ "MetricDimensions": { "base": null, "refs": { - "CustomizedMetricSpecification$Dimensions": "The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
" + "CustomizedMetricSpecification$Dimensions": "The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
", + "Metric$Dimensions": "The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
" } }, "MetricGranularityType": { @@ -1341,13 +1362,15 @@ "MetricName": { "base": null, "refs": { - "CustomizedMetricSpecification$MetricName": "The name of the metric.
" + "CustomizedMetricSpecification$MetricName": "The name of the metric.
", + "Metric$MetricName": "The name of the metric.
" } }, "MetricNamespace": { "base": null, "refs": { - "CustomizedMetricSpecification$Namespace": "The namespace of the metric.
" + "CustomizedMetricSpecification$Namespace": "The namespace of the metric.
", + "Metric$Namespace": "The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
" } }, "MetricScale": { @@ -1356,12 +1379,18 @@ "ExecutePolicyType$MetricValue": "The metric value to compare to BreachThreshold
. This enables you to execute a policy of type StepScaling
and determine which step adjustment to use. For example, if the breach threshold is 50 and you want to use a step adjustment with a lower bound of 0 and an upper bound of 10, you can set the metric value to 59.
If you specify a metric value that doesn't correspond to a step adjustment for the policy, the call returns an error.
Required if the policy type is StepScaling
and not supported otherwise.
The breach threshold for the alarm.
Required if the policy type is StepScaling
and not supported otherwise.
Specifies the target utilization.
", + "PredictiveScalingMetricSpecification$TargetValue": "Specifies the target utilization.
Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
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.
", "TargetTrackingConfiguration$TargetValue": "The target value for the metric.
" } }, + "MetricStat": { + "base": "This structure defines the CloudWatch metric to return, along with the statistic, period, and unit.
For more information about the CloudWatch terminology below, see Amazon CloudWatch concepts in the Amazon CloudWatch User Guide.
", + "refs": { + "MetricDataQuery$MetricStat": "Information about the metric data to return.
Conditional: Within each MetricDataQuery
object, you must specify either Expression
or MetricStat
, but not both.
The unit of the metric.
" + "CustomizedMetricSpecification$Unit": "The unit of the metric.
", + "MetricStat$Unit": "The unit to use for the returned data points. For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference.
" } }, "Metrics": { @@ -1585,11 +1615,29 @@ "ScalingPolicy$PredictiveScalingConfiguration": "A predictive scaling policy.
" } }, + "PredictiveScalingCustomizedCapacityMetric": { + "base": "Describes a customized capacity metric for a predictive scaling policy.
", + "refs": { + "PredictiveScalingMetricSpecification$CustomizedCapacityMetricSpecification": "The customized capacity metric specification.
" + } + }, + "PredictiveScalingCustomizedLoadMetric": { + "base": "Describes a customized load metric for a predictive scaling policy.
", + "refs": { + "PredictiveScalingMetricSpecification$CustomizedLoadMetricSpecification": "The customized load metric specification.
" + } + }, + "PredictiveScalingCustomizedScalingMetric": { + "base": "Describes a customized scaling metric for a predictive scaling policy.
", + "refs": { + "PredictiveScalingMetricSpecification$CustomizedScalingMetricSpecification": "The customized scaling metric specification.
" + } + }, "PredictiveScalingForecastTimestamps": { "base": null, "refs": { - "CapacityForecast$Timestamps": "The time stamps for the data points, in UTC format.
", - "LoadForecast$Timestamps": "The time stamps for the data points, in UTC format.
" + "CapacityForecast$Timestamps": "The timestamps for the data points, in UTC format.
", + "LoadForecast$Timestamps": "The timestamps for the data points, in UTC format.
" } }, "PredictiveScalingForecastValues": { @@ -1612,7 +1660,7 @@ } }, "PredictiveScalingMetricSpecification": { - "base": "This structure specifies the metrics and target utilization settings for a predictive scaling policy.
You must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.
Example
You create a predictive scaling policy and specify ALBRequestCount
as the value for the metric pair and 1000.0
as the target value. For this type of metric, you must provide the metric dimension for the corresponding target group, so you also provide a resource label for the Application Load Balancer target group that is attached to your Auto Scaling group.
The number of requests the target group receives per minute provides the load metric, and the request count averaged between the members of the target group provides the scaling metric. In CloudWatch, this refers to the RequestCount
and RequestCountPerTarget
metrics, respectively.
For optimal use of predictive scaling, you adhere to the best practice of using a dynamic scaling policy to automatically scale between the minimum capacity and maximum capacity in response to real-time changes in resource utilization.
Amazon EC2 Auto Scaling consumes data points for the load metric over the last 14 days and creates an hourly load forecast for predictive scaling. (A minimum of 24 hours of data is required.)
After creating the load forecast, Amazon EC2 Auto Scaling determines when to reduce or increase the capacity of your Auto Scaling group in each hour of the forecast period so that the average number of requests received by each instance is as close to 1000 requests per minute as possible at all times.
This structure specifies the metrics and target utilization settings for a predictive scaling policy.
You must specify either a metric pair, or a load metric and a scaling metric individually. Specifying a metric pair instead of individual metrics provides a simpler way to configure metrics for a scaling policy. You choose the metric pair, and the policy automatically knows the correct sum and average statistics to use for the load metric and the scaling metric.
Example
You create a predictive scaling policy and specify ALBRequestCount
as the value for the metric pair and 1000.0
as the target value. For this type of metric, you must provide the metric dimension for the corresponding target group, so you also provide a resource label for the Application Load Balancer target group that is attached to your Auto Scaling group.
The number of requests the target group receives per minute provides the load metric, and the request count averaged between the members of the target group provides the scaling metric. In CloudWatch, this refers to the RequestCount
and RequestCountPerTarget
metrics, respectively.
For optimal use of predictive scaling, you adhere to the best practice of using a dynamic scaling policy to automatically scale between the minimum capacity and maximum capacity in response to real-time changes in resource utilization.
Amazon EC2 Auto Scaling consumes data points for the load metric over the last 14 days and creates an hourly load forecast for predictive scaling. (A minimum of 24 hours of data is required.)
After creating the load forecast, Amazon EC2 Auto Scaling determines when to reduce or increase the capacity of your Auto Scaling group in each hour of the forecast period so that the average number of requests received by each instance is as close to 1000 requests per minute as possible at all times.
For information about using customized metrics with predictive scaling, see Advanced predictive scaling policy configurations using customized metrics in the Amazon EC2 Auto Scaling User Guide.
", "refs": { "LoadForecast$MetricSpecification": "The metric specification for the load forecast.
", "PredictiveScalingMetricSpecifications$member": null @@ -1633,19 +1681,19 @@ "PredictiveScalingPredefinedLoadMetric": { "base": "Describes a load metric for a predictive scaling policy.
When returned in the output of DescribePolicies
, it indicates that a predictive scaling policy uses individually specified load and scaling metrics instead of a metric pair.
The load metric specification.
" + "PredictiveScalingMetricSpecification$PredefinedLoadMetricSpecification": "The predefined load metric specification.
" } }, "PredictiveScalingPredefinedMetricPair": { "base": "Represents a metric pair for a predictive scaling policy.
", "refs": { - "PredictiveScalingMetricSpecification$PredefinedMetricPairSpecification": "The metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.
" + "PredictiveScalingMetricSpecification$PredefinedMetricPairSpecification": "The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.
" } }, "PredictiveScalingPredefinedScalingMetric": { "base": "Describes a scaling metric for a predictive scaling policy.
When returned in the output of DescribePolicies
, it indicates that a predictive scaling policy uses individually specified load and scaling metrics instead of a metric pair.
The scaling metric specification.
" + "PredictiveScalingMetricSpecification$PredefinedScalingMetricSpecification": "The predefined scaling metric specification.
" } }, "PredictiveScalingSchedulingBufferTime": { @@ -1790,6 +1838,12 @@ "UpdateAutoScalingGroupType$ServiceLinkedRoleARN": "The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other Amazon Web Services on your behalf. For more information, see Service-linked roles in the Amazon EC2 Auto Scaling User Guide.
" } }, + "ReturnData": { + "base": null, + "refs": { + "MetricDataQuery$ReturnData": "Indicates whether to return the timestamps and raw data values of this metric.
If you use any math expressions, specify True
for this value for only the final math expression that the metric specification is based on. You must specify False
for ReturnData
for all the other metrics and expressions used in the metric specification.
If you are only retrieving metrics and not performing any math expressions, do not specify anything for ReturnData
. This sets it to its default (True
).
The operation can't be performed because there are scaling activities in progress.
", "refs": { @@ -2168,6 +2222,7 @@ "InstanceRefresh$StatusReason": "Provides more details about the current status of the instance refresh.
", "LifecycleHook$NotificationMetadata": "Additional information that is included any time Amazon EC2 Auto Scaling sends a message to the notification target.
", "LifecycleHookSpecification$NotificationMetadata": "Additional information that you want to include any time Amazon EC2 Auto Scaling sends a message to the notification target.
", + "MetricDataQuery$Expression": "The math expression to perform on the returned data, if this object is performing a math expression. This expression can use the Id
of the other metrics to refer to those metrics, and can also use the Id
of other expressions to use the result of those expressions.
For example, to use search expressions, use the SEARCH() function in your metric math expression to combine multiple metrics from Auto Scaling groups that use a specific name prefix.
Conditional: Within each MetricDataQuery
object, you must specify either Expression
or MetricStat
, but not both.
A label that uniquely identifies a specific Application Load Balancer target group from which to determine the average request count served by your Auto Scaling group. You can't specify a resource label unless the target group is attached to the Auto Scaling group.
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:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
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.
", "PredictiveScalingPredefinedLoadMetric$ResourceLabel": "A label that uniquely identifies a specific Application Load Balancer target group from which to determine the request count served by your Auto Scaling group. You can't specify a resource label unless the target group is attached to the Auto Scaling group.
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:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
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.
", "PredictiveScalingPredefinedMetricPair$ResourceLabel": "A label that uniquely identifies a specific Application Load Balancer target group from which to determine the total and average request count served by your Auto Scaling group. You can't specify a resource label unless the target group is attached to the Auto Scaling group.
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:
app/<load-balancer-name>/<load-balancer-id> is the final portion of the load balancer ARN
targetgroup/<target-group-name>/<target-group-id> is the final portion of the target group ARN.
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.
", @@ -2307,6 +2362,7 @@ "LoadBalancerState$State": "One of the following load balancer states:
Adding
- The Auto Scaling instances are being registered with the load balancer.
Added
- All Auto Scaling instances are registered with the load balancer.
InService
- At least one Auto Scaling instance passed an ELB
health check.
Removing
- The Auto Scaling instances are being deregistered from the load balancer. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
Removed
- All Auto Scaling instances are deregistered from the load balancer.
The state of the target group.
Adding
- The Auto Scaling instances are being registered with the target group.
Added
- All Auto Scaling instances are registered with the target group.
InService
- At least one Auto Scaling instance passed an ELB
health check.
Removing
- The Auto Scaling instances are being deregistered from the target group. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.
Removed
- All Auto Scaling instances are deregistered from the target group.
One of the following metrics:
GroupMinSize
GroupMaxSize
GroupDesiredCapacity
GroupInServiceInstances
GroupPendingInstances
GroupStandbyInstances
GroupTerminatingInstances
GroupTotalInstances
GroupInServiceCapacity
GroupPendingCapacity
GroupStandbyCapacity
GroupTerminatingCapacity
GroupTotalCapacity
WarmPoolDesiredCapacity
WarmPoolWarmedCapacity
WarmPoolPendingCapacity
WarmPoolTerminatingCapacity
WarmPoolTotalCapacity
GroupAndWarmPoolDesiredCapacity
GroupAndWarmPoolTotalCapacity
A short name that identifies the object's results in the response. This name must be unique among all MetricDataQuery
objects specified for a single scaling policy. If you are performing math expressions on this set of data, this name represents that data and can serve as a variable in the mathematical expression. The valid characters are letters, numbers, and underscores. The first character must be a lowercase letter.
The granularity. The only valid value is 1Minute
.
The name of the Auto Scaling group.
", @@ -2389,6 +2445,18 @@ "ScalingPolicy$PolicyType": "One of the following policy types:
TargetTrackingScaling
StepScaling
SimpleScaling
(default)
PredictiveScaling
For more information, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide.
" } }, + "XmlStringMetricLabel": { + "base": null, + "refs": { + "MetricDataQuery$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.
" + } + }, + "XmlStringMetricStat": { + "base": null, + "refs": { + "MetricStat$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 predictive scaling are Average
and Sum
.
Welcome to the Amazon Connect Customer Profiles API Reference. This guide provides information about the Amazon Connect Customer Profiles API, including supported operations, data types, parameters, and schemas.
Amazon Connect Customer Profiles is a unified customer profile for your contact center that has pre-built connectors powered by AppFlow that make it easy to combine customer information from third party applications, such as Salesforce (CRM), ServiceNow (ITSM), and your enterprise resource planning (ERP), with contact history from your Amazon Connect contact center.
If you're new to Amazon Connect , you might find it helpful to also review the Amazon Connect Administrator Guide.
", "operations": { "AddProfileKey": "Associates a new key value with a specific profile, such as a Contact Trace Record (CTR) ContactId.
A profile object can have a single unique key and any number of additional keys that can be used to identify the profile that it belongs to.
", - "CreateDomain": "Creates a domain, which is a container for all customer data, such as customer profile attributes, object types, profile keys, and encryption keys. You can create multiple domains, and each domain can have multiple third-party integrations.
Each Amazon Connect instance can be associated with only one domain. Multiple Amazon Connect instances can be associated with one domain.
Use this API or UpdateDomain to enable identity resolution: set Matching
to true.
Creates a domain, which is a container for all customer data, such as customer profile attributes, object types, profile keys, and encryption keys. You can create multiple domains, and each domain can have multiple third-party integrations.
Each Amazon Connect instance can be associated with only one domain. Multiple Amazon Connect instances can be associated with one domain.
Use this API or UpdateDomain to enable identity resolution: set Matching
to true.
To prevent cross-service impersonation when you call this API, see Cross-service confused deputy prevention for sample policies that you should apply.
", "CreateProfile": "Creates a standard profile.
A standard profile represents the following attributes for a customer profile in a domain.
", "DeleteDomain": "Deletes a specific domain and all of its customer data, such as customer profile attributes and their related objects.
", "DeleteIntegration": "Removes an integration from a specific domain.
", @@ -11,13 +11,16 @@ "DeleteProfileKey": "Removes a searchable key from a customer profile.
", "DeleteProfileObject": "Removes an object associated with a profile of a given ProfileObjectType.
", "DeleteProfileObjectType": "Removes a ProfileObjectType from a specific domain as well as removes all the ProfileObjects of that type. It also disables integrations from this specific ProfileObjectType. In addition, it scrubs all of the fields of the standard profile that were populated from this ProfileObjectType.
", + "GetAutoMergingPreview": "Tests the auto-merging settings of your Identity Resolution Job without merging your data. It randomly selects a sample of matching groups from the existing matching results, and applies the automerging settings that you provided. You can then view the number of profiles in the sample, the number of matches, and the number of profiles identified to be merged. This enables you to evaluate the accuracy of the attributes in your matching list.
You can't view which profiles are matched and would be merged.
We strongly recommend you use this API to do a dry run of the automerging process before running the Identity Resolution Job. Include at least two matching attributes. If your matching list includes too few attributes (such as only FirstName
or only LastName
), there may be a large number of matches. This increases the chances of erroneous merges.
Returns information about a specific domain.
", + "GetIdentityResolutionJob": "Returns information about an Identity Resolution Job in a specific domain.
Identity Resolution Jobs are set up using the Amazon Connect admin console. For more information, see Use Identity Resolution to consolidate similar profiles.
", "GetIntegration": "Returns an integration for a domain.
", - "GetMatches": "This API is in preview release for Amazon Connect and subject to change.
Before calling this API, use CreateDomain or UpdateDomain to enable identity resolution: set Matching
to true.
GetMatches returns potentially matching profiles, based on the results of the latest run of a machine learning process.
Amazon Connect starts a batch process every Saturday at 12AM UTC to identify matching profiles. The results are returned up to seven days after the Saturday run.
Amazon Connect uses the following profile attributes to identify matches:
PhoneNumber
HomePhoneNumber
BusinessPhoneNumber
MobilePhoneNumber
EmailAddress
PersonalEmailAddress
BusinessEmailAddress
FullName
BusinessName
For example, two or more profiles—with spelling mistakes such as John Doe and Jhn Doe, or different casing email addresses such as JOHN_DOE@ANYCOMPANY.COM and johndoe@anycompany.com, or different phone number formats such as 555-010-0000 and +1-555-010-0000—can be detected as belonging to the same customer John Doe and merged into a unified profile.
", + "GetMatches": "This API is in preview release for Amazon Connect and subject to change.
Before calling this API, use CreateDomain or UpdateDomain to enable identity resolution: set Matching
to true.
GetMatches returns potentially matching profiles, based on the results of the latest run of a machine learning process.
The process of matching duplicate profiles. If Matching
= true
, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.
After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig
in the MatchingRequest
, you can download the results from S3.
Amazon Connect uses the following profile attributes to identify matches:
PhoneNumber
HomePhoneNumber
BusinessPhoneNumber
MobilePhoneNumber
EmailAddress
PersonalEmailAddress
BusinessEmailAddress
FullName
BusinessName
For example, two or more profiles—with spelling mistakes such as John Doe and Jhn Doe, or different casing email addresses such as JOHN_DOE@ANYCOMPANY.COM and johndoe@anycompany.com, or different phone number formats such as 555-010-0000 and +1-555-010-0000—can be detected as belonging to the same customer John Doe and merged into a unified profile.
", "GetProfileObjectType": "Returns the object types for a specific domain.
", "GetProfileObjectTypeTemplate": "Returns the template information for a specific object type.
A template is a predefined ProfileObjectType, such as “Salesforce-Account” or “Salesforce-Contact.” When a user sends a ProfileObject, using the PutProfileObject API, with an ObjectTypeName that matches one of the TemplateIds, it uses the mappings from the template.
", "ListAccountIntegrations": "Lists all of the integrations associated to a specific URI in the AWS account.
", "ListDomains": "Returns a list of all the domains for an AWS account that have been created.
", + "ListIdentityResolutionJobs": "Lists all of the Identity Resolution Jobs in your domain. The response sorts the list by JobStartTime
.
Lists all of the integrations in your domain.
", "ListProfileObjectTypeTemplates": "Lists all of the template information for object types.
", "ListProfileObjectTypes": "Lists all of the templates available within the service.
", @@ -30,7 +33,7 @@ "SearchProfiles": "Searches for profiles within a specific domain name using name, phone number, email address, account number, or a custom defined index.
", "TagResource": "Assigns one or more tags (key-value pairs) to the specified Amazon Connect Customer Profiles resource. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. In Connect Customer Profiles, domains, profile object types, and integrations can be tagged.
Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.
You can use the TagResource action with a resource that already has tags. If you specify a new tag key, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
You can associate as many as 50 tags with a resource.
", "UntagResource": "Removes one or more tags from the specified Amazon Connect Customer Profiles resource. In Connect Customer Profiles, domains, profile object types, and integrations can be tagged.
", - "UpdateDomain": "Updates the properties of a domain, including creating or selecting a dead letter queue or an encryption key.
After a domain is created, the name can’t be changed.
Use this API or CreateDomain to enable identity resolution: set Matching
to true.
Updates the properties of a domain, including creating or selecting a dead letter queue or an encryption key.
After a domain is created, the name can’t be changed.
Use this API or CreateDomain to enable identity resolution: set Matching
to true.
To prevent cross-service impersonation when you call this API, see Cross-service confused deputy prevention for sample policies that you should apply.
", "UpdateProfile": "Updates the properties of a profile. The ProfileId is required for updating a customer profile.
When calling the UpdateProfile API, specifying an empty string value means that any existing value will be removed. Not specifying a string value means that any value already there will be kept.
" }, "shapes": { @@ -52,8 +55,12 @@ "DeleteProfileRequest$DomainName": "The unique name of the domain.
", "FieldMap$key": null, "FieldNameList$member": null, + "GetAutoMergingPreviewRequest$DomainName": "The unique name of the domain.
", + "GetAutoMergingPreviewResponse$DomainName": "The unique name of the domain.
", "GetDomainRequest$DomainName": "The unique name of the domain.
", "GetDomainResponse$DomainName": "The unique name of the domain.
", + "GetIdentityResolutionJobRequest$DomainName": "The unique name of the domain.
", + "GetIdentityResolutionJobResponse$DomainName": "The unique name of the domain.
", "GetIntegrationRequest$DomainName": "The unique name of the domain.
", "GetIntegrationResponse$DomainName": "The unique name of the domain.
", "GetMatchesRequest$DomainName": "The unique name of the domain.
", @@ -63,8 +70,10 @@ "GetProfileObjectTypeTemplateResponse$TemplateId": "A unique identifier for the object template.
", "GetProfileObjectTypeTemplateResponse$SourceName": "The name of the source of the object template.
", "GetProfileObjectTypeTemplateResponse$SourceObject": "The source of the object template.
", + "IdentityResolutionJob$DomainName": "The unique name of the domain.
", "KeyMap$key": null, "ListDomainItem$DomainName": "The unique name of the domain.
", + "ListIdentityResolutionJobsRequest$DomainName": "The unique name of the domain.
", "ListIntegrationItem$DomainName": "The unique name of the domain.
", "ListIntegrationsRequest$DomainName": "The unique name of the domain.
", "ListProfileObjectTypeTemplateItem$TemplateId": "A unique identifier for the object template.
", @@ -128,6 +137,14 @@ "Profile$Attributes": "A key value pair of attributes of a customer profile.
" } }, + "AutoMerging": { + "base": "Configuration settings for how to perform the auto-merging of profiles.
", + "refs": { + "GetIdentityResolutionJobResponse$AutoMerging": "Configuration settings for how to perform the auto-merging of profiles.
", + "MatchingRequest$AutoMerging": "Configuration information about the auto-merging process.
", + "MatchingResponse$AutoMerging": "Configuration information about the auto-merging process.
" + } + }, "BadRequestException": { "base": "The input you provided is invalid.
", "refs": { @@ -145,6 +162,19 @@ "S3SourceProperties$BucketPrefix": "The object key for the Amazon S3 bucket in which the source files are stored.
" } }, + "ConflictResolution": { + "base": "How the auto-merging process should resolve conflicts between different profiles.
", + "refs": { + "AutoMerging$ConflictResolution": "How the auto-merging process should resolve conflicts between different profiles. For example, if Profile A and Profile B have the same FirstName
and LastName
(and that is the matching criteria), which EmailAddress
should be used?
How the auto-merging process should resolve conflicts between different profiles.
" + } + }, + "ConflictResolvingModel": { + "base": null, + "refs": { + "ConflictResolution$ConflictResolvingModel": "How the auto-merging process should resolve conflicts between different profiles.
RECENCY
: Uses the data that was most recently updated.
SOURCE
: Uses the data from a specific source. For example, if a company has been aquired or two departments have merged, data from the specified source is used. If two duplicate profiles are from the same source, then RECENCY
is used again.
The operation to be performed on the provided source fields.
", "refs": { @@ -157,6 +187,13 @@ "SourceFlowConfig$ConnectorProfileName": "The name of the AppFlow connector profile. This name must be unique for each connector profile in the AWS account.
" } }, + "Consolidation": { + "base": "The matching criteria to be used during the auto-merging process.
", + "refs": { + "AutoMerging$Consolidation": "A list of matching attributes that represent matching criteria. If two profiles meet at least one of the requirements in the matching attributes list, they will be merged.
", + "GetAutoMergingPreviewRequest$Consolidation": "A list of matching attributes that represent matching criteria.
" + } + }, "CreateDomainRequest": { "base": null, "refs": { @@ -275,6 +312,26 @@ "GetDomainResponse$Stats": "Usage-specific statistics about the domain.
" } }, + "Double": { + "base": null, + "refs": { + "MatchItem$ConfidenceScore": "A number between 0 and 1 that represents the confidence level of assigning profiles to a matching group. A score of 1 likely indicates an exact match.
" + } + }, + "ExportingConfig": { + "base": "Configuration information about the S3 bucket where Identity Resolution Jobs writes result files.
You need to give Customer Profiles service principal write permission to your S3 bucket. Otherwise, you'll get an exception in the API response. For an example policy, see Amazon Connect Customer Profiles cross-service confused deputy prevention.
Configuration information for exporting Identity Resolution results, for example, to an S3 bucket.
", + "MatchingResponse$ExportingConfig": "Configuration information for exporting Identity Resolution results, for example, to an S3 bucket.
" + } + }, + "ExportingLocation": { + "base": "The S3 location where Identity Resolution Jobs write result files.
", + "refs": { + "GetIdentityResolutionJobResponse$ExportingLocation": "The S3 location where the Identity Resolution Job writes result files.
", + "IdentityResolutionJob$ExportingLocation": "The S3 location where the Identity Resolution Job writes result files.
" + } + }, "FieldContentType": { "base": null, "refs": { @@ -328,6 +385,16 @@ "UpdateProfileRequest$Gender": "The gender with which the customer identifies.
" } }, + "GetAutoMergingPreviewRequest": { + "base": null, + "refs": { + } + }, + "GetAutoMergingPreviewResponse": { + "base": null, + "refs": { + } + }, "GetDomainRequest": { "base": null, "refs": { @@ -338,6 +405,16 @@ "refs": { } }, + "GetIdentityResolutionJobRequest": { + "base": null, + "refs": { + } + }, + "GetIdentityResolutionJobResponse": { + "base": null, + "refs": { + } + }, "GetIntegrationRequest": { "base": null, "refs": { @@ -378,6 +455,25 @@ "refs": { } }, + "IdentityResolutionJob": { + "base": "Information about the Identity Resolution Job.
", + "refs": { + "IdentityResolutionJobsList$member": null + } + }, + "IdentityResolutionJobStatus": { + "base": null, + "refs": { + "GetIdentityResolutionJobResponse$Status": "The status of the Identity Resolution Job.
PENDING
: The Identity Resolution Job is scheduled but has not started yet. If you turn off the Identity Resolution feature in your domain, jobs in the PENDING
state are deleted.
PREPROCESSING
: The Identity Resolution Job is loading your data.
FIND_MATCHING
: The Identity Resolution Job is using the machine learning model to identify profiles that belong to the same matching group.
MERGING
: The Identity Resolution Job is merging duplicate profiles.
COMPLETED
: The Identity Resolution Job completed successfully.
PARTIAL_SUCCESS
: There's a system error and not all of the data is merged. The Identity Resolution Job writes a message indicating the source of the problem.
FAILED
: The Identity Resolution Job did not merge any data. It writes a message indicating the source of the problem.
The status of the Identity Resolution Job.
PENDING
: The Identity Resolution Job is scheduled but has not started yet. If you turn off the Identity Resolution feature in your domain, jobs in the PENDING
state are deleted.
PREPROCESSING
: The Identity Resolution Job is loading your data.
FIND_MATCHING
: The Identity Resolution Job is using the machine learning model to identify profiles that belong to the same matching group.
MERGING
: The Identity Resolution Job is merging duplicate profiles.
COMPLETED
: The Identity Resolution Job completed successfully.
PARTIAL_SUCCESS
: There's a system error and not all of the data is merged. The Identity Resolution Job writes a message indicating the source of the problem.
FAILED
: The Identity Resolution Job did not merge any data. It writes a message indicating the source of the problem.
A list of Identity Resolution Jobs.
" + } + }, "IncrementalPullConfig": { "base": "Specifies the configuration used when importing incremental records from the source.
", "refs": { @@ -396,6 +492,32 @@ "refs": { } }, + "JobSchedule": { + "base": "The day and time when do you want to start the Identity Resolution Job every week.
", + "refs": { + "MatchingRequest$JobSchedule": "The day and time when do you want to start the Identity Resolution Job every week.
", + "MatchingResponse$JobSchedule": "The day and time when do you want to start the Identity Resolution Job every week.
" + } + }, + "JobScheduleDayOfTheWeek": { + "base": null, + "refs": { + "JobSchedule$DayOfTheWeek": "The day when the Identity Resolution Job should run every week.
" + } + }, + "JobScheduleTime": { + "base": null, + "refs": { + "JobSchedule$Time": "The time when the Identity Resolution Job should run every week.
" + } + }, + "JobStats": { + "base": "Statistics about the Identity Resolution Job.
", + "refs": { + "GetIdentityResolutionJobResponse$JobStats": "Statistics about the Identity Resolution Job.
", + "IdentityResolutionJob$JobStats": "Statistics about an Identity Resolution Job.
" + } + }, "KeyMap": { "base": null, "refs": { @@ -437,6 +559,16 @@ "refs": { } }, + "ListIdentityResolutionJobsRequest": { + "base": null, + "refs": { + } + }, + "ListIdentityResolutionJobsResponse": { + "base": null, + "refs": { + } + }, "ListIntegrationItem": { "base": "An integration in list of integrations.
", "refs": { @@ -535,19 +667,31 @@ "GetMatchesResponse$Matches": "The list of matched profiles for this instance.
" } }, + "MatchingAttributes": { + "base": null, + "refs": { + "MatchingAttributesList$member": null + } + }, + "MatchingAttributesList": { + "base": null, + "refs": { + "Consolidation$MatchingAttributesList": "A list of matching criteria.
" + } + }, "MatchingRequest": { "base": "The flag that enables the matching process of duplicate profiles.
", "refs": { - "CreateDomainRequest$Matching": "The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process every Saturday at 12AM UTC to detect duplicate profiles in your domains. After that batch process completes, use the GetMatches API to return and review the results.
", - "UpdateDomainRequest$Matching": "The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process every Saturday at 12AM UTC to detect duplicate profiles in your domains. After that batch process completes, use the GetMatches API to return and review the results.
" + "CreateDomainRequest$Matching": "The process of matching duplicate profiles. If Matching
= true
, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.
After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig
in the MatchingRequest
, you can download the results from S3.
The process of matching duplicate profiles. If Matching
= true
, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.
After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig
in the MatchingRequest
, you can download the results from S3.
The flag that enables the matching process of duplicate profiles.
", "refs": { - "CreateDomainResponse$Matching": "The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process every Saturday at 12AM UTC to detect duplicate profiles in your domains. After that batch process completes, use the GetMatches API to return and review the results.
", - "GetDomainResponse$Matching": "The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process every Saturday at 12AM UTC to detect duplicate profiles in your domains. After that batch process completes, use the GetMatches API to return and review the results.
", - "UpdateDomainResponse$Matching": "The process of matching duplicate profiles. If Matching = true, Amazon Connect Customer Profiles starts a weekly batch process every Saturday at 12AM UTC to detect duplicate profiles in your domains. After that batch process completes, use the GetMatches API to return and review the results.
" + "CreateDomainResponse$Matching": "The process of matching duplicate profiles. If Matching
= true
, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.
After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig
in the MatchingRequest
, you can download the results from S3.
The process of matching duplicate profiles. If Matching
= true
, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.
After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig
in the MatchingRequest
, you can download the results from S3.
The process of matching duplicate profiles. If Matching
= true
, Amazon Connect Customer Profiles starts a weekly batch process called Identity Resolution Job. If you do not specify a date and time for Identity Resolution Job to run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles in your domains.
After the Identity Resolution Job completes, use the GetMatches API to return and review the results. Or, if you have configured ExportingConfig
in the MatchingRequest
, you can download the results from S3.
The operation to be performed on the provided Amazon S3 source fields.
" } }, + "S3ExportingConfig": { + "base": "Configuration information about the S3 bucket where Identity Resolution Jobs write result files.
", + "refs": { + "ExportingConfig$S3Exporting": "The S3 location where Identity Resolution Jobs write result files.
" + } + }, + "S3ExportingLocation": { + "base": "The S3 location where Identity Resolution Jobs write result files.
", + "refs": { + "ExportingLocation$S3Exporting": "Information about the S3 location where Identity Resolution Jobs write result files.
" + } + }, "S3SourceProperties": { "base": "The properties that are applied when Amazon S3 is being used as the flow source.
", "refs": { @@ -1001,7 +1157,13 @@ "DomainStats$ProfileCount": "The total number of profiles currently in the domain.
", "DomainStats$MeteringProfileCount": "The number of profiles that you are currently paying for in the domain. If you have more than 100 objects associated with a single profile, that profile counts as two profiles. If you have more than 200 objects, that profile counts as three, and so on.
", "DomainStats$ObjectCount": "The total number of objects in domain.
", - "DomainStats$TotalSize": "The total size, in bytes, of all objects in the domain.
" + "DomainStats$TotalSize": "The total size, in bytes, of all objects in the domain.
", + "GetAutoMergingPreviewResponse$NumberOfMatchesInSample": "The number of match groups in the domain that have been reviewed in this preview dry run.
", + "GetAutoMergingPreviewResponse$NumberOfProfilesInSample": "The number of profiles found in this preview dry run.
", + "GetAutoMergingPreviewResponse$NumberOfProfilesWillBeMerged": "The number of profiles that would be merged if this wasn't a preview dry run.
", + "JobStats$NumberOfProfilesReviewed": "The number of profiles reviewed.
", + "JobStats$NumberOfMatchesFound": "The number of matches found.
", + "JobStats$NumberOfMergesDone": "The number of merges completed.
" } }, "matchesNumber": { @@ -1016,6 +1178,7 @@ "GetMatchesRequest$MaxResults": "The maximum number of results to return per page.
", "ListAccountIntegrationsRequest$MaxResults": "The maximum number of objects returned per page.
", "ListDomainsRequest$MaxResults": "The maximum number of objects returned per page.
", + "ListIdentityResolutionJobsRequest$MaxResults": "The maximum number of results to return per page.
", "ListIntegrationsRequest$MaxResults": "The maximum number of objects returned per page.
", "ListProfileObjectTypeTemplatesRequest$MaxResults": "The maximum number of objects returned per page.
", "ListProfileObjectTypesRequest$MaxResults": "The maximum number of objects returned per page.
", @@ -1043,6 +1206,7 @@ "optionalBoolean": { "base": null, "refs": { + "AutoMerging$Enabled": "The flag that enables the auto-merging of duplicate profiles.
", "MatchingRequest$Enabled": "The flag that enables the matching process of duplicate profiles.
", "MatchingResponse$Enabled": "The flag that enables the matching process of duplicate profiles.
" } @@ -1057,6 +1221,25 @@ "SearchProfilesRequest$Values": "A list of key values.
" } }, + "s3BucketName": { + "base": null, + "refs": { + "S3ExportingConfig$S3BucketName": "The name of the S3 bucket where Identity Resolution Jobs write result files.
", + "S3ExportingLocation$S3BucketName": "The name of the S3 bucket name where Identity Resolution Jobs write result files.
" + } + }, + "s3KeyName": { + "base": null, + "refs": { + "S3ExportingLocation$S3KeyName": "The S3 key name of the location where Identity Resolution Jobs write result files.
" + } + }, + "s3KeyNameCustomerOutputConfig": { + "base": null, + "refs": { + "S3ExportingConfig$S3KeyName": "The S3 key name of the location where Identity Resolution Jobs write result files.
" + } + }, "sqsQueueUrl": { "base": null, "refs": { @@ -1125,6 +1308,7 @@ "AttributeSourceIdMap$key": null, "Attributes$key": null, "Attributes$value": null, + "ConflictResolution$SourceName": "The ObjectType
name that is used to resolve profile merging conflicts when choosing SOURCE
as the ConflictResolvingModel
.
A unique account number that you have given to the customer.
", "CreateProfileRequest$BusinessName": "The name of the customer’s business.
", "CreateProfileRequest$FirstName": "The customer’s first name.
", @@ -1142,10 +1326,13 @@ "DeleteProfileObjectRequest$ProfileObjectUniqueKey": "The unique identifier of the profile object generated by the service.
", "GetIntegrationRequest$Uri": "The URI of the S3 bucket or any other type of data source.
", "GetIntegrationResponse$Uri": "The URI of the S3 bucket or any other type of data source.
", + "GetProfileObjectTypeResponse$SourceLastUpdatedTimestampFormat": "The format of your sourceLastUpdatedTimestamp
that was previously set up.
The format of your sourceLastUpdatedTimestamp
that was previously set up.
The URI of the S3 bucket or any other type of data source.
", "ListIntegrationItem$Uri": "The URI of the S3 bucket or any other type of data source.
", "ListProfileObjectsItem$ProfileObjectUniqueKey": "The unique identifier of the ProfileObject generated by the service.
", "MatchItem$MatchId": "The unique identifiers for this group of profiles that match.
", + "MatchingAttributes$member": null, "Profile$AccountNumber": "A unique account number that you have given to the customer.
", "Profile$BusinessName": "The name of the customer’s business.
", "Profile$FirstName": "The customer’s first name.
", @@ -1162,6 +1349,8 @@ "PutIntegrationRequest$Uri": "The URI of the S3 bucket or any other type of data source.
", "PutIntegrationResponse$Uri": "The URI of the S3 bucket or any other type of data source.
", "PutProfileObjectResponse$ProfileObjectUniqueKey": "The unique identifier of the profile object generated by the service.
", + "PutProfileObjectTypeRequest$SourceLastUpdatedTimestampFormat": "The format of your sourceLastUpdatedTimestamp
that was previously set up.
The format of your sourceLastUpdatedTimestamp
that was previously set up in fields that were parsed using SimpleDateFormat. If you have sourceLastUpdatedTimestamp
in your field, you must set up sourceLastUpdatedTimestampFormat
.
The error messages that are generated when the Identity Resolution Job runs.
", + "IdentityResolutionJob$Message": "The error messages that are generated when the Identity Resolution Job runs.
", "SourceFields$member": null } }, @@ -1197,11 +1388,17 @@ "CreateDomainResponse$LastUpdatedAt": "The timestamp of when the domain was most recently edited.
", "GetDomainResponse$CreatedAt": "The timestamp of when the domain was created.
", "GetDomainResponse$LastUpdatedAt": "The timestamp of when the domain was most recently edited.
", + "GetIdentityResolutionJobResponse$JobStartTime": "The timestamp of when the Identity Resolution Job was started or will be started.
", + "GetIdentityResolutionJobResponse$JobEndTime": "The timestamp of when the Identity Resolution Job was completed.
", + "GetIdentityResolutionJobResponse$LastUpdatedAt": "The timestamp of when the Identity Resolution Job was most recently edited.
", + "GetIdentityResolutionJobResponse$JobExpirationTime": "The timestamp of when the Identity Resolution Job will expire.
", "GetIntegrationResponse$CreatedAt": "The timestamp of when the domain was created.
", "GetIntegrationResponse$LastUpdatedAt": "The timestamp of when the domain was most recently edited.
", "GetMatchesResponse$MatchGenerationDate": "The timestamp this version of Match Result generated.
", "GetProfileObjectTypeResponse$CreatedAt": "The timestamp of when the domain was created.
", "GetProfileObjectTypeResponse$LastUpdatedAt": "The timestamp of when the domain was most recently edited.
", + "IdentityResolutionJob$JobStartTime": "The timestamp of when the job was started or will be started.
", + "IdentityResolutionJob$JobEndTime": "The timestamp of when the job was completed.
", "ListDomainItem$CreatedAt": "The timestamp of when the domain was created.
", "ListDomainItem$LastUpdatedAt": "The timestamp of when the domain was most recently edited.
", "ListIntegrationItem$CreatedAt": "The timestamp of when the domain was created.
", @@ -1225,6 +1422,8 @@ "ListAccountIntegrationsResponse$NextToken": "The pagination token from the previous ListAccountIntegrations API call.
", "ListDomainsRequest$NextToken": "The pagination token from the previous ListDomain API call.
", "ListDomainsResponse$NextToken": "The pagination token from the previous ListDomains API call.
", + "ListIdentityResolutionJobsRequest$NextToken": "The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
", + "ListIdentityResolutionJobsResponse$NextToken": "If there are additional results, this is the token for the next set of results.
", "ListIntegrationsRequest$NextToken": "The pagination token from the previous ListIntegrations API call.
", "ListIntegrationsResponse$NextToken": "The pagination token from the previous ListIntegrations API call.
", "ListProfileObjectTypeTemplatesRequest$NextToken": "The pagination token from the previous ListObjectTypeTemplates API call.
", @@ -1285,6 +1484,9 @@ "FieldSourceProfileIds$ShippingAddress": "A unique identifier for the shipping address field to be merged.
", "FieldSourceProfileIds$MailingAddress": "A unique identifier for the mailing address field to be merged.
", "FieldSourceProfileIds$BillingAddress": "A unique identifier for the billing type field to be merged.
", + "GetIdentityResolutionJobRequest$JobId": "The unique identifier of the Identity Resolution Job.
", + "GetIdentityResolutionJobResponse$JobId": "The unique identifier of the Identity Resolution Job.
", + "IdentityResolutionJob$JobId": "The unique identifier of the Identity Resolution Job.
", "ListProfileObjectsRequest$ProfileId": "The unique identifier of a customer profile.
", "MergeProfilesRequest$MainProfileId": "The identifier of the profile to be taken.
", "Profile$ProfileId": "The unique identifier of a customer profile.
", diff --git a/models/apis/elasticache/2015-02-02/docs-2.json b/models/apis/elasticache/2015-02-02/docs-2.json index 32352bf4f9..6890b8d34c 100644 --- a/models/apis/elasticache/2015-02-02/docs-2.json +++ b/models/apis/elasticache/2015-02-02/docs-2.json @@ -198,7 +198,7 @@ "Boolean": { "base": null, "refs": { - "CacheCluster$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous versions.
", + "CacheCluster$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
", "CacheCluster$ReplicationGroupLogDeliveryEnabled": "A boolean value indicating whether log delivery is enabled for the replication group.
", "CacheNodeTypeSpecificParameter$IsModifiable": "Indicates whether (true
) or not (false
) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
Indicates whether the parameter group is associated with a Global datastore
", @@ -216,7 +216,7 @@ "Parameter$IsModifiable": "Indicates whether (true
) or not (false
) the parameter can be modified. Some parameters have security or operational implications that prevent them from being changed.
If True
, redistribution is applied immediately.
If true
, all parameters in the cache parameter group are reset to their default values. If false
, only the parameters listed by ParameterNameValues
are reset to their default values.
Valid values: true
| false
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous versions.
" + "Snapshot$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
" } }, "BooleanOptional": { @@ -225,10 +225,10 @@ "CacheCluster$AuthTokenEnabled": "A flag that enables using an AuthToken
(password) when issuing Redis commands.
Default: false
A flag that enables in-transit encryption when set to true
.
You cannot modify the value of TransitEncryptionEnabled
after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
to true
when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
A flag that enables encryption at-rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the cluster is created. To enable at-rest encryption on a cluster you must set AtRestEncryptionEnabled
to true
when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous versions.
", + "CreateCacheClusterMessage$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
", "CreateReplicationGroupMessage$AutomaticFailoverEnabled": "Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary fails.
AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
Default: false
", "CreateReplicationGroupMessage$MultiAZEnabled": "A flag indicating if you have Multi-AZ enabled to enhance fault tolerance. For more information, see Minimizing Downtime: Multi-AZ.
", - "CreateReplicationGroupMessage$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous versions.
", + "CreateReplicationGroupMessage$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
", "CreateReplicationGroupMessage$TransitEncryptionEnabled": "A flag that enables in-transit encryption when set to true
.
You cannot modify the value of TransitEncryptionEnabled
after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
to true
when you create a cluster.
This parameter is valid only if the Engine
parameter is redis
, the EngineVersion
parameter is 3.2.6
, 4.x
or later, and the cluster is being created in an Amazon VPC.
If you enable in-transit encryption, you must also specify a value for CacheSubnetGroup
.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
For HIPAA compliance, you must specify TransitEncryptionEnabled
as true
, an AuthToken
, and a CacheSubnetGroup
.
A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Default: false
Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type. This parameter must be set to true when using r6gd nodes. For more information, see Data tiering.
", @@ -244,11 +244,11 @@ "GlobalReplicationGroup$TransitEncryptionEnabled": "A flag that enables in-transit encryption when set to true. You cannot modify the value of TransitEncryptionEnabled
after the cluster is created. To enable in-transit encryption on a cluster you must set TransitEncryptionEnabled
to true when you create a cluster.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
A flag that enables encryption at rest when set to true
.
You cannot modify the value of AtRestEncryptionEnabled
after the replication group is created. To enable encryption at rest on a replication group you must set AtRestEncryptionEnabled
to true
when you create the replication group.
Required: Only available when creating a replication group in an Amazon VPC using redis version 3.2.6
, 4.x
or later.
Specify if log delivery is enabled. Default true
.
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous versions.
", + "ModifyCacheClusterMessage$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
", "ModifyGlobalReplicationGroupMessage$AutomaticFailoverEnabled": "Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.
", "ModifyReplicationGroupMessage$AutomaticFailoverEnabled": "Determines whether a read replica is automatically promoted to read/write primary if the existing primary encounters a failure.
Valid values: true
| false
A flag to indicate MultiAZ is enabled.
", - "ModifyReplicationGroupMessage$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next minor version upgrade campaign. This parameter is disabled for previous versions.
", + "ModifyReplicationGroupMessage$AutoMinorVersionUpgrade": "If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
", "ModifyReplicationGroupMessage$RemoveUserGroups": "Removes the user group associated with this replication group.
", "ModifyUserMessage$NoPasswordRequired": "Indicates no password is required for the user.
", "ReplicationGroup$ClusterEnabled": "A flag indicating whether or not this replication group is cluster enabled; i.e., whether its data can be partitioned across multiple shards (API/CLI: node groups).
Valid values: true
| false
Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster's protocol-compliant caching software - either Memcached or Redis.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The unique ID of the service update
", "CacheCluster$CacheClusterId": "The user-supplied identifier of the cluster. This identifier is a unique key that identifies a cluster.
", "CacheCluster$ClientDownloadLandingPage": "The URL of the web page where you can download the latest ElastiCache client library.
", - "CacheCluster$CacheNodeType": "The name of the compute and memory capacity node type for the cluster.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The name of the compute and memory capacity node type for the cluster.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The name of the cache engine (memcached
or redis
) to be used for this cluster.
The version of the cache engine that is used in this cluster.
", "CacheCluster$CacheClusterStatus": "The current state of this cluster, one of the following values: available
, creating
, deleted
, deleting
, incompatible-network
, modifying
, rebooting cluster nodes
, restore-failed
, or snapshotting
.
The node group (shard) identifier. This parameter is stored as a lowercase string.
Constraints:
A name must contain from 1 to 50 alphanumeric characters or hyphens.
The first character must be a letter.
A name cannot end with a hyphen or contain two consecutive hyphens.
The ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.
If the specified replication group is Multi-AZ enabled and the Availability Zone is not specified, the cluster is created in Availability Zones that provide the best spread of read replicas across Availability Zones.
This parameter is only valid if the Engine
parameter is redis
.
The EC2 Availability Zone in which the cluster is created.
All nodes belonging to this cluster are placed in the preferred Availability Zone. If you want to create your nodes across multiple Availability Zones, use PreferredAvailabilityZones
.
Default: System chosen Availability Zone.
", - "CreateCacheClusterMessage$CacheNodeType": "The compute and memory capacity of the nodes in the node group (shard).
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The compute and memory capacity of the nodes in the node group (shard).
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The name of the cache engine to be used for this cluster.
Valid values for this parameter are: memcached
| redis
The version number of the cache engine to be used for this cluster. To view the supported cache engine versions, use the DescribeCacheEngineVersions operation.
Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version), but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.
", "CreateCacheClusterMessage$CacheParameterGroupName": "The name of the parameter group to associate with this cluster. If this argument is omitted, the default parameter group for the specified engine is used. You cannot use any parameter group which has cluster-enabled='yes'
when creating a cluster.
A user-created description for the replication group.
", "CreateReplicationGroupMessage$GlobalReplicationGroupId": "The name of the Global datastore
", "CreateReplicationGroupMessage$PrimaryClusterId": "The identifier of the cluster that serves as the primary for this replication group. This cluster must already exist and have a status of available
.
This parameter is not required if NumCacheClusters
, NumNodeGroups
, or ReplicasPerNodeGroup
is specified.
The compute and memory capacity of the nodes in the node group (shard).
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The compute and memory capacity of the nodes in the node group (shard).
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The name of the cache engine to be used for the clusters in this replication group. Must be Redis.
", "CreateReplicationGroupMessage$EngineVersion": "The version number of the cache engine to be used for the clusters in this replication group. To view the supported cache engine versions, use the DescribeCacheEngineVersions
operation.
Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an earlier engine version. If you want to use an earlier engine version, you must delete the existing cluster or replication group and create it anew with the earlier engine version.
", "CreateReplicationGroupMessage$CacheParameterGroupName": "The name of the parameter group to associate with this replication group. If this argument is omitted, the default cache parameter group for the specified engine is used.
If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter group, we recommend that you specify the parameter group by name.
To create a Redis (cluster mode disabled) replication group, use CacheParameterGroupName=default.redis3.2
.
To create a Redis (cluster mode enabled) replication group, use CacheParameterGroupName=default.redis3.2.cluster.on
.
An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords
.
The reserved cache node identifier filter value. Use this parameter to show only the reservation that matches the specified reservation ID.
", "DescribeReservedCacheNodesMessage$ReservedCacheNodesOfferingId": "The offering identifier filter value. Use this parameter to show only purchased reservations matching the specified offering identifier.
", - "DescribeReservedCacheNodesMessage$CacheNodeType": "The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The cache node type filter value. Use this parameter to show only those reservations matching the specified cache node type.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The duration filter value, specified in years or seconds. Use this parameter to show only reservations for this duration.
Valid Values: 1 | 3 | 31536000 | 94608000
The product description filter value. Use this parameter to show only those reservations matching the specified product description.
", "DescribeReservedCacheNodesMessage$OfferingType": "The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.
Valid values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\"|\"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"
An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords
.
The offering identifier filter value. Use this parameter to show only the available offering that matches the specified reservation identifier.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The cache node type filter value. Use this parameter to show only the available offerings matching the specified cache node type.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward) cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
Duration filter value, specified in years or seconds. Use this parameter to show only reservations for a given duration.
Valid Values: 1 | 3 | 31536000 | 94608000
The product description filter value. Use this parameter to show only the available offerings matching the specified product description.
", "DescribeReservedCacheNodesOfferingsMessage$OfferingType": "The offering type filter value. Use this parameter to show only the available offerings matching the specified offering type.
Valid Values: \"Light Utilization\"|\"Medium Utilization\"|\"Heavy Utilization\" |\"All Upfront\"|\"Partial Upfront\"| \"No Upfront\"
The primary cluster ID that is applied immediately (if --apply-immediately
was specified), or during the next maintenance window.
The unique identifier for the reservation.
", "ReservedCacheNode$ReservedCacheNodesOfferingId": "The offering identifier.
", - "ReservedCacheNode$CacheNodeType": "The cache node type for the reserved cache nodes.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The cache node type for the reserved cache nodes.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The description of the reserved cache node.
", "ReservedCacheNode$OfferingType": "The offering type of this reserved cache node.
", "ReservedCacheNode$State": "The state of the reserved cache node.
", "ReservedCacheNode$ReservationARN": "The Amazon Resource Name (ARN) of the reserved cache node.
Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582
Provides an identifier to allow retrieval of paginated results.
", "ReservedCacheNodesOffering$ReservedCacheNodesOfferingId": "A unique identifier for the reserved cache node offering.
", - "ReservedCacheNodesOffering$CacheNodeType": "The cache node type for the reserved cache node.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The cache node type for the reserved cache node.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward): cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward): cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The cache engine used by the offering.
", "ReservedCacheNodesOffering$OfferingType": "The offering type.
", "ReservedCacheNodesOfferingMessage$Marker": "Provides an identifier to allow retrieval of paginated results.
", @@ -2339,7 +2339,7 @@ "Snapshot$CacheClusterId": "The user-supplied identifier of the source cluster.
", "Snapshot$SnapshotStatus": "The status of the snapshot. Valid values: creating
| available
| restoring
| copying
| deleting
.
Indicates whether the snapshot is from an automatic backup (automated
) or was created manually (manual
).
The name of the compute and memory capacity node type for the source cluster.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The name of the compute and memory capacity node type for the source cluster.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation:
M6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.m6g.large
, cache.m6g.xlarge
, cache.m6g.2xlarge
, cache.m6g.4xlarge
, cache.m6g.8xlarge
, cache.m6g.12xlarge
, cache.m6g.16xlarge
For region availability, see Supported Node Types
M5 node types: cache.m5.large
, cache.m5.xlarge
, cache.m5.2xlarge
, cache.m5.4xlarge
, cache.m5.12xlarge
, cache.m5.24xlarge
M4 node types: cache.m4.large
, cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
T4g node types (available only for Redis engine version 5.0.6 onward and Memcached engine version 1.5.16 onward):
cache.t4g.micro
, cache.t4g.small
, cache.t4g.medium
T3 node types: cache.t3.micro
, cache.t3.small
, cache.t3.medium
T2 node types: cache.t2.micro
, cache.t2.small
, cache.t2.medium
Previous generation: (not recommended)
T1 node types: cache.t1.micro
M1 node types: cache.m1.small
, cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
M3 node types: cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
, cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended)
C1 node types: cache.c1.xlarge
Memory optimized with data tiering:
Current generation:
R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
, cache.r6gd.2xlarge
, cache.r6gd.4xlarge
, cache.r6gd.8xlarge
, cache.r6gd.12xlarge
, cache.r6gd.16xlarge
Memory optimized:
Current generation:
R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
, cache.r6g.xlarge
, cache.r6g.2xlarge
, cache.r6g.4xlarge
, cache.r6g.8xlarge
, cache.r6g.12xlarge
, cache.r6g.16xlarge
For region availability, see Supported Node Types
For region availability, see Supported Node Types
R5 node types: cache.r5.large
, cache.r5.xlarge
, cache.r5.2xlarge
, cache.r5.4xlarge
, cache.r5.12xlarge
, cache.r5.24xlarge
R4 node types: cache.r4.large
, cache.r4.xlarge
, cache.r4.2xlarge
, cache.r4.4xlarge
, cache.r4.8xlarge
, cache.r4.16xlarge
Previous generation: (not recommended)
M2 node types: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
R3 node types: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables appendonly
and appendfsync
are not supported on Redis version 2.8.22 and later.
The name of the cache engine (memcached
or redis
) used by the source cluster.
The version of the cache engine version that is used by the source cluster.
", "Snapshot$PreferredAvailabilityZone": "The name of the Availability Zone in which the source cluster is located.
", @@ -2376,12 +2376,12 @@ "User$UserId": "The ID of the user.
", "User$UserName": "The username of the user.
", "User$Status": "Indicates the user status. Can be \"active\", \"modifying\" or \"deleting\".
", - "User$MinimumEngineVersion": null, + "User$MinimumEngineVersion": "The minimum engine version required, which is Redis 6.0
", "User$AccessString": "Access permissions string used for this user.
", "User$ARN": "The Amazon Resource Name (ARN) of the user.
", "UserGroup$UserGroupId": "The ID of the user group.
", "UserGroup$Status": "Indicates user group status. Can be \"creating\", \"active\", \"modifying\", \"deleting\".
", - "UserGroup$MinimumEngineVersion": null, + "UserGroup$MinimumEngineVersion": "The minimum engine version required, which is Redis 6.0
", "UserGroup$ARN": "The Amazon Resource Name (ARN) of the user group.
" } }, diff --git a/models/apis/imagebuilder/2019-12-02/api-2.json b/models/apis/imagebuilder/2019-12-02/api-2.json index 76e7dd0961..3f94b30217 100644 --- a/models/apis/imagebuilder/2019-12-02/api-2.json +++ b/models/apis/imagebuilder/2019-12-02/api-2.json @@ -1104,8 +1104,8 @@ }, "ComponentParameterValue":{ "type":"string", - "min":1, - "pattern":"[^\\x00]+" + "min":0, + "pattern":"[^\\x00]*" }, "ComponentParameterValueList":{ "type":"list", @@ -2333,7 +2333,9 @@ "type":"structure", "members":{ "userIds":{"shape":"AccountList"}, - "userGroups":{"shape":"StringList"} + "userGroups":{"shape":"StringList"}, + "organizationArns":{"shape":"OrganizationArnList"}, + "organizationalUnitArns":{"shape":"OrganizationalUnitArnList"} } }, "LaunchTemplateConfiguration":{ @@ -2616,6 +2618,26 @@ "min":1 }, "NullableBoolean":{"type":"boolean"}, + "OrganizationArn":{ + "type":"string", + "pattern":"^arn:aws[^:]*:organizations::[0-9]{12}:organization/o-[a-z0-9]{10,32}$" + }, + "OrganizationArnList":{ + "type":"list", + "member":{"shape":"OrganizationArn"}, + "max":25, + "min":1 + }, + "OrganizationalUnitArn":{ + "type":"string", + "pattern":"^arn:aws[^:]*:organizations::[0-9]{12}:ou/o-[a-z0-9]{10,32}/ou-[0-9a-z]{4,32}-[0-9a-z]{8,32}" + }, + "OrganizationalUnitArnList":{ + "type":"list", + "member":{"shape":"OrganizationalUnitArn"}, + "max":25, + "min":1 + }, "OsVersion":{ "type":"string", "min":1 diff --git a/models/apis/imagebuilder/2019-12-02/docs-2.json b/models/apis/imagebuilder/2019-12-02/docs-2.json index 0d19a1367f..eee1d7c283 100644 --- a/models/apis/imagebuilder/2019-12-02/docs-2.json +++ b/models/apis/imagebuilder/2019-12-02/docs-2.json @@ -13,7 +13,7 @@ "DeleteComponent": "Deletes a component build version.
", "DeleteContainerRecipe": "Deletes a container recipe.
", "DeleteDistributionConfiguration": "Deletes a distribution configuration.
", - "DeleteImage": "Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.
To deregister an EC2 Linux AMI, see Deregister your Linux AMI in the Amazon EC2 User Guide .
To deregister an EC2 Windows AMI, see Deregister your Windows AMI in the Amazon EC2 Windows Guide .
To delete a container image from Amazon ECR, see Deleting an image in the Amazon ECR User Guide.
Deletes an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.
To deregister an EC2 Linux AMI, see Deregister your Linux AMI in the Amazon EC2 User Guide .
To deregister an EC2 Windows AMI, see Deregister your Windows AMI in the Amazon EC2 Windows Guide .
To delete a container image from Amazon ECR, see Deleting an image in the Amazon ECR User Guide.
Deletes an image pipeline.
", "DeleteImageRecipe": "Deletes an image recipe.
", "DeleteInfrastructureConfiguration": "Deletes an infrastructure configuration.
", @@ -42,7 +42,7 @@ "ListInfrastructureConfigurations": "Returns a list of infrastructure configurations.
", "ListTagsForResource": "Returns the list of tags for the specified resource.
", "PutComponentPolicy": " Applies a policy to a component. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutComponentPolicy
, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.
Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API PutContainerImagePolicy
, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.
Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API PutContainerImagePolicy
, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.
Applies a policy to an image. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImagePolicy
, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.
Applies a policy to an image recipe. We recommend that you call the RAM API CreateResourceShare to share resources. If you call the Image Builder API PutImageRecipePolicy
, you must also call the RAM API PromoteResourceShareCreatedFromPolicy in order for the resource to be visible to all principals with whom the resource is shared.
Manually triggers a pipeline to create an image.
", @@ -1349,7 +1349,7 @@ "Ami$name": "The name of the Amazon EC2 AMI.
", "Ami$description": "The description of the Amazon EC2 AMI. Minimum and maximum length are in characters.
", "Ami$accountId": "The account ID of the owner of the AMI.
", - "AmiDistributionConfiguration$description": "The description of the distribution configuration. Minimum and maximum length are in characters.
", + "AmiDistributionConfiguration$description": "The description of the AMI distribution configuration. Minimum and maximum length are in characters.
", "AmiDistributionConfiguration$kmsKeyId": "The KMS key identifier used to encrypt the distributed image.
", "CancelImageCreationResponse$requestId": "The request ID that uniquely identifies this request.
", "Component$description": "The description of the component.
", @@ -1497,6 +1497,30 @@ "UpdateInfrastructureConfigurationRequest$terminateInstanceOnFailure": "The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.
" } }, + "OrganizationArn": { + "base": null, + "refs": { + "OrganizationArnList$member": null + } + }, + "OrganizationArnList": { + "base": null, + "refs": { + "LaunchPermissionConfiguration$organizationArns": "The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
" + } + }, + "OrganizationalUnitArn": { + "base": null, + "refs": { + "OrganizationalUnitArnList$member": null + } + }, + "OrganizationalUnitArnList": { + "base": null, + "refs": { + "LaunchPermissionConfiguration$organizationalUnitArns": "The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
" + } + }, "OsVersion": { "base": null, "refs": { diff --git a/models/apis/iotsitewise/2019-12-02/api-2.json b/models/apis/iotsitewise/2019-12-02/api-2.json index 130898f902..e4b59712e6 100644 --- a/models/apis/iotsitewise/2019-12-02/api-2.json +++ b/models/apis/iotsitewise/2019-12-02/api-2.json @@ -29,6 +29,22 @@ ], "endpoint":{"hostPrefix":"api."} }, + "AssociateTimeSeriesToAssetProperty":{ + "name":"AssociateTimeSeriesToAssetProperty", + "http":{ + "method":"POST", + "requestUri":"/timeseries/associate/" + }, + "input":{"shape":"AssociateTimeSeriesToAssetPropertyRequest"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictingOperationException"} + ], + "endpoint":{"hostPrefix":"api."} + }, "BatchAssociateProjectAssets":{ "name":"BatchAssociateProjectAssets", "http":{ @@ -333,6 +349,22 @@ ], "endpoint":{"hostPrefix":"monitor."} }, + "DeleteTimeSeries":{ + "name":"DeleteTimeSeries", + "http":{ + "method":"POST", + "requestUri":"/timeseries/delete/" + }, + "input":{"shape":"DeleteTimeSeriesRequest"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictingOperationException"} + ], + "endpoint":{"hostPrefix":"api."} + }, "DescribeAccessPolicy":{ "name":"DescribeAccessPolicy", "http":{ @@ -530,6 +562,22 @@ ], "endpoint":{"hostPrefix":"api."} }, + "DescribeTimeSeries":{ + "name":"DescribeTimeSeries", + "http":{ + "method":"GET", + "requestUri":"/timeseries/describe/" + }, + "input":{"shape":"DescribeTimeSeriesRequest"}, + "output":{"shape":"DescribeTimeSeriesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"api."} + }, "DisassociateAssets":{ "name":"DisassociateAssets", "http":{ @@ -546,6 +594,22 @@ ], "endpoint":{"hostPrefix":"api."} }, + "DisassociateTimeSeriesFromAssetProperty":{ + "name":"DisassociateTimeSeriesFromAssetProperty", + "http":{ + "method":"POST", + "requestUri":"/timeseries/disassociate/" + }, + "input":{"shape":"DisassociateTimeSeriesFromAssetPropertyRequest"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictingOperationException"} + ], + "endpoint":{"hostPrefix":"api."} + }, "GetAssetPropertyAggregates":{ "name":"GetAssetPropertyAggregates", "http":{ @@ -791,6 +855,22 @@ ], "endpoint":{"hostPrefix":"api."} }, + "ListTimeSeries":{ + "name":"ListTimeSeries", + "http":{ + "method":"GET", + "requestUri":"/timeseries/" + }, + "input":{"shape":"ListTimeSeriesRequest"}, + "output":{"shape":"ListTimeSeriesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalFailureException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"api."} + }, "PutDefaultEncryptionConfiguration":{ "name":"PutDefaultEncryptionConfiguration", "http":{ @@ -1464,6 +1544,35 @@ } } }, + "AssociateTimeSeriesToAssetPropertyRequest":{ + "type":"structure", + "required":[ + "alias", + "assetId", + "propertyId" + ], + "members":{ + "alias":{ + "shape":"PropertyAlias", + "location":"querystring", + "locationName":"alias" + }, + "assetId":{ + "shape":"ID", + "location":"querystring", + "locationName":"assetId" + }, + "propertyId":{ + "shape":"ID", + "location":"querystring", + "locationName":"propertyId" + }, + "clientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, "AssociatedAssetsSummaries":{ "type":"list", "member":{"shape":"AssociatedAssetsSummary"} @@ -2113,6 +2222,30 @@ "members":{ } }, + "DeleteTimeSeriesRequest":{ + "type":"structure", + "members":{ + "alias":{ + "shape":"PropertyAlias", + "location":"querystring", + "locationName":"alias" + }, + "assetId":{ + "shape":"ID", + "location":"querystring", + "locationName":"assetId" + }, + "propertyId":{ + "shape":"ID", + "location":"querystring", + "locationName":"propertyId" + }, + "clientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, "DescribeAccessPolicyRequest":{ "type":"structure", "required":["accessPolicyId"], @@ -2467,10 +2600,50 @@ "members":{ "storageType":{"shape":"StorageType"}, "multiLayerStorage":{"shape":"MultiLayerStorage"}, + "disassociatedDataStorage":{"shape":"DisassociatedDataStorageState"}, "configurationStatus":{"shape":"ConfigurationStatus"}, "lastUpdateDate":{"shape":"Timestamp"} } }, + "DescribeTimeSeriesRequest":{ + "type":"structure", + "members":{ + "alias":{ + "shape":"PropertyAlias", + "location":"querystring", + "locationName":"alias" + }, + "assetId":{ + "shape":"ID", + "location":"querystring", + "locationName":"assetId" + }, + "propertyId":{ + "shape":"ID", + "location":"querystring", + "locationName":"propertyId" + } + } + }, + "DescribeTimeSeriesResponse":{ + "type":"structure", + "required":[ + "timeSeriesId", + "dataType", + "timeSeriesCreationDate", + "timeSeriesLastUpdateDate" + ], + "members":{ + "assetId":{"shape":"ID"}, + "propertyId":{"shape":"ID"}, + "alias":{"shape":"PropertyAlias"}, + "timeSeriesId":{"shape":"TimeSeriesId"}, + "dataType":{"shape":"PropertyDataType"}, + "dataTypeSpec":{"shape":"Name"}, + "timeSeriesCreationDate":{"shape":"Timestamp"}, + "timeSeriesLastUpdateDate":{"shape":"Timestamp"} + } + }, "Description":{ "type":"string", "max":2048, @@ -2521,6 +2694,42 @@ } } }, + "DisassociateTimeSeriesFromAssetPropertyRequest":{ + "type":"structure", + "required":[ + "alias", + "assetId", + "propertyId" + ], + "members":{ + "alias":{ + "shape":"PropertyAlias", + "location":"querystring", + "locationName":"alias" + }, + "assetId":{ + "shape":"ID", + "location":"querystring", + "locationName":"assetId" + }, + "propertyId":{ + "shape":"ID", + "location":"querystring", + "locationName":"propertyId" + }, + "clientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "DisassociatedDataStorageState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, "Email":{ "type":"string", "max":255, @@ -3393,6 +3602,51 @@ "tags":{"shape":"TagMap"} } }, + "ListTimeSeriesRequest":{ + "type":"structure", + "members":{ + "nextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "assetId":{ + "shape":"ID", + "location":"querystring", + "locationName":"assetId" + }, + "aliasPrefix":{ + "shape":"PropertyAlias", + "location":"querystring", + "locationName":"aliasPrefix" + }, + "timeSeriesType":{ + "shape":"ListTimeSeriesType", + "location":"querystring", + "locationName":"timeSeriesType" + } + } + }, + "ListTimeSeriesResponse":{ + "type":"structure", + "required":["TimeSeriesSummaries"], + "members":{ + "TimeSeriesSummaries":{"shape":"TimeSeriesSummaries"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListTimeSeriesType":{ + "type":"string", + "enum":[ + "ASSOCIATED", + "DISASSOCIATED" + ] + }, "LoggingLevel":{ "type":"string", "enum":[ @@ -3722,7 +3976,8 @@ "required":["storageType"], "members":{ "storageType":{"shape":"StorageType"}, - "multiLayerStorage":{"shape":"MultiLayerStorage"} + "multiLayerStorage":{"shape":"MultiLayerStorage"}, + "disassociatedDataStorage":{"shape":"DisassociatedDataStorageState"} } }, "PutStorageConfigurationResponse":{ @@ -3734,6 +3989,7 @@ "members":{ "storageType":{"shape":"StorageType"}, "multiLayerStorage":{"shape":"MultiLayerStorage"}, + "disassociatedDataStorage":{"shape":"DisassociatedDataStorageState"}, "configurationStatus":{"shape":"ConfigurationStatus"} } }, @@ -3892,6 +4148,34 @@ "DESCENDING" ] }, + "TimeSeriesId":{ + "type":"string", + "max":73, + "min":36 + }, + "TimeSeriesSummaries":{ + "type":"list", + "member":{"shape":"TimeSeriesSummary"} + }, + "TimeSeriesSummary":{ + "type":"structure", + "required":[ + "timeSeriesId", + "dataType", + "timeSeriesCreationDate", + "timeSeriesLastUpdateDate" + ], + "members":{ + "assetId":{"shape":"ID"}, + "propertyId":{"shape":"ID"}, + "alias":{"shape":"PropertyAlias"}, + "timeSeriesId":{"shape":"TimeSeriesId"}, + "dataType":{"shape":"PropertyDataType"}, + "dataTypeSpec":{"shape":"Name"}, + "timeSeriesCreationDate":{"shape":"Timestamp"}, + "timeSeriesLastUpdateDate":{"shape":"Timestamp"} + } + }, "Timestamp":{"type":"timestamp"}, "Timestamps":{ "type":"list", diff --git a/models/apis/iotsitewise/2019-12-02/docs-2.json b/models/apis/iotsitewise/2019-12-02/docs-2.json index 9845df9b51..a952c5b3f0 100644 --- a/models/apis/iotsitewise/2019-12-02/docs-2.json +++ b/models/apis/iotsitewise/2019-12-02/docs-2.json @@ -3,6 +3,7 @@ "service": "Welcome to the IoT SiteWise API Reference. IoT SiteWise is an Amazon Web Services service that connects Industrial Internet of Things (IIoT) devices to the power of the Amazon Web Services Cloud. For more information, see the IoT SiteWise User Guide. For information about IoT SiteWise quotas, see Quotas in the IoT SiteWise User Guide.
", "operations": { "AssociateAssets": "Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. For more information, see Associating assets in the IoT SiteWise User Guide.
", + "AssociateTimeSeriesToAssetProperty": "Associates a time series (data stream) with an asset property.
", "BatchAssociateProjectAssets": "Associates a group (batch) of assets with an IoT SiteWise Monitor project.
", "BatchDisassociateProjectAssets": "Disassociates a group (batch) of assets from an IoT SiteWise Monitor project.
", "BatchPutAssetPropertyValue": "Sends a list of asset property values to IoT SiteWise. Each value is a timestamp-quality-value (TQV) data point. For more information, see Ingesting data using the API in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
The assetId
and propertyId
of an asset property.
A propertyAlias
, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature
). To define an asset property's alias, see UpdateAssetProperty.
With respect to Unix epoch time, IoT SiteWise accepts only TQVs that have a timestamp of no more than 7 days in the past and no more than 10 minutes in the future. IoT SiteWise rejects timestamps outside of the inclusive range of [-7 days, +10 minutes] and returns a TimestampOutOfRangeException
error.
For each asset property, IoT SiteWise overwrites TQVs with duplicate timestamps unless the newer TQV has a different quality. For example, if you store a TQV {T1, GOOD, V1}
, then storing {T1, GOOD, V2}
replaces the existing TQV.
IoT SiteWise authorizes access to each BatchPutAssetPropertyValue
entry individually. For more information, see BatchPutAssetPropertyValue authorization in the IoT SiteWise User Guide.
Creates a dashboard in an IoT SiteWise Monitor project.
", "CreateGateway": "Creates a gateway, which is a virtual or edge device that delivers industrial data streams from local servers to IoT SiteWise. For more information, see Ingesting data using a gateway in the IoT SiteWise User Guide.
", "CreatePortal": "Creates a portal, which can contain projects and dashboards. IoT SiteWise Monitor uses Amazon Web Services SSO or IAM to authenticate portal users and manage user permissions.
Before you can sign in to a new portal, you must add at least one identity to that portal. For more information, see Adding or removing portal administrators in the IoT SiteWise User Guide.
Creates a project in the specified portal.
", + "CreateProject": "Creates a project in the specified portal.
Make sure that the project name and description don't contain confidential information.
Deletes an access policy that grants the specified identity access to the specified IoT SiteWise Monitor resource. You can use this operation to revoke access to an IoT SiteWise Monitor resource.
", "DeleteAsset": "Deletes an asset. This action can't be undone. For more information, see Deleting assets and models in the IoT SiteWise User Guide.
You can't delete an asset that's associated to another asset. For more information, see DisassociateAssets.
Deletes an asset model. This action can't be undone. You must delete all assets created from an asset model before you can delete the model. Also, you can't delete an asset model if a parent asset model exists that contains a property formula expression that depends on the asset model that you want to delete. For more information, see Deleting assets and models in the IoT SiteWise User Guide.
", @@ -20,6 +21,7 @@ "DeleteGateway": "Deletes a gateway from IoT SiteWise. When you delete a gateway, some of the gateway's files remain in your gateway's file system.
", "DeletePortal": "Deletes a portal from IoT SiteWise Monitor.
", "DeleteProject": "Deletes a project from IoT SiteWise Monitor.
", + "DeleteTimeSeries": "Deletes a time series (data stream). If you delete a time series that's associated with an asset property, the asset property still exists, but the time series will no longer be associated with this asset property.
To identify a time series, do one of the following:
If the time series isn't associated with an asset property, specify the alias
of the time series.
If the time series is associated with an asset property, specify one of the following:
The alias
of the time series.
The assetId
and propertyId
that identifies the asset property.
Describes an access policy, which specifies an identity's access to an IoT SiteWise Monitor portal or project.
", "DescribeAsset": "Retrieves information about an asset.
", "DescribeAssetModel": "Retrieves information about an asset model.
", @@ -32,7 +34,9 @@ "DescribePortal": "Retrieves information about a portal.
", "DescribeProject": "Retrieves information about a project.
", "DescribeStorageConfiguration": "Retrieves information about the storage configuration for IoT SiteWise.
", + "DescribeTimeSeries": "Retrieves information about a time series (data stream).
To identify a time series, do one of the following:
If the time series isn't associated with an asset property, specify the alias
of the time series.
If the time series is associated with an asset property, specify one of the following:
The alias
of the time series.
The assetId
and propertyId
that identifies the asset property.
Disassociates a child asset from the given parent asset through a hierarchy defined in the parent asset's model.
", + "DisassociateTimeSeriesFromAssetProperty": "Disassociates a time series (data stream) from an asset property.
", "GetAssetPropertyAggregates": "Gets aggregated values for an asset property. For more information, see Querying aggregates in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
The assetId
and propertyId
of an asset property.
A propertyAlias
, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature
). To define an asset property's alias, see UpdateAssetProperty.
Gets an asset property's current value. For more information, see Querying current values in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
The assetId
and propertyId
of an asset property.
A propertyAlias
, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature
). To define an asset property's alias, see UpdateAssetProperty.
Gets the history of an asset property's values. For more information, see Querying historical values in the IoT SiteWise User Guide.
To identify an asset property, you must specify one of the following:
The assetId
and propertyId
of an asset property.
A propertyAlias
, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature
). To define an asset property's alias, see UpdateAssetProperty.
Retrieves a paginated list of assets associated with an IoT SiteWise Monitor project.
", "ListProjects": "Retrieves a paginated list of projects for an IoT SiteWise Monitor portal.
", "ListTagsForResource": "Retrieves the list of tags for an IoT SiteWise resource.
", + "ListTimeSeries": "Retrieves a paginated list of time series (data streams).
", "PutDefaultEncryptionConfiguration": "Sets the default encryption configuration for the Amazon Web Services account. For more information, see Key management in the IoT SiteWise User Guide.
", "PutLoggingOptions": "Sets logging options for IoT SiteWise.
", "PutStorageConfiguration": "Configures storage settings for IoT SiteWise.
", @@ -86,7 +91,7 @@ "DescribeAssetModelResponse$assetModelArn": "The ARN of the asset model, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
The ARN of the dashboard, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:dashboard/${DashboardId}
The key ARN of the customer managed customer master key (CMK) used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
The key ARN of the customer managed key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
The ARN of the gateway, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:gateway/${GatewayId}
The ARN of the portal, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:portal/${PortalId}
The ARN of the service role that allows the portal's users to access your IoT SiteWise resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the IoT SiteWise User Guide.
", @@ -96,7 +101,7 @@ "IAMUserIdentity$arn": "The ARN of the IAM user. For more information, see IAM ARNs in the IAM User Guide.
If you delete the IAM user, access policies that contain this identity include an empty arn
. You can delete the access policy for the IAM user that no longer exists.
The ARN of the IAM user. For more information, see IAM ARNs in the IAM User Guide. This parameter is required if you specify IAM
for identityType
.
The ARN of the service role that allows the portal's users to access your IoT SiteWise resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the IoT SiteWise User Guide.
", - "PutDefaultEncryptionConfigurationResponse$kmsKeyArn": "The Key ARN of the KMS CMK used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
The ARN of a service role that allows the portal's users to access your IoT SiteWise resources on your behalf. For more information, see Using service roles for IoT SiteWise Monitor in the IoT SiteWise User Guide.
" } }, @@ -427,6 +432,11 @@ "refs": { } }, + "AssociateTimeSeriesToAssetPropertyRequest": { + "base": null, + "refs": { + } + }, "AssociatedAssetsSummaries": { "base": null, "refs": { @@ -553,6 +563,7 @@ "base": null, "refs": { "AssociateAssetsRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", + "AssociateTimeSeriesToAssetPropertyRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "BatchAssociateProjectAssetsRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "BatchDisassociateProjectAssetsRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "CreateAccessPolicyRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", @@ -567,7 +578,9 @@ "DeleteDashboardRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "DeletePortalRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "DeleteProjectRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", + "DeleteTimeSeriesRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "DisassociateAssetsRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", + "DisassociateTimeSeriesFromAssetPropertyRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "UpdateAccessPolicyRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "UpdateAssetModelRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", "UpdateAssetPropertyRequest$clientToken": "A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
", @@ -789,6 +802,11 @@ "refs": { } }, + "DeleteTimeSeriesRequest": { + "base": null, + "refs": { + } + }, "DescribeAccessPolicyRequest": { "base": null, "refs": { @@ -909,6 +927,16 @@ "refs": { } }, + "DescribeTimeSeriesRequest": { + "base": null, + "refs": { + } + }, + "DescribeTimeSeriesResponse": { + "base": null, + "refs": { + } + }, "Description": { "base": null, "refs": { @@ -962,6 +990,19 @@ "refs": { } }, + "DisassociateTimeSeriesFromAssetPropertyRequest": { + "base": null, + "refs": { + } + }, + "DisassociatedDataStorageState": { + "base": null, + "refs": { + "DescribeStorageConfigurationResponse$disassociatedDataStorage": "Contains the storage configuration for time series (data streams) that aren't associated with asset properties. The disassociatedDataStorage
can be one of the following values:
ENABLED
– IoT SiteWise accepts time series that aren't associated with asset properties.
After the disassociatedDataStorage
is enabled, you can't disable it.
DISABLED
– IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset properties.
For more information, see Data streams in the IoT SiteWise User Guide.
", + "PutStorageConfigurationRequest$disassociatedDataStorage": "Contains the storage configuration for time series (data streams) that aren't associated with asset properties. The disassociatedDataStorage
can be one of the following values:
ENABLED
– IoT SiteWise accepts time series that aren't associated with asset properties.
After the disassociatedDataStorage
is enabled, you can't disable it.
DISABLED
– IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset properties.
For more information, see Data streams in the IoT SiteWise User Guide.
", + "PutStorageConfigurationResponse$disassociatedDataStorage": "Contains the storage configuration for time series (data streams) that aren't associated with asset properties. The disassociatedDataStorage
can be one of the following values:
ENABLED
– IoT SiteWise accepts time series that aren't associated with asset properties.
After the disassociatedDataStorage
is enabled, you can't disable it.
DISABLED
– IoT SiteWise doesn't accept time series (data streams) that aren't associated with asset properties.
For more information, see Data streams in the IoT SiteWise User Guide.
" + } + }, "Email": { "base": null, "refs": { @@ -1181,6 +1222,8 @@ "AssociateAssetsRequest$assetId": "The ID of the parent asset.
", "AssociateAssetsRequest$hierarchyId": "The ID of a hierarchy in the parent asset's model. Hierarchies allow different groupings of assets to be formed that all come from the same asset model. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
", "AssociateAssetsRequest$childAssetId": "The ID of the child asset to be associated.
", + "AssociateTimeSeriesToAssetPropertyRequest$assetId": "The ID of the asset in which the asset property was created.
", + "AssociateTimeSeriesToAssetPropertyRequest$propertyId": "The ID of the asset property.
", "AssociatedAssetsSummary$id": "The ID of the asset.
", "AssociatedAssetsSummary$assetModelId": "The ID of the asset model used to create the asset.
", "BatchAssociateProjectAssetsRequest$projectId": "The ID of the project to which to associate the assets.
", @@ -1203,6 +1246,8 @@ "DeleteGatewayRequest$gatewayId": "The ID of the gateway to delete.
", "DeletePortalRequest$portalId": "The ID of the portal to delete.
", "DeleteProjectRequest$projectId": "The ID of the project.
", + "DeleteTimeSeriesRequest$assetId": "The ID of the asset in which the asset property was created.
", + "DeleteTimeSeriesRequest$propertyId": "The ID of the asset property.
", "DescribeAccessPolicyRequest$accessPolicyId": "The ID of the access policy.
", "DescribeAccessPolicyResponse$accessPolicyId": "The ID of the access policy.
", "DescribeAssetModelRequest$assetModelId": "The ID of the asset model.
", @@ -1226,9 +1271,15 @@ "DescribeProjectRequest$projectId": "The ID of the project.
", "DescribeProjectResponse$projectId": "The ID of the project.
", "DescribeProjectResponse$portalId": "The ID of the portal that the project is in.
", + "DescribeTimeSeriesRequest$assetId": "The ID of the asset in which the asset property was created.
", + "DescribeTimeSeriesRequest$propertyId": "The ID of the asset property.
", + "DescribeTimeSeriesResponse$assetId": "The ID of the asset in which the asset property was created.
", + "DescribeTimeSeriesResponse$propertyId": "The ID of the asset property.
", "DisassociateAssetsRequest$assetId": "The ID of the parent asset from which to disassociate the child asset.
", "DisassociateAssetsRequest$hierarchyId": "The ID of a hierarchy in the parent asset's model. Hierarchies allow different groupings of assets to be formed that all come from the same asset model. You can use the hierarchy ID to identify the correct asset to disassociate. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
", "DisassociateAssetsRequest$childAssetId": "The ID of the child asset to disassociate.
", + "DisassociateTimeSeriesFromAssetPropertyRequest$assetId": "The ID of the asset in which the asset property was created.
", + "DisassociateTimeSeriesFromAssetPropertyRequest$propertyId": "The ID of the asset property.
", "GatewaySummary$gatewayId": "The ID of the gateway device.
", "GetAssetPropertyAggregatesRequest$assetId": "The ID of the asset.
", "GetAssetPropertyAggregatesRequest$propertyId": "The ID of the asset property.
", @@ -1249,6 +1300,7 @@ "ListDashboardsRequest$projectId": "The ID of the project.
", "ListProjectAssetsRequest$projectId": "The ID of the project.
", "ListProjectsRequest$portalId": "The ID of the portal.
", + "ListTimeSeriesRequest$assetId": "The ID of the asset in which the asset property was created.
", "PortalResource$id": "The ID of the portal.
", "PortalSummary$id": "The ID of the portal.
", "ProjectResource$id": "The ID of the project.
", @@ -1256,6 +1308,8 @@ "Property$id": "The ID of the asset property.
", "PutAssetPropertyValueEntry$assetId": "The ID of the asset to update.
", "PutAssetPropertyValueEntry$propertyId": "The ID of the asset property for this entry.
", + "TimeSeriesSummary$assetId": "The ID of the asset in which the asset property was created.
", + "TimeSeriesSummary$propertyId": "The ID of the asset property.
", "UpdateAccessPolicyRequest$accessPolicyId": "The ID of the access policy.
", "UpdateAssetModelRequest$assetModelId": "The ID of the asset model to update.
", "UpdateAssetPropertyRequest$assetId": "The ID of the asset to be updated.
", @@ -1349,7 +1403,7 @@ "InterpolationType": { "base": null, "refs": { - "GetInterpolatedAssetPropertyValuesRequest$type": "The interpolation type.
Valid values: LINEAR_INTERPOLATION | LOCF_INTERPOLATION
LINEAR_INTERPOLATION
– Estimates missing data using linear interpolation.
For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated value on July 2, 2021, at 9 AM, the second interpolated value on July 3, 2021, at 9 AM, and so on.
LOCF_INTERPOLATION
– Estimates missing data using last observation carried forward interpolation
If no data point is found for an interval, IoT SiteWise returns the last observed data point for the previous interval and carries forward this interpolated value until a new data point is found.
For example, you can get the state of an on-off valve every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM, IoT SiteWise returns the last observed data point between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated value. If no data point is found after 9 AM on July 2, 2021, IoT SiteWise uses the same interpolated value for the rest of the days.
The interpolation type.
Valid values: LINEAR_INTERPOLATION | LOCF_INTERPOLATION
LINEAR_INTERPOLATION
– Estimates missing data using linear interpolation.
For example, you can use this operation to return the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated value on July 2, 2021, at 9 AM, the second interpolated value on July 3, 2021, at 9 AM, and so on.
LOCF_INTERPOLATION
– Estimates missing data using last observation carried forward interpolation
If no data point is found for an interval, IoT SiteWise returns the last observed data point for the previous interval and carries forward this interpolated value until a new data point is found.
For example, you can get the state of an on-off valve every 24 hours over a duration of 7 days. If the interpolation starts July 1, 2021, at 9 AM, IoT SiteWise returns the last observed data point between July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated value. If a data point isn't found after 9 AM on July 2, 2021, IoT SiteWise uses the same interpolated value for the rest of the days.
The query interval for the window in seconds. IoT SiteWise computes each interpolated value by using data points from the timestamp of each interval minus the window to the timestamp of each interval plus the window. If not specified, the window is between the start time minus the interval and the end time plus the interval.
If you specify a value for the intervalWindowInSeconds
parameter, the type
parameter must be LINEAR_INTERPOLATION
.
If no data point is found during the specified query window, IoT SiteWise won't return an interpolated value for the interval. This indicates that there's a gap in the ingested data points.
For example, you can get the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2 hours) on July 2, 2021 to compute the first interpolated value, uses the data points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2 hours) on July 3, 2021 to compute the second interpolated value, and so on.
" + "GetInterpolatedAssetPropertyValuesRequest$intervalWindowInSeconds": "The query interval for the window, in seconds. IoT SiteWise computes each interpolated value by using data points from the timestamp of each interval, minus the window to the timestamp of each interval plus the window. If not specified, the window ranges between the start time minus the interval and the end time plus the interval.
If you specify a value for the intervalWindowInSeconds
parameter, the value for the type
parameter must be LINEAR_INTERPOLATION
.
If a data point isn't found during the specified query window, IoT SiteWise won't return an interpolated value for the interval. This indicates that there's a gap in the ingested data points.
For example, you can get the interpolated temperature values for a wind turbine every 24 hours over a duration of 7 days. If the interpolation starts on July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 2, 2021 to compute the first interpolated value. Next, IoT SiteWise uses the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July 3, 2021 to compute the second interpolated value, and so on.
" } }, "InvalidRequestException": { @@ -1378,7 +1432,7 @@ "KmsKeyId": { "base": null, "refs": { - "PutDefaultEncryptionConfigurationRequest$kmsKeyId": "The Key ID of the customer managed customer master key (CMK) used for KMS encryption. This is required if you use KMS_BASED_ENCRYPTION
.
The Key ID of the customer managed key used for KMS encryption. This is required if you use KMS_BASED_ENCRYPTION
.
The type of the time series. The time series type can be one of the following values:
ASSOCIATED
– The time series is associated with an asset property.
DISASSOCIATED
– The time series isn't associated with any asset property.
The maximum number of results to return for each paginated request.
Default: 50
", "ListPortalsRequest$maxResults": "The maximum number of results to return for each paginated request.
Default: 50
", "ListProjectAssetsRequest$maxResults": "The maximum number of results to return for each paginated request.
Default: 50
", - "ListProjectsRequest$maxResults": "The maximum number of results to return for each paginated request.
Default: 50
" + "ListProjectsRequest$maxResults": "The maximum number of results to return for each paginated request.
Default: 50
", + "ListTimeSeriesRequest$maxResults": "The maximum number of results to return for each paginated request.
" } }, "Measurement": { @@ -1638,10 +1709,12 @@ "DescribeGatewayResponse$gatewayName": "The name of the gateway.
", "DescribePortalResponse$portalName": "The name of the portal.
", "DescribeProjectResponse$projectName": "The name of the project.
", + "DescribeTimeSeriesResponse$dataTypeSpec": "The data type of the structure for this time series. This parameter is required for time series that have the STRUCT
data type.
The options for this parameter depend on the type of the composite model in which you created the asset property that is associated with your time series. Use AWS/ALARM_STATE
for alarm state in alarm composite models.
The name of the asset.
", "PortalSummary$name": "The name of the portal.
", "ProjectSummary$name": "The name of the project.
", "Property$name": "The name of the property.
", + "TimeSeriesSummary$dataTypeSpec": "The data type of the structure for this time series. This parameter is required for time series that have the STRUCT
data type.
The options for this parameter depend on the type of the composite model in which you created the asset property that is associated with your time series. Use AWS/ALARM_STATE
for alarm state in alarm composite models.
A unique, friendly name for the asset model.
", "UpdateAssetRequest$assetName": "A unique, friendly name for the asset.
", "UpdateDashboardRequest$dashboardName": "A new friendly name for the dashboard.
", @@ -1678,13 +1751,15 @@ "ListProjectAssetsRequest$nextToken": "The token to be used for the next set of paginated results.
", "ListProjectAssetsResponse$nextToken": "The token for the next set of results, or null if there are no additional results.
", "ListProjectsRequest$nextToken": "The token to be used for the next set of paginated results.
", - "ListProjectsResponse$nextToken": "The token for the next set of results, or null if there are no additional results.
" + "ListProjectsResponse$nextToken": "The token for the next set of results, or null if there are no additional results.
", + "ListTimeSeriesRequest$nextToken": "The token to be used for the next set of paginated results.
", + "ListTimeSeriesResponse$nextToken": "The token for the next set of results, or null if there are no additional results.
" } }, "Offset": { "base": null, "refs": { - "TumblingWindow$offset": "The offset for the tumbling window. The offset
parameter accepts the following:
The offset time.
For example, if you specify 18h
for offset
and 1d
for interval
, IoT SiteWise aggregates data in one of the following ways:
If you create the metric before or at 6:00 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
If you create the metric after 6:00 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
The ISO 8601 format.
For example, if you specify PT18H
for offset
and 1d
for interval
, IoT SiteWise aggregates data in one of the following ways:
If you create the metric before or at 6:00 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
If you create the metric after 6:00 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
The 24-hour clock.
For example, if you specify 00:03:00
for offset
and 5m
for interval
, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC).
The offset time zone.
For example, if you specify 2021-07-23T18:00-08
for offset
and 1d
for interval
, IoT SiteWise aggregates data in one of the following ways:
If you create the metric before or at 6:00 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.
If you create the metric after 6:00 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.
The offset for the tumbling window. The offset
parameter accepts the following:
The offset time.
For example, if you specify 18h
for offset
and 1d
for interval
, IoT SiteWise aggregates data in one of the following ways:
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
The ISO 8601 format.
For example, if you specify PT18H
for offset
and 1d
for interval
, IoT SiteWise aggregates data in one of the following ways:
If you create the metric before or at 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) on the day when you create the metric.
If you create the metric after 6 PM (UTC), you get the first aggregation result at 6 PM (UTC) the next day.
The 24-hour clock.
For example, if you specify 00:03:00
for offset
, 5m
for interval
, and you create the metric at 2 PM (UTC), you get the first aggregation result at 2:03 PM (UTC). You get the second aggregation result at 2:08 PM (UTC).
The offset time zone.
For example, if you specify 2021-07-23T18:00-08
for offset
and 1d
for interval
, IoT SiteWise aggregates data in one of the following ways:
If you create the metric before or at 6 PM (PST), you get the first aggregation result at 6 PM (PST) on the day when you create the metric.
If you create the metric after 6 PM (PST), you get the first aggregation result at 6 PM (PST) the next day.
The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature
). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
The alias that identifies the time series.
", + "DeleteTimeSeriesRequest$alias": "The alias that identifies the time series.
", + "DescribeTimeSeriesRequest$alias": "The alias that identifies the time series.
", + "DescribeTimeSeriesResponse$alias": "The alias that identifies the time series.
", + "DisassociateTimeSeriesFromAssetPropertyRequest$alias": "The alias that identifies the time series.
", + "ListTimeSeriesRequest$aliasPrefix": "The alias prefix of the time series.
", "Property$alias": "The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature
). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
The alias that identifies the time series.
", "UpdateAssetPropertyRequest$propertyAlias": "The alias that identifies the property, such as an OPC-UA server data stream path (for example, /company/windfarm/3/turbine/7/temperature
). For more information, see Mapping industrial data streams to asset properties in the IoT SiteWise User Guide.
If you omit this parameter, the alias is removed from the property.
" } }, @@ -1783,7 +1865,9 @@ "AssetModelProperty$dataType": "The data type of the asset model property.
", "AssetModelPropertyDefinition$dataType": "The data type of the property definition.
If you specify STRUCT
, you must also specify dataTypeSpec
to identify the type of the structure for this property.
The data type of the asset property.
", - "Property$dataType": "The property data type.
" + "DescribeTimeSeriesResponse$dataType": "The data type of the time series.
If you specify STRUCT
, you must also specify dataTypeSpec
to identify the type of the structure for this time series.
The property data type.
", + "TimeSeriesSummary$dataType": "The data type of the time series.
If you specify STRUCT
, you must also specify dataTypeSpec
to identify the type of the structure for this time series.
The chronological sorting order of the requested information.
Default: ASCENDING
The ID of the time series.
", + "TimeSeriesSummary$timeSeriesId": "The ID of the time series.
" + } + }, + "TimeSeriesSummaries": { + "base": null, + "refs": { + "ListTimeSeriesResponse$TimeSeriesSummaries": "One or more time series summaries to list.
" + } + }, + "TimeSeriesSummary": { + "base": "Contains a summary of a time series (data stream).
", + "refs": { + "TimeSeriesSummaries$member": null + } + }, "Timestamp": { "base": null, "refs": { @@ -2069,6 +2172,8 @@ "DescribeProjectResponse$projectCreationDate": "The date the project was created, in Unix epoch time.
", "DescribeProjectResponse$projectLastUpdateDate": "The date the project was last updated, in Unix epoch time.
", "DescribeStorageConfigurationResponse$lastUpdateDate": "The date the storage configuration was last updated, in Unix epoch time.
", + "DescribeTimeSeriesResponse$timeSeriesCreationDate": "The date that the time series was created, in Unix epoch time.
", + "DescribeTimeSeriesResponse$timeSeriesLastUpdateDate": "The date that the time series was last updated, in Unix epoch time.
", "GatewaySummary$creationDate": "The date the gateway was created, in Unix epoch time.
", "GatewaySummary$lastUpdateDate": "The date the gateway was last updated, in Unix epoch time.
", "GetAssetPropertyAggregatesRequest$startDate": "The exclusive start of the range from which to query historical data, expressed in seconds in Unix epoch time.
", @@ -2078,7 +2183,9 @@ "PortalSummary$creationDate": "The date the portal was created, in Unix epoch time.
", "PortalSummary$lastUpdateDate": "The date the portal was last updated, in Unix epoch time.
", "ProjectSummary$creationDate": "The date the project was created, in Unix epoch time.
", - "ProjectSummary$lastUpdateDate": "The date the project was last updated, in Unix epoch time.
" + "ProjectSummary$lastUpdateDate": "The date the project was last updated, in Unix epoch time.
", + "TimeSeriesSummary$timeSeriesCreationDate": "The date that the time series was created, in Unix epoch time.
", + "TimeSeriesSummary$timeSeriesLastUpdateDate": "The date that the time series was last updated, in Unix epoch time.
" } }, "Timestamps": { @@ -2117,7 +2224,7 @@ } }, "TumblingWindow": { - "base": "Contains a tumbling window, which is a repeating fixed-sized, non-overlapping, and contiguous time window. You use this window in metrics to aggregate data from properties and other assets.
You can use m
, h
, d
, and w
when you specify an interval or offset. Note that m
represents minutes, and w
represents weeks. You can also use s
to represent seconds in offset
.
The interval
and offset
parameters support the ISO 8601 format. For example, PT5S
represents five seconds, PT5M
represents five minutes, and PT5H
represents five hours.
Contains a tumbling window, which is a repeating fixed-sized, non-overlapping, and contiguous time window. You can use this window in metrics to aggregate data from properties and other assets.
You can use m
, h
, d
, and w
when you specify an interval or offset. Note that m
represents minutes, h
represents hours, d
represents days, and w
represents weeks. You can also use s
to represent seconds in offset
.
The interval
and offset
parameters support the ISO 8601 format. For example, PT5S
represents 5 seconds, PT5M
represents 5 minutes, and PT5H
represents 5 hours.
The tumbling time interval window.
" } diff --git a/models/apis/iotsitewise/2019-12-02/paginators-1.json b/models/apis/iotsitewise/2019-12-02/paginators-1.json index 1388bde630..e077d5b9a6 100644 --- a/models/apis/iotsitewise/2019-12-02/paginators-1.json +++ b/models/apis/iotsitewise/2019-12-02/paginators-1.json @@ -77,6 +77,12 @@ "output_token": "nextToken", "limit_key": "maxResults", "result_key": "projectSummaries" + }, + "ListTimeSeries": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "TimeSeriesSummaries" } } } diff --git a/models/apis/lambda/2015-03-31/api-2.json b/models/apis/lambda/2015-03-31/api-2.json index 20a5e083e0..be8a5f8f5c 100644 --- a/models/apis/lambda/2015-03-31/api-2.json +++ b/models/apis/lambda/2015-03-31/api-2.json @@ -117,23 +117,6 @@ {"shape":"CodeSigningConfigNotFoundException"} ] }, - "CreateFunctionUrlConfig":{ - "name":"CreateFunctionUrlConfig", - "http":{ - "method":"POST", - "requestUri":"/2021-10-31/functions/{FunctionName}/url", - "responseCode":201 - }, - "input":{"shape":"CreateFunctionUrlConfigRequest"}, - "output":{"shape":"CreateFunctionUrlConfigResponse"}, - "errors":[ - {"shape":"ResourceConflictException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServiceException"}, - {"shape":"TooManyRequestsException"} - ] - }, "DeleteAlias":{ "name":"DeleteAlias", "http":{ @@ -247,21 +230,6 @@ {"shape":"ResourceConflictException"} ] }, - "DeleteFunctionUrlConfig":{ - "name":"DeleteFunctionUrlConfig", - "http":{ - "method":"DELETE", - "requestUri":"/2021-10-31/functions/{FunctionName}/url", - "responseCode":204 - }, - "input":{"shape":"DeleteFunctionUrlConfigRequest"}, - "errors":[ - {"shape":"ResourceConflictException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"ServiceException"}, - {"shape":"TooManyRequestsException"} - ] - }, "DeleteLayerVersion":{ "name":"DeleteLayerVersion", "http":{ @@ -432,22 +400,6 @@ {"shape":"TooManyRequestsException"} ] }, - "GetFunctionUrlConfig":{ - "name":"GetFunctionUrlConfig", - "http":{ - "method":"GET", - "requestUri":"/2021-10-31/functions/{FunctionName}/url", - "responseCode":200 - }, - "input":{"shape":"GetFunctionUrlConfigRequest"}, - "output":{"shape":"GetFunctionUrlConfigResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, "GetLayerVersion":{ "name":"GetLayerVersion", "http":{ @@ -646,22 +598,6 @@ {"shape":"ServiceException"} ] }, - "ListFunctionUrlConfigs":{ - "name":"ListFunctionUrlConfigs", - "http":{ - "method":"GET", - "requestUri":"/2021-10-31/functions/{FunctionName}/urls", - "responseCode":200 - }, - "input":{"shape":"ListFunctionUrlConfigsRequest"}, - "output":{"shape":"ListFunctionUrlConfigsResponse"}, - "errors":[ - {"shape":"InvalidParameterValueException"}, - {"shape":"ServiceException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, "ListFunctions":{ "name":"ListFunctions", "http":{ @@ -1049,23 +985,6 @@ {"shape":"TooManyRequestsException"}, {"shape":"ResourceConflictException"} ] - }, - "UpdateFunctionUrlConfig":{ - "name":"UpdateFunctionUrlConfig", - "http":{ - "method":"PUT", - "requestUri":"/2021-10-31/functions/{FunctionName}/url", - "responseCode":200 - }, - "input":{"shape":"UpdateFunctionUrlConfigRequest"}, - "output":{"shape":"UpdateFunctionUrlConfigResponse"}, - "errors":[ - {"shape":"ResourceConflictException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"InvalidParameterValueException"}, - {"shape":"ServiceException"}, - {"shape":"TooManyRequestsException"} - ] } }, "shapes":{ @@ -1200,17 +1119,6 @@ "AdditionalVersionWeights":{"shape":"AdditionalVersionWeights"} } }, - "AllowCredentials":{"type":"boolean"}, - "AllowMethodsList":{ - "type":"list", - "member":{"shape":"Method"}, - "max":6 - }, - "AllowOriginsList":{ - "type":"list", - "member":{"shape":"Origin"}, - "max":100 - }, "AllowedPublishers":{ "type":"structure", "required":["SigningProfileVersionArns"], @@ -1235,13 +1143,6 @@ "type":"string", "pattern":"arn:(aws[a-zA-Z0-9-]*):([a-zA-Z0-9\\-])+:([a-z]{2}(-gov)?-[a-z]+-\\d{1})?:(\\d{12})?:(.*)" }, - "AuthorizationType":{ - "type":"string", - "enum":[ - "NONE", - "AWS_IAM" - ] - }, "BatchSize":{ "type":"integer", "max":10000, @@ -1344,17 +1245,6 @@ "ReservedConcurrentExecutions":{"shape":"ReservedConcurrentExecutions"} } }, - "Cors":{ - "type":"structure", - "members":{ - "AllowCredentials":{"shape":"AllowCredentials"}, - "AllowHeaders":{"shape":"HeadersList"}, - "AllowMethods":{"shape":"AllowMethodsList"}, - "AllowOrigins":{"shape":"AllowOriginsList"}, - "ExposeHeaders":{"shape":"HeadersList"}, - "MaxAge":{"shape":"MaxAge"} - } - }, "CreateAliasRequest":{ "type":"structure", "required":[ @@ -1446,43 +1336,6 @@ "Architectures":{"shape":"ArchitecturesList"} } }, - "CreateFunctionUrlConfigRequest":{ - "type":"structure", - "required":[ - "FunctionName", - "AuthorizationType" - ], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"FunctionUrlQualifier", - "location":"querystring", - "locationName":"Qualifier" - }, - "AuthorizationType":{"shape":"AuthorizationType"}, - "Cors":{"shape":"Cors"} - } - }, - "CreateFunctionUrlConfigResponse":{ - "type":"structure", - "required":[ - "FunctionUrl", - "FunctionArn", - "AuthorizationType", - "CreationTime" - ], - "members":{ - "FunctionUrl":{"shape":"FunctionUrl"}, - "FunctionArn":{"shape":"FunctionArn"}, - "AuthorizationType":{"shape":"AuthorizationType"}, - "Cors":{"shape":"Cors"}, - "CreationTime":{"shape":"Timestamp"} - } - }, "Date":{"type":"timestamp"}, "DeadLetterConfig":{ "type":"structure", @@ -1590,22 +1443,6 @@ } } }, - "DeleteFunctionUrlConfigRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"FunctionUrlQualifier", - "location":"querystring", - "locationName":"Qualifier" - } - } - }, "DeleteLayerVersionRequest":{ "type":"structure", "required":[ @@ -1975,39 +1812,6 @@ "max":1, "min":0 }, - "FunctionUrl":{ - "type":"string", - "max":100, - "min":40 - }, - "FunctionUrlConfig":{ - "type":"structure", - "required":[ - "FunctionUrl", - "FunctionArn", - "CreationTime", - "LastModifiedTime", - "AuthorizationType" - ], - "members":{ - "FunctionUrl":{"shape":"FunctionUrl"}, - "FunctionArn":{"shape":"FunctionArn"}, - "CreationTime":{"shape":"Timestamp"}, - "LastModifiedTime":{"shape":"Timestamp"}, - "Cors":{"shape":"Cors"}, - "AuthorizationType":{"shape":"AuthorizationType"} - } - }, - "FunctionUrlConfigList":{ - "type":"list", - "member":{"shape":"FunctionUrlConfig"} - }, - "FunctionUrlQualifier":{ - "type":"string", - "max":128, - "min":1, - "pattern":"(^\\$LATEST$)|((?!^[0-9]+$)([a-zA-Z0-9-_]+))" - }, "FunctionVersion":{ "type":"string", "enum":["ALL"] @@ -2168,40 +1972,6 @@ "Concurrency":{"shape":"Concurrency"} } }, - "GetFunctionUrlConfigRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"FunctionUrlQualifier", - "location":"querystring", - "locationName":"Qualifier" - } - } - }, - "GetFunctionUrlConfigResponse":{ - "type":"structure", - "required":[ - "FunctionUrl", - "FunctionArn", - "AuthorizationType", - "CreationTime", - "LastModifiedTime" - ], - "members":{ - "FunctionUrl":{"shape":"FunctionUrl"}, - "FunctionArn":{"shape":"FunctionArn"}, - "AuthorizationType":{"shape":"AuthorizationType"}, - "Cors":{"shape":"Cors"}, - "CreationTime":{"shape":"Timestamp"}, - "LastModifiedTime":{"shape":"Timestamp"} - } - }, "GetLayerVersionByArnRequest":{ "type":"structure", "required":["Arn"], @@ -2330,16 +2100,6 @@ "max":128, "pattern":"[^\\s]+" }, - "Header":{ - "type":"string", - "max":1024, - "pattern":".*" - }, - "HeadersList":{ - "type":"list", - "member":{"shape":"Header"}, - "max":100 - }, "HttpStatus":{"type":"integer"}, "ImageConfig":{ "type":"structure", @@ -2796,35 +2556,6 @@ "NextMarker":{"shape":"String"} } }, - "ListFunctionUrlConfigsRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Marker":{ - "shape":"String", - "location":"querystring", - "locationName":"Marker" - }, - "MaxItems":{ - "shape":"MaxItems", - "location":"querystring", - "locationName":"MaxItems" - } - } - }, - "ListFunctionUrlConfigsResponse":{ - "type":"structure", - "required":["FunctionUrlConfigs"], - "members":{ - "FunctionUrlConfigs":{"shape":"FunctionUrlConfigList"}, - "NextMarker":{"shape":"String"} - } - }, "ListFunctionsByCodeSigningConfigRequest":{ "type":"structure", "required":["CodeSigningConfigArn"], @@ -3045,21 +2776,11 @@ "type":"string", "pattern":"ALL|[a-z]{2}(-gov)?-[a-z]+-\\d{1}" }, - "MaxAge":{ - "type":"integer", - "max":86400, - "min":0 - }, "MaxFunctionEventInvokeConfigListItems":{ "type":"integer", "max":50, "min":1 }, - "MaxItems":{ - "type":"integer", - "max":50, - "min":1 - }, "MaxLayerListItems":{ "type":"integer", "max":50, @@ -3105,11 +2826,6 @@ "max":10240, "min":128 }, - "Method":{ - "type":"string", - "max":6, - "pattern":".*" - }, "NameSpacedFunctionArn":{ "type":"string", "pattern":"arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_\\.]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?" @@ -3147,12 +2863,6 @@ "max":34, "pattern":"o-[a-z0-9]{10,32}" }, - "Origin":{ - "type":"string", - "max":253, - "min":1, - "pattern":".*" - }, "PackageType":{ "type":"string", "enum":[ @@ -3929,42 +3639,6 @@ "DestinationConfig":{"shape":"DestinationConfig"} } }, - "UpdateFunctionUrlConfigRequest":{ - "type":"structure", - "required":["FunctionName"], - "members":{ - "FunctionName":{ - "shape":"FunctionName", - "location":"uri", - "locationName":"FunctionName" - }, - "Qualifier":{ - "shape":"FunctionUrlQualifier", - "location":"querystring", - "locationName":"Qualifier" - }, - "AuthorizationType":{"shape":"AuthorizationType"}, - "Cors":{"shape":"Cors"} - } - }, - "UpdateFunctionUrlConfigResponse":{ - "type":"structure", - "required":[ - "FunctionUrl", - "FunctionArn", - "AuthorizationType", - "CreationTime", - "LastModifiedTime" - ], - "members":{ - "FunctionUrl":{"shape":"FunctionUrl"}, - "FunctionArn":{"shape":"FunctionArn"}, - "AuthorizationType":{"shape":"AuthorizationType"}, - "Cors":{"shape":"Cors"}, - "CreationTime":{"shape":"Timestamp"}, - "LastModifiedTime":{"shape":"Timestamp"} - } - }, "Version":{ "type":"string", "max":1024, diff --git a/models/apis/lambda/2015-03-31/docs-2.json b/models/apis/lambda/2015-03-31/docs-2.json index a1ad16b8ee..7e647a254e 100644 --- a/models/apis/lambda/2015-03-31/docs-2.json +++ b/models/apis/lambda/2015-03-31/docs-2.json @@ -8,7 +8,6 @@ "CreateCodeSigningConfig": "Creates a code signing configuration. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).
", "CreateEventSourceMapping": "Creates a mapping between an event source and an Lambda function. Lambda reads items from the event source and triggers the function.
For details about how to configure different event sources, see the following topics.
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError
- If the function returns an error, split the batch in two and retry.
DestinationConfig
- Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds
- Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires
MaximumRetryAttempts
- Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
ParallelizationFactor
- Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
", "CreateFunction": "Creates a Lambda function. To create a function, you need a deployment package and an execution role. The deployment package is a .zip file archive or container image that contains your function code. The execution role grants the function permission to use Amazon Web Services services, such as Amazon CloudWatch Logs for log streaming and X-Ray for request tracing.
You set the package type to Image
if the deployment package is a container image. For a container image, the code property must include the URI of a container image in the Amazon ECR registry. You do not need to specify the handler and runtime properties.
You set the package type to Zip
if the deployment package is a .zip file archive. For a .zip file archive, the code property specifies the location of the .zip file. You must also specify the handler and runtime properties. The code in the deployment package must be compatible with the target instruction set architecture of the function (x86-64
or arm64
). If you do not specify the architecture, the default value is x86-64
.
When you create a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute or so. During this time, you can't invoke or modify the function. The State
, StateReason
, and StateReasonCode
fields in the response from GetFunctionConfiguration indicate when the function is ready to invoke. For more information, see Function States.
A function has an unpublished version, and can have published versions and aliases. The unpublished version changes when you update your function's code and configuration. A published version is a snapshot of your function code and configuration that can't be changed. An alias is a named resource that maps to a version, and can be changed to map to a different version. Use the Publish
parameter to create version 1
of your function from its initial configuration.
The other parameters let you configure version-specific and function-level settings. You can modify version-specific settings later with UpdateFunctionConfiguration. Function-level settings apply to both the unpublished and published versions of the function, and include tags (TagResource) and per-function concurrency limits (PutFunctionConcurrency).
You can use code signing if your deployment package is a .zip file archive. To enable code signing for this function, specify the ARN of a code-signing configuration. When a user attempts to deploy a code package with UpdateFunctionCode, Lambda checks that the code package has a valid signature from a trusted publisher. The code-signing configuration includes set set of signing profiles, which define the trusted publishers for this function.
If another account or an Amazon Web Services service invokes your function, use AddPermission to grant permission by creating a resource-based IAM policy. You can grant permissions at the function level, on a version, or on an alias.
To invoke your function directly, use Invoke. To invoke your function in response to events in other Amazon Web Services services, create an event source mapping (CreateEventSourceMapping), or configure a function trigger in the other service. For more information, see Invoking Functions.
", - "CreateFunctionUrlConfig": null, "DeleteAlias": "Deletes a Lambda function alias.
", "DeleteCodeSigningConfig": "Deletes the code signing configuration. You can delete the code signing configuration only if no function is using it.
", "DeleteEventSourceMapping": "Deletes an event source mapping. You can get the identifier of a mapping from the output of ListEventSourceMappings.
When you delete an event source mapping, it enters a Deleting
state and might not be completely deleted for several seconds.
Removes the code signing configuration from the function.
", "DeleteFunctionConcurrency": "Removes a concurrent execution limit from a function.
", "DeleteFunctionEventInvokeConfig": "Deletes the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
", - "DeleteFunctionUrlConfig": null, "DeleteLayerVersion": "Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.
", "DeleteProvisionedConcurrencyConfig": "Deletes the provisioned concurrency configuration for a function.
", "GetAccountSettings": "Retrieves details about your account's limits and usage in an Amazon Web Services Region.
", @@ -28,7 +26,6 @@ "GetFunctionConcurrency": "Returns details about the reserved concurrency configuration for a function. To set a concurrency limit for a function, use PutFunctionConcurrency.
", "GetFunctionConfiguration": "Returns the version-specific settings of a Lambda function or version. The output includes only options that can vary between versions of a function. To modify these settings, use UpdateFunctionConfiguration.
To get all of a function's details, including function-level settings, use GetFunction.
", "GetFunctionEventInvokeConfig": "Retrieves the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
", - "GetFunctionUrlConfig": null, "GetLayerVersion": "Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
", "GetLayerVersionByArn": "Returns information about a version of an Lambda layer, with a link to download the layer archive that's valid for 10 minutes.
", "GetLayerVersionPolicy": "Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
", @@ -40,7 +37,6 @@ "ListCodeSigningConfigs": "Returns a list of code signing configurations. A request returns up to 10,000 configurations per call. You can use the MaxItems
parameter to return fewer configurations per call.
Lists event source mappings. Specify an EventSourceArn
to only show event source mappings for a single event source.
Retrieves a list of configurations for asynchronous invocation for a function.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
", - "ListFunctionUrlConfigs": null, "ListFunctions": "Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.
Set FunctionVersion
to ALL
to include all published versions of each function in addition to the unpublished version.
The ListFunctions
action returns a subset of the FunctionConfiguration fields. To get the additional fields (State, StateReasonCode, StateReason, LastUpdateStatus, LastUpdateStatusReason, LastUpdateStatusReasonCode) for a function or version, use GetFunction.
List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.
", "ListLayerVersions": "Lists the versions of an Lambda layer. Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions that indicate that they're compatible with that runtime. Specify a compatible architecture to include only layer versions that are compatible with that architecture.
", @@ -63,8 +59,7 @@ "UpdateEventSourceMapping": "Updates an event source mapping. You can change the function that Lambda invokes, or pause invocation and resume later from the same location.
For details about how to configure different event sources, see the following topics.
The following error handling options are only available for stream sources (DynamoDB and Kinesis):
BisectBatchOnFunctionError
- If the function returns an error, split the batch in two and retry.
DestinationConfig
- Send discarded records to an Amazon SQS queue or Amazon SNS topic.
MaximumRecordAgeInSeconds
- Discard records older than the specified age. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires
MaximumRetryAttempts
- Discard records after the specified number of retries. The default value is infinite (-1). When set to infinite (-1), failed records are retried until the record expires.
ParallelizationFactor
- Process multiple batches from each shard concurrently.
For information about which configuration parameters apply to each event source, see the following topics.
", "UpdateFunctionCode": "Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by a trusted publisher. For more information, see Configuring code signing.
The function's code is locked when you publish a version. You can't modify the code of a published version, only the unpublished version.
For a function defined as a container image, Lambda resolves the image tag to an image digest. In Amazon ECR, if you update the image tag to a new image, Lambda does not automatically update the function.
Modify the version-specific settings of a Lambda function.
When you update a function, Lambda provisions an instance of the function and its supporting resources. If your function connects to a VPC, this process can take a minute. During this time, you can't modify the function, but you can still invoke it. The LastUpdateStatus
, LastUpdateStatusReason
, and LastUpdateStatusReasonCode
fields in the response from GetFunctionConfiguration indicate when the update is complete and the function is processing events with the new configuration. For more information, see Function States.
These settings can vary between versions of a function and are locked when you publish a version. You can't modify the configuration of a published version, only the unpublished version.
To configure function concurrency, use PutFunctionConcurrency. To grant invoke permissions to an account or Amazon Web Services service, use AddPermission.
", - "UpdateFunctionEventInvokeConfig": "Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
", - "UpdateFunctionUrlConfig": null + "UpdateFunctionEventInvokeConfig": "Updates the configuration for asynchronous invocation for a function, version, or alias.
To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig.
" }, "shapes": { "AccountLimit": { @@ -147,24 +142,6 @@ "UpdateAliasRequest$RoutingConfig": "The routing configuration of the alias.
" } }, - "AllowCredentials": { - "base": null, - "refs": { - "Cors$AllowCredentials": null - } - }, - "AllowMethodsList": { - "base": null, - "refs": { - "Cors$AllowMethods": null - } - }, - "AllowOriginsList": { - "base": null, - "refs": { - "Cors$AllowOrigins": null - } - }, "AllowedPublishers": { "base": "List of signing profiles that can sign a code package.
", "refs": { @@ -204,17 +181,6 @@ "SigningProfileVersionArns$member": null } }, - "AuthorizationType": { - "base": null, - "refs": { - "CreateFunctionUrlConfigRequest$AuthorizationType": null, - "CreateFunctionUrlConfigResponse$AuthorizationType": null, - "FunctionUrlConfig$AuthorizationType": null, - "GetFunctionUrlConfigResponse$AuthorizationType": null, - "UpdateFunctionUrlConfigRequest$AuthorizationType": null, - "UpdateFunctionUrlConfigResponse$AuthorizationType": null - } - }, "BatchSize": { "base": null, "refs": { @@ -343,17 +309,6 @@ "GetFunctionResponse$Concurrency": "The function's reserved concurrency.
" } }, - "Cors": { - "base": null, - "refs": { - "CreateFunctionUrlConfigRequest$Cors": null, - "CreateFunctionUrlConfigResponse$Cors": null, - "FunctionUrlConfig$Cors": null, - "GetFunctionUrlConfigResponse$Cors": null, - "UpdateFunctionUrlConfigRequest$Cors": null, - "UpdateFunctionUrlConfigResponse$Cors": null - } - }, "CreateAliasRequest": { "base": null, "refs": { @@ -379,16 +334,6 @@ "refs": { } }, - "CreateFunctionUrlConfigRequest": { - "base": null, - "refs": { - } - }, - "CreateFunctionUrlConfigResponse": { - "base": null, - "refs": { - } - }, "Date": { "base": null, "refs": { @@ -446,11 +391,6 @@ "refs": { } }, - "DeleteFunctionUrlConfigRequest": { - "base": null, - "refs": { - } - }, "DeleteLayerVersionRequest": { "base": null, "refs": { @@ -653,17 +593,17 @@ } }, "Filter": { - "base": "An object that specifies a filter criteria.
", + "base": " A structure within a FilterCriteria
object that defines an event filtering pattern.
An object that contains the filters on the event source.
", + "base": "An object that contains the filters for an event source.
", "refs": { - "CreateEventSourceMappingRequest$FilterCriteria": "(Streams and Amazon SQS) A object that defines the filter criteria used to determine whether Lambda should process an event. For more information, see Lambda event filtering.
", - "EventSourceMappingConfiguration$FilterCriteria": "(Streams and Amazon SQS) A object that defines the filter criteria used to determine whether Lambda should process an event. For more information, see Event filtering.
", - "UpdateEventSourceMappingRequest$FilterCriteria": "(Streams and Amazon SQS) A object that defines the filter criteria used to determine whether Lambda should process an event. For more information, see Lambda event filtering.
" + "CreateEventSourceMappingRequest$FilterCriteria": "(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
", + "EventSourceMappingConfiguration$FilterCriteria": "(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
", + "UpdateEventSourceMappingRequest$FilterCriteria": "(Streams and Amazon SQS) An object that defines the filter criteria that determine whether Lambda should process an event. For more information, see Lambda event filtering.
" } }, "FilterList": { @@ -676,18 +616,14 @@ "base": null, "refs": { "AliasConfiguration$AliasArn": "The Amazon Resource Name (ARN) of the alias.
", - "CreateFunctionUrlConfigResponse$FunctionArn": null, "EventSourceMappingConfiguration$FunctionArn": "The ARN of the Lambda function.
", "FunctionArnList$member": null, "FunctionConfiguration$MasterArn": "For Lambda@Edge functions, the ARN of the main function.
", "FunctionEventInvokeConfig$FunctionArn": "The Amazon Resource Name (ARN) of the function.
", - "FunctionUrlConfig$FunctionArn": null, - "GetFunctionUrlConfigResponse$FunctionArn": null, "ListTagsRequest$Resource": "The function's Amazon Resource Name (ARN). Note: Lambda does not support adding tags to aliases or versions.
", "ProvisionedConcurrencyConfigListItem$FunctionArn": "The Amazon Resource Name (ARN) of the alias or version.
", "TagResourceRequest$Resource": "The function's Amazon Resource Name (ARN).
", - "UntagResourceRequest$Resource": "The function's Amazon Resource Name (ARN).
", - "UpdateFunctionUrlConfigResponse$FunctionArn": null + "UntagResourceRequest$Resource": "The function's Amazon Resource Name (ARN).
" } }, "FunctionArnList": { @@ -741,25 +677,21 @@ "CreateAliasRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "CreateEventSourceMappingRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
", "CreateFunctionRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", - "CreateFunctionUrlConfigRequest$FunctionName": null, "DeleteAliasRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "DeleteFunctionCodeSigningConfigRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "DeleteFunctionConcurrencyRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "DeleteFunctionEventInvokeConfigRequest$FunctionName": "The name of the Lambda function, version, or alias.
Name formats
Function name - my-function
(name-only), my-function:v1
(with alias).
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "DeleteFunctionRequest$FunctionName": "The name of the Lambda function or version.
Name formats
Function name - my-function
(name-only), my-function:1
(with version).
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", - "DeleteFunctionUrlConfigRequest$FunctionName": null, "DeleteProvisionedConcurrencyConfigRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "GetAliasRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "GetFunctionCodeSigningConfigRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "GetFunctionCodeSigningConfigResponse$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "GetFunctionConcurrencyRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "GetFunctionEventInvokeConfigRequest$FunctionName": "The name of the Lambda function, version, or alias.
Name formats
Function name - my-function
(name-only), my-function:v1
(with alias).
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", - "GetFunctionUrlConfigRequest$FunctionName": null, "GetProvisionedConcurrencyConfigRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "ListAliasesRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "ListEventSourceMappingsRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
", "ListFunctionEventInvokeConfigsRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", - "ListFunctionUrlConfigsRequest$FunctionName": null, "ListProvisionedConcurrencyConfigsRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "PublishVersionRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "PutFunctionCodeSigningConfigRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", @@ -772,8 +704,7 @@ "UpdateEventSourceMappingRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - MyFunction
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction
.
Version or Alias ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction:PROD
.
Partial ARN - 123456789012:function:MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it's limited to 64 characters in length.
", "UpdateFunctionCodeRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", "UpdateFunctionConfigurationRequest$FunctionName": "The name of the Lambda function.
Name formats
Function name - my-function
.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", - "UpdateFunctionEventInvokeConfigRequest$FunctionName": "The name of the Lambda function, version, or alias.
Name formats
Function name - my-function
(name-only), my-function:v1
(with alias).
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
", - "UpdateFunctionUrlConfigRequest$FunctionName": null + "UpdateFunctionEventInvokeConfigRequest$FunctionName": "The name of the Lambda function, version, or alias.
Name formats
Function name - my-function
(name-only), my-function:v1
(with alias).
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function
.
Partial ARN - 123456789012:function:my-function
.
You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
" } }, "FunctionResponseType": { @@ -785,39 +716,9 @@ "FunctionResponseTypeList": { "base": null, "refs": { - "CreateEventSourceMappingRequest$FunctionResponseTypes": "(Streams only) A list of current response type enums applied to the event source mapping.
", + "CreateEventSourceMappingRequest$FunctionResponseTypes": "(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
", "EventSourceMappingConfiguration$FunctionResponseTypes": "(Streams only) A list of current response type enums applied to the event source mapping.
", - "UpdateEventSourceMappingRequest$FunctionResponseTypes": "(Streams only) A list of current response type enums applied to the event source mapping.
" - } - }, - "FunctionUrl": { - "base": null, - "refs": { - "CreateFunctionUrlConfigResponse$FunctionUrl": null, - "FunctionUrlConfig$FunctionUrl": null, - "GetFunctionUrlConfigResponse$FunctionUrl": null, - "UpdateFunctionUrlConfigResponse$FunctionUrl": null - } - }, - "FunctionUrlConfig": { - "base": null, - "refs": { - "FunctionUrlConfigList$member": null - } - }, - "FunctionUrlConfigList": { - "base": null, - "refs": { - "ListFunctionUrlConfigsResponse$FunctionUrlConfigs": null - } - }, - "FunctionUrlQualifier": { - "base": null, - "refs": { - "CreateFunctionUrlConfigRequest$Qualifier": null, - "DeleteFunctionUrlConfigRequest$Qualifier": null, - "GetFunctionUrlConfigRequest$Qualifier": null, - "UpdateFunctionUrlConfigRequest$Qualifier": null + "UpdateEventSourceMappingRequest$FunctionResponseTypes": "(Streams and Amazon SQS) A list of current response type enums applied to the event source mapping.
" } }, "FunctionVersion": { @@ -896,16 +797,6 @@ "refs": { } }, - "GetFunctionUrlConfigRequest": { - "base": null, - "refs": { - } - }, - "GetFunctionUrlConfigResponse": { - "base": null, - "refs": { - } - }, "GetLayerVersionByArnRequest": { "base": null, "refs": { @@ -954,22 +845,9 @@ "Handler": { "base": null, "refs": { - "CreateFunctionRequest$Handler": "The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
", + "CreateFunctionRequest$Handler": "The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
", "FunctionConfiguration$Handler": "The function that Lambda calls to begin executing your function.
", - "UpdateFunctionConfigurationRequest$Handler": "The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
" - } - }, - "Header": { - "base": null, - "refs": { - "HeadersList$member": null - } - }, - "HeadersList": { - "base": null, - "refs": { - "Cors$AllowHeaders": null, - "Cors$ExposeHeaders": null + "UpdateFunctionConfigurationRequest$Handler": "The name of the method within your code that Lambda calls to execute your function. Handler is required if the deployment package is a .zip file archive. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model.
" } }, "HttpStatus": { @@ -1275,16 +1153,6 @@ "refs": { } }, - "ListFunctionUrlConfigsRequest": { - "base": null, - "refs": { - } - }, - "ListFunctionUrlConfigsResponse": { - "base": null, - "refs": { - } - }, "ListFunctionsByCodeSigningConfigRequest": { "base": null, "refs": { @@ -1386,24 +1254,12 @@ "ListFunctionsRequest$MasterRegion": "For Lambda@Edge functions, the Amazon Web Services Region of the master function. For example, us-east-1
filters the list of functions to only include Lambda@Edge functions replicated from a master function in US East (N. Virginia). If specified, you must set FunctionVersion
to ALL
.
The maximum number of configurations to return.
" } }, - "MaxItems": { - "base": null, - "refs": { - "ListFunctionUrlConfigsRequest$MaxItems": null - } - }, "MaxLayerListItems": { "base": null, "refs": { @@ -1476,12 +1332,6 @@ "UpdateFunctionConfigurationRequest$MemorySize": "The amount of memory available to the function at runtime. Increasing the function memory also increases its CPU allocation. The default value is 128 MB. The value can be any multiple of 1 MB.
" } }, - "Method": { - "base": null, - "refs": { - "AllowMethodsList$member": null - } - }, "NameSpacedFunctionArn": { "base": null, "refs": { @@ -1535,12 +1385,6 @@ "AddLayerVersionPermissionRequest$OrganizationId": "With the principal set to *
, grant permission to all accounts in the specified organization.
A filter pattern. For more information on the syntax of a filter pattern, see Filter criteria syntax.
" + "Filter$Pattern": "A filter pattern. For more information on the syntax of a filter pattern, see Filter rule syntax.
" } }, "PolicyLengthExceededException": { @@ -1750,11 +1594,11 @@ "base": null, "refs": { "CompatibleRuntimes$member": null, - "CreateFunctionRequest$Runtime": "The identifier of the function's runtime.
", + "CreateFunctionRequest$Runtime": "The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
", "FunctionConfiguration$Runtime": "The runtime environment for the Lambda function.
", "ListLayerVersionsRequest$CompatibleRuntime": "A runtime identifier. For example, go1.x
.
A runtime identifier. For example, go1.x
.
The identifier of the function's runtime.
" + "UpdateFunctionConfigurationRequest$Runtime": "The identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive.
" } }, "S3Bucket": { @@ -1836,7 +1680,7 @@ "SourceAccessType": { "base": null, "refs": { - "SourceAccessConfiguration$Type": "The type of authentication protocol, VPC components, or virtual host for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\"
.
BASIC_AUTH
- (Amazon MQ) The Secrets Manager secret that stores your broker credentials.
BASIC_AUTH
- (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
VPC_SUBNET
- The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
VPC_SECURITY_GROUP
- The VPC security group used to manage access to your self-managed Apache Kafka brokers.
SASL_SCRAM_256_AUTH
- The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
SASL_SCRAM_512_AUTH
- The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
VIRTUAL_HOST
- (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
The type of authentication protocol, VPC components, or virtual host for your event source. For example: \"Type\":\"SASL_SCRAM_512_AUTH\"
.
BASIC_AUTH
- (Amazon MQ) The Secrets Manager secret that stores your broker credentials.
BASIC_AUTH
- (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key used for SASL/PLAIN authentication of your Apache Kafka brokers.
VPC_SUBNET
- The subnets associated with your VPC. Lambda connects to these subnets to fetch data from your self-managed Apache Kafka cluster.
VPC_SECURITY_GROUP
- The VPC security group used to manage access to your self-managed Apache Kafka brokers.
SASL_SCRAM_256_AUTH
- The Secrets Manager ARN of your secret key used for SASL SCRAM-256 authentication of your self-managed Apache Kafka brokers.
SASL_SCRAM_512_AUTH
- The Secrets Manager ARN of your secret key used for SASL SCRAM-512 authentication of your self-managed Apache Kafka brokers.
VIRTUAL_HOST
- (Amazon MQ) The name of the virtual host in your RabbitMQ broker. Lambda uses this RabbitMQ host as the event source. This property cannot be specified in an UpdateEventSourceMapping API call.
CLIENT_CERTIFICATE_TLS_AUTH
- (Amazon MSK, Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the certificate chain (X.509 PEM), private key (PKCS#8 PEM), and private key password (optional) used for mutual TLS authentication of your MSK/Apache Kafka brokers.
SERVER_ROOT_CA_CERTIFICATE
- (Self-managed Apache Kafka) The Secrets Manager ARN of your secret key containing the root CA certificate (X.509 PEM) used for TLS encryption of your Apache Kafka brokers.
A pagination token that's returned when the response doesn't contain all event source mappings.
", "ListFunctionEventInvokeConfigsRequest$Marker": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
", "ListFunctionEventInvokeConfigsResponse$NextMarker": "The pagination token that's included if more results are available.
", - "ListFunctionUrlConfigsRequest$Marker": null, - "ListFunctionUrlConfigsResponse$NextMarker": null, "ListFunctionsByCodeSigningConfigRequest$Marker": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
", "ListFunctionsByCodeSigningConfigResponse$NextMarker": "The pagination token that's included if more results are available.
", "ListFunctionsRequest$Marker": "Specify the pagination token that's returned by a previous request to retrieve the next page of results.
", @@ -2089,20 +1931,13 @@ "base": null, "refs": { "CodeSigningConfig$LastModified": "The date and time that the Code signing configuration was last modified, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
", - "CreateFunctionUrlConfigResponse$CreationTime": null, "FunctionConfiguration$LastModified": "The date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
", - "FunctionUrlConfig$CreationTime": null, - "FunctionUrlConfig$LastModifiedTime": null, - "GetFunctionUrlConfigResponse$CreationTime": null, - "GetFunctionUrlConfigResponse$LastModifiedTime": null, "GetLayerVersionResponse$CreatedDate": "The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
", "GetProvisionedConcurrencyConfigResponse$LastModified": "The date and time that a user last updated the configuration, in ISO 8601 format.
", "LayerVersionsListItem$CreatedDate": "The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000
.
The date and time that a user last updated the configuration, in ISO 8601 format.
", "PublishLayerVersionResponse$CreatedDate": "The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
", - "PutProvisionedConcurrencyConfigResponse$LastModified": "The date and time that a user last updated the configuration, in ISO 8601 format.
", - "UpdateFunctionUrlConfigResponse$CreationTime": null, - "UpdateFunctionUrlConfigResponse$LastModifiedTime": null + "PutProvisionedConcurrencyConfigResponse$LastModified": "The date and time that a user last updated the configuration, in ISO 8601 format.
" } }, "TooManyRequestsException": { @@ -2208,16 +2043,6 @@ "refs": { } }, - "UpdateFunctionUrlConfigRequest": { - "base": null, - "refs": { - } - }, - "UpdateFunctionUrlConfigResponse": { - "base": null, - "refs": { - } - }, "Version": { "base": null, "refs": { diff --git a/models/apis/lambda/2015-03-31/paginators-1.json b/models/apis/lambda/2015-03-31/paginators-1.json index 08b730744a..cd03e6bb38 100644 --- a/models/apis/lambda/2015-03-31/paginators-1.json +++ b/models/apis/lambda/2015-03-31/paginators-1.json @@ -24,12 +24,6 @@ "output_token": "NextMarker", "result_key": "FunctionEventInvokeConfigs" }, - "ListFunctionUrlConfigs": { - "input_token": "Marker", - "limit_key": "MaxItems", - "output_token": "NextMarker", - "result_key": "FunctionUrlConfigs" - }, "ListFunctions": { "input_token": "Marker", "limit_key": "MaxItems", diff --git a/models/apis/proton/2020-07-20/api-2.json b/models/apis/proton/2020-07-20/api-2.json index 3ebbbe3169..09d8f67643 100644 --- a/models/apis/proton/2020-07-20/api-2.json +++ b/models/apis/proton/2020-07-20/api-2.json @@ -156,6 +156,24 @@ ], "idempotent":true }, + "CreateRepository":{ + "name":"CreateRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateRepositoryInput"}, + "output":{"shape":"CreateRepositoryOutput"}, + "errors":[ + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ], + "idempotent":true + }, "CreateService":{ "name":"CreateService", "http":{ @@ -212,6 +230,24 @@ ], "idempotent":true }, + "CreateTemplateSyncConfig":{ + "name":"CreateTemplateSyncConfig", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateTemplateSyncConfigInput"}, + "output":{"shape":"CreateTemplateSyncConfigOutput"}, + "errors":[ + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ], + "idempotent":true + }, "DeleteEnvironment":{ "name":"DeleteEnvironment", "http":{ @@ -284,6 +320,24 @@ ], "idempotent":true }, + "DeleteRepository":{ + "name":"DeleteRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteRepositoryInput"}, + "output":{"shape":"DeleteRepositoryOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ], + "idempotent":true + }, "DeleteService":{ "name":"DeleteService", "http":{ @@ -338,6 +392,24 @@ ], "idempotent":true }, + "DeleteTemplateSyncConfig":{ + "name":"DeleteTemplateSyncConfig", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteTemplateSyncConfigInput"}, + "output":{"shape":"DeleteTemplateSyncConfigOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ], + "idempotent":true + }, "GetAccountSettings":{ "name":"GetAccountSettings", "http":{ @@ -418,6 +490,38 @@ {"shape":"InternalServerException"} ] }, + "GetRepository":{ + "name":"GetRepository", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRepositoryInput"}, + "output":{"shape":"GetRepositoryOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "GetRepositorySyncStatus":{ + "name":"GetRepositorySyncStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetRepositorySyncStatusInput"}, + "output":{"shape":"GetRepositorySyncStatusOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "GetService":{ "name":"GetService", "http":{ @@ -482,6 +586,38 @@ {"shape":"InternalServerException"} ] }, + "GetTemplateSyncConfig":{ + "name":"GetTemplateSyncConfig", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTemplateSyncConfigInput"}, + "output":{"shape":"GetTemplateSyncConfigOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "GetTemplateSyncStatus":{ + "name":"GetTemplateSyncStatus", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetTemplateSyncStatusInput"}, + "output":{"shape":"GetTemplateSyncStatusOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "ListEnvironmentAccountConnections":{ "name":"ListEnvironmentAccountConnections", "http":{ @@ -497,6 +633,38 @@ {"shape":"InternalServerException"} ] }, + "ListEnvironmentOutputs":{ + "name":"ListEnvironmentOutputs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListEnvironmentOutputsInput"}, + "output":{"shape":"ListEnvironmentOutputsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "ListEnvironmentProvisionedResources":{ + "name":"ListEnvironmentProvisionedResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListEnvironmentProvisionedResourcesInput"}, + "output":{"shape":"ListEnvironmentProvisionedResourcesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "ListEnvironmentTemplateVersions":{ "name":"ListEnvironmentTemplateVersions", "http":{ @@ -544,6 +712,69 @@ {"shape":"InternalServerException"} ] }, + "ListRepositories":{ + "name":"ListRepositories", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRepositoriesInput"}, + "output":{"shape":"ListRepositoriesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "ListRepositorySyncDefinitions":{ + "name":"ListRepositorySyncDefinitions", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListRepositorySyncDefinitionsInput"}, + "output":{"shape":"ListRepositorySyncDefinitionsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "ListServiceInstanceOutputs":{ + "name":"ListServiceInstanceOutputs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServiceInstanceOutputsInput"}, + "output":{"shape":"ListServiceInstanceOutputsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "ListServiceInstanceProvisionedResources":{ + "name":"ListServiceInstanceProvisionedResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServiceInstanceProvisionedResourcesInput"}, + "output":{"shape":"ListServiceInstanceProvisionedResourcesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "ListServiceInstances":{ "name":"ListServiceInstances", "http":{ @@ -560,6 +791,38 @@ {"shape":"InternalServerException"} ] }, + "ListServicePipelineOutputs":{ + "name":"ListServicePipelineOutputs", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServicePipelineOutputsInput"}, + "output":{"shape":"ListServicePipelineOutputsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, + "ListServicePipelineProvisionedResources":{ + "name":"ListServicePipelineProvisionedResources", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListServicePipelineProvisionedResourcesInput"}, + "output":{"shape":"ListServicePipelineProvisionedResourcesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "ListServiceTemplateVersions":{ "name":"ListServiceTemplateVersions", "http":{ @@ -622,6 +885,24 @@ {"shape":"InternalServerException"} ] }, + "NotifyResourceDeploymentStatusChange":{ + "name":"NotifyResourceDeploymentStatusChange", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"NotifyResourceDeploymentStatusChangeInput"}, + "output":{"shape":"NotifyResourceDeploymentStatusChangeOutput"}, + "errors":[ + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "RejectEnvironmentAccountConnection":{ "name":"RejectEnvironmentAccountConnection", "http":{ @@ -846,6 +1127,23 @@ {"shape":"ResourceNotFoundException"}, {"shape":"InternalServerException"} ] + }, + "UpdateTemplateSyncConfig":{ + "name":"UpdateTemplateSyncConfig", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateTemplateSyncConfigInput"}, + "output":{"shape":"UpdateTemplateSyncConfigOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] } }, "shapes":{ @@ -874,7 +1172,8 @@ "AccountSettings":{ "type":"structure", "members":{ - "pipelineServiceRoleArn":{"shape":"Arn"} + "pipelineProvisioningRepository":{"shape":"RepositoryBranch"}, + "pipelineServiceRoleArn":{"shape":"PipelineRoleArn"} } }, "Arn":{ @@ -992,7 +1291,8 @@ }, "environmentName":{"shape":"ResourceName"}, "managementAccountId":{"shape":"AwsAccountId"}, - "roleArn":{"shape":"Arn"} + "roleArn":{"shape":"Arn"}, + "tags":{"shape":"TagList"} } }, "CreateEnvironmentAccountConnectionOutput":{ @@ -1015,6 +1315,7 @@ "environmentAccountConnectionId":{"shape":"EnvironmentAccountConnectionId"}, "name":{"shape":"ResourceName"}, "protonServiceRoleArn":{"shape":"Arn"}, + "provisioningRepository":{"shape":"RepositoryBranchInput"}, "spec":{"shape":"SpecContents"}, "tags":{"shape":"TagList"}, "templateMajorVersion":{"shape":"TemplateVersionPart"}, @@ -1073,6 +1374,27 @@ "environmentTemplateVersion":{"shape":"EnvironmentTemplateVersion"} } }, + "CreateRepositoryInput":{ + "type":"structure", + "required":[ + "connectionArn", + "name", + "provider" + ], + "members":{ + "connectionArn":{"shape":"Arn"}, + "encryptionKey":{"shape":"Arn"}, + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, + "CreateRepositoryOutput":{ + "type":"structure", + "required":["repository"], + "members":{ + "repository":{"shape":"Repository"} + } + }, "CreateServiceInput":{ "type":"structure", "required":[ @@ -1147,6 +1469,30 @@ "serviceTemplateVersion":{"shape":"ServiceTemplateVersion"} } }, + "CreateTemplateSyncConfigInput":{ + "type":"structure", + "required":[ + "branch", + "repositoryName", + "repositoryProvider", + "templateName", + "templateType" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryProvider":{"shape":"RepositoryProvider"}, + "subdirectory":{"shape":"Subdirectory"}, + "templateName":{"shape":"ResourceName"}, + "templateType":{"shape":"TemplateType"} + } + }, + "CreateTemplateSyncConfigOutput":{ + "type":"structure", + "members":{ + "templateSyncConfig":{"shape":"TemplateSyncConfig"} + } + }, "DeleteEnvironmentAccountConnectionInput":{ "type":"structure", "required":["id"], @@ -1205,9 +1551,26 @@ "environmentTemplateVersion":{"shape":"EnvironmentTemplateVersion"} } }, - "DeleteServiceInput":{ + "DeleteRepositoryInput":{ "type":"structure", - "required":["name"], + "required":[ + "name", + "provider" + ], + "members":{ + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, + "DeleteRepositoryOutput":{ + "type":"structure", + "members":{ + "repository":{"shape":"Repository"} + } + }, + "DeleteServiceInput":{ + "type":"structure", + "required":["name"], "members":{ "name":{"shape":"ResourceName"} } @@ -1250,6 +1613,27 @@ "serviceTemplateVersion":{"shape":"ServiceTemplateVersion"} } }, + "DeleteTemplateSyncConfigInput":{ + "type":"structure", + "required":[ + "templateName", + "templateType" + ], + "members":{ + "templateName":{"shape":"ResourceName"}, + "templateType":{"shape":"TemplateType"} + } + }, + "DeleteTemplateSyncConfigOutput":{ + "type":"structure", + "members":{ + "templateSyncConfig":{"shape":"TemplateSyncConfig"} + } + }, + "DeploymentId":{ + "type":"string", + "pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" + }, "DeploymentStatus":{ "type":"string", "enum":[ @@ -1284,6 +1668,11 @@ "min":1, "sensitive":true }, + "EmptyNextToken":{ + "type":"string", + "max":0, + "min":0 + }, "Environment":{ "type":"structure", "required":[ @@ -1310,6 +1699,7 @@ "name":{"shape":"ResourceName"}, "protonServiceRoleArn":{"shape":"Arn"}, "provisioning":{"shape":"Provisioning"}, + "provisioningRepository":{"shape":"RepositoryBranch"}, "spec":{"shape":"SpecContents"}, "templateMajorVersion":{"shape":"TemplateVersionPart"}, "templateMinorVersion":{"shape":"TemplateVersionPart"}, @@ -1626,6 +2016,45 @@ "environmentTemplateVersion":{"shape":"EnvironmentTemplateVersion"} } }, + "GetRepositoryInput":{ + "type":"structure", + "required":[ + "name", + "provider" + ], + "members":{ + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, + "GetRepositoryOutput":{ + "type":"structure", + "required":["repository"], + "members":{ + "repository":{"shape":"Repository"} + } + }, + "GetRepositorySyncStatusInput":{ + "type":"structure", + "required":[ + "branch", + "repositoryName", + "repositoryProvider", + "syncType" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryProvider":{"shape":"RepositoryProvider"}, + "syncType":{"shape":"SyncType"} + } + }, + "GetRepositorySyncStatusOutput":{ + "type":"structure", + "members":{ + "latestSync":{"shape":"RepositorySyncAttempt"} + } + }, "GetServiceInput":{ "type":"structure", "required":["name"], @@ -1691,6 +2120,44 @@ "serviceTemplateVersion":{"shape":"ServiceTemplateVersion"} } }, + "GetTemplateSyncConfigInput":{ + "type":"structure", + "required":[ + "templateName", + "templateType" + ], + "members":{ + "templateName":{"shape":"ResourceName"}, + "templateType":{"shape":"TemplateType"} + } + }, + "GetTemplateSyncConfigOutput":{ + "type":"structure", + "members":{ + "templateSyncConfig":{"shape":"TemplateSyncConfig"} + } + }, + "GetTemplateSyncStatusInput":{ + "type":"structure", + "required":[ + "templateName", + "templateType", + "templateVersion" + ], + "members":{ + "templateName":{"shape":"ResourceName"}, + "templateType":{"shape":"TemplateType"}, + "templateVersion":{"shape":"TemplateVersionPart"} + } + }, + "GetTemplateSyncStatusOutput":{ + "type":"structure", + "members":{ + "desiredState":{"shape":"Revision"}, + "latestSuccessfulSync":{"shape":"ResourceSyncAttempt"}, + "latestSync":{"shape":"ResourceSyncAttempt"} + } + }, "GitBranchName":{ "type":"string", "max":200, @@ -1725,6 +2192,38 @@ "nextToken":{"shape":"NextToken"} } }, + "ListEnvironmentOutputsInput":{ + "type":"structure", + "required":["environmentName"], + "members":{ + "environmentName":{"shape":"ResourceName"}, + "nextToken":{"shape":"EmptyNextToken"} + } + }, + "ListEnvironmentOutputsOutput":{ + "type":"structure", + "required":["outputs"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "outputs":{"shape":"OutputsList"} + } + }, + "ListEnvironmentProvisionedResourcesInput":{ + "type":"structure", + "required":["environmentName"], + "members":{ + "environmentName":{"shape":"ResourceName"}, + "nextToken":{"shape":"EmptyNextToken"} + } + }, + "ListEnvironmentProvisionedResourcesOutput":{ + "type":"structure", + "required":["provisionedResources"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "provisionedResources":{"shape":"ProvisionedResourceList"} + } + }, "ListEnvironmentTemplateVersionsInput":{ "type":"structure", "required":["templateName"], @@ -1774,6 +2273,83 @@ "nextToken":{"shape":"NextToken"} } }, + "ListRepositoriesInput":{ + "type":"structure", + "members":{ + "maxResults":{"shape":"MaxPageResults"}, + "nextToken":{"shape":"NextToken"} + } + }, + "ListRepositoriesOutput":{ + "type":"structure", + "required":["repositories"], + "members":{ + "nextToken":{"shape":"NextToken"}, + "repositories":{"shape":"RepositorySummaryList"} + } + }, + "ListRepositorySyncDefinitionsInput":{ + "type":"structure", + "required":[ + "repositoryName", + "repositoryProvider", + "syncType" + ], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryProvider":{"shape":"RepositoryProvider"}, + "syncType":{"shape":"SyncType"} + } + }, + "ListRepositorySyncDefinitionsOutput":{ + "type":"structure", + "required":["syncDefinitions"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "syncDefinitions":{"shape":"RepositorySyncDefinitionList"} + } + }, + "ListServiceInstanceOutputsInput":{ + "type":"structure", + "required":[ + "serviceInstanceName", + "serviceName" + ], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "serviceInstanceName":{"shape":"ResourceName"}, + "serviceName":{"shape":"ResourceName"} + } + }, + "ListServiceInstanceOutputsOutput":{ + "type":"structure", + "required":["outputs"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "outputs":{"shape":"OutputsList"} + } + }, + "ListServiceInstanceProvisionedResourcesInput":{ + "type":"structure", + "required":[ + "serviceInstanceName", + "serviceName" + ], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "serviceInstanceName":{"shape":"ResourceName"}, + "serviceName":{"shape":"ResourceName"} + } + }, + "ListServiceInstanceProvisionedResourcesOutput":{ + "type":"structure", + "required":["provisionedResources"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "provisionedResources":{"shape":"ProvisionedResourceList"} + } + }, "ListServiceInstancesInput":{ "type":"structure", "members":{ @@ -1790,6 +2366,38 @@ "serviceInstances":{"shape":"ServiceInstanceSummaryList"} } }, + "ListServicePipelineOutputsInput":{ + "type":"structure", + "required":["serviceName"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "serviceName":{"shape":"ResourceName"} + } + }, + "ListServicePipelineOutputsOutput":{ + "type":"structure", + "required":["outputs"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "outputs":{"shape":"OutputsList"} + } + }, + "ListServicePipelineProvisionedResourcesInput":{ + "type":"structure", + "required":["serviceName"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "serviceName":{"shape":"ResourceName"} + } + }, + "ListServicePipelineProvisionedResourcesOutput":{ + "type":"structure", + "required":["provisionedResources"], + "members":{ + "nextToken":{"shape":"EmptyNextToken"}, + "provisionedResources":{"shape":"ProvisionedResourceList"} + } + }, "ListServiceTemplateVersionsInput":{ "type":"structure", "required":["templateName"], @@ -1865,6 +2473,88 @@ "type":"string", "pattern":"^[A-Za-z0-9+=/]+$" }, + "NotifyResourceDeploymentStatusChangeInput":{ + "type":"structure", + "required":[ + "resourceArn", + "status" + ], + "members":{ + "deploymentId":{"shape":"DeploymentId"}, + "outputs":{"shape":"NotifyResourceDeploymentStatusChangeInputOutputsList"}, + "resourceArn":{"shape":"Arn"}, + "status":{"shape":"ResourceDeploymentStatus"}, + "statusMessage":{"shape":"SyntheticNotifyResourceDeploymentStatusChangeInputString"} + } + }, + "NotifyResourceDeploymentStatusChangeInputOutputsList":{ + "type":"list", + "member":{"shape":"Output"}, + "max":50, + "min":0 + }, + "NotifyResourceDeploymentStatusChangeOutput":{ + "type":"structure", + "members":{ + } + }, + "Output":{ + "type":"structure", + "members":{ + "key":{"shape":"OutputKey"}, + "valueString":{"shape":"OutputValueString"} + }, + "sensitive":true + }, + "OutputKey":{ + "type":"string", + "max":1024, + "min":1 + }, + "OutputValueString":{ + "type":"string", + "max":1024, + "min":1 + }, + "OutputsList":{ + "type":"list", + "member":{"shape":"Output"} + }, + "PipelineRoleArn":{ + "type":"string", + "max":2048, + "min":0, + "pattern":"(^$)|(^arn:[a-zA-Z-]+:[a-zA-Z0-9-]+:[a-zA-Z0-9-]*:\\d*:[\\w+=\\/:,\\.@-]*)" + }, + "ProvisionedResource":{ + "type":"structure", + "members":{ + "identifier":{"shape":"ProvisionedResourceIdentifier"}, + "name":{"shape":"ProvisionedResourceName"}, + "provisioningEngine":{"shape":"ProvisionedResourceEngine"} + } + }, + "ProvisionedResourceEngine":{ + "type":"string", + "enum":[ + "CLOUDFORMATION", + "TERRAFORM" + ] + }, + "ProvisionedResourceIdentifier":{ + "type":"string", + "max":200, + "min":1 + }, + "ProvisionedResourceList":{ + "type":"list", + "member":{"shape":"ProvisionedResource"} + }, + "ProvisionedResourceName":{ + "type":"string", + "max":200, + "min":1 + }, "Provisioning":{ "type":"string", "enum":["CUSTOMER_MANAGED"] @@ -1883,11 +2573,155 @@ "environmentAccountConnection":{"shape":"EnvironmentAccountConnection"} } }, + "Repository":{ + "type":"structure", + "required":[ + "arn", + "connectionArn", + "name", + "provider" + ], + "members":{ + "arn":{"shape":"RepositoryArn"}, + "connectionArn":{"shape":"Arn"}, + "encryptionKey":{"shape":"Arn"}, + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, + "RepositoryArn":{"type":"string"}, + "RepositoryBranch":{ + "type":"structure", + "required":[ + "arn", + "branch", + "name", + "provider" + ], + "members":{ + "arn":{"shape":"RepositoryArn"}, + "branch":{"shape":"GitBranchName"}, + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, + "RepositoryBranchInput":{ + "type":"structure", + "required":[ + "branch", + "name", + "provider" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, "RepositoryId":{ "type":"string", "max":200, "min":1 }, + "RepositoryName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"[A-Za-z0-9_.-].*/[A-Za-z0-9_.-].*" + }, + "RepositoryProvider":{ + "type":"string", + "enum":[ + "GITHUB", + "GITHUB_ENTERPRISE", + "BITBUCKET" + ] + }, + "RepositorySummary":{ + "type":"structure", + "required":[ + "arn", + "name", + "provider" + ], + "members":{ + "arn":{"shape":"RepositoryArn"}, + "name":{"shape":"RepositoryName"}, + "provider":{"shape":"RepositoryProvider"} + } + }, + "RepositorySummaryList":{ + "type":"list", + "member":{"shape":"RepositorySummary"} + }, + "RepositorySyncAttempt":{ + "type":"structure", + "required":[ + "events", + "startedAt", + "status" + ], + "members":{ + "events":{"shape":"RepositorySyncEvents"}, + "startedAt":{"shape":"Timestamp"}, + "status":{"shape":"RepositorySyncStatus"} + } + }, + "RepositorySyncDefinition":{ + "type":"structure", + "required":[ + "branch", + "directory", + "parent", + "target" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "directory":{"shape":"String"}, + "parent":{"shape":"String"}, + "target":{"shape":"String"} + } + }, + "RepositorySyncDefinitionList":{ + "type":"list", + "member":{"shape":"RepositorySyncDefinition"} + }, + "RepositorySyncEvent":{ + "type":"structure", + "required":[ + "event", + "time", + "type" + ], + "members":{ + "event":{"shape":"String"}, + "externalId":{"shape":"String"}, + "time":{"shape":"Timestamp"}, + "type":{"shape":"String"} + } + }, + "RepositorySyncEvents":{ + "type":"list", + "member":{"shape":"RepositorySyncEvent"} + }, + "RepositorySyncStatus":{ + "type":"string", + "enum":[ + "INITIATED", + "IN_PROGRESS", + "SUCCEEDED", + "FAILED", + "QUEUED" + ] + }, + "ResourceDeploymentStatus":{ + "type":"string", + "enum":[ + "IN_PROGRESS", + "FAILED", + "SUCCEEDED" + ] + }, "ResourceName":{ "type":"string", "max":100, @@ -1902,6 +2736,69 @@ }, "exception":true }, + "ResourceSyncAttempt":{ + "type":"structure", + "required":[ + "events", + "initialRevision", + "startedAt", + "status", + "target", + "targetRevision" + ], + "members":{ + "events":{"shape":"ResourceSyncEvents"}, + "initialRevision":{"shape":"Revision"}, + "startedAt":{"shape":"Timestamp"}, + "status":{"shape":"ResourceSyncStatus"}, + "target":{"shape":"String"}, + "targetRevision":{"shape":"Revision"} + } + }, + "ResourceSyncEvent":{ + "type":"structure", + "required":[ + "event", + "time", + "type" + ], + "members":{ + "event":{"shape":"String"}, + "externalId":{"shape":"String"}, + "time":{"shape":"Timestamp"}, + "type":{"shape":"String"} + } + }, + "ResourceSyncEvents":{ + "type":"list", + "member":{"shape":"ResourceSyncEvent"} + }, + "ResourceSyncStatus":{ + "type":"string", + "enum":[ + "INITIATED", + "IN_PROGRESS", + "SUCCEEDED", + "FAILED" + ] + }, + "Revision":{ + "type":"structure", + "required":[ + "branch", + "directory", + "repositoryName", + "repositoryProvider", + "sha" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "directory":{"shape":"String"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryProvider":{"shape":"RepositoryProvider"}, + "sha":{"shape":"SHA"} + } + }, "S3Bucket":{ "type":"string", "max":63, @@ -1924,6 +2821,11 @@ "key":{"shape":"S3Key"} } }, + "SHA":{ + "type":"string", + "max":255, + "min":1 + }, "Service":{ "type":"structure", "required":[ @@ -2206,6 +3108,21 @@ "sensitive":true }, "String":{"type":"string"}, + "Subdirectory":{ + "type":"string", + "max":4096, + "min":1 + }, + "SyncType":{ + "type":"string", + "enum":["TEMPLATE_SYNC"] + }, + "SyntheticNotifyResourceDeploymentStatusChangeInputString":{ + "type":"string", + "max":5000, + "min":0, + "sensitive":true + }, "Tag":{ "type":"structure", "required":[ @@ -2261,6 +3178,31 @@ "min":1, "sensitive":true }, + "TemplateSyncConfig":{ + "type":"structure", + "required":[ + "branch", + "repositoryName", + "repositoryProvider", + "templateName", + "templateType" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryProvider":{"shape":"RepositoryProvider"}, + "subdirectory":{"shape":"Subdirectory"}, + "templateName":{"shape":"ResourceName"}, + "templateType":{"shape":"TemplateType"} + } + }, + "TemplateType":{ + "type":"string", + "enum":[ + "ENVIRONMENT", + "SERVICE" + ] + }, "TemplateVersionPart":{ "type":"string", "max":20, @@ -2312,7 +3254,8 @@ "UpdateAccountSettingsInput":{ "type":"structure", "members":{ - "pipelineServiceRoleArn":{"shape":"Arn"} + "pipelineProvisioningRepository":{"shape":"RepositoryBranchInput"}, + "pipelineServiceRoleArn":{"shape":"PipelineRoleArn"} } }, "UpdateAccountSettingsOutput":{ @@ -2352,6 +3295,7 @@ "environmentAccountConnectionId":{"shape":"EnvironmentAccountConnectionId"}, "name":{"shape":"ResourceName"}, "protonServiceRoleArn":{"shape":"Arn"}, + "provisioningRepository":{"shape":"RepositoryBranchInput"}, "spec":{"shape":"SpecContents"}, "templateMajorVersion":{"shape":"TemplateVersionPart"}, "templateMinorVersion":{"shape":"TemplateVersionPart"} @@ -2502,6 +3446,30 @@ "serviceTemplateVersion":{"shape":"ServiceTemplateVersion"} } }, + "UpdateTemplateSyncConfigInput":{ + "type":"structure", + "required":[ + "branch", + "repositoryName", + "repositoryProvider", + "templateName", + "templateType" + ], + "members":{ + "branch":{"shape":"GitBranchName"}, + "repositoryName":{"shape":"RepositoryName"}, + "repositoryProvider":{"shape":"RepositoryProvider"}, + "subdirectory":{"shape":"Subdirectory"}, + "templateName":{"shape":"ResourceName"}, + "templateType":{"shape":"TemplateType"} + } + }, + "UpdateTemplateSyncConfigOutput":{ + "type":"structure", + "members":{ + "templateSyncConfig":{"shape":"TemplateSyncConfig"} + } + }, "ValidationException":{ "type":"structure", "required":["message"], diff --git a/models/apis/proton/2020-07-20/docs-2.json b/models/apis/proton/2020-07-20/docs-2.json index bdf5a4e7a8..2b20ab7920 100644 --- a/models/apis/proton/2020-07-20/docs-2.json +++ b/models/apis/proton/2020-07-20/docs-2.json @@ -1,56 +1,74 @@ { "version": "2.0", - "service": "This is the AWS Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the AWS Proton service.
The documentation for each action shows the Query API request parameters and the XML response.
Alternatively, you can use the AWS CLI to access an API. For more information, see the AWS Command Line Interface User Guide.
The AWS Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available service templates to automate their application or service deployments.
Because administrators define the infrastructure and tooling that AWS Proton deploys and manages, they need permissions to use all of the listed API operations.
When developers select a specific infrastructure and tooling set, AWS Proton deploys their applications. To monitor their applications that are running on AWS Proton, developers need permissions to the service create, list, update and delete API operations and the service instance list and update API operations.
To learn more about AWS Proton administration, see the AWS Proton Administrator Guide.
To learn more about deploying serverless and containerized applications on AWS Proton, see the AWS Proton User Guide.
Ensuring Idempotency
When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation occurs multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the original request action completes successfully, any subsequent retries complete successfully without performing any further actions. However, the result might contain updated information, such as the current creation status.
The following lists of APIs are grouped according to methods that ensure idempotency.
Idempotent create APIs with a client token
The API actions in this list support idempotency with the use of a client token. The corresponding AWS CLI commands also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request using one of these actions, specify a client token in the request. We recommend that you don't reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a default client token is automatically provided by SDKs.
Given a request action that has succeeded:
If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions other than returning the original resource detail data in the response.
If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a ValidationException
with an IdempotentParameterMismatch
error.
Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is created.
If the original resource is deleted and you retry the request, a new resource is created.
Idempotent create APIs with a client token:
CreateEnvironmentTemplateVersion
CreateServiceTemplateVersion
CreateEnvironmentAccountConnection
Idempotent create APIs
Given a request action that has succeeded:
If you retry the request with an API from this group, and the original resource hasn't been modified, the retry succeeds without performing any further actions other than returning the original resource detail data in the response.
If the original resource has been modified, the retry throws a ConflictException
.
If you retry with different input parameters, the retry throws a ValidationException
with an IdempotentParameterMismatch
error.
Idempotent create APIs:
CreateEnvironmentTemplate
CreateServiceTemplate
CreateEnvironment
CreateService
Idempotent delete APIs
Given a request action that has succeeded:
When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.
If you retry and the resource doesn't exist, the response is empty.
In both cases, the retry succeeds.
Idempotent delete APIs:
DeleteEnvironmentTemplate
DeleteEnvironmentTemplateVersion
DeleteServiceTemplate
DeleteServiceTemplateVersion
DeleteEnvironmentAccountConnection
Asynchronous idempotent delete APIs
Given a request action that has succeeded:
If you retry the request with an API from this group, if the original request delete operation status is DELETE_IN_PROGRESS
, the retry returns the resource detail data in the response without performing any further actions.
If the original request delete operation is complete, a retry returns an empty response.
Asynchronous idempotent delete APIs:
DeleteEnvironment
DeleteService
This is the Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the Proton service.
The documentation for each action shows the Query API request parameters and the XML response.
Alternatively, you can use the Amazon Web Services CLI to access an API. For more information, see the Amazon Web Services Command Line Interface User Guide.
The Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available service templates to automate their application or service deployments.
Because administrators define the infrastructure and tooling that Proton deploys and manages, they need permissions to use all of the listed API operations.
When developers select a specific infrastructure and tooling set, Proton deploys their applications. To monitor their applications that are running on Proton, developers need permissions to the service create, list, update and delete API operations and the service instance list and update API operations.
To learn more about Proton administration, see the Proton Administrator Guide.
To learn more about deploying serverless and containerized applications on Proton, see the Proton User Guide.
Ensuring Idempotency
When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation occurs multiple times. This means that you might create more resources than you intended.
Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the original request action completes successfully, any subsequent retries complete successfully without performing any further actions. However, the result might contain updated information, such as the current creation status.
The following lists of APIs are grouped according to methods that ensure idempotency.
Idempotent create APIs with a client token
The API actions in this list support idempotency with the use of a client token. The corresponding Amazon Web Services CLI commands also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request using one of these actions, specify a client token in the request. We recommend that you don't reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a default client token is automatically provided by SDKs.
Given a request action that has succeeded:
If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions other than returning the original resource detail data in the response.
If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a ValidationException
with an IdempotentParameterMismatch
error.
Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is created.
If the original resource is deleted and you retry the request, a new resource is created.
Idempotent create APIs with a client token:
CreateEnvironmentTemplateVersion
CreateServiceTemplateVersion
CreateEnvironmentAccountConnection
Idempotent create APIs
Given a request action that has succeeded:
If you retry the request with an API from this group, and the original resource hasn't been modified, the retry succeeds without performing any further actions other than returning the original resource detail data in the response.
If the original resource has been modified, the retry throws a ConflictException
.
If you retry with different input parameters, the retry throws a ValidationException
with an IdempotentParameterMismatch
error.
Idempotent create APIs:
CreateEnvironmentTemplate
CreateServiceTemplate
CreateEnvironment
CreateService
Idempotent delete APIs
Given a request action that has succeeded:
When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.
If you retry and the resource doesn't exist, the response is empty.
In both cases, the retry succeeds.
Idempotent delete APIs:
DeleteEnvironmentTemplate
DeleteEnvironmentTemplateVersion
DeleteServiceTemplate
DeleteServiceTemplateVersion
DeleteEnvironmentAccountConnection
Asynchronous idempotent delete APIs
Given a request action that has succeeded:
If you retry the request with an API from this group, if the original request delete operation status is DELETE_IN_PROGRESS
, the retry returns the resource detail data in the response without performing any further actions.
If the original request delete operation is complete, a retry returns an empty response.
Asynchronous idempotent delete APIs:
DeleteEnvironment
DeleteService
In a management account, an environment account connection request is accepted. When the environment account connection request is accepted, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.
For more information, see Environment account connections in the AWS Proton Administrator guide.
", - "CancelEnvironmentDeployment": "Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS
. For more information, see Update an environment in the AWS Proton Administrator guide.
The following list includes potential cancellation scenarios.
If the cancellation attempt succeeds, the resulting deployment state is CANCELLED
.
If the cancellation attempt fails, the resulting deployment state is FAILED
.
If the current UpdateEnvironment action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED
and the cancellation attempt has no effect.
Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is IN_PROGRESS
. For more information, see Update a service instance in the AWS Proton Administrator guide or the AWS Proton User guide.
The following list includes potential cancellation scenarios.
If the cancellation attempt succeeds, the resulting deployment state is CANCELLED
.
If the cancellation attempt fails, the resulting deployment state is FAILED
.
If the current UpdateServiceInstance action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED
and the cancellation attempt has no effect.
Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is IN_PROGRESS
. For more information, see Update a service pipeline in the AWS Proton Administrator guide or the AWS Proton User guide.
The following list includes potential cancellation scenarios.
If the cancellation attempt succeeds, the resulting deployment state is CANCELLED
.
If the cancellation attempt fails, the resulting deployment state is FAILED
.
If the current UpdateServicePipeline action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED
and the cancellation attempt has no effect.
Deploy a new environment. An AWS Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services. For more information, see the Environments in the AWS Proton Administrator Guide.
", - "CreateEnvironmentAccountConnection": "Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in the environment account from a management account.
An environment account connection is a secure bi-directional connection between a management account and an environment account that maintains authorization and permissions. For more information, see Environment account connections in the AWS Proton Administrator guide.
", - "CreateEnvironmentTemplate": "Create an environment template for AWS Proton. For more information, see Environment Templates in the AWS Proton Administrator Guide.
You can create an environment template in one of the two following ways:
Register and publish a standard environment template that instructs AWS Proton to deploy and manage environment infrastructure.
Register and publish a customer managed environment template that connects AWS Proton to your existing provisioned infrastructure that you manage. AWS Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the provisioning
parameter and set the value to CUSTOMER_MANAGED
. For more information, see Register and publish an environment template in the AWS Proton Administrator Guide.
In a management account, an environment account connection request is accepted. When the environment account connection request is accepted, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.
For more information, see Environment account connections in the Proton Administrator guide.
", + "CancelEnvironmentDeployment": "Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS
. For more information, see Update an environment in the Proton Administrator guide.
The following list includes potential cancellation scenarios.
If the cancellation attempt succeeds, the resulting deployment state is CANCELLED
.
If the cancellation attempt fails, the resulting deployment state is FAILED
.
If the current UpdateEnvironment action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED
and the cancellation attempt has no effect.
Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is IN_PROGRESS
. For more information, see Update a service instance in the Proton Administrator guide or the Proton User guide.
The following list includes potential cancellation scenarios.
If the cancellation attempt succeeds, the resulting deployment state is CANCELLED
.
If the cancellation attempt fails, the resulting deployment state is FAILED
.
If the current UpdateServiceInstance action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED
and the cancellation attempt has no effect.
Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is IN_PROGRESS
. For more information, see Update a service pipeline in the Proton Administrator guide or the Proton User guide.
The following list includes potential cancellation scenarios.
If the cancellation attempt succeeds, the resulting deployment state is CANCELLED
.
If the cancellation attempt fails, the resulting deployment state is FAILED
.
If the current UpdateServicePipeline action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED
and the cancellation attempt has no effect.
Deploy a new environment. An Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services.
You can provision environments using the following methods:
Standard provisioning: Proton makes direct calls to provision your resources.
Pull request provisioning: Proton makes pull requests on your repository to provide compiled infrastructure as code (IaC) files that your IaC engine uses to provision resources.
For more information, see the Environments in the Proton Administrator Guide.
", + "CreateEnvironmentAccountConnection": "Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in the environment account from a management account.
An environment account connection is a secure bi-directional connection between a management account and an environment account that maintains authorization and permissions. For more information, see Environment account connections in the Proton Administrator guide.
", + "CreateEnvironmentTemplate": "Create an environment template for Proton. For more information, see Environment Templates in the Proton Administrator Guide.
You can create an environment template in one of the two following ways:
Register and publish a standard environment template that instructs Proton to deploy and manage environment infrastructure.
Register and publish a customer managed environment template that connects Proton to your existing provisioned infrastructure that you manage. Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the provisioning
parameter and set the value to CUSTOMER_MANAGED
. For more information, see Register and publish an environment template in the Proton Administrator Guide.
Create a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards compatible within its major version.
", - "CreateService": "Create an AWS Proton service. An AWS Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the AWS Proton Administrator Guide and Services in the AWS Proton User Guide.
", - "CreateServiceTemplate": "Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD service pipeline. Developers, in turn, select the service template from AWS Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Service Templates in the AWS Proton Administrator Guide.
", - "CreateServiceTemplateVersion": "Create a new major or minor version of a service template. A major version of a service template is a version that isn't backwards compatible. A minor version of a service template is a version that's backwards compatible within its major version.
", + "CreateRepository": "Create and register a link to a repository that can be used with pull request provisioning or template sync configurations. For more information, see Template bundles and Template sync configurations in the Proton Administrator Guide.
", + "CreateService": "Create an Proton service. An Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the Proton Administrator Guide and Services in the Proton User Guide.
", + "CreateServiceTemplate": "Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD service pipeline. Developers, in turn, select the service template from Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Service Templates in the Proton Administrator Guide.
", + "CreateServiceTemplateVersion": "Create a new major or minor version of a service template. A major version of a service template is a version that isn't backward compatible. A minor version of a service template is a version that's backward compatible within its major version.
", + "CreateTemplateSyncConfig": "Set up a template for automated template version creation. When a commit is pushed to your registered repository, Proton checks for changes to your repository template bundles. If it detects a template bundle change, a new minor or major version of its template is created, if the version doesn’t already exist. For more information, see Template sync configurations in the Proton Administrator Guide.
", "DeleteEnvironment": "Delete an environment.
", - "DeleteEnvironmentAccountConnection": "In an environment account, delete an environment account connection.
After you delete an environment account connection that’s in use by an AWS Proton environment, AWS Proton can’t manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.
For more information, see Environment account connections in the AWS Proton Administrator guide.
", + "DeleteEnvironmentAccountConnection": "In an environment account, delete an environment account connection.
After you delete an environment account connection that’s in use by an Proton environment, Proton can’t manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.
For more information, see Environment account connections in the Proton Administrator guide.
", "DeleteEnvironmentTemplate": "If no other major or minor versions of an environment template exist, delete the environment template.
", - "DeleteEnvironmentTemplateVersion": "If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended
version. Delete the Recommended
version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backwards compatible.
Delete a minor version of an environment template if it isn't the Recommended
version. Delete a Recommended
minor version of the environment template if no other minor versions of the environment template exist. A minor version of an environment template is a version that's backwards compatible.
If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended
version. Delete the Recommended
version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backward compatible.
Delete a minor version of an environment template if it isn't the Recommended
version. Delete a Recommended
minor version of the environment template if no other minor versions of the environment template exist. A minor version of an environment template is a version that's backward compatible.
De-register and unlink your repository.
", "DeleteService": "Delete a service.
", "DeleteServiceTemplate": "If no other major or minor versions of the service template exist, delete the service template.
", "DeleteServiceTemplateVersion": "If no other minor versions of a service template exist, delete a major version of the service template if it's not the Recommended
version. Delete the Recommended
version of the service template if no other major versions or minor versions of the service template exist. A major version of a service template is a version that isn't backwards compatible.
Delete a minor version of a service template if it's not the Recommended
version. Delete a Recommended
minor version of the service template if no other minor versions of the service template exist. A minor version of a service template is a version that's backwards compatible.
Get detail data for the AWS Proton pipeline service role.
", + "DeleteTemplateSyncConfig": "Delete a template sync configuration.
", + "GetAccountSettings": "Get detail data for the Proton pipeline service role.
", "GetEnvironment": "Get detail data for an environment.
", - "GetEnvironmentAccountConnection": "In an environment account, view the detail data for an environment account connection.
For more information, see Environment account connections in the AWS Proton Administrator guide.
", + "GetEnvironmentAccountConnection": "In an environment account, view the detail data for an environment account connection.
For more information, see Environment account connections in the Proton Administrator guide.
", "GetEnvironmentTemplate": "Get detail data for an environment template.
", "GetEnvironmentTemplateVersion": "View detail data for a major or minor version of an environment template.
", + "GetRepository": "Get detail data for a repository.
", + "GetRepositorySyncStatus": "Get the repository sync status.
", "GetService": "Get detail data for a service.
", "GetServiceInstance": "Get detail data for a service instance. A service instance is an instantiation of service template, which is running in a specific environment.
", "GetServiceTemplate": "Get detail data for a service template.
", "GetServiceTemplateVersion": "View detail data for a major or minor version of a service template.
", - "ListEnvironmentAccountConnections": "View a list of environment account connections.
For more information, see Environment account connections in the AWS Proton Administrator guide.
", + "GetTemplateSyncConfig": "Get detail data for a template sync configuration.
", + "GetTemplateSyncStatus": "Get the status of a template sync.
", + "ListEnvironmentAccountConnections": "View a list of environment account connections.
For more information, see Environment account connections in the Proton Administrator guide.
", + "ListEnvironmentOutputs": "List the infrastructure as code outputs for your environment.
", + "ListEnvironmentProvisionedResources": "List the provisioned resources for your environment.
", "ListEnvironmentTemplateVersions": "List major or minor versions of an environment template with detail data.
", "ListEnvironmentTemplates": "List environment templates.
", "ListEnvironments": "List environments with detail data summaries.
", + "ListRepositories": "List repositories with detail data.
", + "ListRepositorySyncDefinitions": "List repository sync definitions with detail data.
", + "ListServiceInstanceOutputs": "View a list service instance infrastructure as code outputs with detail data.
", + "ListServiceInstanceProvisionedResources": "List provisioned resources for a service instance with details.
", "ListServiceInstances": "List service instances with summaries of detail data.
", + "ListServicePipelineOutputs": "View a list service pipeline infrastructure as code outputs with detail.
", + "ListServicePipelineProvisionedResources": "List provisioned resources for a service and pipeline with details.
", "ListServiceTemplateVersions": "List major or minor versions of a service template with detail data.
", "ListServiceTemplates": "List service templates with detail data.
", "ListServices": "List services with summaries of detail data.
", - "ListTagsForResource": "List tags for a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", - "RejectEnvironmentAccountConnection": "In a management account, reject an environment account connection from another environment account.
After you reject an environment account connection request, you won’t be able to accept or use the rejected environment account connection.
You can’t reject an environment account connection that is connected to an environment.
For more information, see Environment account connections in the AWS Proton Administrator guide.
", - "TagResource": "Tag a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", - "UntagResource": "Remove a tag from a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", - "UpdateAccountSettings": "Update the AWS Proton pipeline service account settings.
", - "UpdateEnvironment": "Update an environment.
If the environment is associated with an environment account connection, don't update or include the protonServiceRoleArn
parameter to update or connect to an environment account connection.
You can only update to a new environment account connection if it was created in the same environment account that the current environment account connection was created in and is associated with the current environment.
If the environment isn't associated with an environment account connection, don't update or include the environmentAccountConnectionId
parameter to update or connect to an environment account connection.
You can update either the environmentAccountConnectionId
or protonServiceRoleArn
parameter and value. You can’t update both.
There are four modes for updating an environment as described in the following. The deploymentType
field defines the mode.
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type
.
MINOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that's higher than the major version in use and a minor version (optional).
In an environment account, update an environment account connection to use a new IAM role.
For more information, see Environment account connections in the AWS Proton Administrator guide.
", + "ListTagsForResource": "List tags for a resource. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", + "NotifyResourceDeploymentStatusChange": "Notify Proton of status changes to a provisioned resource when you use pull request provisioning. For more information, see Template bundles.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
In a management account, reject an environment account connection from another environment account.
After you reject an environment account connection request, you won’t be able to accept or use the rejected environment account connection.
You can’t reject an environment account connection that is connected to an environment.
For more information, see Environment account connections in the Proton Administrator guide.
", + "TagResource": "Tag a resource. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", + "UntagResource": "Remove a tag from a resource. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", + "UpdateAccountSettings": "Update the Proton service pipeline role or repository settings.
", + "UpdateEnvironment": "Update an environment.
If the environment is associated with an environment account connection, don't update or include the protonServiceRoleArn
and provisioningRepository
parameter to update or connect to an environment account connection.
You can only update to a new environment account connection if it was created in the same environment account that the current environment account connection was created in and is associated with the current environment.
If the environment isn't associated with an environment account connection, don't update or include the environmentAccountConnectionId
parameter to update or connect to an environment account connection.
You can update either the environmentAccountConnectionId
or protonServiceRoleArn
parameter and value. You can’t update both.
If the environment was provisioned with pull request provisioning, include the provisioningRepository
parameter and omit the protonServiceRoleArn
and environmentAccountConnectionId
parameters.
If the environment wasn't provisioned with pull request provisioning, omit the provisioningRepository
parameter.
There are four modes for updating an environment as described in the following. The deploymentType
field defines the mode.
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type
.
MINOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that's higher than the major version in use and a minor version (optional).
In an environment account, update an environment account connection to use a new IAM role.
For more information, see Environment account connections in the Proton Administrator guide.
", "UpdateEnvironmentTemplate": "Update an environment template.
", "UpdateEnvironmentTemplateVersion": "Update a major or minor version of an environment template.
", "UpdateService": "Edit a service description or use a spec to add and delete service instances.
Existing service instances and the service pipeline can't be edited using this API. They can only be deleted.
Use the description
parameter to modify the description.
Edit the spec
parameter to add or delete instances.
Update a service instance.
There are four modes for updating a service instance as described in the following. The deploymentType
field defines the mode.
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type
.
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).
Update the service pipeline.
There are four modes for updating a service pipeline as described in the following. The deploymentType
field defines the mode.
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type
.
MINOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).
Update a service template.
", - "UpdateServiceTemplateVersion": "Update a major or minor version of a service template.
" + "UpdateServiceTemplateVersion": "Update a major or minor version of a service template.
", + "UpdateTemplateSyncConfig": "Update template sync configuration parameters, except for the templateName
and templateType
.
The AWS Proton pipeline service role data.
", + "base": "The Proton pipeline service role and repository data.
", "refs": { - "GetAccountSettingsOutput$accountSettings": "The AWS Proton pipeline service role detail data that's returned by AWS Proton.
", - "UpdateAccountSettingsOutput$accountSettings": "The AWS Proton pipeline service role detail data that's returned by AWS Proton.
" + "GetAccountSettingsOutput$accountSettings": "The Proton pipeline service role detail data that's returned by Proton.
", + "UpdateAccountSettingsOutput$accountSettings": "The Proton pipeline service role repository detail data that's returned by Proton.
" } }, "Arn": { "base": null, "refs": { - "AccountSettings$pipelineServiceRoleArn": "The Amazon Resource Name (ARN) of the AWS Proton pipeline service role.
", - "CreateEnvironmentAccountConnectionInput$roleArn": "The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. AWS Proton uses this role to provision infrastructure resources in the associated environment account.
", - "CreateEnvironmentInput$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf. You must include either the environmentAccountConnectionId
or protonServiceRoleArn
parameter and value.
A customer provided encryption key that AWS Proton uses to encrypt data.
", - "CreateServiceInput$repositoryConnectionArn": "The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up repository connection in the AWS Proton Administrator Guide and Setting up with AWS Proton in the AWS Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.
", + "CreateEnvironmentAccountConnectionInput$roleArn": "The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. Proton uses this role to provision infrastructure resources in the associated environment account.
", + "CreateEnvironmentInput$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf. You must include either the environmentAccountConnectionId
or protonServiceRoleArn
parameter and value and omit the provisioningRepository
parameter when you use standard provisioning.
A customer provided encryption key that Proton uses to encrypt data.
", + "CreateRepositoryInput$connectionArn": "The Amazon Resource Name (ARN) of your Amazon Web Services CodeStar connection. For more information, see Setting up for Proton in the Proton Administrator Guide.
", + "CreateRepositoryInput$encryptionKey": "The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.
", + "CreateServiceInput$repositoryConnectionArn": "The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up repository connection in the Proton Administrator Guide and Setting up with Proton in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.
", "CreateServiceTemplateInput$encryptionKey": "A customer provided encryption key that's used to encrypt data.
", - "Environment$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.
", + "Environment$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
", "EnvironmentAccountConnection$roleArn": "The IAM service role that's associated with the environment account connection.
", "EnvironmentAccountConnectionSummary$roleArn": "The IAM service role that's associated with the environment account connection.
", - "EnvironmentSummary$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.
", + "EnvironmentSummary$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
", "EnvironmentTemplate$encryptionKey": "The customer provided encryption key for the environment template.
", "ListTagsForResourceInput$resourceArn": "The Amazon Resource Name (ARN) of the resource for the listed tags.
", - "Service$repositoryConnectionArn": "The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up a repository connection in the AWS Proton Administrator Guide and Setting up with AWS Proton in the AWS Proton User Guide.
", + "NotifyResourceDeploymentStatusChangeInput$resourceArn": "The provisioned resource Amazon Resource Name (ARN).
", + "Repository$connectionArn": "The repository Amazon Web Services CodeStar connection that connects Proton to your repository.
", + "Repository$encryptionKey": "Your customer Amazon Web Services KMS encryption key.
", + "Service$repositoryConnectionArn": "The Amazon Resource Name (ARN) of the repository connection. For more information, see Set up a repository connection in the Proton Administrator Guide and Setting up with Proton in the Proton User Guide.
", "ServicePipeline$arn": "The Amazon Resource Name (ARN) of the service pipeline.
", "ServiceTemplate$encryptionKey": "The customer provided service template encryption key that's used to encrypt data.
", "TagResourceInput$resourceArn": "The Amazon Resource Name (ARN) of the resource that the resource tag is applied to.
", "UntagResourceInput$resourceArn": "The Amazon Resource Name (ARN) of the resource that the tag is to be removed from.
", - "UpdateAccountSettingsInput$pipelineServiceRoleArn": "The Amazon Resource Name (ARN) of the AWS Proton pipeline service role.
", "UpdateEnvironmentAccountConnectionInput$roleArn": "The Amazon Resource Name (ARN) of the IAM service role that is associated with the environment account connection to update.
", - "UpdateEnvironmentInput$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make API calls to other services your behalf.
" + "UpdateEnvironmentInput$protonServiceRoleArn": "The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make API calls to other services your behalf.
" } }, "AwsAccountId": { "base": null, "refs": { - "CreateEnvironmentAccountConnectionInput$managementAccountId": "The ID of the management account that accepts or rejects the environment account connection. You create an manage the AWS Proton environment in this account. If the management account accepts the environment account connection, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.
", + "CreateEnvironmentAccountConnectionInput$managementAccountId": "The ID of the management account that accepts or rejects the environment account connection. You create an manage the Proton environment in this account. If the management account accepts the environment account connection, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.
", "Environment$environmentAccountId": "The ID of the environment account that the environment infrastructure resources are provisioned in.
", "EnvironmentAccountConnection$environmentAccountId": "The environment account that's connected to the environment account connection.
", "EnvironmentAccountConnection$managementAccountId": "The ID of the management account that's connected to the environment account connection.
", @@ -145,9 +166,9 @@ "ClientToken": { "base": null, "refs": { - "CreateEnvironmentAccountConnectionInput$clientToken": "When included, if two identicial requests are made with the same client token, AWS Proton returns the environment account connection that the first request created.
", - "CreateEnvironmentTemplateVersionInput$clientToken": "When included, if two identicial requests are made with the same client token, AWS Proton returns the environment template version that the first request created.
", - "CreateServiceTemplateVersionInput$clientToken": "When included, if two identicial requests are made with the same client token, AWS Proton returns the service template version that the first request created.
" + "CreateEnvironmentAccountConnectionInput$clientToken": "When included, if two identical requests are made with the same client token, Proton returns the environment account connection that the first request created.
", + "CreateEnvironmentTemplateVersionInput$clientToken": "When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.
", + "CreateServiceTemplateVersionInput$clientToken": "When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.
" } }, "CompatibleEnvironmentTemplate": { @@ -220,6 +241,16 @@ "refs": { } }, + "CreateRepositoryInput": { + "base": null, + "refs": { + } + }, + "CreateRepositoryOutput": { + "base": null, + "refs": { + } + }, "CreateServiceInput": { "base": null, "refs": { @@ -250,6 +281,16 @@ "refs": { } }, + "CreateTemplateSyncConfigInput": { + "base": null, + "refs": { + } + }, + "CreateTemplateSyncConfigOutput": { + "base": null, + "refs": { + } + }, "DeleteEnvironmentAccountConnectionInput": { "base": null, "refs": { @@ -290,6 +331,16 @@ "refs": { } }, + "DeleteRepositoryInput": { + "base": null, + "refs": { + } + }, + "DeleteRepositoryOutput": { + "base": null, + "refs": { + } + }, "DeleteServiceInput": { "base": null, "refs": { @@ -320,6 +371,22 @@ "refs": { } }, + "DeleteTemplateSyncConfigInput": { + "base": null, + "refs": { + } + }, + "DeleteTemplateSyncConfigOutput": { + "base": null, + "refs": { + } + }, + "DeploymentId": { + "base": null, + "refs": { + "NotifyResourceDeploymentStatusChangeInput$deploymentId": "The deployment ID for your provisioned resource.
" + } + }, "DeploymentStatus": { "base": null, "refs": { @@ -344,7 +411,7 @@ "CreateEnvironmentInput$description": "A description of the environment that's being created and deployed.
", "CreateEnvironmentTemplateInput$description": "A description of the environment template.
", "CreateEnvironmentTemplateVersionInput$description": "A description of the new version of an environment template.
", - "CreateServiceInput$description": "A description of the AWS Proton service.
", + "CreateServiceInput$description": "A description of the Proton service.
", "CreateServiceTemplateInput$description": "A description of the service template.
", "CreateServiceTemplateVersionInput$description": "A description of the new version of a service template.
", "Environment$description": "The description of the environment.
", @@ -380,25 +447,44 @@ "UpdateServiceTemplateInput$displayName": "The name of the service template to update as displayed in the developer interface.
" } }, + "EmptyNextToken": { + "base": null, + "refs": { + "ListEnvironmentOutputsInput$nextToken": "A token to indicate the location of the next environment output in the array of environment outputs, after the list of environment outputs that was previously requested.
", + "ListEnvironmentOutputsOutput$nextToken": "A token to indicate the location of the next environment output in the array of environment outputs, after the current requested list of environment outputs.
", + "ListEnvironmentProvisionedResourcesInput$nextToken": "A token to indicate the location of the next environment provisioned resource in the array of environment provisioned resources, after the list of environment provisioned resources that was previously requested.
", + "ListEnvironmentProvisionedResourcesOutput$nextToken": "A token to indicate the location of the next environment provisioned resource in the array of provisioned resources, after the current requested list of environment provisioned resources.
", + "ListRepositorySyncDefinitionsInput$nextToken": "A token to indicate the location of the next repository sync definition in the array of repository sync definitions, after the list of repository sync definitions previously requested.
", + "ListRepositorySyncDefinitionsOutput$nextToken": "A token to indicate the location of the next repository sync definition in the array of repository sync definitions, after the current requested list of repository sync definitions.
", + "ListServiceInstanceOutputsInput$nextToken": "A token to indicate the location of the next output in the array of outputs, after the list of outputs that was previously requested.
", + "ListServiceInstanceOutputsOutput$nextToken": "A token to indicate the location of the next output in the array of outputs, after the current requested list of outputs.
", + "ListServiceInstanceProvisionedResourcesInput$nextToken": "A token to indicate the location of the next provisioned resource in the array of provisioned resources, after the list of provisioned resources that was previously requested.
", + "ListServiceInstanceProvisionedResourcesOutput$nextToken": "A token to indicate the location of the next provisioned resource in the array of provisioned resources, after the current requested list of provisioned resources.
", + "ListServicePipelineOutputsInput$nextToken": "A token to indicate the location of the next output in the array of outputs, after the list of outputs that was previously requested.
", + "ListServicePipelineOutputsOutput$nextToken": "A token to indicate the location of the next output in the array of outputs, after the current requested list of outputs.
", + "ListServicePipelineProvisionedResourcesInput$nextToken": "A token to indicate the location of the next provisioned resource in the array of provisioned resources, after the list of provisioned resources that was previously requested.
", + "ListServicePipelineProvisionedResourcesOutput$nextToken": "A token to indicate the location of the next provisioned resource in the array of provisioned resources, after the current requested list of provisioned resources.
" + } + }, "Environment": { - "base": "The environment detail data. An AWS Proton environment is a set resources shared across an AWS Proton service.
", + "base": "The environment detail data. An Proton environment is a set resources shared across an Proton service.
", "refs": { - "CancelEnvironmentDeploymentOutput$environment": "The environment summary data that's returned by AWS Proton.
", - "CreateEnvironmentOutput$environment": "The environment detail data that's returned by AWS Proton.
", - "DeleteEnvironmentOutput$environment": "The environment detail data that's returned by AWS Proton.
", - "GetEnvironmentOutput$environment": "The environment detail data that's returned by AWS Proton.
", - "UpdateEnvironmentOutput$environment": "The environment detail data that's returned by AWS Proton.
" + "CancelEnvironmentDeploymentOutput$environment": "The environment summary data that's returned by Proton.
", + "CreateEnvironmentOutput$environment": "The environment detail data that's returned by Proton.
", + "DeleteEnvironmentOutput$environment": "The environment detail data that's returned by Proton.
", + "GetEnvironmentOutput$environment": "The environment detail data that's returned by Proton.
", + "UpdateEnvironmentOutput$environment": "The environment detail data that's returned by Proton.
" } }, "EnvironmentAccountConnection": { "base": "The environment account connection detail data.
", "refs": { - "AcceptEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection data that's returned by AWS Proton.
", - "CreateEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by AWS Proton.
", - "DeleteEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by AWS Proton.
", - "GetEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by AWS Proton.
", - "RejectEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment connection account detail data that's returned by AWS Proton.
", - "UpdateEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by AWS Proton.
" + "AcceptEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection data that's returned by Proton.
", + "CreateEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by Proton.
", + "DeleteEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by Proton.
", + "GetEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by Proton.
", + "RejectEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment connection account detail data that's returned by Proton.
", + "UpdateEnvironmentAccountConnectionOutput$environmentAccountConnection": "The environment account connection detail data that's returned by Proton.
" } }, "EnvironmentAccountConnectionArn": { @@ -412,7 +498,7 @@ "base": null, "refs": { "AcceptEnvironmentAccountConnectionInput$id": "The ID of the environment account connection.
", - "CreateEnvironmentInput$environmentAccountConnectionId": "The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an environment account. You must include either the environmentAccountConnectionId
or protonServiceRoleArn
parameter and value. For more information, see Environment account connections in the AWS Proton Administrator guide.
The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an environment account. You must include either the environmentAccountConnectionId
or protonServiceRoleArn
parameter and value and omit the provisioningRepository
parameter and values. For more information, see Environment account connections in the Proton Administrator guide.
The ID of the environment account connection to delete.
", "Environment$environmentAccountConnectionId": "The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
", "EnvironmentAccountConnection$id": "The ID of the environment account connection.
", @@ -453,7 +539,7 @@ "EnvironmentAccountConnectionSummaryList": { "base": null, "refs": { - "ListEnvironmentAccountConnectionsOutput$environmentAccountConnections": "An array of environment account connections with details that's returned by AWS Proton.
" + "ListEnvironmentAccountConnectionsOutput$environmentAccountConnections": "An array of environment account connections with details that's returned by Proton.
" } }, "EnvironmentArn": { @@ -478,10 +564,10 @@ "EnvironmentTemplate": { "base": "The environment template data.
", "refs": { - "CreateEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by AWS Proton.
", - "DeleteEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by AWS Proton.
", - "GetEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by AWS Proton.
", - "UpdateEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by AWS Proton.
" + "CreateEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by Proton.
", + "DeleteEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by Proton.
", + "GetEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by Proton.
", + "UpdateEnvironmentTemplateOutput$environmentTemplate": "The environment template detail data that's returned by Proton.
" } }, "EnvironmentTemplateArn": { @@ -518,10 +604,10 @@ "EnvironmentTemplateVersion": { "base": "The environment template version data.
", "refs": { - "CreateEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template detail data that's returned by AWS Proton.
", - "DeleteEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template version detail data that's returned by AWS Proton.
", - "GetEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template version detail data that's returned by AWS Proton.
", - "UpdateEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template version detail data that's returned by AWS Proton.
" + "CreateEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template detail data that's returned by Proton.
", + "DeleteEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template version detail data that's returned by Proton.
", + "GetEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template version detail data that's returned by Proton.
", + "UpdateEnvironmentTemplateVersionOutput$environmentTemplateVersion": "The environment template version detail data that's returned by Proton.
" } }, "EnvironmentTemplateVersionArn": { @@ -559,9 +645,9 @@ "base": null, "refs": { "EnvironmentTemplate$recommendedVersion": "The ID of the recommended version of the environment template.
", - "EnvironmentTemplateSummary$recommendedVersion": "The ID of the recommended version of the environment template.
", - "ServiceTemplate$recommendedVersion": "The ID of the recommended version of the service template.
", - "ServiceTemplateSummary$recommendedVersion": "The ID of the recommended version of the service template.
" + "EnvironmentTemplateSummary$recommendedVersion": "The recommended version of the environment template.
", + "ServiceTemplate$recommendedVersion": "The recommended version of the service template.
", + "ServiceTemplateSummary$recommendedVersion": "The recommended version of the service template.
" } }, "GetAccountSettingsInput": { @@ -614,6 +700,26 @@ "refs": { } }, + "GetRepositoryInput": { + "base": null, + "refs": { + } + }, + "GetRepositoryOutput": { + "base": null, + "refs": { + } + }, + "GetRepositorySyncStatusInput": { + "base": null, + "refs": { + } + }, + "GetRepositorySyncStatusOutput": { + "base": null, + "refs": { + } + }, "GetServiceInput": { "base": null, "refs": { @@ -654,11 +760,39 @@ "refs": { } }, + "GetTemplateSyncConfigInput": { + "base": null, + "refs": { + } + }, + "GetTemplateSyncConfigOutput": { + "base": null, + "refs": { + } + }, + "GetTemplateSyncStatusInput": { + "base": null, + "refs": { + } + }, + "GetTemplateSyncStatusOutput": { + "base": null, + "refs": { + } + }, "GitBranchName": { "base": null, "refs": { - "CreateServiceInput$branchName": "The name of the code repository branch that holds the code that's deployed in AWS Proton. Don't include this parameter if your service template doesn't include a service pipeline.
", - "Service$branchName": "The name of the code repository branch that holds the code that's deployed in AWS Proton.
" + "CreateServiceInput$branchName": "The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.
", + "CreateTemplateSyncConfigInput$branch": "The branch of the registered repository for your template.
", + "GetRepositorySyncStatusInput$branch": "The repository branch.
", + "RepositoryBranch$branch": "The repository branch.
", + "RepositoryBranchInput$branch": "The repository branch.
", + "RepositorySyncDefinition$branch": "The repository branch.
", + "Revision$branch": "The repository branch.
", + "Service$branchName": "The name of the code repository branch that holds the code that's deployed in Proton.
", + "TemplateSyncConfig$branch": "The repository branch.
", + "UpdateTemplateSyncConfigInput$branch": "The repository branch.
" } }, "InternalServerException": { @@ -676,6 +810,26 @@ "refs": { } }, + "ListEnvironmentOutputsInput": { + "base": null, + "refs": { + } + }, + "ListEnvironmentOutputsOutput": { + "base": null, + "refs": { + } + }, + "ListEnvironmentProvisionedResourcesInput": { + "base": null, + "refs": { + } + }, + "ListEnvironmentProvisionedResourcesOutput": { + "base": null, + "refs": { + } + }, "ListEnvironmentTemplateVersionsInput": { "base": null, "refs": { @@ -706,6 +860,46 @@ "refs": { } }, + "ListRepositoriesInput": { + "base": null, + "refs": { + } + }, + "ListRepositoriesOutput": { + "base": null, + "refs": { + } + }, + "ListRepositorySyncDefinitionsInput": { + "base": null, + "refs": { + } + }, + "ListRepositorySyncDefinitionsOutput": { + "base": null, + "refs": { + } + }, + "ListServiceInstanceOutputsInput": { + "base": null, + "refs": { + } + }, + "ListServiceInstanceOutputsOutput": { + "base": null, + "refs": { + } + }, + "ListServiceInstanceProvisionedResourcesInput": { + "base": null, + "refs": { + } + }, + "ListServiceInstanceProvisionedResourcesOutput": { + "base": null, + "refs": { + } + }, "ListServiceInstancesInput": { "base": null, "refs": { @@ -716,6 +910,26 @@ "refs": { } }, + "ListServicePipelineOutputsInput": { + "base": null, + "refs": { + } + }, + "ListServicePipelineOutputsOutput": { + "base": null, + "refs": { + } + }, + "ListServicePipelineProvisionedResourcesInput": { + "base": null, + "refs": { + } + }, + "ListServicePipelineProvisionedResourcesOutput": { + "base": null, + "refs": { + } + }, "ListServiceTemplateVersionsInput": { "base": null, "refs": { @@ -763,6 +977,7 @@ "ListEnvironmentTemplateVersionsInput$maxResults": "The maximum number of major or minor versions of an environment template to list.
", "ListEnvironmentTemplatesInput$maxResults": "The maximum number of environment templates to list.
", "ListEnvironmentsInput$maxResults": "The maximum number of environments to list.
", + "ListRepositoriesInput$maxResults": "The maximum number of repositories to list.
", "ListServiceInstancesInput$maxResults": "The maximum number of service instances to list.
", "ListServiceTemplateVersionsInput$maxResults": "The maximum number of major or minor versions of a service template to list.
", "ListServiceTemplatesInput$maxResults": "The maximum number of service templates to list.
", @@ -781,21 +996,105 @@ "ListEnvironmentTemplatesOutput$nextToken": "A token to indicate the location of the next environment template in the array of environment templates, after the current requested list of environment templates.
", "ListEnvironmentsInput$nextToken": "A token to indicate the location of the next environment in the array of environments, after the list of environments that was previously requested.
", "ListEnvironmentsOutput$nextToken": "A token to indicate the location of the next environment in the array of environments, after the current requested list of environments.
", + "ListRepositoriesInput$nextToken": "A token to indicate the location of the next repository in the array of repositories, after the list of repositories previously requested.
", + "ListRepositoriesOutput$nextToken": "A token to indicate the location of the next repository in the array of repositories, after the current requested list of repositories.
", "ListServiceInstancesInput$nextToken": "A token to indicate the location of the next service in the array of service instances, after the list of service instances that was previously requested.
", "ListServiceInstancesOutput$nextToken": "A token to indicate the location of the next service instance in the array of service instances, after the current requested list of service instances.
", "ListServiceTemplateVersionsInput$nextToken": "A token to indicate the location of the next major or minor version in the array of major or minor versions of a service template, after the list of major or minor versions that was previously requested.
", - "ListServiceTemplateVersionsOutput$nextToken": "A token to indicate the location of the next major or minor version in the array of major or minor versions of a service template, after the list of major or minor versions that was previously requested.
", + "ListServiceTemplateVersionsOutput$nextToken": "A token to indicate the location of the next major or minor version in the array of major or minor versions of a service template, after the current requested list of service major or minor versions.
", "ListServiceTemplatesInput$nextToken": "A token to indicate the location of the next service template in the array of service templates, after the list of service templates previously requested.
", "ListServiceTemplatesOutput$nextToken": "A token to indicate the location of the next service template in the array of service templates, after the current requested list of service templates.
", "ListServicesInput$nextToken": "A token to indicate the location of the next service in the array of services, after the list of services that was previously requested.
", "ListServicesOutput$nextToken": "A token to indicate the location of the next service in the array of services, after the current requested list of services.
" } }, + "NotifyResourceDeploymentStatusChangeInput": { + "base": null, + "refs": { + } + }, + "NotifyResourceDeploymentStatusChangeInputOutputsList": { + "base": null, + "refs": { + "NotifyResourceDeploymentStatusChangeInput$outputs": "The provisioned resource state change detail data that's returned by Proton.
" + } + }, + "NotifyResourceDeploymentStatusChangeOutput": { + "base": null, + "refs": { + } + }, + "Output": { + "base": "An infrastructure as code defined resource output.
", + "refs": { + "NotifyResourceDeploymentStatusChangeInputOutputsList$member": null, + "OutputsList$member": null + } + }, + "OutputKey": { + "base": null, + "refs": { + "Output$key": "The output key.
" + } + }, + "OutputValueString": { + "base": null, + "refs": { + "Output$valueString": "The output value.
" + } + }, + "OutputsList": { + "base": null, + "refs": { + "ListEnvironmentOutputsOutput$outputs": "An array of environment outputs with detail data.
", + "ListServiceInstanceOutputsOutput$outputs": "An array of service instance infrastructure as code outputs.
", + "ListServicePipelineOutputsOutput$outputs": "An array of outputs.
" + } + }, + "PipelineRoleArn": { + "base": null, + "refs": { + "AccountSettings$pipelineServiceRoleArn": "The Amazon Resource Name (ARN) of the Proton pipeline service role.
", + "UpdateAccountSettingsInput$pipelineServiceRoleArn": "The Amazon Resource Name (ARN) of the Proton pipeline service role.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
Detail data for a provisioned resource.
", + "refs": { + "ProvisionedResourceList$member": null + } + }, + "ProvisionedResourceEngine": { + "base": "List of provisioning engines
", + "refs": { + "ProvisionedResource$provisioningEngine": "The resource provisioning engine.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The provisioned resource identifier.
" + } + }, + "ProvisionedResourceList": { + "base": null, + "refs": { + "ListEnvironmentProvisionedResourcesOutput$provisionedResources": "An array of environment provisioned resources.
", + "ListServiceInstanceProvisionedResourcesOutput$provisionedResources": "An array of provisioned resources for a service instance.
", + "ListServicePipelineProvisionedResourcesOutput$provisionedResources": "An array of provisioned resources for a service and pipeline.
" + } + }, + "ProvisionedResourceName": { + "base": null, + "refs": { + "ProvisionedResource$name": "The provisioned resource name.
" + } + }, "Provisioning": { "base": null, "refs": { "CreateEnvironmentTemplateInput$provisioning": "When included, indicates that the environment template is for customer provisioned and managed infrastructure.
", - "CreateServiceTemplateInput$pipelineProvisioning": "AWS Proton includes a service pipeline for your service by default. When included, this parameter indicates that an AWS Proton service pipeline won't be included for your service. Once specified, this parameter can't be changed. For more information, see Service template bundles in the AWS Proton Administrator Guide.
", + "CreateServiceTemplateInput$pipelineProvisioning": "Proton includes a service pipeline for your service by default. When included, this parameter indicates that an Proton service pipeline won't be included for your service. Once specified, this parameter can't be changed. For more information, see Service template bundles in the Proton Administrator Guide.
", "Environment$provisioning": "When included, indicates that the environment template is for customer provisioned and managed infrastructure.
", "EnvironmentSummary$provisioning": "When included, indicates that the environment template is for customer provisioned and managed infrastructure.
", "EnvironmentTemplate$provisioning": "When included, indicates that the environment template is for customer provisioned and managed infrastructure.
", @@ -814,11 +1113,132 @@ "refs": { } }, + "Repository": { + "base": "Detail date for a repository that has been registered with Proton.
", + "refs": { + "CreateRepositoryOutput$repository": "The repository detail data that's returned by Proton.
", + "DeleteRepositoryOutput$repository": "The repository detail data that's returned by Proton.
", + "GetRepositoryOutput$repository": "The repository detail data that's returned by Proton.
" + } + }, + "RepositoryArn": { + "base": null, + "refs": { + "Repository$arn": "The repository Amazon Resource Name (ARN).
", + "RepositoryBranch$arn": "The Amazon Resource Name (ARN) of the repository branch.
", + "RepositorySummary$arn": "The Amazon Resource Name (ARN) for a repository.
" + } + }, + "RepositoryBranch": { + "base": "Detail data for a repository branch.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The repository that you provide with pull request provisioning.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The repository that you provide with pull request provisioning.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
Detail input data for a repository branch.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The repository that you provide with pull request provisioning. If you provide this parameter, you must omit the environmentAccountConnectionId
and protonServiceRoleArn
parameters.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The repository that you provide with pull request provisioning.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The repository that you provide with pull request provisioning.
Provisioning by pull request is currently in feature preview and is only usable with Terraform based Proton Templates. To learn more about Amazon Web Services Feature Preview terms, see section 2 on Beta and Previews.
The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.
", - "Service$repositoryId": "The ID of the code repository.
" + "Service$repositoryId": "The ID of the source code repository.
" + } + }, + "RepositoryName": { + "base": null, + "refs": { + "CreateRepositoryInput$name": "The repository name, for example myrepos/myrepo
.
The name of your repository, for example myrepos/myrepo
.
The name of the repository.
", + "GetRepositoryInput$name": "The repository name, for example myrepos/myrepo
.
The repository name.
", + "ListRepositorySyncDefinitionsInput$repositoryName": "The repository name.
", + "Repository$name": "The repository name.
", + "RepositoryBranch$name": "The repository name.
", + "RepositoryBranchInput$name": "The repository name.
", + "RepositorySummary$name": "The repository name.
", + "Revision$repositoryName": "The repository name.
", + "TemplateSyncConfig$repositoryName": "The name of the repository, for example myrepos/myrepo
.
The name of the repository, for example myrepos/myrepo
.
The repository provider.
", + "CreateTemplateSyncConfigInput$repositoryProvider": "The provider type for your repository.
", + "DeleteRepositoryInput$provider": "The repository provider.
", + "GetRepositoryInput$provider": "The repository provider.
", + "GetRepositorySyncStatusInput$repositoryProvider": "The repository provider.
", + "ListRepositorySyncDefinitionsInput$repositoryProvider": "The repository provider.
", + "Repository$provider": "The repository provider.
", + "RepositoryBranch$provider": "The repository provider.
", + "RepositoryBranchInput$provider": "The repository provider.
", + "RepositorySummary$provider": "The repository provider.
", + "Revision$repositoryProvider": "The repository provider.
", + "TemplateSyncConfig$repositoryProvider": "The repository provider.
", + "UpdateTemplateSyncConfigInput$repositoryProvider": "The repository provider.
" + } + }, + "RepositorySummary": { + "base": "A summary of detail data for a registered repository.
", + "refs": { + "RepositorySummaryList$member": null + } + }, + "RepositorySummaryList": { + "base": null, + "refs": { + "ListRepositoriesOutput$repositories": "An array of repositories.
" + } + }, + "RepositorySyncAttempt": { + "base": "Detail data for a repository sync attempt activated by a push to a repository.
", + "refs": { + "GetRepositorySyncStatusOutput$latestSync": "The repository sync status detail data that's returned by Proton.
" + } + }, + "RepositorySyncDefinition": { + "base": "The repository sync definition.
", + "refs": { + "RepositorySyncDefinitionList$member": null + } + }, + "RepositorySyncDefinitionList": { + "base": null, + "refs": { + "ListRepositorySyncDefinitionsOutput$syncDefinitions": "An array of repository sync definitions.
" + } + }, + "RepositorySyncEvent": { + "base": "Repository sync event detail data for a sync attempt.
", + "refs": { + "RepositorySyncEvents$member": null + } + }, + "RepositorySyncEvents": { + "base": null, + "refs": { + "RepositorySyncAttempt$events": "Detail data for sync attempt events.
" + } + }, + "RepositorySyncStatus": { + "base": null, + "refs": { + "RepositorySyncAttempt$status": "The sync attempt status.
" + } + }, + "ResourceDeploymentStatus": { + "base": "The state that a PR-based deployment can be updated to.
", + "refs": { + "NotifyResourceDeploymentStatusChangeInput$status": "The status of your provisioned resource.
" } }, "ResourceName": { @@ -830,21 +1250,23 @@ "CancelServicePipelineDeploymentInput$serviceName": "The name of the service with the service pipeline deployment to cancel.
", "CompatibleEnvironmentTemplate$templateName": "The compatible environment template name.
", "CompatibleEnvironmentTemplateInput$templateName": "The compatible environment template name.
", - "CreateEnvironmentAccountConnectionInput$environmentName": "The name of the AWS Proton environment that's created in the associated management account.
", + "CreateEnvironmentAccountConnectionInput$environmentName": "The name of the Proton environment that's created in the associated management account.
", "CreateEnvironmentInput$name": "The name of the environment.
", - "CreateEnvironmentInput$templateName": "The name of the environment template. For more information, see Environment Templates in the AWS Proton Administrator Guide.
", + "CreateEnvironmentInput$templateName": "The name of the environment template. For more information, see Environment Templates in the Proton Administrator Guide.
", "CreateEnvironmentTemplateInput$name": "The name of the environment template.
", "CreateEnvironmentTemplateVersionInput$templateName": "The name of the environment template.
", "CreateServiceInput$name": "The service name.
", "CreateServiceInput$templateName": "The name of the service template that's used to create the service.
", "CreateServiceTemplateInput$name": "The name of the service template.
", "CreateServiceTemplateVersionInput$templateName": "The name of the service template.
", + "CreateTemplateSyncConfigInput$templateName": "The name of your registered template.
", "DeleteEnvironmentInput$name": "The name of the environment to delete.
", "DeleteEnvironmentTemplateInput$name": "The name of the environment template to delete.
", "DeleteEnvironmentTemplateVersionInput$templateName": "The name of the environment template.
", "DeleteServiceInput$name": "The name of the service to delete.
", "DeleteServiceTemplateInput$name": "The name of the service template to delete.
", "DeleteServiceTemplateVersionInput$templateName": "The name of the service template.
", + "DeleteTemplateSyncConfigInput$templateName": "The template name.
", "Environment$name": "The name of the environment.
", "Environment$templateName": "The Amazon Resource Name (ARN) of the environment template.
", "EnvironmentAccountConnection$environmentName": "The name of the environment that's associated with the environment account connection.
", @@ -864,9 +1286,19 @@ "GetServiceInstanceInput$serviceName": "The name of the service that the service instance belongs to.
", "GetServiceTemplateInput$name": "The name of the service template that you want to get detail data for.
", "GetServiceTemplateVersionInput$templateName": "The name of the service template.
", + "GetTemplateSyncConfigInput$templateName": "The template name.
", + "GetTemplateSyncStatusInput$templateName": "The template name.
", "ListEnvironmentAccountConnectionsInput$environmentName": "The environment name that's associated with each listed environment account connection.
", + "ListEnvironmentOutputsInput$environmentName": "The environment name.
", + "ListEnvironmentProvisionedResourcesInput$environmentName": "The environment name.
", "ListEnvironmentTemplateVersionsInput$templateName": "The name of the environment template.
", + "ListServiceInstanceOutputsInput$serviceInstanceName": "The service instance name.
", + "ListServiceInstanceOutputsInput$serviceName": "The service name.
", + "ListServiceInstanceProvisionedResourcesInput$serviceInstanceName": "The service instance name.
", + "ListServiceInstanceProvisionedResourcesInput$serviceName": "The service name.
", "ListServiceInstancesInput$serviceName": "The name of the service that the service instance belongs to.
", + "ListServicePipelineOutputsInput$serviceName": "The service name.
", + "ListServicePipelineProvisionedResourcesInput$serviceName": "The service name.
", "ListServiceTemplateVersionsInput$templateName": "The name of the service template.
", "Service$name": "The name of the service.
", "Service$templateName": "The name of the service template.
", @@ -885,6 +1317,7 @@ "ServiceTemplateSummary$name": "The name of the service template.
", "ServiceTemplateVersion$templateName": "The name of the version of a service template.
", "ServiceTemplateVersionSummary$templateName": "The name of the service template.
", + "TemplateSyncConfig$templateName": "The template name.
", "UpdateEnvironmentInput$name": "The name of the environment to update.
", "UpdateEnvironmentTemplateInput$name": "The name of the environment template to update.
", "UpdateEnvironmentTemplateVersionInput$templateName": "The name of the environment template.
", @@ -893,7 +1326,8 @@ "UpdateServiceInstanceInput$serviceName": "The name of the service that the service instance belongs to.
", "UpdateServicePipelineInput$serviceName": "The name of the service to that the pipeline is associated with.
", "UpdateServiceTemplateInput$name": "The name of the service template to update.
", - "UpdateServiceTemplateVersionInput$templateName": "The name of the service template.
" + "UpdateServiceTemplateVersionInput$templateName": "The name of the service template.
", + "UpdateTemplateSyncConfigInput$templateName": "The synced template name.
" } }, "ResourceNotFoundException": { @@ -901,6 +1335,39 @@ "refs": { } }, + "ResourceSyncAttempt": { + "base": "Detail data for a resource sync attempt activated by a push to a repository.
", + "refs": { + "GetTemplateSyncStatusOutput$latestSuccessfulSync": "The details of the last successful sync that's returned by Proton.
", + "GetTemplateSyncStatusOutput$latestSync": "The details of the last sync that's returned by Proton.
" + } + }, + "ResourceSyncEvent": { + "base": "Detail data for a resource sync event.
", + "refs": { + "ResourceSyncEvents$member": null + } + }, + "ResourceSyncEvents": { + "base": null, + "refs": { + "ResourceSyncAttempt$events": "An array of events with detail data.
" + } + }, + "ResourceSyncStatus": { + "base": null, + "refs": { + "ResourceSyncAttempt$status": "The status of the sync attempt.
" + } + }, + "Revision": { + "base": "Revision detail data for a commit and push that activates a sync attempt
", + "refs": { + "GetTemplateSyncStatusOutput$desiredState": "The template sync desired state that's returned by Proton.
", + "ResourceSyncAttempt$initialRevision": "Detail data for the initial repository commit, path and push.
", + "ResourceSyncAttempt$targetRevision": "Detail data for the target revision.
" + } + }, "S3Bucket": { "base": null, "refs": { @@ -919,13 +1386,19 @@ "TemplateVersionSourceInput$s3": "An S3 source object that includes the template bundle S3 path and name for a template minor version.
" } }, + "SHA": { + "base": null, + "refs": { + "Revision$sha": "The secure hash algorithm (SHA) hash for the revision.
" + } + }, "Service": { "base": "The service detail data.
", "refs": { - "CreateServiceOutput$service": "The service detail data that's returned by AWS Proton.
", - "DeleteServiceOutput$service": "The service detail data that's returned by AWS Proton.
", - "GetServiceOutput$service": "The service detail data that's returned by AWS Proton.
", - "UpdateServiceOutput$service": "The service detail data that's returned by AWS Proton.
" + "CreateServiceOutput$service": "The service detail data that's returned by Proton.
", + "DeleteServiceOutput$service": "The service detail data that's returned by Proton.
", + "GetServiceOutput$service": "The service detail data that's returned by Proton.
", + "UpdateServiceOutput$service": "The service detail data that's returned by Proton.
" } }, "ServiceArn": { @@ -938,9 +1411,9 @@ "ServiceInstance": { "base": "The service instance detail data.
", "refs": { - "CancelServiceInstanceDeploymentOutput$serviceInstance": "The service instance summary data that's returned by AWS Proton.
", - "GetServiceInstanceOutput$serviceInstance": "The service instance detail data that's returned by AWS Proton.
", - "UpdateServiceInstanceOutput$serviceInstance": "The service instance summary data returned by AWS Proton.
" + "CancelServiceInstanceDeploymentOutput$serviceInstance": "The service instance summary data that's returned by Proton.
", + "GetServiceInstanceOutput$serviceInstance": "The service instance detail data that's returned by Proton.
", + "UpdateServiceInstanceOutput$serviceInstance": "The service instance summary data returned by Proton.
" } }, "ServiceInstanceArn": { @@ -965,13 +1438,13 @@ "ServicePipeline": { "base": "The service pipeline detail data.
", "refs": { - "CancelServicePipelineDeploymentOutput$pipeline": "The service pipeline detail data that's returned by AWS Proton.
", + "CancelServicePipelineDeploymentOutput$pipeline": "The service pipeline detail data that's returned by Proton.
", "Service$pipeline": "The service pipeline detail data.
", - "UpdateServicePipelineOutput$pipeline": "The pipeline details returned by AWS Proton.
" + "UpdateServicePipelineOutput$pipeline": "The pipeline details returned by Proton.
" } }, "ServiceQuotaExceededException": { - "base": "A quota was exceeded. For more information, see AWS Proton Quotas in the AWS Proton Administrator Guide.
", + "base": "A quota was exceeded. For more information, see Proton Quotas in the Proton Administrator Guide.
", "refs": { } }, @@ -997,10 +1470,10 @@ "ServiceTemplate": { "base": "The service template detail data.
", "refs": { - "CreateServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by AWS Proton.
", - "DeleteServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by AWS Proton.
", - "GetServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by AWS Proton.
", - "UpdateServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by AWS Proton.
" + "CreateServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by Proton.
", + "DeleteServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by Proton.
", + "GetServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by Proton.
", + "UpdateServiceTemplateOutput$serviceTemplate": "The service template detail data that's returned by Proton.
" } }, "ServiceTemplateArn": { @@ -1025,10 +1498,10 @@ "ServiceTemplateVersion": { "base": "The version of a service template detail data.
", "refs": { - "CreateServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version summary of detail data that's returned by AWS Proton.
", - "DeleteServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version detail data that's returned by AWS Proton.
", - "GetServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version detail data that's returned by AWS Proton.
", - "UpdateServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version detail data that's returned by AWS Proton.
" + "CreateServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version summary of detail data that's returned by Proton.
", + "DeleteServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version detail data that's returned by Proton.
", + "GetServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version detail data that's returned by Proton.
", + "UpdateServiceTemplateVersionOutput$serviceTemplateVersion": "The service template version detail data that's returned by Proton.
" } }, "ServiceTemplateVersionArn": { @@ -1053,14 +1526,14 @@ "SpecContents": { "base": null, "refs": { - "CreateEnvironmentInput$spec": "A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more information, see Environments in the AWS Proton Administrator Guide.
", - "CreateServiceInput$spec": "A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the AWS Proton Administrator Guide and Create a service in the AWS Proton User Guide.
", + "CreateEnvironmentInput$spec": "A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more information, see Environments in the Proton Administrator Guide.
", + "CreateServiceInput$spec": "A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton Administrator Guide and Create a service in the Proton User Guide.
", "Environment$spec": "The environment spec.
", "Service$spec": "The formatted specification that defines the service.
", "ServiceInstance$spec": "The service spec that was used to create the service instance.
", "ServicePipeline$spec": "The service spec that was used to create the service pipeline.
", "UpdateEnvironmentInput$spec": "The formatted specification that defines the update.
", - "UpdateServiceInput$spec": "Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the AWS Proton Administrator Guide or the AWS Proton User Guide.
", + "UpdateServiceInput$spec": "Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton Administrator Guide or the Proton User Guide.
", "UpdateServiceInstanceInput$spec": "The formatted specification that defines the service instance update.
", "UpdateServicePipelineInput$spec": "The spec for the service pipeline to update.
" } @@ -1085,7 +1558,39 @@ "base": null, "refs": { "ListTagsForResourceInput$nextToken": "A token to indicate the location of the next resource tag in the array of resource tags, after the list of resource tags that was previously requested.
", - "ListTagsForResourceOutput$nextToken": "A token to indicate the location of the next resource tag in the array of resource tags, after the current requested list of resource tags.
" + "ListTagsForResourceOutput$nextToken": "A token to indicate the location of the next resource tag in the array of resource tags, after the current requested list of resource tags.
", + "RepositorySyncDefinition$directory": "The directory in the repository.
", + "RepositorySyncDefinition$parent": "The resource that is synced from.
", + "RepositorySyncDefinition$target": "The resource that is synced to.
", + "RepositorySyncEvent$event": "Event detail for a repository sync attempt.
", + "RepositorySyncEvent$externalId": "The external ID of the sync event.
", + "RepositorySyncEvent$type": "The type of event.
", + "ResourceSyncAttempt$target": "The resource that is synced to.
", + "ResourceSyncEvent$event": "A resource sync event.
", + "ResourceSyncEvent$externalId": "The external ID for the event.
", + "ResourceSyncEvent$type": "The type of event.
", + "Revision$directory": "The repository directory changed by a commit and push that activated the sync attempt.
" + } + }, + "Subdirectory": { + "base": null, + "refs": { + "CreateTemplateSyncConfigInput$subdirectory": "A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
", + "TemplateSyncConfig$subdirectory": "A subdirectory path to your template bundle version.
", + "UpdateTemplateSyncConfigInput$subdirectory": "A subdirectory path to your template bundle version. When included, limits the template bundle search to this repository directory.
" + } + }, + "SyncType": { + "base": null, + "refs": { + "GetRepositorySyncStatusInput$syncType": "The repository sync type.
", + "ListRepositorySyncDefinitionsInput$syncType": "The sync type. The only supported value is TEMPLATE_SYNC
.
The deployment status message for your provisioned resource.
" } }, "Tag": { @@ -1110,11 +1615,12 @@ "TagList": { "base": null, "refs": { - "CreateEnvironmentInput$tags": "Create tags for your environment. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", - "CreateEnvironmentTemplateInput$tags": "Create tags for your environment template. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", + "CreateEnvironmentAccountConnectionInput$tags": "Tags for your environment account connection. For more information, see Proton resources and tagging in the Proton Administrator Guide.
", + "CreateEnvironmentInput$tags": "Create tags for your environment. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", + "CreateEnvironmentTemplateInput$tags": "Create tags for your environment template. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", "CreateEnvironmentTemplateVersionInput$tags": "Create tags for a new version of an environment template.
", - "CreateServiceInput$tags": "Create tags for your service. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", - "CreateServiceTemplateInput$tags": "Create tags for your service template. For more information, see AWS Proton resources and tagging in the AWS Proton Administrator Guide or AWS Proton User Guide.
", + "CreateServiceInput$tags": "Create tags for your service. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", + "CreateServiceTemplateInput$tags": "Create tags for your service template. For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide.
", "CreateServiceTemplateVersionInput$tags": "Create tags for a new version of a service template.
", "ListTagsForResourceOutput$tags": "An array of resource tags with detail data.
", "TagResourceInput$tags": "An array of resource tags to apply to a resource.
" @@ -1143,59 +1649,80 @@ "ServiceTemplateVersion$schema": "The schema of the version of a service template.
" } }, + "TemplateSyncConfig": { + "base": "The detail data for a template sync configuration.
", + "refs": { + "CreateTemplateSyncConfigOutput$templateSyncConfig": "The template sync configuration detail data that's returned by Proton.
", + "DeleteTemplateSyncConfigOutput$templateSyncConfig": "The template sync configuration detail data that's returned by Proton.
", + "GetTemplateSyncConfigOutput$templateSyncConfig": "The template sync configuration detail data that's returned by Proton.
", + "UpdateTemplateSyncConfigOutput$templateSyncConfig": "The template sync configuration detail data that's returned by Proton.
" + } + }, + "TemplateType": { + "base": null, + "refs": { + "CreateTemplateSyncConfigInput$templateType": "The type of the registered template.
", + "DeleteTemplateSyncConfigInput$templateType": "The template type.
", + "GetTemplateSyncConfigInput$templateType": "The template type.
", + "GetTemplateSyncStatusInput$templateType": "The template type.
", + "TemplateSyncConfig$templateType": "The template type.
", + "UpdateTemplateSyncConfigInput$templateType": "The synced template type.
" + } + }, "TemplateVersionPart": { "base": null, "refs": { "CompatibleEnvironmentTemplate$majorVersion": "The major version of the compatible environment template.
", "CompatibleEnvironmentTemplateInput$majorVersion": "The major version of the compatible environment template.
", - "CreateEnvironmentInput$templateMajorVersion": "The ID of the major version of the environment template.
", - "CreateEnvironmentInput$templateMinorVersion": "The ID of the minor version of the environment template.
", - "CreateEnvironmentTemplateVersionInput$majorVersion": "To create a new minor version of the environment template, include a majorVersion
.
To create a new major and minor version of the environment template, exclude majorVersion
.
The ID of the major version of the service template that was used to create the service.
", - "CreateServiceInput$templateMinorVersion": "The ID of the minor version of the service template that was used to create the service.
", - "CreateServiceTemplateVersionInput$majorVersion": "To create a new minor version of the service template, include a majorVersion
.
To create a new major and minor version of the service template, exclude majorVersion
.
The major version of the environment template.
", + "CreateEnvironmentInput$templateMinorVersion": "The minor version of the environment template.
", + "CreateEnvironmentTemplateVersionInput$majorVersion": "To create a new minor version of the environment template, include a major Version
.
To create a new major and minor version of the environment template, exclude major Version
.
The major version of the service template that was used to create the service.
", + "CreateServiceInput$templateMinorVersion": "The minor version of the service template that was used to create the service.
", + "CreateServiceTemplateVersionInput$majorVersion": "To create a new minor version of the service template, include a major Version
.
To create a new major and minor version of the service template, exclude major Version
.
The environment template major version to delete.
", "DeleteEnvironmentTemplateVersionInput$minorVersion": "The environment template minor version to delete.
", "DeleteServiceTemplateVersionInput$majorVersion": "The service template major version to delete.
", "DeleteServiceTemplateVersionInput$minorVersion": "The service template minor version to delete.
", "Environment$templateMajorVersion": "The ID of the major version of the environment template.
", "Environment$templateMinorVersion": "The ID of the minor version of the environment template.
", - "EnvironmentSummary$templateMajorVersion": "The ID of the major version of the environment template.
", - "EnvironmentSummary$templateMinorVersion": "The ID of the minor version of the environment template.
", + "EnvironmentSummary$templateMajorVersion": "The major version of the environment template.
", + "EnvironmentSummary$templateMinorVersion": "The minor version of the environment template.
", "EnvironmentTemplateFilter$majorVersion": "Include majorVersion
to filter search for a major version.
The ID of the latest major version that's associated with the version of an environment template.
", - "EnvironmentTemplateVersion$minorVersion": "The ID of the minor version of an environment template.
", - "EnvironmentTemplateVersion$recommendedMinorVersion": "The ID of the recommended minor version of the environment template.
", - "EnvironmentTemplateVersionSummary$majorVersion": "The ID of the latest major version that's associated with the version of an environment template.
", - "EnvironmentTemplateVersionSummary$minorVersion": "The ID of the version of an environment template.
", - "EnvironmentTemplateVersionSummary$recommendedMinorVersion": "The ID of the recommended minor version of the environment template.
", - "GetEnvironmentTemplateVersionInput$majorVersion": "To view environment template major version detail data, include majorVersion
.
The latest major version that's associated with the version of an environment template.
", + "EnvironmentTemplateVersion$minorVersion": "The minor version of an environment template.
", + "EnvironmentTemplateVersion$recommendedMinorVersion": "The recommended minor version of the environment template.
", + "EnvironmentTemplateVersionSummary$majorVersion": "The latest major version that's associated with the version of an environment template.
", + "EnvironmentTemplateVersionSummary$minorVersion": "The version of an environment template.
", + "EnvironmentTemplateVersionSummary$recommendedMinorVersion": "The recommended minor version of the environment template.
", + "GetEnvironmentTemplateVersionInput$majorVersion": "To view environment template major version detail data, include major Version
.
To view environment template minor version detail data, include minorVersion
.
To view service template major version detail data, include majorVersion
.
To view service template major version detail data, include major Version
.
To view service template minor version detail data, include minorVersion
.
To view a list of minor of versions under a major version of an environment template, include majorVersion
.
To view a list of major versions of an environment template, exclude majorVersion
.
To view a list of minor of versions under a major version of a service template, include majorVersion
.
To view a list of major versions of a service template, exclude majorVersion
.
The ID of the major version of the service template that was used to create the service instance.
", - "ServiceInstance$templateMinorVersion": "The ID of the minor version of the service template that was used to create the service instance.
", - "ServiceInstanceSummary$templateMajorVersion": "The ID of the major version of a service template.
", - "ServiceInstanceSummary$templateMinorVersion": "The ID of the minor version of a service template.
", - "ServicePipeline$templateMajorVersion": "The ID of the major version of the service template that was used to create the service pipeline.
", - "ServicePipeline$templateMinorVersion": "The ID of the minor version of the service template that was used to create the service pipeline.
", - "ServiceTemplateVersion$majorVersion": "The ID of the latest major version that's associated with the version of a service template.
", - "ServiceTemplateVersion$minorVersion": "The ID of the minor version of a service template.
", - "ServiceTemplateVersion$recommendedMinorVersion": "The ID of the recommended minor version of the service template.
", - "ServiceTemplateVersionSummary$majorVersion": "The ID of the latest major version that's associated with the version of a service template.
", - "ServiceTemplateVersionSummary$minorVersion": "The ID of the minor version of a service template.
", - "ServiceTemplateVersionSummary$recommendedMinorVersion": "The ID of the recommended minor version of the service template.
", - "UpdateEnvironmentInput$templateMajorVersion": "The ID of the major version of the environment to update.
", - "UpdateEnvironmentInput$templateMinorVersion": "The ID of the minor version of the environment to update.
", - "UpdateEnvironmentTemplateVersionInput$majorVersion": "To update a major version of an environment template, include majorVersion
.
The template version.
", + "ListEnvironmentTemplateVersionsInput$majorVersion": "To view a list of minor of versions under a major version of an environment template, include major Version
.
To view a list of major versions of an environment template, exclude major Version
.
To view a list of minor of versions under a major version of a service template, include major Version
.
To view a list of major versions of a service template, exclude major Version
.
The major version of the service template that was used to create the service instance.
", + "ServiceInstance$templateMinorVersion": "The minor version of the service template that was used to create the service instance.
", + "ServiceInstanceSummary$templateMajorVersion": "The service instance template major version.
", + "ServiceInstanceSummary$templateMinorVersion": "The service instance template minor version.
", + "ServicePipeline$templateMajorVersion": "The major version of the service template that was used to create the service pipeline.
", + "ServicePipeline$templateMinorVersion": "The minor version of the service template that was used to create the service pipeline.
", + "ServiceTemplateVersion$majorVersion": "The latest major version that's associated with the version of a service template.
", + "ServiceTemplateVersion$minorVersion": "The minor version of a service template.
", + "ServiceTemplateVersion$recommendedMinorVersion": "The recommended minor version of the service template.
", + "ServiceTemplateVersionSummary$majorVersion": "The latest major version that's associated with the version of a service template.
", + "ServiceTemplateVersionSummary$minorVersion": "The minor version of a service template.
", + "ServiceTemplateVersionSummary$recommendedMinorVersion": "The recommended minor version of the service template.
", + "UpdateEnvironmentInput$templateMajorVersion": "The major version of the environment to update.
", + "UpdateEnvironmentInput$templateMinorVersion": "The minor version of the environment to update.
", + "UpdateEnvironmentTemplateVersionInput$majorVersion": "To update a major version of an environment template, include major Version
.
To update a minor version of an environment template, include minorVersion
.
The major version of the service template to update.
", "UpdateServiceInstanceInput$templateMinorVersion": "The minor version of the service template to update.
", "UpdateServicePipelineInput$templateMajorVersion": "The major version of the service template that was used to create the service that the pipeline is associated with.
", "UpdateServicePipelineInput$templateMinorVersion": "The minor version of the service template that was used to create the service that the pipeline is associated with.
", - "UpdateServiceTemplateVersionInput$majorVersion": "To update a major version of a service template, include majorVersion
.
To update a major version of a service template, include major Version
.
To update a minor version of a service template, include minorVersion
.
The time when the version of an environment template was last modified.
", "EnvironmentTemplateVersionSummary$createdAt": "The time when the version of an environment template was created.
", "EnvironmentTemplateVersionSummary$lastModifiedAt": "The time when the version of an environment template was last modified.
", + "RepositorySyncAttempt$startedAt": "The time when the sync attempt started.
", + "RepositorySyncEvent$time": "The time that the sync event occurred.
", + "ResourceSyncAttempt$startedAt": "The time when the sync attempt started.
", + "ResourceSyncEvent$time": "The time when the event occurred.
", "Service$createdAt": "The time when the service was created.
", "Service$lastModifiedAt": "The time when the service was last modified.
", "ServiceInstance$createdAt": "The time when the service instance was created.
", @@ -1376,6 +1907,16 @@ "refs": { } }, + "UpdateTemplateSyncConfigInput": { + "base": null, + "refs": { + } + }, + "UpdateTemplateSyncConfigOutput": { + "base": null, + "refs": { + } + }, "ValidationException": { "base": "The input is invalid or an out-of-range value was supplied for the input parameter.
", "refs": { diff --git a/models/apis/proton/2020-07-20/paginators-1.json b/models/apis/proton/2020-07-20/paginators-1.json index 0551934f0c..9c1f357904 100644 --- a/models/apis/proton/2020-07-20/paginators-1.json +++ b/models/apis/proton/2020-07-20/paginators-1.json @@ -6,6 +6,16 @@ "limit_key": "maxResults", "result_key": "environmentAccountConnections" }, + "ListEnvironmentOutputs": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "outputs" + }, + "ListEnvironmentProvisionedResources": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "provisionedResources" + }, "ListEnvironmentTemplateVersions": { "input_token": "nextToken", "output_token": "nextToken", @@ -24,12 +34,43 @@ "limit_key": "maxResults", "result_key": "environments" }, + "ListRepositories": { + "input_token": "nextToken", + "output_token": "nextToken", + "limit_key": "maxResults", + "result_key": "repositories" + }, + "ListRepositorySyncDefinitions": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "syncDefinitions" + }, + "ListServiceInstanceOutputs": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "outputs" + }, + "ListServiceInstanceProvisionedResources": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "provisionedResources" + }, "ListServiceInstances": { "input_token": "nextToken", "output_token": "nextToken", "limit_key": "maxResults", "result_key": "serviceInstances" }, + "ListServicePipelineOutputs": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "outputs" + }, + "ListServicePipelineProvisionedResources": { + "input_token": "nextToken", + "output_token": "nextToken", + "result_key": "provisionedResources" + }, "ListServiceTemplateVersions": { "input_token": "nextToken", "output_token": "nextToken", diff --git a/models/apis/timestream-query/2018-11-01/api-2.json b/models/apis/timestream-query/2018-11-01/api-2.json index e4ac5c8803..e0cdad4df6 100644 --- a/models/apis/timestream-query/2018-11-01/api-2.json +++ b/models/apis/timestream-query/2018-11-01/api-2.json @@ -32,6 +32,44 @@ "endpointdiscovery":{"required":true}, "idempotent":true }, + "CreateScheduledQuery":{ + "name":"CreateScheduledQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"CreateScheduledQueryRequest"}, + "output":{"shape":"CreateScheduledQueryResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true}, + "idempotent":true + }, + "DeleteScheduledQuery":{ + "name":"DeleteScheduledQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DeleteScheduledQueryRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true}, + "idempotent":true + }, "DescribeEndpoints":{ "name":"DescribeEndpoints", "http":{ @@ -47,6 +85,93 @@ ], "endpointoperation":true }, + "DescribeScheduledQuery":{ + "name":"DescribeScheduledQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"DescribeScheduledQueryRequest"}, + "output":{"shape":"DescribeScheduledQueryResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} + }, + "ExecuteScheduledQuery":{ + "name":"ExecuteScheduledQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ExecuteScheduledQueryRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true}, + "idempotent":true + }, + "ListScheduledQueries":{ + "name":"ListScheduledQueries", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListScheduledQueriesRequest"}, + "output":{"shape":"ListScheduledQueriesResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} + }, + "PrepareQuery":{ + "name":"PrepareQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"PrepareQueryRequest"}, + "output":{"shape":"PrepareQueryResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true}, + "idempotent":true + }, "Query":{ "name":"Query", "http":{ @@ -66,6 +191,56 @@ ], "endpointdiscovery":{"required":true}, "idempotent":true + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} + }, + "UpdateScheduledQuery":{ + "name":"UpdateScheduledQuery", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateScheduledQueryRequest"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"}, + {"shape":"InvalidEndpointException"} + ], + "endpointdiscovery":{"required":true} } }, "shapes":{ @@ -77,6 +252,11 @@ "exception":true, "synthetic":true }, + "AmazonResourceName":{ + "type":"string", + "max":2048, + "min":1 + }, "CancelQueryRequest":{ "type":"structure", "required":["QueryId"], @@ -96,6 +276,12 @@ "min":32, "sensitive":true }, + "ClientToken":{ + "type":"string", + "max":128, + "min":32, + "sensitive":true + }, "ColumnInfo":{ "type":"structure", "required":["Type"], @@ -115,6 +301,39 @@ }, "exception":true }, + "CreateScheduledQueryRequest":{ + "type":"structure", + "required":[ + "Name", + "QueryString", + "ScheduleConfiguration", + "NotificationConfiguration", + "ScheduledQueryExecutionRoleArn", + "ErrorReportConfiguration" + ], + "members":{ + "Name":{"shape":"ScheduledQueryName"}, + "QueryString":{"shape":"QueryString"}, + "ScheduleConfiguration":{"shape":"ScheduleConfiguration"}, + "NotificationConfiguration":{"shape":"NotificationConfiguration"}, + "TargetConfiguration":{"shape":"TargetConfiguration"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + }, + "ScheduledQueryExecutionRoleArn":{"shape":"AmazonResourceName"}, + "Tags":{"shape":"TagList"}, + "KmsKeyId":{"shape":"StringValue2048"}, + "ErrorReportConfiguration":{"shape":"ErrorReportConfiguration"} + } + }, + "CreateScheduledQueryResponse":{ + "type":"structure", + "required":["Arn"], + "members":{ + "Arn":{"shape":"AmazonResourceName"} + } + }, "Datum":{ "type":"structure", "members":{ @@ -129,6 +348,13 @@ "type":"list", "member":{"shape":"Datum"} }, + "DeleteScheduledQueryRequest":{ + "type":"structure", + "required":["ScheduledQueryArn"], + "members":{ + "ScheduledQueryArn":{"shape":"AmazonResourceName"} + } + }, "DescribeEndpointsRequest":{ "type":"structure", "members":{ @@ -141,6 +367,39 @@ "Endpoints":{"shape":"Endpoints"} } }, + "DescribeScheduledQueryRequest":{ + "type":"structure", + "required":["ScheduledQueryArn"], + "members":{ + "ScheduledQueryArn":{"shape":"AmazonResourceName"} + } + }, + "DescribeScheduledQueryResponse":{ + "type":"structure", + "required":["ScheduledQuery"], + "members":{ + "ScheduledQuery":{"shape":"ScheduledQueryDescription"} + } + }, + "DimensionMapping":{ + "type":"structure", + "required":[ + "Name", + "DimensionValueType" + ], + "members":{ + "Name":{"shape":"SchemaName"}, + "DimensionValueType":{"shape":"DimensionValueType"} + } + }, + "DimensionMappingList":{ + "type":"list", + "member":{"shape":"DimensionMapping"} + }, + "DimensionValueType":{ + "type":"string", + "enum":["VARCHAR"] + }, "Double":{"type":"double"}, "Endpoint":{ "type":"structure", @@ -158,6 +417,44 @@ "member":{"shape":"Endpoint"} }, "ErrorMessage":{"type":"string"}, + "ErrorReportConfiguration":{ + "type":"structure", + "required":["S3Configuration"], + "members":{ + "S3Configuration":{"shape":"S3Configuration"} + } + }, + "ErrorReportLocation":{ + "type":"structure", + "members":{ + "S3ReportLocation":{"shape":"S3ReportLocation"} + } + }, + "ExecuteScheduledQueryRequest":{ + "type":"structure", + "required":[ + "ScheduledQueryArn", + "InvocationTime" + ], + "members":{ + "ScheduledQueryArn":{"shape":"AmazonResourceName"}, + "InvocationTime":{"shape":"Time"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "ExecutionStats":{ + "type":"structure", + "members":{ + "ExecutionTimeInMillis":{"shape":"Long"}, + "DataWrites":{"shape":"Long"}, + "BytesMetered":{"shape":"Long"}, + "RecordsIngested":{"shape":"Long"}, + "QueryResultRows":{"shape":"Long"} + } + }, "InternalServerException":{ "type":"structure", "members":{ @@ -172,6 +469,38 @@ }, "exception":true }, + "ListScheduledQueriesRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"MaxScheduledQueriesResults"}, + "NextToken":{"shape":"NextScheduledQueriesResultsToken"} + } + }, + "ListScheduledQueriesResponse":{ + "type":"structure", + "required":["ScheduledQueries"], + "members":{ + "ScheduledQueries":{"shape":"ScheduledQueryList"}, + "NextToken":{"shape":"NextScheduledQueriesResultsToken"} + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceARN"], + "members":{ + "ResourceARN":{"shape":"AmazonResourceName"}, + "MaxResults":{"shape":"MaxTagsForResourceResult"}, + "NextToken":{"shape":"NextTagsForResourceResultsToken"} + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":["Tags"], + "members":{ + "Tags":{"shape":"TagList"}, + "NextToken":{"shape":"NextTagsForResourceResultsToken"} + } + }, "Long":{"type":"long"}, "MaxQueryResults":{ "type":"integer", @@ -179,10 +508,123 @@ "max":1000, "min":1 }, + "MaxScheduledQueriesResults":{ + "type":"integer", + "box":true, + "max":1000, + "min":1 + }, + "MaxTagsForResourceResult":{ + "type":"integer", + "box":true, + "max":200, + "min":1 + }, + "MeasureValueType":{ + "type":"string", + "enum":[ + "BIGINT", + "BOOLEAN", + "DOUBLE", + "VARCHAR", + "MULTI" + ] + }, + "MixedMeasureMapping":{ + "type":"structure", + "required":["MeasureValueType"], + "members":{ + "MeasureName":{"shape":"SchemaName"}, + "SourceColumn":{"shape":"SchemaName"}, + "TargetMeasureName":{"shape":"SchemaName"}, + "MeasureValueType":{"shape":"MeasureValueType"}, + "MultiMeasureAttributeMappings":{"shape":"MultiMeasureAttributeMappingList"} + } + }, + "MixedMeasureMappingList":{ + "type":"list", + "member":{"shape":"MixedMeasureMapping"}, + "min":1 + }, + "MultiMeasureAttributeMapping":{ + "type":"structure", + "required":[ + "SourceColumn", + "MeasureValueType" + ], + "members":{ + "SourceColumn":{"shape":"SchemaName"}, + "TargetMultiMeasureAttributeName":{"shape":"SchemaName"}, + "MeasureValueType":{"shape":"ScalarMeasureValueType"} + } + }, + "MultiMeasureAttributeMappingList":{ + "type":"list", + "member":{"shape":"MultiMeasureAttributeMapping"}, + "min":1 + }, + "MultiMeasureMappings":{ + "type":"structure", + "required":["MultiMeasureAttributeMappings"], + "members":{ + "TargetMultiMeasureName":{"shape":"SchemaName"}, + "MultiMeasureAttributeMappings":{"shape":"MultiMeasureAttributeMappingList"} + } + }, + "NextScheduledQueriesResultsToken":{"type":"string"}, + "NextTagsForResourceResultsToken":{"type":"string"}, + "NotificationConfiguration":{ + "type":"structure", + "required":["SnsConfiguration"], + "members":{ + "SnsConfiguration":{"shape":"SnsConfiguration"} + } + }, "NullableBoolean":{ "type":"boolean", "box":true }, + "PaginationToken":{ + "type":"string", + "max":2048, + "min":1 + }, + "ParameterMapping":{ + "type":"structure", + "required":[ + "Name", + "Type" + ], + "members":{ + "Name":{"shape":"String"}, + "Type":{"shape":"Type"} + } + }, + "ParameterMappingList":{ + "type":"list", + "member":{"shape":"ParameterMapping"} + }, + "PrepareQueryRequest":{ + "type":"structure", + "required":["QueryString"], + "members":{ + "QueryString":{"shape":"QueryString"}, + "ValidateOnly":{"shape":"NullableBoolean"} + } + }, + "PrepareQueryResponse":{ + "type":"structure", + "required":[ + "QueryString", + "Columns", + "Parameters" + ], + "members":{ + "QueryString":{"shape":"QueryString"}, + "Columns":{"shape":"SelectColumnList"}, + "Parameters":{"shape":"ParameterMappingList"} + } + }, "QueryExecutionException":{ "type":"structure", "members":{ @@ -205,7 +647,7 @@ "shape":"ClientRequestToken", "idempotencyToken":true }, - "NextToken":{"shape":"String"}, + "NextToken":{"shape":"PaginationToken"}, "MaxRows":{"shape":"MaxQueryResults"} } }, @@ -218,7 +660,7 @@ ], "members":{ "QueryId":{"shape":"QueryId"}, - "NextToken":{"shape":"String"}, + "NextToken":{"shape":"PaginationToken"}, "Rows":{"shape":"RowList"}, "ColumnInfo":{"shape":"ColumnInfoList"}, "QueryStatus":{"shape":"QueryStatus"} @@ -234,8 +676,19 @@ }, "QueryString":{ "type":"string", + "max":262144, + "min":1, "sensitive":true }, + "ResourceName":{"type":"string"}, + "ResourceNotFoundException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"}, + "ScheduledQueryArn":{"shape":"AmazonResourceName"} + }, + "exception":true + }, "Row":{ "type":"structure", "required":["Data"], @@ -247,6 +700,51 @@ "type":"list", "member":{"shape":"Row"} }, + "S3BucketName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]" + }, + "S3Configuration":{ + "type":"structure", + "required":["BucketName"], + "members":{ + "BucketName":{"shape":"S3BucketName"}, + "ObjectKeyPrefix":{"shape":"S3ObjectKeyPrefix"}, + "EncryptionOption":{"shape":"S3EncryptionOption"} + } + }, + "S3EncryptionOption":{ + "type":"string", + "enum":[ + "SSE_S3", + "SSE_KMS" + ] + }, + "S3ObjectKey":{"type":"string"}, + "S3ObjectKeyPrefix":{ + "type":"string", + "max":896, + "min":1, + "pattern":"[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+" + }, + "S3ReportLocation":{ + "type":"structure", + "members":{ + "BucketName":{"shape":"S3BucketName"}, + "ObjectKey":{"shape":"S3ObjectKey"} + } + }, + "ScalarMeasureValueType":{ + "type":"string", + "enum":[ + "BIGINT", + "BOOLEAN", + "DOUBLE", + "VARCHAR" + ] + }, "ScalarType":{ "type":"string", "enum":[ @@ -264,8 +762,204 @@ ] }, "ScalarValue":{"type":"string"}, + "ScheduleConfiguration":{ + "type":"structure", + "required":["ScheduleExpression"], + "members":{ + "ScheduleExpression":{"shape":"ScheduleExpression"} + } + }, + "ScheduleExpression":{ + "type":"string", + "max":256, + "min":1 + }, + "ScheduledQuery":{ + "type":"structure", + "required":[ + "Arn", + "Name", + "State" + ], + "members":{ + "Arn":{"shape":"AmazonResourceName"}, + "Name":{"shape":"ScheduledQueryName"}, + "CreationTime":{"shape":"Time"}, + "State":{"shape":"ScheduledQueryState"}, + "PreviousInvocationTime":{"shape":"Time"}, + "NextInvocationTime":{"shape":"Time"}, + "ErrorReportConfiguration":{"shape":"ErrorReportConfiguration"}, + "TargetDestination":{"shape":"TargetDestination"}, + "LastRunStatus":{"shape":"ScheduledQueryRunStatus"} + } + }, + "ScheduledQueryDescription":{ + "type":"structure", + "required":[ + "Arn", + "Name", + "QueryString", + "State", + "ScheduleConfiguration", + "NotificationConfiguration" + ], + "members":{ + "Arn":{"shape":"AmazonResourceName"}, + "Name":{"shape":"ScheduledQueryName"}, + "QueryString":{"shape":"QueryString"}, + "CreationTime":{"shape":"Time"}, + "State":{"shape":"ScheduledQueryState"}, + "PreviousInvocationTime":{"shape":"Time"}, + "NextInvocationTime":{"shape":"Time"}, + "ScheduleConfiguration":{"shape":"ScheduleConfiguration"}, + "NotificationConfiguration":{"shape":"NotificationConfiguration"}, + "TargetConfiguration":{"shape":"TargetConfiguration"}, + "ScheduledQueryExecutionRoleArn":{"shape":"AmazonResourceName"}, + "KmsKeyId":{"shape":"StringValue2048"}, + "ErrorReportConfiguration":{"shape":"ErrorReportConfiguration"}, + "LastRunSummary":{"shape":"ScheduledQueryRunSummary"}, + "RecentlyFailedRuns":{"shape":"ScheduledQueryRunSummaryList"} + } + }, + "ScheduledQueryList":{ + "type":"list", + "member":{"shape":"ScheduledQuery"} + }, + "ScheduledQueryName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[a-zA-Z0-9_.-]+" + }, + "ScheduledQueryRunStatus":{ + "type":"string", + "enum":[ + "AUTO_TRIGGER_SUCCESS", + "AUTO_TRIGGER_FAILURE", + "MANUAL_TRIGGER_SUCCESS", + "MANUAL_TRIGGER_FAILURE" + ] + }, + "ScheduledQueryRunSummary":{ + "type":"structure", + "members":{ + "InvocationTime":{"shape":"Time"}, + "TriggerTime":{"shape":"Time"}, + "RunStatus":{"shape":"ScheduledQueryRunStatus"}, + "ExecutionStats":{"shape":"ExecutionStats"}, + "ErrorReportLocation":{"shape":"ErrorReportLocation"}, + "FailureReason":{"shape":"ErrorMessage"} + } + }, + "ScheduledQueryRunSummaryList":{ + "type":"list", + "member":{"shape":"ScheduledQueryRunSummary"} + }, + "ScheduledQueryState":{ + "type":"string", + "enum":[ + "ENABLED", + "DISABLED" + ] + }, + "SchemaName":{"type":"string"}, + "SelectColumn":{ + "type":"structure", + "members":{ + "Name":{"shape":"String"}, + "Type":{"shape":"Type"}, + "DatabaseName":{"shape":"ResourceName"}, + "TableName":{"shape":"ResourceName"}, + "Aliased":{"shape":"NullableBoolean"} + } + }, + "SelectColumnList":{ + "type":"list", + "member":{"shape":"SelectColumn"} + }, "ServiceErrorMessage":{"type":"string"}, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "SnsConfiguration":{ + "type":"structure", + "required":["TopicArn"], + "members":{ + "TopicArn":{"shape":"AmazonResourceName"} + } + }, "String":{"type":"string"}, + "StringValue2048":{ + "type":"string", + "max":2048, + "min":1 + }, + "Tag":{ + "type":"structure", + "required":[ + "Key", + "Value" + ], + "members":{ + "Key":{"shape":"TagKey"}, + "Value":{"shape":"TagValue"} + } + }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":200, + "min":0 + }, + "TagList":{ + "type":"list", + "member":{"shape":"Tag"}, + "max":200, + "min":0 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceARN", + "Tags" + ], + "members":{ + "ResourceARN":{"shape":"AmazonResourceName"}, + "Tags":{"shape":"TagList"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "TargetConfiguration":{ + "type":"structure", + "required":["TimestreamConfiguration"], + "members":{ + "TimestreamConfiguration":{"shape":"TimestreamConfiguration"} + } + }, + "TargetDestination":{ + "type":"structure", + "members":{ + "TimestreamDestination":{"shape":"TimestreamDestination"} + } + }, "ThrottlingException":{ "type":"structure", "members":{ @@ -273,6 +967,7 @@ }, "exception":true }, + "Time":{"type":"timestamp"}, "TimeSeriesDataPoint":{ "type":"structure", "required":[ @@ -289,6 +984,31 @@ "member":{"shape":"TimeSeriesDataPoint"} }, "Timestamp":{"type":"string"}, + "TimestreamConfiguration":{ + "type":"structure", + "required":[ + "DatabaseName", + "TableName", + "TimeColumn", + "DimensionMappings" + ], + "members":{ + "DatabaseName":{"shape":"ResourceName"}, + "TableName":{"shape":"ResourceName"}, + "TimeColumn":{"shape":"SchemaName"}, + "DimensionMappings":{"shape":"DimensionMappingList"}, + "MultiMeasureMappings":{"shape":"MultiMeasureMappings"}, + "MixedMeasureMappings":{"shape":"MixedMeasureMappingList"}, + "MeasureNameColumn":{"shape":"SchemaName"} + } + }, + "TimestreamDestination":{ + "type":"structure", + "members":{ + "DatabaseName":{"shape":"ResourceName"}, + "TableName":{"shape":"ResourceName"} + } + }, "Type":{ "type":"structure", "members":{ @@ -298,6 +1018,33 @@ "RowColumnInfo":{"shape":"ColumnInfoList"} } }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceARN", + "TagKeys" + ], + "members":{ + "ResourceARN":{"shape":"AmazonResourceName"}, + "TagKeys":{"shape":"TagKeyList"} + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateScheduledQueryRequest":{ + "type":"structure", + "required":[ + "ScheduledQueryArn", + "State" + ], + "members":{ + "ScheduledQueryArn":{"shape":"AmazonResourceName"}, + "State":{"shape":"ScheduledQueryState"} + } + }, "ValidationException":{ "type":"structure", "members":{ diff --git a/models/apis/timestream-query/2018-11-01/docs-2.json b/models/apis/timestream-query/2018-11-01/docs-2.json index 471de1644b..00f8b5a844 100644 --- a/models/apis/timestream-query/2018-11-01/docs-2.json +++ b/models/apis/timestream-query/2018-11-01/docs-2.json @@ -1,10 +1,20 @@ { "version": "2.0", - "service": "", + "service": "
Cancels a query that has been issued. Cancellation is guaranteed only if the query has not completed execution before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage
, indicating that the query has already been canceled.
DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because Timestream’s SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
Your application uses a programming language that does not yet have SDK support
You require better control over the client-side implementation
For detailed information on how to use DescribeEndpoints, see The Endpoint Discovery Pattern and REST APIs.
", - "Query": "Query is a synchronous operation that enables you to execute a query. Query will timeout after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. The result set will be truncated to 1MB. Service quotas apply. For more information, see Quotas in the Timestream Developer Guide.
" + "CancelQuery": " Cancels a query that has been issued. Cancellation is provided only if the query has not completed running before the cancellation request was issued. Because cancellation is an idempotent operation, subsequent cancellation requests will return a CancellationMessage
, indicating that the query has already been canceled. See code sample for details.
Create a scheduled query that will be run on your behalf at the configured schedule. Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn
parameter to run the query. You can use the NotificationConfiguration
parameter to configure notification for your scheduled query operations.
Deletes a given scheduled query. This is an irreversible operation.
", + "DescribeEndpoints": "DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream
Your application uses a programming language that does not yet have SDK support
You require better control over the client-side implementation
For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern.
", + "DescribeScheduledQuery": "Provides detailed information about a scheduled query.
", + "ExecuteScheduledQuery": "You can use this API to run a scheduled query manually.
", + "ListScheduledQueries": "Gets a list of all scheduled queries in the caller's Amazon account and Region. ListScheduledQueries
is eventually consistent.
List all tags on a Timestream query resource.
", + "PrepareQuery": "A synchronous operation that allows you to submit a query with parameters to be stored by Timestream for later running. Timestream only supports using this operation with the PrepareQueryRequest$ValidateOnly
set to true
.
Query
is a synchronous operation that enables you to run a query against your Amazon Timestream data. Query
will time out after 60 seconds. You must update the default timeout in the SDK to support a timeout of 60 seconds. See the code sample for details.
Your query request will fail in the following cases:
If you submit a Query
request with the same client token outside of the 5-minute idempotency window.
If you submit a Query
request with the same client token, but change other parameters, within the 5-minute idempotency window.
If the size of the row (including the query metadata) exceeds 1 MB, then the query will fail with the following error message:
Query aborted as max page response size has been exceeded by the output result row
If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token
error.
Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.
", + "UntagResource": "Removes the association of tags from a Timestream query resource.
", + "UpdateScheduledQuery": "Update a scheduled query.
" }, "shapes": { "AccessDeniedException": { @@ -12,6 +22,25 @@ "refs": { } }, + "AmazonResourceName": { + "base": null, + "refs": { + "CreateScheduledQueryRequest$ScheduledQueryExecutionRoleArn": "The ARN for the IAM role that Timestream will assume when running the scheduled query.
", + "CreateScheduledQueryResponse$Arn": "ARN for the created scheduled query.
", + "DeleteScheduledQueryRequest$ScheduledQueryArn": "The ARN of the scheduled query.
", + "DescribeScheduledQueryRequest$ScheduledQueryArn": "The ARN of the scheduled query.
", + "ExecuteScheduledQueryRequest$ScheduledQueryArn": "ARN of the scheduled query.
", + "ListTagsForResourceRequest$ResourceARN": "The Timestream resource with tags to be listed. This value is an Amazon Resource Name (ARN).
", + "ResourceNotFoundException$ScheduledQueryArn": "The ARN of the scheduled query.
", + "ScheduledQuery$Arn": "The Amazon Resource Name.
", + "ScheduledQueryDescription$Arn": "Scheduled query ARN.
", + "ScheduledQueryDescription$ScheduledQueryExecutionRoleArn": "IAM role that Timestream uses to run the schedule query.
", + "SnsConfiguration$TopicArn": "SNS topic ARN that the scheduled query status notifications will be sent to.
", + "TagResourceRequest$ResourceARN": "Identifies the Timestream resource to which tags should be added. This value is an Amazon Resource Name (ARN).
", + "UntagResourceRequest$ResourceARN": "The Timestream resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).
", + "UpdateScheduledQueryRequest$ScheduledQueryArn": "ARN of the scheuled query.
" + } + }, "CancelQueryRequest": { "base": null, "refs": { @@ -25,11 +54,18 @@ "ClientRequestToken": { "base": null, "refs": { - "QueryRequest$ClientToken": " Unique, case-sensitive string of up to 64 ASCII characters that you specify when you make a Query request. Providing a ClientToken
makes the call to Query
idempotent, meaning that multiple identical calls have the same effect as one single call.
Your query request will fail in the following cases:
If you submit a request with the same client token outside the 5-minute idepotency window.
If you submit a request with the same client token but a change in other parameters within the 5-minute idempotency window.
After 4 hours, any request with the same client token is treated as a new request.
" + "QueryRequest$ClientToken": " Unique, case-sensitive string of up to 64 ASCII characters specified when a Query
request is made. Providing a ClientToken
makes the call to Query
idempotent. This means that running the same query repeatedly will produce the same result. In other words, making multiple identical Query
requests has the same effect as making a single request. When using ClientToken
in a query, note the following:
If the Query API is instantiated without a ClientToken
, the Query SDK generates a ClientToken
on your behalf.
If the Query
invocation only contains the ClientToken
but does not include a NextToken
, that invocation of Query
is assumed to be a new query run.
If the invocation contains NextToken
, that particular invocation is assumed to be a subsequent invocation of a prior call to the Query API, and a result set is returned.
After 4 hours, any request with the same ClientToken
is treated as a new request.
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.
If CreateScheduledQuery is called without a ClientToken
, the Query SDK generates a ClientToken
on your behalf.
After 8 hours, any request with the same ClientToken
is treated as a new request.
Not used.
" } }, "ColumnInfo": { - "base": "Contains the meta data for query results such as the column names, data types, and other attributes.
", + "base": "Contains the metadata for query results such as the column names, data types, and other attributes.
", "refs": { "ColumnInfoList$member": null, "Type$ArrayColumnInfo": "Indicates if the column is an array.
", @@ -48,6 +84,16 @@ "refs": { } }, + "CreateScheduledQueryRequest": { + "base": null, + "refs": { + } + }, + "CreateScheduledQueryResponse": { + "base": null, + "refs": { + } + }, "Datum": { "base": "Datum represents a single data point in a query result.
", "refs": { @@ -62,6 +108,11 @@ "Row$Data": "List of data points in a single row of the result set.
" } }, + "DeleteScheduledQueryRequest": { + "base": null, + "refs": { + } + }, "DescribeEndpointsRequest": { "base": null, "refs": { @@ -72,6 +123,34 @@ "refs": { } }, + "DescribeScheduledQueryRequest": { + "base": null, + "refs": { + } + }, + "DescribeScheduledQueryResponse": { + "base": null, + "refs": { + } + }, + "DimensionMapping": { + "base": "This type is used to map column(s) from the query result to a dimension in the destination table.
", + "refs": { + "DimensionMappingList$member": null + } + }, + "DimensionMappingList": { + "base": null, + "refs": { + "TimestreamConfiguration$DimensionMappings": "This is to allow mapping column(s) from the query result to the dimension in the destination table.
" + } + }, + "DimensionValueType": { + "base": null, + "refs": { + "DimensionMapping$DimensionValueType": "Type for the dimension.
" + } + }, "Double": { "base": null, "refs": { @@ -79,7 +158,7 @@ } }, "Endpoint": { - "base": "Represents an available endpoint against which to make API calls agaisnt, as well as the TTL for that endpoint.
", + "base": "Represents an available endpoint against which to make API calls against, as well as the TTL for that endpoint.
", "refs": { "Endpoints$member": null } @@ -97,17 +176,65 @@ "InternalServerException$Message": null, "InvalidEndpointException$Message": null, "QueryExecutionException$Message": null, + "ResourceNotFoundException$Message": null, + "ScheduledQueryRunSummary$FailureReason": "Error message for the scheduled query in case of failure. You might have to look at the error report to get more detailed error reasons.
", + "ServiceQuotaExceededException$Message": null, "ThrottlingException$Message": null, "ValidationException$Message": null } }, + "ErrorReportConfiguration": { + "base": "Configuration required for error reporting.
", + "refs": { + "CreateScheduledQueryRequest$ErrorReportConfiguration": "Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
", + "ScheduledQuery$ErrorReportConfiguration": "Configuration for scheduled query error reporting.
", + "ScheduledQueryDescription$ErrorReportConfiguration": "Error-reporting configuration for the scheduled query.
" + } + }, + "ErrorReportLocation": { + "base": "This contains the location of the error report for a single scheduled query call.
", + "refs": { + "ScheduledQueryRunSummary$ErrorReportLocation": "S3 location for error report.
" + } + }, + "ExecuteScheduledQueryRequest": { + "base": null, + "refs": { + } + }, + "ExecutionStats": { + "base": "Statistics for a single scheduled query run.
", + "refs": { + "ScheduledQueryRunSummary$ExecutionStats": "Runtime statistics for a scheduled run.
" + } + }, "InternalServerException": { "base": "Timestream was unable to fully process this request because of an internal server error.
", "refs": { } }, "InvalidEndpointException": { - "base": "The requested endpoint was invalid.
", + "base": "The requested endpoint was not valid.
", + "refs": { + } + }, + "ListScheduledQueriesRequest": { + "base": null, + "refs": { + } + }, + "ListScheduledQueriesResponse": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, "refs": { } }, @@ -115,20 +242,126 @@ "base": null, "refs": { "Endpoint$CachePeriodInMinutes": "The TTL for the endpoint, in minutes.
", + "ExecutionStats$ExecutionTimeInMillis": "Total time, measured in milliseconds, that was needed for the scheduled query run to complete.
", + "ExecutionStats$DataWrites": "Data writes metered for records ingested in a single scheduled query run.
", + "ExecutionStats$BytesMetered": "Bytes metered for a single scheduled query run.
", + "ExecutionStats$RecordsIngested": "The number of records ingested for a single scheduled query run.
", + "ExecutionStats$QueryResultRows": "Number of rows present in the output from running a query before ingestion to destination data source.
", "QueryStatus$CumulativeBytesScanned": "The amount of data scanned by the query in bytes. This is a cumulative sum and represents the total amount of bytes scanned since the query was started.
", - "QueryStatus$CumulativeBytesMetered": "The amount of data scanned by the query in bytes that you will be charged for. This is a cumulative sum and represents the total amount of data that you will be charged for since the query was started. The charge is applied only once and is either applied when the query completes execution or when the query is cancelled.
" + "QueryStatus$CumulativeBytesMetered": "The amount of data scanned by the query in bytes that you will be charged for. This is a cumulative sum and represents the total amount of data that you will be charged for since the query was started. The charge is applied only once and is either applied when the query completes running or when the query is cancelled.
" } }, "MaxQueryResults": { "base": null, "refs": { - "QueryRequest$MaxRows": "The total number of rows to return in the output. If the total number of rows available is more than the value specified, a NextToken is provided in the command's output. To resume pagination, provide the NextToken value in the starting-token argument of a subsequent command.
" + "QueryRequest$MaxRows": " The total number of rows to be returned in the Query
output. The initial run of Query
with a MaxRows
value specified will return the result set of the query in two cases:
The size of the result is less than 1MB
.
The number of rows in the result set is less than the value of maxRows
.
Otherwise, the initial invocation of Query
only returns a NextToken
, which can then be used in subsequent calls to fetch the result set. To resume pagination, provide the NextToken
value in the subsequent command.
If the row size is large (e.g. a row has many columns), Timestream may return fewer rows to keep the response size from exceeding the 1 MB limit. If MaxRows
is not provided, Timestream will send the necessary number of rows to meet the 1 MB limit.
The maximum number of items to return in the output. If the total number of items available is more than the value specified, a NextToken
is provided in the output. To resume pagination, provide the NextToken
value as the argument to the subsequent call to ListScheduledQueriesRequest
.
The maximum number of tags to return.
" + } + }, + "MeasureValueType": { + "base": null, + "refs": { + "MixedMeasureMapping$MeasureValueType": "Type of the value that is to be read from sourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.
" + } + }, + "MixedMeasureMapping": { + "base": "MixedMeasureMappings are mappings that can be used to ingest data into a mixture of narrow and multi measures in the derived table.
", + "refs": { + "MixedMeasureMappingList$member": null + } + }, + "MixedMeasureMappingList": { + "base": null, + "refs": { + "TimestreamConfiguration$MixedMeasureMappings": "Specifies how to map measures to multi-measure records.
" + } + }, + "MultiMeasureAttributeMapping": { + "base": "Attribute mapping for MULTI value measures.
", + "refs": { + "MultiMeasureAttributeMappingList$member": null + } + }, + "MultiMeasureAttributeMappingList": { + "base": null, + "refs": { + "MixedMeasureMapping$MultiMeasureAttributeMappings": "Required when measureValueType is MULTI. Attribute mappings for MULTI value measures.
", + "MultiMeasureMappings$MultiMeasureAttributeMappings": "Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
" + } + }, + "MultiMeasureMappings": { + "base": "Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table.
", + "refs": { + "TimestreamConfiguration$MultiMeasureMappings": "Multi-measure mappings.
" + } + }, + "NextScheduledQueriesResultsToken": { + "base": null, + "refs": { + "ListScheduledQueriesRequest$NextToken": "A pagination token to resume pagination.
", + "ListScheduledQueriesResponse$NextToken": "A token to specify where to start paginating. This is the NextToken from a previously truncated response.
" + } + }, + "NextTagsForResourceResultsToken": { + "base": null, + "refs": { + "ListTagsForResourceRequest$NextToken": "A pagination token to resume pagination.
", + "ListTagsForResourceResponse$NextToken": "A pagination token to resume pagination with a subsequent call to ListTagsForResourceResponse
.
Notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated or when it is deleted.
", + "refs": { + "CreateScheduledQueryRequest$NotificationConfiguration": "Notification configuration for the scheduled query. A notification is sent by Timestream when a query run finishes, when the state is updated or when you delete it.
", + "ScheduledQueryDescription$NotificationConfiguration": "Notification configuration.
" } }, "NullableBoolean": { "base": null, "refs": { - "Datum$NullValue": "Indicates if the data point is null.
" + "Datum$NullValue": "Indicates if the data point is null.
", + "PrepareQueryRequest$ValidateOnly": "By setting this value to true
, Timestream will only validate that the query string is a valid Timestream query, and not store the prepared query for later use.
True, if the column name was aliased by the query. False otherwise.
" + } + }, + "PaginationToken": { + "base": null, + "refs": { + "QueryRequest$NextToken": " A pagination token used to return a set of results. When the Query
API is invoked using NextToken
, that particular invocation is assumed to be a subsequent invocation of a prior call to Query
, and a result set is returned. However, if the Query
invocation only contains the ClientToken
, that invocation of Query
is assumed to be a new query run.
Note the following when using NextToken in a query:
A pagination token can be used for up to five Query
invocations, OR for a duration of up to 1 hour – whichever comes first.
Using the same NextToken
will return the same set of records. To keep paginating through the result set, you must to use the most recent nextToken
.
Suppose a Query
invocation returns two NextToken
values, TokenA
and TokenB
. If TokenB
is used in a subsequent Query
invocation, then TokenA
is invalidated and cannot be reused.
To request a previous result set from a query after pagination has begun, you must re-invoke the Query API.
The latest NextToken
should be used to paginate until null
is returned, at which point a new NextToken
should be used.
If the IAM principal of the query initiator and the result reader are not the same and/or the query initiator and the result reader do not have the same query string in the query requests, the query will fail with an Invalid pagination token
error.
A pagination token that can be used again on a Query
call to get the next set of results.
Mapping for named parameters.
", + "refs": { + "ParameterMappingList$member": null + } + }, + "ParameterMappingList": { + "base": null, + "refs": { + "PrepareQueryResponse$Parameters": "A list of parameters used in the submitted query string.
" + } + }, + "PrepareQueryRequest": { + "base": null, + "refs": { + } + }, + "PrepareQueryResponse": { + "base": null, + "refs": { } }, "QueryExecutionException": { @@ -139,7 +372,7 @@ "QueryId": { "base": null, "refs": { - "CancelQueryRequest$QueryId": " The id of the query that needs to be cancelled. QueryID
is returned as part of QueryResult.
The ID of the query that needs to be cancelled. QueryID
is returned as part of the query result.
A unique ID for the given query.
" } }, @@ -154,15 +387,35 @@ } }, "QueryStatus": { - "base": "Information about the status of the query, including progress and bytes scannned.
", + "base": "Information about the status of the query, including progress and bytes scanned.
", "refs": { - "QueryResponse$QueryStatus": "Information about the status of the query, including progress and bytes scannned.
" + "QueryResponse$QueryStatus": "Information about the status of the query, including progress and bytes scanned.
" } }, "QueryString": { "base": null, "refs": { - "QueryRequest$QueryString": "The query to be executed by Timestream.
" + "CreateScheduledQueryRequest$QueryString": "The query string to run. Parameter names can be specified in the query string @
character followed by an identifier. The named Parameter @scheduled_runtime
is reserved and can be used in the query to get the time at which the query is scheduled to run.
The timestamp calculated according to the ScheduleConfiguration parameter, will be the value of @scheduled_runtime
paramater for each query run. For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the @scheduled_runtime
parameter is initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.
The Timestream query string that you want to use as a prepared statement. Parameter names can be specified in the query string @
character followed by an identifier.
The query string that you want prepare.
", + "QueryRequest$QueryString": "The query to be run by Timestream.
", + "ScheduledQueryDescription$QueryString": "The query to be run.
" + } + }, + "ResourceName": { + "base": null, + "refs": { + "SelectColumn$DatabaseName": "Database that has this column.
", + "SelectColumn$TableName": "Table within the database that has this column.
", + "TimestreamConfiguration$DatabaseName": "Name of Timestream database to which the query result will be written.
", + "TimestreamConfiguration$TableName": "Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
", + "TimestreamDestination$DatabaseName": "Timestream database name.
", + "TimestreamDestination$TableName": "Timestream table name.
" + } + }, + "ResourceNotFoundException": { + "base": "The requested resource could not be found.
", + "refs": { } }, "Row": { @@ -178,16 +431,152 @@ "QueryResponse$Rows": "The result set rows returned by the query.
" } }, + "S3BucketName": { + "base": null, + "refs": { + "S3Configuration$BucketName": "Name of the S3 bucket under which error reports will be created.
", + "S3ReportLocation$BucketName": "S3 bucket name.
" + } + }, + "S3Configuration": { + "base": "Details on S3 location for error reports that result from running a query.
", + "refs": { + "ErrorReportConfiguration$S3Configuration": "The S3 configuration for the error reports.
" + } + }, + "S3EncryptionOption": { + "base": null, + "refs": { + "S3Configuration$EncryptionOption": "Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
" + } + }, + "S3ObjectKey": { + "base": null, + "refs": { + "S3ReportLocation$ObjectKey": "S3 key.
" + } + }, + "S3ObjectKeyPrefix": { + "base": null, + "refs": { + "S3Configuration$ObjectKeyPrefix": "Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
" + } + }, + "S3ReportLocation": { + "base": "S3 report location for the scheduled query run.
", + "refs": { + "ErrorReportLocation$S3ReportLocation": "The S3 location where error reports are written.
" + } + }, + "ScalarMeasureValueType": { + "base": null, + "refs": { + "MultiMeasureAttributeMapping$MeasureValueType": "Type of the attribute to be read from the source column.
" + } + }, "ScalarType": { "base": null, "refs": { - "Type$ScalarType": "Indicates if the column is of type string, integer, boolean, double, timestamp, date, time.
" + "Type$ScalarType": "Indicates if the column is of type string, integer, Boolean, double, timestamp, date, time.
" } }, "ScalarValue": { "base": null, "refs": { - "Datum$ScalarValue": "Indicates if the data point is a scalar value such as integer, string, double, or boolean.
" + "Datum$ScalarValue": "Indicates if the data point is a scalar value such as integer, string, double, or Boolean.
" + } + }, + "ScheduleConfiguration": { + "base": "Configuration of the schedule of the query.
", + "refs": { + "CreateScheduledQueryRequest$ScheduleConfiguration": "The schedule configuration for the query.
", + "ScheduledQueryDescription$ScheduleConfiguration": "Schedule configuration.
" + } + }, + "ScheduleExpression": { + "base": null, + "refs": { + "ScheduleConfiguration$ScheduleExpression": "An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
" + } + }, + "ScheduledQuery": { + "base": "Scheduled Query
", + "refs": { + "ScheduledQueryList$member": null + } + }, + "ScheduledQueryDescription": { + "base": "Structure that describes scheduled query.
", + "refs": { + "DescribeScheduledQueryResponse$ScheduledQuery": "The scheduled query.
" + } + }, + "ScheduledQueryList": { + "base": null, + "refs": { + "ListScheduledQueriesResponse$ScheduledQueries": "A list of scheduled queries.
" + } + }, + "ScheduledQueryName": { + "base": null, + "refs": { + "CreateScheduledQueryRequest$Name": "Name of the scheduled query.
", + "ScheduledQuery$Name": "The name of the scheduled query.
", + "ScheduledQueryDescription$Name": "Name of the scheduled query.
" + } + }, + "ScheduledQueryRunStatus": { + "base": null, + "refs": { + "ScheduledQuery$LastRunStatus": "Status of the last scheduled query run.
", + "ScheduledQueryRunSummary$RunStatus": "The status of a scheduled query run.
" + } + }, + "ScheduledQueryRunSummary": { + "base": "Run summary for the scheduled query
", + "refs": { + "ScheduledQueryDescription$LastRunSummary": "Runtime summary for the last scheduled query run.
", + "ScheduledQueryRunSummaryList$member": null + } + }, + "ScheduledQueryRunSummaryList": { + "base": null, + "refs": { + "ScheduledQueryDescription$RecentlyFailedRuns": "Runtime summary for the last five failed scheduled query runs.
" + } + }, + "ScheduledQueryState": { + "base": null, + "refs": { + "ScheduledQuery$State": "State of scheduled query.
", + "ScheduledQueryDescription$State": "State of the scheduled query.
", + "UpdateScheduledQueryRequest$State": "State of the scheduled query.
" + } + }, + "SchemaName": { + "base": null, + "refs": { + "DimensionMapping$Name": "Column name from query result.
", + "MixedMeasureMapping$MeasureName": "Refers to the value of measure_name in a result row. This field is required if MeasureNameColumn is provided.
", + "MixedMeasureMapping$SourceColumn": "This field refers to the source column from which measure-value is to be read for result materialization.
", + "MixedMeasureMapping$TargetMeasureName": "Target measure name to be used. If not provided, the target measure name by default would be measure-name if provided, or sourceColumn otherwise.
", + "MultiMeasureAttributeMapping$SourceColumn": "Source column from where the attribute value is to be read.
", + "MultiMeasureAttributeMapping$TargetMultiMeasureAttributeName": "Custom name to be used for attribute name in derived table. If not provided, source column name would be used.
", + "MultiMeasureMappings$TargetMultiMeasureName": "The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
", + "TimestreamConfiguration$TimeColumn": "Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
", + "TimestreamConfiguration$MeasureNameColumn": "Name of the measure column.
" + } + }, + "SelectColumn": { + "base": "Details of the column that is returned by the query.
", + "refs": { + "SelectColumnList$member": null + } + }, + "SelectColumnList": { + "base": null, + "refs": { + "PrepareQueryResponse$Columns": "A list of SELECT clause columns of the submitted query string.
" } }, "ServiceErrorMessage": { @@ -196,14 +585,88 @@ "AccessDeniedException$Message": null } }, + "ServiceQuotaExceededException": { + "base": "You have exceeded the service quota.
", + "refs": { + } + }, + "SnsConfiguration": { + "base": "Details on SNS that are required to send the notification.
", + "refs": { + "NotificationConfiguration$SnsConfiguration": "Details on SNS configuration.
" + } + }, "String": { "base": null, "refs": { "CancelQueryResponse$CancellationMessage": " A CancellationMessage
is returned when a CancelQuery
request for the query specified by QueryId
has already been issued.
The name of the result set column. The name of the result set is available for columns of all data types except for arrays.
", "Endpoint$Address": "An endpoint address.
", - "QueryRequest$NextToken": "A pagination token passed to get a set of results.
", - "QueryResponse$NextToken": " A pagination token that can be used again on a Query
call to get the next set of results.
Parameter name.
", + "SelectColumn$Name": "Name of the column.
" + } + }, + "StringValue2048": { + "base": null, + "refs": { + "CreateScheduledQueryRequest$KmsKeyId": "The Amazon KMS key used to encrypt the scheduled query resource, at-rest. If the Amazon KMS key is not specified, the scheduled query resource will be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix the name with alias/
If ErrorReportConfiguration uses SSE_KMS
as encryption type, the same KmsKeyId is used to encrypt the error report at rest.
A customer provided KMS key used to encrypt the scheduled query resource.
" + } + }, + "Tag": { + "base": "A tag is a label that you assign to a Timestream database and/or table. Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize databases and/or tables, for example, by purpose, owner, or environment.
", + "refs": { + "TagList$member": null + } + }, + "TagKey": { + "base": null, + "refs": { + "Tag$Key": "The key of the tag. Tag keys are case sensitive.
", + "TagKeyList$member": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "A list of tags keys. Existing tags of the resource whose keys are members of this list will be removed from the Timestream resource.
" + } + }, + "TagList": { + "base": null, + "refs": { + "CreateScheduledQueryRequest$Tags": "A list of key-value pairs to label the scheduled query.
", + "ListTagsForResourceResponse$Tags": "The tags currently associated with the Timestream resource.
", + "TagResourceRequest$Tags": "The tags to be assigned to the Timestream resource.
" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "Tag$Value": "The value of the tag. Tag values are case sensitive and can be null.
" + } + }, + "TargetConfiguration": { + "base": "Configuration used for writing the output of a query.
", + "refs": { + "CreateScheduledQueryRequest$TargetConfiguration": "Configuration used for writing the result of a query.
", + "ScheduledQueryDescription$TargetConfiguration": "Scheduled query target store configuration.
" + } + }, + "TargetDestination": { + "base": "Destination details to write data for a target data source. Current supported data source is Timestream.
", + "refs": { + "ScheduledQuery$TargetDestination": "Target data source where final scheduled query result will be written.
" } }, "ThrottlingException": { @@ -211,8 +674,22 @@ "refs": { } }, + "Time": { + "base": null, + "refs": { + "ExecuteScheduledQueryRequest$InvocationTime": "The timestamp in UTC. Query will be run as if it was invoked at this timestamp.
", + "ScheduledQuery$CreationTime": "The creation time of the scheduled query.
", + "ScheduledQuery$PreviousInvocationTime": "The last time the scheduled query was run.
", + "ScheduledQuery$NextInvocationTime": "The next time the scheduled query is to be run.
", + "ScheduledQueryDescription$CreationTime": "Creation time of the scheduled query.
", + "ScheduledQueryDescription$PreviousInvocationTime": "Last time the query was run.
", + "ScheduledQueryDescription$NextInvocationTime": "The next time the scheduled query is scheduled to run.
", + "ScheduledQueryRunSummary$InvocationTime": "InvocationTime for this run. This is the time at which the query is scheduled to run. Parameter @scheduled_runtime
can be used in the query to get the value.
The actual time when the query was run.
" + } + }, "TimeSeriesDataPoint": { - "base": "The timeseries datatype represents the values of a measure over time. A time series is an array of rows of timestamps and measure values, with rows sorted in ascending order of time. A TimeSeriesDataPoint is a single data point in the timeseries. It represents a tuple of (time, measure value) in a timeseries.
", + "base": "The timeseries data type represents the values of a measure over time. A time series is an array of rows of timestamps and measure values, with rows sorted in ascending order of time. A TimeSeriesDataPoint is a single data point in the time series. It represents a tuple of (time, measure value) in a time series.
", "refs": { "TimeSeriesDataPointList$member": null } @@ -220,7 +697,7 @@ "TimeSeriesDataPointList": { "base": null, "refs": { - "Datum$TimeSeriesValue": "Indicates if the data point is of timeseries data type.
" + "Datum$TimeSeriesValue": "Indicates if the data point is a timeseries data type.
" } }, "Timestamp": { @@ -229,10 +706,39 @@ "TimeSeriesDataPoint$Time": "The timestamp when the measure value was collected.
" } }, + "TimestreamConfiguration": { + "base": "Configuration to write data into Timestream database and table. This configuration allows the user to map the query result select columns into the destination table columns.
", + "refs": { + "TargetConfiguration$TimestreamConfiguration": "Configuration needed to write data into the Timestream database and table.
" + } + }, + "TimestreamDestination": { + "base": "Destination for scheduled query.
", + "refs": { + "TargetDestination$TimestreamDestination": "Query result destination details for Timestream data source.
" + } + }, "Type": { - "base": "Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
", + "base": "Contains the data type of a column in a query result set. The data type can be scalar or complex. The supported scalar data types are integers, Boolean, string, double, timestamp, date, time, and intervals. The supported complex data types are arrays, rows, and timeseries.
", + "refs": { + "ColumnInfo$Type": "The data type of the result set column. The data type can be a scalar or complex. Scalar data types are integers, strings, doubles, Booleans, and others. Complex data types are types such as arrays, rows, and others.
", + "ParameterMapping$Type": null, + "SelectColumn$Type": null + } + }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, + "UpdateScheduledQueryRequest": { + "base": null, "refs": { - "ColumnInfo$Type": "The data type of the result set column. The data type can be a scalar or complex. Scalar data types are integers, strings, doubles, booleans, and others. Complex data types are types such as arrays, rows, and others.
" } }, "ValidationException": { diff --git a/models/apis/timestream-query/2018-11-01/paginators-1.json b/models/apis/timestream-query/2018-11-01/paginators-1.json index dcc93dac8d..2f7af7e80a 100644 --- a/models/apis/timestream-query/2018-11-01/paginators-1.json +++ b/models/apis/timestream-query/2018-11-01/paginators-1.json @@ -1,5 +1,17 @@ { "pagination": { + "ListScheduledQueries": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ScheduledQueries" + }, + "ListTagsForResource": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Tags" + }, "Query": { "input_token": "NextToken", "limit_key": "MaxRows", diff --git a/models/apis/timestream-write/2018-11-01/api-2.json b/models/apis/timestream-write/2018-11-01/api-2.json index 1e6ee45288..7d46b5e807 100644 --- a/models/apis/timestream-write/2018-11-01/api-2.json +++ b/models/apis/timestream-write/2018-11-01/api-2.json @@ -29,7 +29,8 @@ {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, {"shape":"InvalidEndpointException"}, - {"shape":"InternalServerException"} + {"shape":"InternalServerException"}, + {"shape":"InvalidEndpointException"} ], "endpointdiscovery":{"required":true} }, @@ -48,6 +49,7 @@ {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ThrottlingException"}, + {"shape":"InvalidEndpointException"}, {"shape":"InternalServerException"}, {"shape":"InvalidEndpointException"} ], @@ -267,6 +269,7 @@ "requestUri":"/" }, "input":{"shape":"WriteRecordsRequest"}, + "output":{"shape":"WriteRecordsResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ThrottlingException"}, @@ -293,6 +296,7 @@ "max":1011, "min":1 }, + "Boolean":{"type":"boolean"}, "ConflictException":{ "type":"structure", "required":["Message"], @@ -305,7 +309,7 @@ "type":"structure", "required":["DatabaseName"], "members":{ - "DatabaseName":{"shape":"ResourceName"}, + "DatabaseName":{"shape":"ResourceCreateAPIName"}, "KmsKeyId":{"shape":"StringValue2048"}, "Tags":{"shape":"TagList"} } @@ -323,10 +327,11 @@ "TableName" ], "members":{ - "DatabaseName":{"shape":"ResourceName"}, - "TableName":{"shape":"ResourceName"}, + "DatabaseName":{"shape":"ResourceCreateAPIName"}, + "TableName":{"shape":"ResourceCreateAPIName"}, "RetentionProperties":{"shape":"RetentionProperties"}, - "Tags":{"shape":"TagList"} + "Tags":{"shape":"TagList"}, + "MagneticStoreWriteProperties":{"shape":"MagneticStoreWriteProperties"} } }, "CreateTableResponse":{ @@ -418,8 +423,8 @@ "Value" ], "members":{ - "Name":{"shape":"StringValue256"}, - "Value":{"shape":"StringValue2048"}, + "Name":{"shape":"SchemaName"}, + "Value":{"shape":"SchemaValue"}, "DimensionValueType":{"shape":"DimensionValueType"} } }, @@ -448,6 +453,7 @@ "member":{"shape":"Endpoint"} }, "ErrorMessage":{"type":"string"}, + "Integer":{"type":"integer"}, "InternalServerException":{ "type":"structure", "required":["Message"], @@ -507,20 +513,53 @@ } }, "Long":{"type":"long"}, + "MagneticStoreRejectedDataLocation":{ + "type":"structure", + "members":{ + "S3Configuration":{"shape":"S3Configuration"} + } + }, "MagneticStoreRetentionPeriodInDays":{ "type":"long", "max":73000, "min":1 }, + "MagneticStoreWriteProperties":{ + "type":"structure", + "required":["EnableMagneticStoreWrites"], + "members":{ + "EnableMagneticStoreWrites":{"shape":"Boolean"}, + "MagneticStoreRejectedDataLocation":{"shape":"MagneticStoreRejectedDataLocation"} + } + }, + "MeasureValue":{ + "type":"structure", + "required":[ + "Name", + "Value", + "Type" + ], + "members":{ + "Name":{"shape":"SchemaName"}, + "Value":{"shape":"StringValue2048"}, + "Type":{"shape":"MeasureValueType"} + } + }, "MeasureValueType":{ "type":"string", "enum":[ "DOUBLE", "BIGINT", "VARCHAR", - "BOOLEAN" + "BOOLEAN", + "TIMESTAMP", + "MULTI" ] }, + "MeasureValues":{ + "type":"list", + "member":{"shape":"MeasureValue"} + }, "MemoryStoreRetentionPeriodInHours":{ "type":"long", "max":8766, @@ -536,7 +575,7 @@ "type":"structure", "members":{ "Dimensions":{"shape":"Dimensions"}, - "MeasureName":{"shape":"StringValue256"}, + "MeasureName":{"shape":"SchemaName"}, "MeasureValue":{"shape":"StringValue2048"}, "MeasureValueType":{"shape":"MeasureValueType"}, "Time":{"shape":"StringValue256"}, @@ -544,7 +583,8 @@ "Version":{ "shape":"RecordVersion", "box":true - } + }, + "MeasureValues":{"shape":"MeasureValues"} } }, "RecordIndex":{"type":"integer"}, @@ -555,6 +595,14 @@ "max":100, "min":1 }, + "RecordsIngested":{ + "type":"structure", + "members":{ + "Total":{"shape":"Integer"}, + "MemoryStore":{"shape":"Integer"}, + "MagneticStore":{"shape":"Integer"} + } + }, "RejectedRecord":{ "type":"structure", "members":{ @@ -578,12 +626,11 @@ }, "exception":true }, - "ResourceName":{ + "ResourceCreateAPIName":{ "type":"string", - "max":64, - "min":3, "pattern":"[a-zA-Z0-9_.-]+" }, + "ResourceName":{"type":"string"}, "ResourceNotFoundException":{ "type":"structure", "members":{ @@ -602,6 +649,39 @@ "MagneticStoreRetentionPeriodInDays":{"shape":"MagneticStoreRetentionPeriodInDays"} } }, + "S3BucketName":{ + "type":"string", + "max":63, + "min":3, + "pattern":"[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9]" + }, + "S3Configuration":{ + "type":"structure", + "members":{ + "BucketName":{"shape":"S3BucketName"}, + "ObjectKeyPrefix":{"shape":"S3ObjectKeyPrefix"}, + "EncryptionOption":{"shape":"S3EncryptionOption"}, + "KmsKeyId":{"shape":"StringValue2048"} + } + }, + "S3EncryptionOption":{ + "type":"string", + "enum":[ + "SSE_S3", + "SSE_KMS" + ] + }, + "S3ObjectKeyPrefix":{ + "type":"string", + "max":928, + "min":1, + "pattern":"[a-zA-Z0-9|!\\-_*'\\(\\)]([a-zA-Z0-9]|[!\\-_*'\\(\\)\\/.])+" + }, + "SchemaName":{ + "type":"string", + "min":1 + }, + "SchemaValue":{"type":"string"}, "ServiceQuotaExceededException":{ "type":"structure", "members":{ @@ -629,7 +709,8 @@ "TableStatus":{"shape":"TableStatus"}, "RetentionProperties":{"shape":"RetentionProperties"}, "CreationTime":{"shape":"Date"}, - "LastUpdatedTime":{"shape":"Date"} + "LastUpdatedTime":{"shape":"Date"}, + "MagneticStoreWriteProperties":{"shape":"MagneticStoreWriteProperties"} } }, "TableList":{ @@ -746,13 +827,13 @@ "type":"structure", "required":[ "DatabaseName", - "TableName", - "RetentionProperties" + "TableName" ], "members":{ "DatabaseName":{"shape":"ResourceName"}, "TableName":{"shape":"ResourceName"}, - "RetentionProperties":{"shape":"RetentionProperties"} + "RetentionProperties":{"shape":"RetentionProperties"}, + "MagneticStoreWriteProperties":{"shape":"MagneticStoreWriteProperties"} } }, "UpdateTableResponse":{ @@ -782,6 +863,12 @@ "CommonAttributes":{"shape":"Record"}, "Records":{"shape":"Records"} } + }, + "WriteRecordsResponse":{ + "type":"structure", + "members":{ + "RecordsIngested":{"shape":"RecordsIngested"} + } } } } diff --git a/models/apis/timestream-write/2018-11-01/docs-2.json b/models/apis/timestream-write/2018-11-01/docs-2.json index bb18eaf6e9..c0ab22367b 100644 --- a/models/apis/timestream-write/2018-11-01/docs-2.json +++ b/models/apis/timestream-write/2018-11-01/docs-2.json @@ -1,22 +1,22 @@ { "version": "2.0", - "service": "Amazon Timestream is a fast, scalable, fully managed time series database service that makes it easy to store and analyze trillions of time series data points per day. With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications. You can analyze industrial telemetry to streamline equipment management and maintenance. You can also store and analyze log data and metrics to improve the performance and availability of your applications. Timestream is built from the ground up to effectively ingest, process, and store time series data. It organizes data to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.
", + "service": "Amazon Timestream is a fast, scalable, fully managed time series database service that makes it easy to store and analyze trillions of time series data points per day. With Timestream, you can easily store and analyze IoT sensor data to derive insights from your IoT applications. You can analyze industrial telemetry to streamline equipment management and maintenance. You can also store and analyze log data and metrics to improve the performance and availability of your applications. Timestream is built from the ground up to effectively ingest, process, and store time series data. It organizes data to optimize query processing. It automatically scales based on the volume of data ingested and on the query volume to ensure you receive optimal performance while inserting and querying data. As your data grows over time, Timestream’s adaptive query processing engine spans across storage tiers to provide fast analysis while reducing costs.
", "operations": { - "CreateDatabase": "Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to AWS managed KMS keys for more info. Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
", - "CreateTable": "The CreateTable operation adds a new table to an existing database in your account. In an AWS account, table names must be at least unique within each Region if they are in the same database. You may have identical table names in the same Region if the tables are in seperate databases. While creating the table, you must specify the table name, database name, and the retention properties. Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
", - "DeleteDatabase": "Deletes a given Timestream database. This is an irreversible operation. After a database is deleted, the time series data from its tables cannot be recovered.
All tables in the database must be deleted first, or a ValidationException error will be thrown.
Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.
", - "DeleteTable": "Deletes a given Timestream table. This is an irreversible operation. After a Timestream database table is deleted, the time series data stored in the table cannot be recovered.
Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.
", - "DescribeDatabase": "Returns information about the database, including the database name, time that the database was created, and the total number of tables found within the database. Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
", - "DescribeEndpoints": "DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because Timestream’s SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
Your application uses a programming language that does not yet have SDK support
You require better control over the client-side implementation
For detailed information on how to use DescribeEndpoints, see The Endpoint Discovery Pattern and REST APIs.
", - "DescribeTable": "Returns information about the table, including the table name, database name, retention duration of the memory store and the magnetic store. Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
", - "ListDatabases": "Returns a list of your Timestream databases. Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
", - "ListTables": "A list of tables, along with the name, status and retention properties of each table.
", + "CreateDatabase": "Creates a new Timestream database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info. Service quotas apply. See code sample for details.
", + "CreateTable": "The CreateTable operation adds a new table to an existing database in your account. In an Amazon Web Services account, table names must be at least unique within each Region if they are in the same database. You may have identical table names in the same Region if the tables are in separate databases. While creating the table, you must specify the table name, database name, and the retention properties. Service quotas apply. See code sample for details.
", + "DeleteDatabase": "Deletes a given Timestream database. This is an irreversible operation. After a database is deleted, the time series data from its tables cannot be recovered.
All tables in the database must be deleted first, or a ValidationException error will be thrown.
Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.
See code sample for details.
", + "DeleteTable": "Deletes a given Timestream table. This is an irreversible operation. After a Timestream database table is deleted, the time series data stored in the table cannot be recovered.
Due to the nature of distributed retries, the operation can return either success or a ResourceNotFoundException. Clients should consider them equivalent.
See code sample for details.
", + "DescribeDatabase": "Returns information about the database, including the database name, time that the database was created, and the total number of tables found within the database. Service quotas apply. See code sample for details.
", + "DescribeEndpoints": "DescribeEndpoints returns a list of available endpoints to make Timestream API calls against. This API is available through both Write and Query.
Because the Timestream SDKs are designed to transparently work with the service’s architecture, including the management and mapping of the service endpoints, it is not recommended that you use this API unless:
You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream
Your application uses a programming language that does not yet have SDK support
You require better control over the client-side implementation
For detailed information on how and when to use and implement DescribeEndpoints, see The Endpoint Discovery Pattern.
", + "DescribeTable": "Returns information about the table, including the table name, database name, retention duration of the memory store and the magnetic store. Service quotas apply. See code sample for details.
", + "ListDatabases": "Returns a list of your Timestream databases. Service quotas apply. See code sample for details.
", + "ListTables": "A list of tables, along with the name, status and retention properties of each table. See code sample for details.
", "ListTagsForResource": "List all tags on a Timestream resource.
", "TagResource": "Associate a set of tags with a Timestream resource. You can then activate these user-defined tags so that they appear on the Billing and Cost Management console for cost allocation tracking.
", "UntagResource": "Removes the association of tags from a Timestream resource.
", - "UpdateDatabase": " Modifies the KMS key for an existing database. While updating the database, you must specify the database name and the identifier of the new KMS key to be used (KmsKeyId
). If there are any concurrent UpdateDatabase
requests, first writer wins.
Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the change in retention duration takes effect immediately. For example, if the retention period of the memory store was initially set to 2 hours and then changed to 24 hours, the memory store will be capable of holding 24 hours of data, but will be populated with 24 hours of data 22 hours after this change was made. Timestream does not retrieve data from the magnetic store to populate the memory store.
Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
", - "WriteRecords": "The WriteRecords operation enables you to write your time series data into Timestream. You can specify a single data point or a batch of data points to be inserted into the system. Timestream offers you with a flexible schema that auto detects the column names and data types for your Timestream tables based on the dimension names and data types of the data points you specify when invoking writes into the database. Timestream support eventual consistency read semantics. This means that when you query data immediately after writing a batch of data into Timestream, the query results might not reflect the results of a recently completed write operation. The results may also include some stale data. If you repeat the query request after a short time, the results should return the latest data. Service quotas apply. For more information, see Access Management in the Timestream Developer Guide.
" + "UpdateDatabase": " Modifies the KMS key for an existing database. While updating the database, you must specify the database name and the identifier of the new KMS key to be used (KmsKeyId
). If there are any concurrent UpdateDatabase
requests, first writer wins.
See code sample for details.
", + "UpdateTable": "Modifies the retention duration of the memory store and magnetic store for your Timestream table. Note that the change in retention duration takes effect immediately. For example, if the retention period of the memory store was initially set to 2 hours and then changed to 24 hours, the memory store will be capable of holding 24 hours of data, but will be populated with 24 hours of data 22 hours after this change was made. Timestream does not retrieve data from the magnetic store to populate the memory store.
See code sample for details.
", + "WriteRecords": "The WriteRecords operation enables you to write your time series data into Timestream. You can specify a single data point or a batch of data points to be inserted into the system. Timestream offers you with a flexible schema that auto detects the column names and data types for your Timestream tables based on the dimension names and data types of the data points you specify when invoking writes into the database. Timestream support eventual consistency read semantics. This means that when you query data immediately after writing a batch of data into Timestream, the query results might not reflect the results of a recently completed write operation. The results may also include some stale data. If you repeat the query request after a short time, the results should return the latest data. Service quotas apply.
See code sample for details.
Upserts
You can use the Version
parameter in a WriteRecords
request to update data points. Timestream tracks a version number with each record. Version
defaults to 1
when not specified for the record in the request. Timestream will update an existing record’s measure value along with its Version
upon receiving a write request with a higher Version
number for that record. Upon receiving an update request where the measure value is the same as that of the existing record, Timestream still updates Version
, if it is greater than the existing value of Version
. You can update a data point as many times as desired, as long as the value of Version
continuously increases.
For example, suppose you write a new record without indicating Version
in the request. Timestream will store this record, and set Version
to 1
. Now, suppose you try to update this record with a WriteRecords
request of the same record with a different measure value but, like before, do not provide Version
. In this case, Timestream will reject this update with a RejectedRecordsException
since the updated record’s version is not greater than the existing value of Version. However, if you were to resend the update request with Version
set to 2
, Timestream would then succeed in updating the record’s value, and the Version
would be set to 2
. Next, suppose you sent a WriteRecords
request with this same record and an identical measure value, but with Version
set to 3
. In this case, Timestream would only update Version
to 3
. Any further updates would need to send a version number greater than 3
, or the update requests would receive a RejectedRecordsException
.
The Timestream resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).
" } }, + "Boolean": { + "base": null, + "refs": { + "MagneticStoreWriteProperties$EnableMagneticStoreWrites": "A flag to enable magnetic store writes.
" + } + }, "ConflictException": { "base": "Timestream was unable to process this request because it contains resource that already exists.
", "refs": { @@ -158,7 +164,7 @@ "ConflictException$Message": null, "InternalServerException$Message": null, "InvalidEndpointException$Message": null, - "RejectedRecord$Reason": "The reason why a record was not successfully inserted into Timestream. Possible causes of failure include:
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but different measure values.
Records with timestamps that lie outside the retention duration of the memory store
When the retention window is updated, you will receive a RejectedRecords
exception if you immediately try to ingest data within the new window. To avoid a RejectedRecords
exception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream.
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Access Management in the Timestream Developer Guide.
", + "RejectedRecord$Reason": "The reason why a record was not successfully inserted into Timestream. Possible causes of failure include:
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:
Measure values are different
Version is not present in the request or the value of version in the new record is equal to or lower than the existing value
If Timestream rejects data for this case, the ExistingVersion
field in the RejectedRecords
response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the ExistingVersion
.
Records with timestamps that lie outside the retention duration of the memory store
When the retention window is updated, you will receive a RejectedRecords
exception if you immediately try to ingest data within the new window. To avoid a RejectedRecords
exception, wait until the duration of the new window to ingest new data. For further information, see Best Practices for Configuring Timestream and the explanation of how storage works in Timestream.
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Access Management in the Timestream Developer Guide.
", "RejectedRecordsException$Message": null, "ResourceNotFoundException$Message": null, "ServiceQuotaExceededException$Message": null, @@ -166,6 +172,14 @@ "ValidationException$Message": null } }, + "Integer": { + "base": null, + "refs": { + "RecordsIngested$Total": "Total count of successfully ingested records.
", + "RecordsIngested$MemoryStore": "Count of records ingested into the memory store.
", + "RecordsIngested$MagneticStore": "Count of records ingested into the magnetic store.
" + } + }, "InternalServerException": { "base": "Timestream was unable to fully process this request because of an internal server error.
", "refs": { @@ -213,16 +227,43 @@ "Endpoint$CachePeriodInMinutes": "The TTL for the endpoint, in minutes.
" } }, + "MagneticStoreRejectedDataLocation": { + "base": "The location to write error reports for records rejected, asynchronously, during magnetic store writes.
", + "refs": { + "MagneticStoreWriteProperties$MagneticStoreRejectedDataLocation": "The location to write error reports for records rejected asynchronously during magnetic store writes.
" + } + }, "MagneticStoreRetentionPeriodInDays": { "base": null, "refs": { "RetentionProperties$MagneticStoreRetentionPeriodInDays": "The duration for which data must be stored in the magnetic store.
" } }, + "MagneticStoreWriteProperties": { + "base": "The set of properties on a table for configuring magnetic store writes.
", + "refs": { + "CreateTableRequest$MagneticStoreWriteProperties": "Contains properties to set on the table when enabling magnetic store writes.
", + "Table$MagneticStoreWriteProperties": "Contains properties to set on the table when enabling magnetic store writes.
", + "UpdateTableRequest$MagneticStoreWriteProperties": "Contains properties to set on the table when enabling magnetic store writes.
" + } + }, + "MeasureValue": { + "base": "MeasureValue represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures. MeasureValue has both name and value.
MeasureValue is only allowed for type MULTI
. Using MULTI
type, you can pass multiple data attributes associated with the same time series in a single record
Contains the data type of the measure value for the time series data point.
" + "MeasureValue$Type": "Contains the data type of the MeasureValue for the time series data point.
", + "Record$MeasureValueType": " Contains the data type of the measure value for the time series data point. Default type is DOUBLE
.
Contains the list of MeasureValue for time series data points.
This is only allowed for type MULTI
. For scalar values, use MeasureValue
attribute of the Record directly.
Record represents a time series data point being written into Timestream. Each record contains an array of dimensions. Dimensions represent the meta data attributes of a time series data point such as the instance name or availability zone of an EC2 instance. A record also contains the measure name which is the name of the measure being collected for example the CPU utilization of an EC2 instance. A record also contains the measure value and the value type which is the data type of the measure value. In addition, the record contains the timestamp when the measure was collected that the timestamp unit which represents the granularity of the timestamp.
", + "base": "Record represents a time series data point being written into Timestream. Each record contains an array of dimensions. Dimensions represent the meta data attributes of a time series data point such as the instance name or availability zone of an EC2 instance. A record also contains the measure name which is the name of the measure being collected for example the CPU utilization of an EC2 instance. A record also contains the measure value and the value type which is the data type of the measure value. In addition, the record contains the timestamp when the measure was collected that the timestamp unit which represents the granularity of the timestamp.
Records have a Version
field, which is a 64-bit long
that you can use for updating data points. Writes of a duplicate record with the same dimension, timestamp, and measure name but different measure value will only succeed if the Version
attribute of the record in the write request is higher than that of the existing record. Timestream defaults to a Version
of 1
for records without the Version
field.
A record containing the common measure and dimension attributes shared across all the records in the request. The measure and dimension attributes specified in here will be merged with the measure and dimension attributes in the records object when the data is written into Timestream.
" + "WriteRecordsRequest$CommonAttributes": "A record containing the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a ValidationException
will be thrown. In other words, a record must contain dimensions with unique names.
64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version
will still be updated . Default value is to 1.
64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version
will still be updated . Default value is 1
.
Version
must be 1
or greater, or you will receive a ValidationException
error.
The existing version of the record. This value is populated in scenarios where an identical record exists with a higher version than the version in the write request.
" } }, "Records": { "base": null, "refs": { - "WriteRecordsRequest$Records": "An array of records containing the unique dimension and measure attributes for each time series data point.
" + "WriteRecordsRequest$Records": "An array of records containing the unique measure, dimension, time, and version attributes for each time series data point.
" + } + }, + "RecordsIngested": { + "base": "Information on the records ingested by this request.
", + "refs": { + "WriteRecordsResponse$RecordsIngested": "Information on the records ingested by this request.
" } }, "RejectedRecord": { @@ -277,16 +324,21 @@ } }, "RejectedRecordsException": { - "base": "WriteRecords would throw this exception in the following cases:
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but different measure values.
Records with timestamps that lie outside the retention duration of the memory store
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Access Management in the Timestream Developer Guide.
", + "base": "WriteRecords would throw this exception in the following cases:
Records with duplicate data where there are multiple records with the same dimensions, timestamps, and measure names but:
Measure values are different
Version is not present in the request or the value of version in the new record is equal to or lower than the existing value
In this case, if Timestream rejects data, the ExistingVersion
field in the RejectedRecords
response will indicate the current record’s version. To force an update, you can resend the request with a version for the record set to a value greater than the ExistingVersion
.
Records with timestamps that lie outside the retention duration of the memory store
Records with dimensions or measures that exceed the Timestream defined limits.
For more information, see Quotas in the Timestream Developer Guide.
", "refs": { } }, - "ResourceName": { + "ResourceCreateAPIName": { "base": null, "refs": { "CreateDatabaseRequest$DatabaseName": "The name of the Timestream database.
", "CreateTableRequest$DatabaseName": "The name of the Timestream database.
", - "CreateTableRequest$TableName": "The name of the Timestream table.
", + "CreateTableRequest$TableName": "The name of the Timestream table.
" + } + }, + "ResourceName": { + "base": null, + "refs": { "Database$DatabaseName": "The name of the Timestream database.
", "DeleteDatabaseRequest$DatabaseName": "The name of the Timestream database to be deleted.
", "DeleteTableRequest$DatabaseName": "The name of the database where the Timestream database is to be deleted.
", @@ -299,9 +351,9 @@ "Table$DatabaseName": "The name of the Timestream database that contains this table.
", "UpdateDatabaseRequest$DatabaseName": "The name of the database.
", "UpdateTableRequest$DatabaseName": "The name of the Timestream database.
", - "UpdateTableRequest$TableName": "The name of the Timesream table.
", + "UpdateTableRequest$TableName": "The name of the Timestream table.
", "WriteRecordsRequest$DatabaseName": "The name of the Timestream database.
", - "WriteRecordsRequest$TableName": "The name of the Timesream table.
" + "WriteRecordsRequest$TableName": "The name of the Timestream table.
" } }, "ResourceNotFoundException": { @@ -317,6 +369,44 @@ "UpdateTableRequest$RetentionProperties": "The retention duration of the memory store and the magnetic store.
" } }, + "S3BucketName": { + "base": null, + "refs": { + "S3Configuration$BucketName": ">Bucket name of the customer S3 bucket.
" + } + }, + "S3Configuration": { + "base": "Configuration specifing an S3 location.
", + "refs": { + "MagneticStoreRejectedDataLocation$S3Configuration": "Configuration of an S3 location to write error reports for records rejected, asynchronously, during magnetic store writes.
" + } + }, + "S3EncryptionOption": { + "base": null, + "refs": { + "S3Configuration$EncryptionOption": "Encryption option for the customer s3 location. Options are S3 server side encryption with an S3-managed key or KMS managed key.
" + } + }, + "S3ObjectKeyPrefix": { + "base": null, + "refs": { + "S3Configuration$ObjectKeyPrefix": "Object key preview for the customer S3 location.
" + } + }, + "SchemaName": { + "base": null, + "refs": { + "Dimension$Name": "Dimension represents the meta data attributes of the time series. For example, the name and availability zone of an EC2 instance or the name of the manufacturer of a wind turbine are dimensions.
For constraints on Dimension names, see Naming Constraints.
", + "MeasureValue$Name": "Name of the MeasureValue.
For constraints on MeasureValue names, refer to Naming Constraints in the Timestream developer guide.
", + "Record$MeasureName": "Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.
" + } + }, + "SchemaValue": { + "base": null, + "refs": { + "Dimension$Value": "The value of the dimension.
" + } + }, "ServiceQuotaExceededException": { "base": "Instance quota of resource exceeded for this account.
", "refs": { @@ -337,18 +427,17 @@ "StringValue2048": { "base": null, "refs": { - "CreateDatabaseRequest$KmsKeyId": "The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to AWS managed KMS keys for more info.
", + "CreateDatabaseRequest$KmsKeyId": "The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. Refer to Amazon Web Services managed KMS keys for more info.
", "Database$KmsKeyId": "The identifier of the KMS key used to encrypt the data stored in the database.
", - "Dimension$Value": "The value of the dimension.
", + "MeasureValue$Value": "Value for the MeasureValue.
", "Record$MeasureValue": "Contains the measure value for the time series data point.
", + "S3Configuration$KmsKeyId": "KMS key id for the customer s3 location when encrypting with a KMS managed key.
", "UpdateDatabaseRequest$KmsKeyId": " The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias ARN: arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
Dimension represents the meta data attributes of the time series. For example, the name and availability zone of an EC2 instance or the name of the manufacturer of a wind turbine are dimensions.
For constraints on Dimension names, see Naming Constraints.
", - "Record$MeasureName": "Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.
", "Record$Time": " Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is 12345
and the unit is ms
, then 12345 ms
have elapsed since the epoch.
The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values.
" + "Record$TimeUnit": " The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds or other supported values. Default is MILLISECONDS
.
The Amazon Resource Name (ARN) of the encryption key being used to encrypt the custom terminology.
" + "EncryptionKey$Id": "The Amazon Resource Name (ARN) of the encryption key being used to encrypt this object.
" } }, "EncryptionKeyType": { "base": null, "refs": { - "EncryptionKey$Type": "The type of encryption key used by Amazon Translate to encrypt custom terminologies.
" + "EncryptionKey$Type": "The type of encryption key used by Amazon Translate to encrypt this object.
" } }, "GetParallelDataRequest": { @@ -365,7 +365,7 @@ "ParallelDataDataLocation": { "base": "The location of the most recent parallel data input file that was successfully imported into Amazon Translate.
", "refs": { - "GetParallelDataResponse$DataLocation": "The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.
Amazon Translate doesn't scan parallel data input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.
The Amazon S3 location of the most recent parallel data input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a parallel data resource. The location is returned as a presigned URL to that has a 30 minute expiration.
", "GetParallelDataResponse$LatestUpdateAttemptAuxiliaryDataLocation": "The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to update a parallel data resource. The location is returned as a presigned URL to that has a 30 minute expiration.
" } @@ -400,6 +400,12 @@ "UpdateParallelDataResponse$LatestUpdateAttemptStatus": "The status of the parallel data update attempt. When the updated parallel data resource is ready for you to use, the status is ACTIVE
.
Enable the profanity setting if you want Amazon Translate to mask profane words and phrases in your translation output.
To mask profane words and phrases, Amazon Translate replaces them with the grawlix string “?$#@$“. This 5-character sequence is used for each profane word or phrase, regardless of the length or number of words.
Amazon Translate does not detect profanity in all of its supported languages. For languages that support profanity detection, see Supported Languages and Language Codes in the Amazon Translate Developer Guide.
" + } + }, "ResourceName": { "base": null, "refs": { @@ -479,13 +485,13 @@ "InvalidRequestException$Message": null, "LimitExceededException$Message": null, "ParallelDataDataLocation$RepositoryType": "Describes the repository that contains the parallel data input file.
", - "ParallelDataDataLocation$Location": "The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30 minute expiration.
Amazon Translate doesn't scan parallel data input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.
The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to that has a 30 minute expiration.
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
The source text of the term being translated by the custom terminology.
", "Term$TargetText": "The target text of the term being translated by the custom terminology.
", "TerminologyDataLocation$RepositoryType": "The repository type for the custom terminology data.
", - "TerminologyDataLocation$Location": "The location of the custom terminology data.
", + "TerminologyDataLocation$Location": "The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
The translated text.
", @@ -534,7 +540,7 @@ "TerminologyDataLocation": { "base": "The location of the custom terminology data.
", "refs": { - "GetTerminologyResponse$TerminologyDataLocation": "The data location of the custom terminology being retrieved. The custom terminology file is returned in a presigned url that has a 30 minute expiration.
", + "GetTerminologyResponse$TerminologyDataLocation": "The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30 minute expiration.
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.
", "ImportTerminologyResponse$AuxiliaryDataLocation": "The Amazon S3 location of a file that provides any errors or warnings that were produced by your input file. This file was created when Amazon Translate attempted to create a terminology resource. The location is returned as a presigned URL to that has a 30 minute expiration.
" } @@ -613,6 +619,15 @@ "refs": { } }, + "TranslationSettings": { + "base": "Settings that configure the translation output.
", + "refs": { + "StartTextTranslationJobRequest$Settings": "Settings to configure your translation output, including the option to mask profane words and phrases.
", + "TextTranslationJobProperties$Settings": "Settings that configure the translation output.
", + "TranslateTextRequest$Settings": "Settings to configure your translation output, including the option to mask profane words and phrases.
", + "TranslateTextResponse$AppliedSettings": "Settings that configure the translation output.
" + } + }, "UnboundedLengthString": { "base": null, "refs": { diff --git a/service/autoscaling/api.go b/service/autoscaling/api.go index 6d51b0eccf..55ec91f969 100644 --- a/service/autoscaling/api.go +++ b/service/autoscaling/api.go @@ -7154,7 +7154,7 @@ func (s *CancelInstanceRefreshOutput) SetInstanceRefreshId(v string) *CancelInst type CapacityForecast struct { _ struct{} `type:"structure"` - // The time stamps for the data points, in UTC format. + // The timestamps for the data points, in UTC format. // // Timestamps is a required field Timestamps []*time.Time `type:"list" required:"true"` @@ -14828,7 +14828,7 @@ type LoadForecast struct { // MetricSpecification is a required field MetricSpecification *PredictiveScalingMetricSpecification `type:"structure" required:"true"` - // The time stamps for the data points, in UTC format. + // The timestamps for the data points, in UTC format. // // Timestamps is a required field Timestamps []*time.Time `type:"list" required:"true"` @@ -14974,6 +14974,94 @@ func (s *MemoryMiBRequest) SetMin(v int64) *MemoryMiBRequest { return s } +// Represents a specific metric. +type Metric struct { + _ struct{} `type:"structure"` + + // The dimensions for the metric. For the list of available dimensions, see + // the Amazon Web Services documentation available from the table in Amazon + // Web Services services that publish CloudWatch metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html) + // in the Amazon CloudWatch User Guide. + // + // Conditional: If you published your metric with dimensions, you must specify + // the same dimensions in your scaling policy. + Dimensions []*MetricDimension `type:"list"` + + // The name of the metric. + // + // MetricName is a required field + MetricName *string `type:"string" required:"true"` + + // The namespace of the metric. For more information, see the table in Amazon + // Web Services services that publish CloudWatch metrics (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html) + // in the Amazon CloudWatch User Guide. + // + // Namespace is a required field + Namespace *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Metric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Metric) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Metric) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Metric"} + if s.MetricName == nil { + invalidParams.Add(request.NewErrParamRequired("MetricName")) + } + if s.Namespace == nil { + invalidParams.Add(request.NewErrParamRequired("Namespace")) + } + if s.Dimensions != nil { + for i, v := range s.Dimensions { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Dimensions", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensions sets the Dimensions field's value. +func (s *Metric) SetDimensions(v []*MetricDimension) *Metric { + s.Dimensions = v + return s +} + +// SetMetricName sets the MetricName field's value. +func (s *Metric) SetMetricName(v string) *Metric { + s.MetricName = &v + return s +} + +// SetNamespace sets the Namespace field's value. +func (s *Metric) SetNamespace(v string) *Metric { + s.Namespace = &v + return s +} + // Describes a metric. type MetricCollectionType struct { _ struct{} `type:"structure"` @@ -15046,6 +15134,134 @@ func (s *MetricCollectionType) SetMetric(v string) *MetricCollectionType { return s } +// The metric data to return. Also defines whether this call is returning data +// for one metric only, or whether it is performing a math expression on the +// values of returned metric statistics to create a new time series. A time +// series is a series of data points, each of which is associated with a timestamp. +// +// For more information and examples, see Advanced predictive scaling policy +// configurations using customized metrics (https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html) +// in the Amazon EC2 Auto Scaling User Guide. +type MetricDataQuery struct { + _ struct{} `type:"structure"` + + // The math expression to perform on the returned data, if this object is performing + // a math expression. This expression can use the Id of the other metrics to + // refer to those metrics, and can also use the Id of other expressions to use + // the result of those expressions. + // + // For example, to use search expressions, use the SEARCH() function in your + // metric math expression to combine multiple metrics from Auto Scaling groups + // that use a specific name prefix. + // + // Conditional: Within each MetricDataQuery object, you must specify either + // Expression or MetricStat, but not both. + Expression *string `min:"1" type:"string"` + + // A short name that identifies the object's results in the response. This name + // must be unique among all MetricDataQuery objects specified for a single scaling + // policy. If you are performing math expressions on this set of data, this + // name represents that data and can serve as a variable in the mathematical + // expression. The valid characters are letters, numbers, and underscores. The + // first character must be a lowercase letter. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` + + // 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. + Label *string `type:"string"` + + // Information about the metric data to return. + // + // Conditional: Within each MetricDataQuery object, you must specify either + // Expression or MetricStat, but not both. + MetricStat *MetricStat `type:"structure"` + + // Indicates whether to return the timestamps and raw data values of this metric. + // + // If you use any math expressions, specify True for this value for only the + // final math expression that the metric specification is based on. You must + // specify False for ReturnData for all the other metrics and expressions used + // in the metric specification. + // + // If you are only retrieving metrics and not performing any math expressions, + // do not specify anything for ReturnData. This sets it to its default (True). + ReturnData *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricDataQuery) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricDataQuery) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricDataQuery) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricDataQuery"} + if s.Expression != nil && len(*s.Expression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Expression", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + if s.MetricStat != nil { + if err := s.MetricStat.Validate(); err != nil { + invalidParams.AddNested("MetricStat", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExpression sets the Expression field's value. +func (s *MetricDataQuery) SetExpression(v string) *MetricDataQuery { + s.Expression = &v + return s +} + +// SetId sets the Id field's value. +func (s *MetricDataQuery) SetId(v string) *MetricDataQuery { + s.Id = &v + return s +} + +// SetLabel sets the Label field's value. +func (s *MetricDataQuery) SetLabel(v string) *MetricDataQuery { + s.Label = &v + return s +} + +// SetMetricStat sets the MetricStat field's value. +func (s *MetricDataQuery) SetMetricStat(v *MetricStat) *MetricDataQuery { + s.MetricStat = v + return s +} + +// SetReturnData sets the ReturnData field's value. +func (s *MetricDataQuery) SetReturnData(v bool) *MetricDataQuery { + s.ReturnData = &v + return s +} + // Describes the dimension of a metric. type MetricDimension struct { _ struct{} `type:"structure"` @@ -15139,6 +15355,98 @@ func (s *MetricGranularityType) SetGranularity(v string) *MetricGranularityType return s } +// This structure defines the CloudWatch metric to return, along with the statistic, +// period, and unit. +// +// For more information about the CloudWatch terminology below, see Amazon CloudWatch +// concepts (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html) +// in the Amazon CloudWatch User Guide. +type MetricStat struct { + _ struct{} `type:"structure"` + + // The CloudWatch metric to return, including the metric name, namespace, and + // dimensions. 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). + // + // Metric is a required field + Metric *Metric `type:"structure" required:"true"` + + // The statistic to return. It can include any CloudWatch statistic or extended + // 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 predictive scaling are Average and Sum. + // + // Stat is a required field + Stat *string `min:"1" type:"string" required:"true"` + + // The unit to use for the returned data points. For a complete list of the + // units that CloudWatch supports, see the MetricDatum (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html) + // data type in the Amazon CloudWatch API Reference. + Unit *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 MetricStat) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MetricStat) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MetricStat) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MetricStat"} + if s.Metric == nil { + invalidParams.Add(request.NewErrParamRequired("Metric")) + } + if s.Stat == nil { + invalidParams.Add(request.NewErrParamRequired("Stat")) + } + if s.Stat != nil && len(*s.Stat) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Stat", 1)) + } + if s.Metric != nil { + if err := s.Metric.Validate(); err != nil { + invalidParams.AddNested("Metric", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetric sets the Metric field's value. +func (s *MetricStat) SetMetric(v *Metric) *MetricStat { + s.Metric = v + return s +} + +// SetStat sets the Stat field's value. +func (s *MetricStat) SetStat(v string) *MetricStat { + s.Stat = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *MetricStat) SetUnit(v string) *MetricStat { + s.Unit = &v + return s +} + // Describes a mixed instances policy. A mixed instances policy contains the // instance types that Amazon EC2 Auto Scaling can launch and other information // that Amazon EC2 Auto Scaling can use to launch instances and help optimize @@ -15532,6 +15840,183 @@ func (s *PredictiveScalingConfiguration) SetSchedulingBufferTime(v int64) *Predi return s } +// Describes a customized capacity metric for a predictive scaling policy. +type PredictiveScalingCustomizedCapacityMetric struct { + _ struct{} `type:"structure"` + + // One or more metric data queries to provide the data points for a capacity + // metric. Use multiple metric data queries only if you are performing a math + // expression on returned data. + // + // MetricDataQueries is a required field + MetricDataQueries []*MetricDataQuery `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 PredictiveScalingCustomizedCapacityMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PredictiveScalingCustomizedCapacityMetric) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PredictiveScalingCustomizedCapacityMetric) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PredictiveScalingCustomizedCapacityMetric"} + if s.MetricDataQueries == nil { + invalidParams.Add(request.NewErrParamRequired("MetricDataQueries")) + } + if s.MetricDataQueries != nil { + for i, v := range s.MetricDataQueries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDataQueries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetricDataQueries sets the MetricDataQueries field's value. +func (s *PredictiveScalingCustomizedCapacityMetric) SetMetricDataQueries(v []*MetricDataQuery) *PredictiveScalingCustomizedCapacityMetric { + s.MetricDataQueries = v + return s +} + +// Describes a customized load metric for a predictive scaling policy. +type PredictiveScalingCustomizedLoadMetric struct { + _ struct{} `type:"structure"` + + // One or more metric data queries to provide the data points for a load metric. + // Use multiple metric data queries only if you are performing a math expression + // on returned data. + // + // MetricDataQueries is a required field + MetricDataQueries []*MetricDataQuery `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 PredictiveScalingCustomizedLoadMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PredictiveScalingCustomizedLoadMetric) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PredictiveScalingCustomizedLoadMetric) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PredictiveScalingCustomizedLoadMetric"} + if s.MetricDataQueries == nil { + invalidParams.Add(request.NewErrParamRequired("MetricDataQueries")) + } + if s.MetricDataQueries != nil { + for i, v := range s.MetricDataQueries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDataQueries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetricDataQueries sets the MetricDataQueries field's value. +func (s *PredictiveScalingCustomizedLoadMetric) SetMetricDataQueries(v []*MetricDataQuery) *PredictiveScalingCustomizedLoadMetric { + s.MetricDataQueries = v + return s +} + +// Describes a customized scaling metric for a predictive scaling policy. +type PredictiveScalingCustomizedScalingMetric struct { + _ struct{} `type:"structure"` + + // One or more metric data queries to provide the data points for a scaling + // metric. Use multiple metric data queries only if you are performing a math + // expression on returned data. + // + // MetricDataQueries is a required field + MetricDataQueries []*MetricDataQuery `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 PredictiveScalingCustomizedScalingMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PredictiveScalingCustomizedScalingMetric) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PredictiveScalingCustomizedScalingMetric) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PredictiveScalingCustomizedScalingMetric"} + if s.MetricDataQueries == nil { + invalidParams.Add(request.NewErrParamRequired("MetricDataQueries")) + } + if s.MetricDataQueries != nil { + for i, v := range s.MetricDataQueries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MetricDataQueries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMetricDataQueries sets the MetricDataQueries field's value. +func (s *PredictiveScalingCustomizedScalingMetric) SetMetricDataQueries(v []*MetricDataQuery) *PredictiveScalingCustomizedScalingMetric { + s.MetricDataQueries = v + return s +} + // This structure specifies the metrics and target utilization settings for // a predictive scaling policy. // @@ -15568,21 +16053,41 @@ func (s *PredictiveScalingConfiguration) SetSchedulingBufferTime(v int64) *Predi // each hour of the forecast period so that the average number of requests // received by each instance is as close to 1000 requests per minute as possible // at all times. +// +// For information about using customized metrics with predictive scaling, see +// Advanced predictive scaling policy configurations using customized metrics +// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html) +// in the Amazon EC2 Auto Scaling User Guide. type PredictiveScalingMetricSpecification struct { _ struct{} `type:"structure"` - // The load metric specification. + // The customized capacity metric specification. + CustomizedCapacityMetricSpecification *PredictiveScalingCustomizedCapacityMetric `type:"structure"` + + // The customized load metric specification. + CustomizedLoadMetricSpecification *PredictiveScalingCustomizedLoadMetric `type:"structure"` + + // The customized scaling metric specification. + CustomizedScalingMetricSpecification *PredictiveScalingCustomizedScalingMetric `type:"structure"` + + // The predefined load metric specification. PredefinedLoadMetricSpecification *PredictiveScalingPredefinedLoadMetric `type:"structure"` - // The metric pair specification from which Amazon EC2 Auto Scaling determines - // the appropriate scaling metric and load metric to use. + // The predefined metric pair specification from which Amazon EC2 Auto Scaling + // determines the appropriate scaling metric and load metric to use. PredefinedMetricPairSpecification *PredictiveScalingPredefinedMetricPair `type:"structure"` - // The scaling metric specification. + // The predefined scaling metric specification. PredefinedScalingMetricSpecification *PredictiveScalingPredefinedScalingMetric `type:"structure"` // Specifies the target utilization. // + // Some metrics are based on a count instead of a percentage, such as the request + // count for an Application Load Balancer or the number of messages in an SQS + // queue. If the scaling policy specifies one of these metrics, specify the + // target utilization as the optimal average request or message count per instance + // during any one-minute interval. + // // TargetValue is a required field TargetValue *float64 `type:"double" required:"true"` } @@ -15611,6 +16116,21 @@ func (s *PredictiveScalingMetricSpecification) Validate() error { if s.TargetValue == nil { invalidParams.Add(request.NewErrParamRequired("TargetValue")) } + if s.CustomizedCapacityMetricSpecification != nil { + if err := s.CustomizedCapacityMetricSpecification.Validate(); err != nil { + invalidParams.AddNested("CustomizedCapacityMetricSpecification", err.(request.ErrInvalidParams)) + } + } + if s.CustomizedLoadMetricSpecification != nil { + if err := s.CustomizedLoadMetricSpecification.Validate(); err != nil { + invalidParams.AddNested("CustomizedLoadMetricSpecification", err.(request.ErrInvalidParams)) + } + } + if s.CustomizedScalingMetricSpecification != nil { + if err := s.CustomizedScalingMetricSpecification.Validate(); err != nil { + invalidParams.AddNested("CustomizedScalingMetricSpecification", err.(request.ErrInvalidParams)) + } + } if s.PredefinedLoadMetricSpecification != nil { if err := s.PredefinedLoadMetricSpecification.Validate(); err != nil { invalidParams.AddNested("PredefinedLoadMetricSpecification", err.(request.ErrInvalidParams)) @@ -15633,6 +16153,24 @@ func (s *PredictiveScalingMetricSpecification) Validate() error { return nil } +// SetCustomizedCapacityMetricSpecification sets the CustomizedCapacityMetricSpecification field's value. +func (s *PredictiveScalingMetricSpecification) SetCustomizedCapacityMetricSpecification(v *PredictiveScalingCustomizedCapacityMetric) *PredictiveScalingMetricSpecification { + s.CustomizedCapacityMetricSpecification = v + return s +} + +// SetCustomizedLoadMetricSpecification sets the CustomizedLoadMetricSpecification field's value. +func (s *PredictiveScalingMetricSpecification) SetCustomizedLoadMetricSpecification(v *PredictiveScalingCustomizedLoadMetric) *PredictiveScalingMetricSpecification { + s.CustomizedLoadMetricSpecification = v + return s +} + +// SetCustomizedScalingMetricSpecification sets the CustomizedScalingMetricSpecification field's value. +func (s *PredictiveScalingMetricSpecification) SetCustomizedScalingMetricSpecification(v *PredictiveScalingCustomizedScalingMetric) *PredictiveScalingMetricSpecification { + s.CustomizedScalingMetricSpecification = v + return s +} + // SetPredefinedLoadMetricSpecification sets the PredefinedLoadMetricSpecification field's value. func (s *PredictiveScalingMetricSpecification) SetPredefinedLoadMetricSpecification(v *PredictiveScalingPredefinedLoadMetric) *PredictiveScalingMetricSpecification { s.PredefinedLoadMetricSpecification = v diff --git a/service/customerprofiles/api.go b/service/customerprofiles/api.go index 853719e1b9..7d5cb58829 100644 --- a/service/customerprofiles/api.go +++ b/service/customerprofiles/api.go @@ -164,6 +164,10 @@ func (c *CustomerProfiles) CreateDomainRequest(input *CreateDomainInput) (req *r // to enable identity resolution (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html): // set Matching to true. // +// To prevent cross-service impersonation when you call this API, see Cross-service +// confused deputy prevention (https://docs.aws.amazon.com/connect/latest/adminguide/cross-service-confused-deputy-prevention.html) +// for sample policies that you should apply. +// // 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. @@ -853,6 +857,110 @@ func (c *CustomerProfiles) DeleteProfileObjectTypeWithContext(ctx aws.Context, i return out, req.Send() } +const opGetAutoMergingPreview = "GetAutoMergingPreview" + +// GetAutoMergingPreviewRequest generates a "aws/request.Request" representing the +// client's request for the GetAutoMergingPreview 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 GetAutoMergingPreview for more information on using the GetAutoMergingPreview +// 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 GetAutoMergingPreviewRequest method. +// req, resp := client.GetAutoMergingPreviewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/GetAutoMergingPreview +func (c *CustomerProfiles) GetAutoMergingPreviewRequest(input *GetAutoMergingPreviewInput) (req *request.Request, output *GetAutoMergingPreviewOutput) { + op := &request.Operation{ + Name: opGetAutoMergingPreview, + HTTPMethod: "POST", + HTTPPath: "/domains/{DomainName}/identity-resolution-jobs/auto-merging-preview", + } + + if input == nil { + input = &GetAutoMergingPreviewInput{} + } + + output = &GetAutoMergingPreviewOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAutoMergingPreview API operation for Amazon Connect Customer Profiles. +// +// Tests the auto-merging settings of your Identity Resolution Job without merging +// your data. It randomly selects a sample of matching groups from the existing +// matching results, and applies the automerging settings that you provided. +// You can then view the number of profiles in the sample, the number of matches, +// and the number of profiles identified to be merged. This enables you to evaluate +// the accuracy of the attributes in your matching list. +// +// You can't view which profiles are matched and would be merged. +// +// We strongly recommend you use this API to do a dry run of the automerging +// process before running the Identity Resolution Job. Include at least two +// matching attributes. If your matching list includes too few attributes (such +// as only FirstName or only LastName), there may be a large number of matches. +// This increases the chances of erroneous merges. +// +// 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 Connect Customer Profiles's +// API operation GetAutoMergingPreview for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input you provided is invalid. +// +// * ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ThrottlingException +// You exceeded the maximum number of requests. +// +// * InternalServerException +// An internal service error occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/GetAutoMergingPreview +func (c *CustomerProfiles) GetAutoMergingPreview(input *GetAutoMergingPreviewInput) (*GetAutoMergingPreviewOutput, error) { + req, out := c.GetAutoMergingPreviewRequest(input) + return out, req.Send() +} + +// GetAutoMergingPreviewWithContext is the same as GetAutoMergingPreview with the addition of +// the ability to pass a context and additional request options. +// +// See GetAutoMergingPreview 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 *CustomerProfiles) GetAutoMergingPreviewWithContext(ctx aws.Context, input *GetAutoMergingPreviewInput, opts ...request.Option) (*GetAutoMergingPreviewOutput, error) { + req, out := c.GetAutoMergingPreviewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetDomain = "GetDomain" // GetDomainRequest generates a "aws/request.Request" representing the @@ -944,6 +1052,101 @@ func (c *CustomerProfiles) GetDomainWithContext(ctx aws.Context, input *GetDomai return out, req.Send() } +const opGetIdentityResolutionJob = "GetIdentityResolutionJob" + +// GetIdentityResolutionJobRequest generates a "aws/request.Request" representing the +// client's request for the GetIdentityResolutionJob 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 GetIdentityResolutionJob for more information on using the GetIdentityResolutionJob +// 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 GetIdentityResolutionJobRequest method. +// req, resp := client.GetIdentityResolutionJobRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/GetIdentityResolutionJob +func (c *CustomerProfiles) GetIdentityResolutionJobRequest(input *GetIdentityResolutionJobInput) (req *request.Request, output *GetIdentityResolutionJobOutput) { + op := &request.Operation{ + Name: opGetIdentityResolutionJob, + HTTPMethod: "GET", + HTTPPath: "/domains/{DomainName}/identity-resolution-jobs/{JobId}", + } + + if input == nil { + input = &GetIdentityResolutionJobInput{} + } + + output = &GetIdentityResolutionJobOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetIdentityResolutionJob API operation for Amazon Connect Customer Profiles. +// +// Returns information about an Identity Resolution Job in a specific domain. +// +// Identity Resolution Jobs are set up using the Amazon Connect admin console. +// For more information, see Use Identity Resolution to consolidate similar +// profiles (https://docs.aws.amazon.com/connect/latest/adminguide/use-identity-resolution.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Customer Profiles's +// API operation GetIdentityResolutionJob for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input you provided is invalid. +// +// * ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ThrottlingException +// You exceeded the maximum number of requests. +// +// * InternalServerException +// An internal service error occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/GetIdentityResolutionJob +func (c *CustomerProfiles) GetIdentityResolutionJob(input *GetIdentityResolutionJobInput) (*GetIdentityResolutionJobOutput, error) { + req, out := c.GetIdentityResolutionJobRequest(input) + return out, req.Send() +} + +// GetIdentityResolutionJobWithContext is the same as GetIdentityResolutionJob with the addition of +// the ability to pass a context and additional request options. +// +// See GetIdentityResolutionJob 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 *CustomerProfiles) GetIdentityResolutionJobWithContext(ctx aws.Context, input *GetIdentityResolutionJobInput, opts ...request.Option) (*GetIdentityResolutionJobOutput, error) { + req, out := c.GetIdentityResolutionJobRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetIntegration = "GetIntegration" // GetIntegrationRequest generates a "aws/request.Request" representing the @@ -1088,9 +1291,15 @@ func (c *CustomerProfiles) GetMatchesRequest(input *GetMatchesInput) (req *reque // GetMatches returns potentially matching profiles, based on the results of // the latest run of a machine learning process. // -// Amazon Connect starts a batch process every Saturday at 12AM UTC to identify -// matching profiles. The results are returned up to seven days after the Saturday -// run. +// The process of matching duplicate profiles. If Matching = true, Amazon Connect +// Customer Profiles starts a weekly batch process called Identity Resolution +// Job. If you do not specify a date and time for Identity Resolution Job to +// run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles +// in your domains. +// +// After the Identity Resolution Job completes, use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) +// API to return and review the results. Or, if you have configured ExportingConfig +// in the MatchingRequest, you can download the results from S3. // // Amazon Connect uses the following profile attributes to identify matches: // @@ -1532,6 +1741,98 @@ func (c *CustomerProfiles) ListDomainsWithContext(ctx aws.Context, input *ListDo return out, req.Send() } +const opListIdentityResolutionJobs = "ListIdentityResolutionJobs" + +// ListIdentityResolutionJobsRequest generates a "aws/request.Request" representing the +// client's request for the ListIdentityResolutionJobs 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 ListIdentityResolutionJobs for more information on using the ListIdentityResolutionJobs +// 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 ListIdentityResolutionJobsRequest method. +// req, resp := client.ListIdentityResolutionJobsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/ListIdentityResolutionJobs +func (c *CustomerProfiles) ListIdentityResolutionJobsRequest(input *ListIdentityResolutionJobsInput) (req *request.Request, output *ListIdentityResolutionJobsOutput) { + op := &request.Operation{ + Name: opListIdentityResolutionJobs, + HTTPMethod: "GET", + HTTPPath: "/domains/{DomainName}/identity-resolution-jobs", + } + + if input == nil { + input = &ListIdentityResolutionJobsInput{} + } + + output = &ListIdentityResolutionJobsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListIdentityResolutionJobs API operation for Amazon Connect Customer Profiles. +// +// Lists all of the Identity Resolution Jobs in your domain. The response sorts +// the list by JobStartTime. +// +// 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 Connect Customer Profiles's +// API operation ListIdentityResolutionJobs for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input you provided is invalid. +// +// * ResourceNotFoundException +// The requested resource does not exist, or access was denied. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ThrottlingException +// You exceeded the maximum number of requests. +// +// * InternalServerException +// An internal service error occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/customer-profiles-2020-08-15/ListIdentityResolutionJobs +func (c *CustomerProfiles) ListIdentityResolutionJobs(input *ListIdentityResolutionJobsInput) (*ListIdentityResolutionJobsOutput, error) { + req, out := c.ListIdentityResolutionJobsRequest(input) + return out, req.Send() +} + +// ListIdentityResolutionJobsWithContext is the same as ListIdentityResolutionJobs with the addition of +// the ability to pass a context and additional request options. +// +// See ListIdentityResolutionJobs 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 *CustomerProfiles) ListIdentityResolutionJobsWithContext(ctx aws.Context, input *ListIdentityResolutionJobsInput, opts ...request.Option) (*ListIdentityResolutionJobsOutput, error) { + req, out := c.ListIdentityResolutionJobsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListIntegrations = "ListIntegrations" // ListIntegrationsRequest generates a "aws/request.Request" representing the @@ -2723,6 +3024,10 @@ func (c *CustomerProfiles) UpdateDomainRequest(input *UpdateDomainInput) (req *r // to enable identity resolution (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html): // set Matching to true. // +// To prevent cross-service impersonation when you call this API, see Cross-service +// confused deputy prevention (https://docs.aws.amazon.com/connect/latest/adminguide/cross-service-confused-deputy-prevention.html) +// for sample policies that you should apply. +// // 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. @@ -3216,12 +3521,24 @@ func (s *Address) SetState(v string) *Address { return s } -// The input you provided is invalid. -type BadRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Configuration settings for how to perform the auto-merging of profiles. +type AutoMerging struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // How the auto-merging process should resolve conflicts between different profiles. + // For example, if Profile A and Profile B have the same FirstName and LastName + // (and that is the matching criteria), which EmailAddress should be used? + ConflictResolution *ConflictResolution `type:"structure"` + + // A list of matching attributes that represent matching criteria. If two profiles + // meet at least one of the requirements in the matching attributes list, they + // will be merged. + Consolidation *Consolidation `type:"structure"` + + // The flag that enables the auto-merging of duplicate profiles. + // + // Enabled is a required field + Enabled *bool `type:"boolean" required:"true"` } // String returns the string representation. @@ -3229,7 +3546,7 @@ type BadRequestException 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 BadRequestException) String() string { +func (s AutoMerging) String() string { return awsutil.Prettify(s) } @@ -3238,36 +3555,103 @@ func (s BadRequestException) 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 BadRequestException) GoString() string { +func (s AutoMerging) GoString() string { return s.String() } -func newErrorBadRequestException(v protocol.ResponseMetadata) error { - return &BadRequestException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *AutoMerging) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AutoMerging"} + if s.Enabled == nil { + invalidParams.Add(request.NewErrParamRequired("Enabled")) } -} - -// Code returns the exception type name. -func (s *BadRequestException) Code() string { - return "BadRequestException" -} - -// Message returns the exception's message. -func (s *BadRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } + if s.Consolidation != nil { + if err := s.Consolidation.Validate(); err != nil { + invalidParams.AddNested("Consolidation", err.(request.ErrInvalidParams)) + } } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *BadRequestException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *BadRequestException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetConflictResolution sets the ConflictResolution field's value. +func (s *AutoMerging) SetConflictResolution(v *ConflictResolution) *AutoMerging { + s.ConflictResolution = v + return s +} + +// SetConsolidation sets the Consolidation field's value. +func (s *AutoMerging) SetConsolidation(v *Consolidation) *AutoMerging { + s.Consolidation = v + return s +} + +// SetEnabled sets the Enabled field's value. +func (s *AutoMerging) SetEnabled(v bool) *AutoMerging { + s.Enabled = &v + return s +} + +// The input you provided is invalid. +type BadRequestException 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 BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil +} + +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. @@ -3280,6 +3664,73 @@ func (s *BadRequestException) RequestID() string { return s.RespMetadata.RequestID } +// How the auto-merging process should resolve conflicts between different profiles. +type ConflictResolution struct { + _ struct{} `type:"structure"` + + // How the auto-merging process should resolve conflicts between different profiles. + // + // * RECENCY: Uses the data that was most recently updated. + // + // * SOURCE: Uses the data from a specific source. For example, if a company + // has been aquired or two departments have merged, data from the specified + // source is used. If two duplicate profiles are from the same source, then + // RECENCY is used again. + // + // ConflictResolvingModel is a required field + ConflictResolvingModel *string `type:"string" required:"true" enum:"ConflictResolvingModel"` + + // The ObjectType name that is used to resolve profile merging conflicts when + // choosing SOURCE as the ConflictResolvingModel. + SourceName *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 ConflictResolution) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictResolution) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConflictResolution) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConflictResolution"} + if s.ConflictResolvingModel == nil { + invalidParams.Add(request.NewErrParamRequired("ConflictResolvingModel")) + } + if s.SourceName != nil && len(*s.SourceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConflictResolvingModel sets the ConflictResolvingModel field's value. +func (s *ConflictResolution) SetConflictResolvingModel(v string) *ConflictResolution { + s.ConflictResolvingModel = &v + return s +} + +// SetSourceName sets the SourceName field's value. +func (s *ConflictResolution) SetSourceName(v string) *ConflictResolution { + s.SourceName = &v + return s +} + // The operation to be performed on the provided source fields. type ConnectorOperator struct { _ struct{} `type:"structure"` @@ -3348,6 +3799,56 @@ func (s *ConnectorOperator) SetZendesk(v string) *ConnectorOperator { return s } +// The matching criteria to be used during the auto-merging process. +type Consolidation struct { + _ struct{} `type:"structure"` + + // A list of matching criteria. + // + // MatchingAttributesList is a required field + MatchingAttributesList [][]*string `min:"1" 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 Consolidation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Consolidation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *Consolidation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Consolidation"} + if s.MatchingAttributesList == nil { + invalidParams.Add(request.NewErrParamRequired("MatchingAttributesList")) + } + if s.MatchingAttributesList != nil && len(s.MatchingAttributesList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MatchingAttributesList", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMatchingAttributesList sets the MatchingAttributesList field's value. +func (s *Consolidation) SetMatchingAttributesList(v [][]*string) *Consolidation { + s.MatchingAttributesList = v + return s +} + type CreateDomainInput struct { _ struct{} `type:"structure"` @@ -3373,10 +3874,14 @@ type CreateDomainInput struct { DomainName *string `location:"uri" locationName:"DomainName" min:"1" type:"string" required:"true"` // The process of matching duplicate profiles. If Matching = true, Amazon Connect - // Customer Profiles starts a weekly batch process every Saturday at 12AM UTC - // to detect duplicate profiles in your domains. After that batch process completes, - // use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) - // API to return and review the results. + // Customer Profiles starts a weekly batch process called Identity Resolution + // Job. If you do not specify a date and time for Identity Resolution Job to + // run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles + // in your domains. + // + // After the Identity Resolution Job completes, use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) + // API to return and review the results. Or, if you have configured ExportingConfig + // in the MatchingRequest, you can download the results from S3. Matching *MatchingRequest `type:"structure"` // The tags used to organize, track, or control access for this resource. @@ -3500,10 +4005,14 @@ type CreateDomainOutput struct { LastUpdatedAt *time.Time `type:"timestamp" required:"true"` // The process of matching duplicate profiles. If Matching = true, Amazon Connect - // Customer Profiles starts a weekly batch process every Saturday at 12AM UTC - // to detect duplicate profiles in your domains. After that batch process completes, - // use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) - // API to return and review the results. + // Customer Profiles starts a weekly batch process called Identity Resolution + // Job. If you do not specify a date and time for Identity Resolution Job to + // run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles + // in your domains. + // + // After the Identity Resolution Job completes, use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) + // API to return and review the results. Or, if you have configured ExportingConfig + // in the MatchingRequest, you can download the results from S3. Matching *MatchingResponse `type:"structure"` // The tags used to organize, track, or control access for this resource. @@ -4601,6 +5110,92 @@ func (s *DomainStats) SetTotalSize(v int64) *DomainStats { return s } +// Configuration information about the S3 bucket where Identity Resolution Jobs +// writes result files. +// +// You need to give Customer Profiles service principal write permission to +// your S3 bucket. Otherwise, you'll get an exception in the API response. For +// an example policy, see Amazon Connect Customer Profiles cross-service confused +// deputy prevention (https://docs.aws.amazon.com/connect/latest/adminguide/cross-service-confused-deputy-prevention.html#customer-profiles-cross-service). +type ExportingConfig struct { + _ struct{} `type:"structure"` + + // The S3 location where Identity Resolution Jobs write result files. + S3Exporting *S3ExportingConfig `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 ExportingConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExportingConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExportingConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExportingConfig"} + if s.S3Exporting != nil { + if err := s.S3Exporting.Validate(); err != nil { + invalidParams.AddNested("S3Exporting", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Exporting sets the S3Exporting field's value. +func (s *ExportingConfig) SetS3Exporting(v *S3ExportingConfig) *ExportingConfig { + s.S3Exporting = v + return s +} + +// The S3 location where Identity Resolution Jobs write result files. +type ExportingLocation struct { + _ struct{} `type:"structure"` + + // Information about the S3 location where Identity Resolution Jobs write result + // files. + S3Exporting *S3ExportingLocation `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 ExportingLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExportingLocation) GoString() string { + return s.String() +} + +// SetS3Exporting sets the S3Exporting field's value. +func (s *ExportingLocation) SetS3Exporting(v *S3ExportingLocation) *ExportingLocation { + s.S3Exporting = v + return s +} + // A duplicate customer profile that is to be merged into a main profile. type FieldSourceProfileIds struct { _ struct{} `type:"structure"` @@ -4954,8 +5549,18 @@ func (s *FlowDefinition) SetTriggerConfig(v *TriggerConfig) *FlowDefinition { return s } -type GetDomainInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type GetAutoMergingPreviewInput struct { + _ struct{} `type:"structure"` + + // How the auto-merging process should resolve conflicts between different profiles. + // + // ConflictResolution is a required field + ConflictResolution *ConflictResolution `type:"structure" required:"true"` + + // A list of matching attributes that represent matching criteria. + // + // Consolidation is a required field + Consolidation *Consolidation `type:"structure" required:"true"` // The unique name of the domain. // @@ -4968,7 +5573,7 @@ type GetDomainInput 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 GetDomainInput) String() string { +func (s GetAutoMergingPreviewInput) String() string { return awsutil.Prettify(s) } @@ -4977,19 +5582,35 @@ func (s GetDomainInput) 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 GetDomainInput) GoString() string { +func (s GetAutoMergingPreviewInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetDomainInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDomainInput"} +func (s *GetAutoMergingPreviewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAutoMergingPreviewInput"} + if s.ConflictResolution == nil { + invalidParams.Add(request.NewErrParamRequired("ConflictResolution")) + } + if s.Consolidation == nil { + invalidParams.Add(request.NewErrParamRequired("Consolidation")) + } if s.DomainName == nil { invalidParams.Add(request.NewErrParamRequired("DomainName")) } if s.DomainName != nil && len(*s.DomainName) < 1 { invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) } + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } + if s.Consolidation != nil { + if err := s.Consolidation.Validate(); err != nil { + invalidParams.AddNested("Consolidation", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -4997,54 +5618,42 @@ func (s *GetDomainInput) Validate() error { return nil } +// SetConflictResolution sets the ConflictResolution field's value. +func (s *GetAutoMergingPreviewInput) SetConflictResolution(v *ConflictResolution) *GetAutoMergingPreviewInput { + s.ConflictResolution = v + return s +} + +// SetConsolidation sets the Consolidation field's value. +func (s *GetAutoMergingPreviewInput) SetConsolidation(v *Consolidation) *GetAutoMergingPreviewInput { + s.Consolidation = v + return s +} + // SetDomainName sets the DomainName field's value. -func (s *GetDomainInput) SetDomainName(v string) *GetDomainInput { +func (s *GetAutoMergingPreviewInput) SetDomainName(v string) *GetAutoMergingPreviewInput { s.DomainName = &v return s } -type GetDomainOutput struct { +type GetAutoMergingPreviewOutput struct { _ struct{} `type:"structure"` - // The timestamp of when the domain was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `type:"timestamp" required:"true"` - - // The URL of the SQS dead letter queue, which is used for reporting errors - // associated with ingesting data from third party applications. - DeadLetterQueueUrl *string `type:"string"` - - // The default encryption key, which is an AWS managed key, is used when no - // specific type of encryption key is specified. It is used to encrypt all data - // before it is placed in permanent or semi-permanent storage. - DefaultEncryptionKey *string `type:"string"` - - // The default number of days until the data within the domain expires. - DefaultExpirationDays *int64 `min:"1" type:"integer"` - // The unique name of the domain. // // DomainName is a required field DomainName *string `min:"1" type:"string" required:"true"` - // The timestamp of when the domain was most recently edited. - // - // LastUpdatedAt is a required field - LastUpdatedAt *time.Time `type:"timestamp" required:"true"` + // The number of match groups in the domain that have been reviewed in this + // preview dry run. + NumberOfMatchesInSample *int64 `type:"long"` - // The process of matching duplicate profiles. If Matching = true, Amazon Connect - // Customer Profiles starts a weekly batch process every Saturday at 12AM UTC - // to detect duplicate profiles in your domains. After that batch process completes, - // use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) - // API to return and review the results. - Matching *MatchingResponse `type:"structure"` - - // Usage-specific statistics about the domain. - Stats *DomainStats `type:"structure"` + // The number of profiles found in this preview dry run. + NumberOfProfilesInSample *int64 `type:"long"` - // The tags used to organize, track, or control access for this resource. - Tags map[string]*string `min:"1" type:"map"` + // The number of profiles that would be merged if this wasn't a preview dry + // run. + NumberOfProfilesWillBeMerged *int64 `type:"long"` } // String returns the string representation. @@ -5052,7 +5661,7 @@ type GetDomainOutput 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 GetDomainOutput) String() string { +func (s GetAutoMergingPreviewOutput) String() string { return awsutil.Prettify(s) } @@ -5061,13 +5670,152 @@ func (s GetDomainOutput) 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 GetDomainOutput) GoString() string { +func (s GetAutoMergingPreviewOutput) GoString() string { return s.String() } -// SetCreatedAt sets the CreatedAt field's value. -func (s *GetDomainOutput) SetCreatedAt(v time.Time) *GetDomainOutput { - s.CreatedAt = &v +// SetDomainName sets the DomainName field's value. +func (s *GetAutoMergingPreviewOutput) SetDomainName(v string) *GetAutoMergingPreviewOutput { + s.DomainName = &v + return s +} + +// SetNumberOfMatchesInSample sets the NumberOfMatchesInSample field's value. +func (s *GetAutoMergingPreviewOutput) SetNumberOfMatchesInSample(v int64) *GetAutoMergingPreviewOutput { + s.NumberOfMatchesInSample = &v + return s +} + +// SetNumberOfProfilesInSample sets the NumberOfProfilesInSample field's value. +func (s *GetAutoMergingPreviewOutput) SetNumberOfProfilesInSample(v int64) *GetAutoMergingPreviewOutput { + s.NumberOfProfilesInSample = &v + return s +} + +// SetNumberOfProfilesWillBeMerged sets the NumberOfProfilesWillBeMerged field's value. +func (s *GetAutoMergingPreviewOutput) SetNumberOfProfilesWillBeMerged(v int64) *GetAutoMergingPreviewOutput { + s.NumberOfProfilesWillBeMerged = &v + return s +} + +type GetDomainInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique name of the domain. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"DomainName" 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 GetDomainInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDomainInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDomainInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDomainInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *GetDomainInput) SetDomainName(v string) *GetDomainInput { + s.DomainName = &v + return s +} + +type GetDomainOutput struct { + _ struct{} `type:"structure"` + + // The timestamp of when the domain was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `type:"timestamp" required:"true"` + + // The URL of the SQS dead letter queue, which is used for reporting errors + // associated with ingesting data from third party applications. + DeadLetterQueueUrl *string `type:"string"` + + // The default encryption key, which is an AWS managed key, is used when no + // specific type of encryption key is specified. It is used to encrypt all data + // before it is placed in permanent or semi-permanent storage. + DefaultEncryptionKey *string `type:"string"` + + // The default number of days until the data within the domain expires. + DefaultExpirationDays *int64 `min:"1" type:"integer"` + + // The unique name of the domain. + // + // DomainName is a required field + DomainName *string `min:"1" type:"string" required:"true"` + + // The timestamp of when the domain was most recently edited. + // + // LastUpdatedAt is a required field + LastUpdatedAt *time.Time `type:"timestamp" required:"true"` + + // The process of matching duplicate profiles. If Matching = true, Amazon Connect + // Customer Profiles starts a weekly batch process called Identity Resolution + // Job. If you do not specify a date and time for Identity Resolution Job to + // run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles + // in your domains. + // + // After the Identity Resolution Job completes, use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) + // API to return and review the results. Or, if you have configured ExportingConfig + // in the MatchingRequest, you can download the results from S3. + Matching *MatchingResponse `type:"structure"` + + // Usage-specific statistics about the domain. + Stats *DomainStats `type:"structure"` + + // The tags used to organize, track, or control access for this resource. + Tags map[string]*string `min:"1" 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 GetDomainOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetDomainOutput) GoString() string { + return s.String() +} + +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetDomainOutput) SetCreatedAt(v time.Time) *GetDomainOutput { + s.CreatedAt = &v return s } @@ -5119,6 +5867,214 @@ func (s *GetDomainOutput) SetTags(v map[string]*string) *GetDomainOutput { return s } +type GetIdentityResolutionJobInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique name of the domain. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"DomainName" min:"1" type:"string" required:"true"` + + // The unique identifier of the Identity Resolution Job. + // + // JobId is a required field + JobId *string `location:"uri" locationName:"JobId" 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 GetIdentityResolutionJobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetIdentityResolutionJobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetIdentityResolutionJobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetIdentityResolutionJobInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.JobId == nil { + invalidParams.Add(request.NewErrParamRequired("JobId")) + } + if s.JobId != nil && len(*s.JobId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *GetIdentityResolutionJobInput) SetDomainName(v string) *GetIdentityResolutionJobInput { + s.DomainName = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetIdentityResolutionJobInput) SetJobId(v string) *GetIdentityResolutionJobInput { + s.JobId = &v + return s +} + +type GetIdentityResolutionJobOutput struct { + _ struct{} `type:"structure"` + + // Configuration settings for how to perform the auto-merging of profiles. + AutoMerging *AutoMerging `type:"structure"` + + // The unique name of the domain. + DomainName *string `min:"1" type:"string"` + + // The S3 location where the Identity Resolution Job writes result files. + ExportingLocation *ExportingLocation `type:"structure"` + + // The timestamp of when the Identity Resolution Job was completed. + JobEndTime *time.Time `type:"timestamp"` + + // The timestamp of when the Identity Resolution Job will expire. + JobExpirationTime *time.Time `type:"timestamp"` + + // The unique identifier of the Identity Resolution Job. + JobId *string `type:"string"` + + // The timestamp of when the Identity Resolution Job was started or will be + // started. + JobStartTime *time.Time `type:"timestamp"` + + // Statistics about the Identity Resolution Job. + JobStats *JobStats `type:"structure"` + + // The timestamp of when the Identity Resolution Job was most recently edited. + LastUpdatedAt *time.Time `type:"timestamp"` + + // The error messages that are generated when the Identity Resolution Job runs. + Message *string `type:"string"` + + // The status of the Identity Resolution Job. + // + // * PENDING: The Identity Resolution Job is scheduled but has not started + // yet. If you turn off the Identity Resolution feature in your domain, jobs + // in the PENDING state are deleted. + // + // * PREPROCESSING: The Identity Resolution Job is loading your data. + // + // * FIND_MATCHING: The Identity Resolution Job is using the machine learning + // model to identify profiles that belong to the same matching group. + // + // * MERGING: The Identity Resolution Job is merging duplicate profiles. + // + // * COMPLETED: The Identity Resolution Job completed successfully. + // + // * PARTIAL_SUCCESS: There's a system error and not all of the data is merged. + // The Identity Resolution Job writes a message indicating the source of + // the problem. + // + // * FAILED: The Identity Resolution Job did not merge any data. It writes + // a message indicating the source of the problem. + Status *string `type:"string" enum:"IdentityResolutionJobStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetIdentityResolutionJobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetIdentityResolutionJobOutput) GoString() string { + return s.String() +} + +// SetAutoMerging sets the AutoMerging field's value. +func (s *GetIdentityResolutionJobOutput) SetAutoMerging(v *AutoMerging) *GetIdentityResolutionJobOutput { + s.AutoMerging = v + return s +} + +// SetDomainName sets the DomainName field's value. +func (s *GetIdentityResolutionJobOutput) SetDomainName(v string) *GetIdentityResolutionJobOutput { + s.DomainName = &v + return s +} + +// SetExportingLocation sets the ExportingLocation field's value. +func (s *GetIdentityResolutionJobOutput) SetExportingLocation(v *ExportingLocation) *GetIdentityResolutionJobOutput { + s.ExportingLocation = v + return s +} + +// SetJobEndTime sets the JobEndTime field's value. +func (s *GetIdentityResolutionJobOutput) SetJobEndTime(v time.Time) *GetIdentityResolutionJobOutput { + s.JobEndTime = &v + return s +} + +// SetJobExpirationTime sets the JobExpirationTime field's value. +func (s *GetIdentityResolutionJobOutput) SetJobExpirationTime(v time.Time) *GetIdentityResolutionJobOutput { + s.JobExpirationTime = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *GetIdentityResolutionJobOutput) SetJobId(v string) *GetIdentityResolutionJobOutput { + s.JobId = &v + return s +} + +// SetJobStartTime sets the JobStartTime field's value. +func (s *GetIdentityResolutionJobOutput) SetJobStartTime(v time.Time) *GetIdentityResolutionJobOutput { + s.JobStartTime = &v + return s +} + +// SetJobStats sets the JobStats field's value. +func (s *GetIdentityResolutionJobOutput) SetJobStats(v *JobStats) *GetIdentityResolutionJobOutput { + s.JobStats = v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *GetIdentityResolutionJobOutput) SetLastUpdatedAt(v time.Time) *GetIdentityResolutionJobOutput { + s.LastUpdatedAt = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *GetIdentityResolutionJobOutput) SetMessage(v string) *GetIdentityResolutionJobOutput { + s.Message = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetIdentityResolutionJobOutput) SetStatus(v string) *GetIdentityResolutionJobOutput { + s.Status = &v + return s +} + type GetIntegrationInput struct { _ struct{} `type:"structure"` @@ -5509,6 +6465,9 @@ type GetProfileObjectTypeOutput struct { // ObjectTypeName is a required field ObjectTypeName *string `min:"1" type:"string" required:"true"` + // The format of your sourceLastUpdatedTimestamp that was previously set up. + SourceLastUpdatedTimestampFormat *string `min:"1" type:"string"` + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` @@ -5588,6 +6547,12 @@ func (s *GetProfileObjectTypeOutput) SetObjectTypeName(v string) *GetProfileObje return s } +// SetSourceLastUpdatedTimestampFormat sets the SourceLastUpdatedTimestampFormat field's value. +func (s *GetProfileObjectTypeOutput) SetSourceLastUpdatedTimestampFormat(v string) *GetProfileObjectTypeOutput { + s.SourceLastUpdatedTimestampFormat = &v + return s +} + // SetTags sets the Tags field's value. func (s *GetProfileObjectTypeOutput) SetTags(v map[string]*string) *GetProfileObjectTypeOutput { s.Tags = v @@ -5666,6 +6631,9 @@ type GetProfileObjectTypeTemplateOutput struct { // A list of unique keys that can be used to map data to the profile. Keys map[string][]*ObjectTypeKey `type:"map"` + // The format of your sourceLastUpdatedTimestamp that was previously set up. + SourceLastUpdatedTimestampFormat *string `min:"1" type:"string"` + // The name of the source of the object template. SourceName *string `min:"1" type:"string"` @@ -5712,6 +6680,12 @@ func (s *GetProfileObjectTypeTemplateOutput) SetKeys(v map[string][]*ObjectTypeK return s } +// SetSourceLastUpdatedTimestampFormat sets the SourceLastUpdatedTimestampFormat field's value. +func (s *GetProfileObjectTypeTemplateOutput) SetSourceLastUpdatedTimestampFormat(v string) *GetProfileObjectTypeTemplateOutput { + s.SourceLastUpdatedTimestampFormat = &v + return s +} + // SetSourceName sets the SourceName field's value. func (s *GetProfileObjectTypeTemplateOutput) SetSourceName(v string) *GetProfileObjectTypeTemplateOutput { s.SourceName = &v @@ -5730,6 +6704,121 @@ func (s *GetProfileObjectTypeTemplateOutput) SetTemplateId(v string) *GetProfile return s } +// Information about the Identity Resolution Job. +type IdentityResolutionJob struct { + _ struct{} `type:"structure"` + + // The unique name of the domain. + DomainName *string `min:"1" type:"string"` + + // The S3 location where the Identity Resolution Job writes result files. + ExportingLocation *ExportingLocation `type:"structure"` + + // The timestamp of when the job was completed. + JobEndTime *time.Time `type:"timestamp"` + + // The unique identifier of the Identity Resolution Job. + JobId *string `type:"string"` + + // The timestamp of when the job was started or will be started. + JobStartTime *time.Time `type:"timestamp"` + + // Statistics about an Identity Resolution Job. + JobStats *JobStats `type:"structure"` + + // The error messages that are generated when the Identity Resolution Job runs. + Message *string `type:"string"` + + // The status of the Identity Resolution Job. + // + // * PENDING: The Identity Resolution Job is scheduled but has not started + // yet. If you turn off the Identity Resolution feature in your domain, jobs + // in the PENDING state are deleted. + // + // * PREPROCESSING: The Identity Resolution Job is loading your data. + // + // * FIND_MATCHING: The Identity Resolution Job is using the machine learning + // model to identify profiles that belong to the same matching group. + // + // * MERGING: The Identity Resolution Job is merging duplicate profiles. + // + // * COMPLETED: The Identity Resolution Job completed successfully. + // + // * PARTIAL_SUCCESS: There's a system error and not all of the data is merged. + // The Identity Resolution Job writes a message indicating the source of + // the problem. + // + // * FAILED: The Identity Resolution Job did not merge any data. It writes + // a message indicating the source of the problem. + Status *string `type:"string" enum:"IdentityResolutionJobStatus"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IdentityResolutionJob) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s IdentityResolutionJob) GoString() string { + return s.String() +} + +// SetDomainName sets the DomainName field's value. +func (s *IdentityResolutionJob) SetDomainName(v string) *IdentityResolutionJob { + s.DomainName = &v + return s +} + +// SetExportingLocation sets the ExportingLocation field's value. +func (s *IdentityResolutionJob) SetExportingLocation(v *ExportingLocation) *IdentityResolutionJob { + s.ExportingLocation = v + return s +} + +// SetJobEndTime sets the JobEndTime field's value. +func (s *IdentityResolutionJob) SetJobEndTime(v time.Time) *IdentityResolutionJob { + s.JobEndTime = &v + return s +} + +// SetJobId sets the JobId field's value. +func (s *IdentityResolutionJob) SetJobId(v string) *IdentityResolutionJob { + s.JobId = &v + return s +} + +// SetJobStartTime sets the JobStartTime field's value. +func (s *IdentityResolutionJob) SetJobStartTime(v time.Time) *IdentityResolutionJob { + s.JobStartTime = &v + return s +} + +// SetJobStats sets the JobStats field's value. +func (s *IdentityResolutionJob) SetJobStats(v *JobStats) *IdentityResolutionJob { + s.JobStats = v + return s +} + +// SetMessage sets the Message field's value. +func (s *IdentityResolutionJob) SetMessage(v string) *IdentityResolutionJob { + s.Message = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *IdentityResolutionJob) SetStatus(v string) *IdentityResolutionJob { + s.Status = &v + return s +} + // Specifies the configuration used when importing incremental records from // the source. type IncrementalPullConfig struct { @@ -5814,18 +6903,133 @@ func (s *InternalServerException) OrigErr() error { return nil } -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The day and time when do you want to start the Identity Resolution Job every +// week. +type JobSchedule struct { + _ struct{} `type:"structure"` + + // The day when the Identity Resolution Job should run every week. + // + // DayOfTheWeek is a required field + DayOfTheWeek *string `type:"string" required:"true" enum:"JobScheduleDayOfTheWeek"` + + // The time when the Identity Resolution Job should run every week. + // + // Time is a required field + Time *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s JobSchedule) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s JobSchedule) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *JobSchedule) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "JobSchedule"} + if s.DayOfTheWeek == nil { + invalidParams.Add(request.NewErrParamRequired("DayOfTheWeek")) + } + if s.Time == nil { + invalidParams.Add(request.NewErrParamRequired("Time")) + } + if s.Time != nil && len(*s.Time) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Time", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDayOfTheWeek sets the DayOfTheWeek field's value. +func (s *JobSchedule) SetDayOfTheWeek(v string) *JobSchedule { + s.DayOfTheWeek = &v + return s +} + +// SetTime sets the Time field's value. +func (s *JobSchedule) SetTime(v string) *JobSchedule { + s.Time = &v + return s +} + +// Statistics about the Identity Resolution Job. +type JobStats struct { + _ struct{} `type:"structure"` + + // The number of matches found. + NumberOfMatchesFound *int64 `type:"long"` + + // The number of merges completed. + NumberOfMergesDone *int64 `type:"long"` + + // The number of profiles reviewed. + NumberOfProfilesReviewed *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 JobStats) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s JobStats) GoString() string { + return s.String() +} + +// SetNumberOfMatchesFound sets the NumberOfMatchesFound field's value. +func (s *JobStats) SetNumberOfMatchesFound(v int64) *JobStats { + s.NumberOfMatchesFound = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetNumberOfMergesDone sets the NumberOfMergesDone field's value. +func (s *JobStats) SetNumberOfMergesDone(v int64) *JobStats { + s.NumberOfMergesDone = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetNumberOfProfilesReviewed sets the NumberOfProfilesReviewed field's value. +func (s *JobStats) SetNumberOfProfilesReviewed(v int64) *JobStats { + s.NumberOfProfilesReviewed = &v + return s } type ListAccountIntegrationsInput struct { @@ -6102,6 +7306,120 @@ func (s *ListDomainsOutput) SetNextToken(v string) *ListDomainsOutput { return s } +type ListIdentityResolutionJobsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique name of the domain. + // + // DomainName is a required field + DomainName *string `location:"uri" locationName:"DomainName" min:"1" type:"string" required:"true"` + + // The maximum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"next-token" 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 ListIdentityResolutionJobsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListIdentityResolutionJobsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListIdentityResolutionJobsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListIdentityResolutionJobsInput"} + if s.DomainName == nil { + invalidParams.Add(request.NewErrParamRequired("DomainName")) + } + if s.DomainName != nil && len(*s.DomainName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDomainName sets the DomainName field's value. +func (s *ListIdentityResolutionJobsInput) SetDomainName(v string) *ListIdentityResolutionJobsInput { + s.DomainName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListIdentityResolutionJobsInput) SetMaxResults(v int64) *ListIdentityResolutionJobsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityResolutionJobsInput) SetNextToken(v string) *ListIdentityResolutionJobsInput { + s.NextToken = &v + return s +} + +type ListIdentityResolutionJobsOutput struct { + _ struct{} `type:"structure"` + + // A list of Identity Resolution Jobs. + IdentityResolutionJobsList []*IdentityResolutionJob `type:"list"` + + // If there are additional results, this is the token for the next set of results. + NextToken *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 ListIdentityResolutionJobsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListIdentityResolutionJobsOutput) GoString() string { + return s.String() +} + +// SetIdentityResolutionJobsList sets the IdentityResolutionJobsList field's value. +func (s *ListIdentityResolutionJobsOutput) SetIdentityResolutionJobsList(v []*IdentityResolutionJob) *ListIdentityResolutionJobsOutput { + s.IdentityResolutionJobsList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListIdentityResolutionJobsOutput) SetNextToken(v string) *ListIdentityResolutionJobsOutput { + s.NextToken = &v + return s +} + // An integration in list of integrations. type ListIntegrationItem struct { _ struct{} `type:"structure"` @@ -6974,6 +8292,10 @@ func (s *MarketoSourceProperties) SetObject(v string) *MarketoSourceProperties { type MatchItem struct { _ struct{} `type:"structure"` + // A number between 0 and 1 that represents the confidence level of assigning + // profiles to a matching group. A score of 1 likely indicates an exact match. + ConfidenceScore *float64 `type:"double"` + // The unique identifiers for this group of profiles that match. MatchId *string `min:"1" type:"string"` @@ -6999,6 +8321,12 @@ func (s MatchItem) GoString() string { return s.String() } +// SetConfidenceScore sets the ConfidenceScore field's value. +func (s *MatchItem) SetConfidenceScore(v float64) *MatchItem { + s.ConfidenceScore = &v + return s +} + // SetMatchId sets the MatchId field's value. func (s *MatchItem) SetMatchId(v string) *MatchItem { s.MatchId = &v @@ -7015,10 +8343,21 @@ func (s *MatchItem) SetProfileIds(v []*string) *MatchItem { type MatchingRequest struct { _ struct{} `type:"structure"` + // Configuration information about the auto-merging process. + AutoMerging *AutoMerging `type:"structure"` + // The flag that enables the matching process of duplicate profiles. // // Enabled is a required field Enabled *bool `type:"boolean" required:"true"` + + // Configuration information for exporting Identity Resolution results, for + // example, to an S3 bucket. + ExportingConfig *ExportingConfig `type:"structure"` + + // The day and time when do you want to start the Identity Resolution Job every + // week. + JobSchedule *JobSchedule `type:"structure"` } // String returns the string representation. @@ -7045,6 +8384,21 @@ func (s *MatchingRequest) Validate() error { if s.Enabled == nil { invalidParams.Add(request.NewErrParamRequired("Enabled")) } + if s.AutoMerging != nil { + if err := s.AutoMerging.Validate(); err != nil { + invalidParams.AddNested("AutoMerging", err.(request.ErrInvalidParams)) + } + } + if s.ExportingConfig != nil { + if err := s.ExportingConfig.Validate(); err != nil { + invalidParams.AddNested("ExportingConfig", err.(request.ErrInvalidParams)) + } + } + if s.JobSchedule != nil { + if err := s.JobSchedule.Validate(); err != nil { + invalidParams.AddNested("JobSchedule", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -7052,18 +8406,47 @@ func (s *MatchingRequest) Validate() error { return nil } +// SetAutoMerging sets the AutoMerging field's value. +func (s *MatchingRequest) SetAutoMerging(v *AutoMerging) *MatchingRequest { + s.AutoMerging = v + return s +} + // SetEnabled sets the Enabled field's value. func (s *MatchingRequest) SetEnabled(v bool) *MatchingRequest { s.Enabled = &v return s } +// SetExportingConfig sets the ExportingConfig field's value. +func (s *MatchingRequest) SetExportingConfig(v *ExportingConfig) *MatchingRequest { + s.ExportingConfig = v + return s +} + +// SetJobSchedule sets the JobSchedule field's value. +func (s *MatchingRequest) SetJobSchedule(v *JobSchedule) *MatchingRequest { + s.JobSchedule = v + return s +} + // The flag that enables the matching process of duplicate profiles. type MatchingResponse struct { _ struct{} `type:"structure"` + // Configuration information about the auto-merging process. + AutoMerging *AutoMerging `type:"structure"` + // The flag that enables the matching process of duplicate profiles. Enabled *bool `type:"boolean"` + + // Configuration information for exporting Identity Resolution results, for + // example, to an S3 bucket. + ExportingConfig *ExportingConfig `type:"structure"` + + // The day and time when do you want to start the Identity Resolution Job every + // week. + JobSchedule *JobSchedule `type:"structure"` } // String returns the string representation. @@ -7084,12 +8467,30 @@ func (s MatchingResponse) GoString() string { return s.String() } +// SetAutoMerging sets the AutoMerging field's value. +func (s *MatchingResponse) SetAutoMerging(v *AutoMerging) *MatchingResponse { + s.AutoMerging = v + return s +} + // SetEnabled sets the Enabled field's value. func (s *MatchingResponse) SetEnabled(v bool) *MatchingResponse { s.Enabled = &v return s } +// SetExportingConfig sets the ExportingConfig field's value. +func (s *MatchingResponse) SetExportingConfig(v *ExportingConfig) *MatchingResponse { + s.ExportingConfig = v + return s +} + +// SetJobSchedule sets the JobSchedule field's value. +func (s *MatchingResponse) SetJobSchedule(v *JobSchedule) *MatchingResponse { + s.JobSchedule = v + return s +} + type MergeProfilesInput struct { _ struct{} `type:"structure"` @@ -7969,6 +9370,9 @@ type PutProfileObjectTypeInput struct { // ObjectTypeName is a required field ObjectTypeName *string `location:"uri" locationName:"ObjectTypeName" min:"1" type:"string" required:"true"` + // The format of your sourceLastUpdatedTimestamp that was previously set up. + SourceLastUpdatedTimestampFormat *string `min:"1" type:"string"` + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` @@ -8018,6 +9422,9 @@ func (s *PutProfileObjectTypeInput) Validate() error { if s.ObjectTypeName != nil && len(*s.ObjectTypeName) < 1 { invalidParams.Add(request.NewErrParamMinLen("ObjectTypeName", 1)) } + if s.SourceLastUpdatedTimestampFormat != nil && len(*s.SourceLastUpdatedTimestampFormat) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SourceLastUpdatedTimestampFormat", 1)) + } if s.Tags != nil && len(s.Tags) < 1 { invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) } @@ -8089,6 +9496,12 @@ func (s *PutProfileObjectTypeInput) SetObjectTypeName(v string) *PutProfileObjec return s } +// SetSourceLastUpdatedTimestampFormat sets the SourceLastUpdatedTimestampFormat field's value. +func (s *PutProfileObjectTypeInput) SetSourceLastUpdatedTimestampFormat(v string) *PutProfileObjectTypeInput { + s.SourceLastUpdatedTimestampFormat = &v + return s +} + // SetTags sets the Tags field's value. func (s *PutProfileObjectTypeInput) SetTags(v map[string]*string) *PutProfileObjectTypeInput { s.Tags = v @@ -8141,6 +9554,11 @@ type PutProfileObjectTypeOutput struct { // ObjectTypeName is a required field ObjectTypeName *string `min:"1" type:"string" required:"true"` + // The format of your sourceLastUpdatedTimestamp that was previously set up + // in fields that were parsed using SimpleDateFormat (https://docs.oracle.com/javase/10/docs/api/java/text/SimpleDateFormat.html). + // If you have sourceLastUpdatedTimestamp in your field, you must set up sourceLastUpdatedTimestampFormat. + SourceLastUpdatedTimestampFormat *string `min:"1" type:"string"` + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` @@ -8220,6 +9638,12 @@ func (s *PutProfileObjectTypeOutput) SetObjectTypeName(v string) *PutProfileObje return s } +// SetSourceLastUpdatedTimestampFormat sets the SourceLastUpdatedTimestampFormat field's value. +func (s *PutProfileObjectTypeOutput) SetSourceLastUpdatedTimestampFormat(v string) *PutProfileObjectTypeOutput { + s.SourceLastUpdatedTimestampFormat = &v + return s +} + // SetTags sets the Tags field's value. func (s *PutProfileObjectTypeOutput) SetTags(v map[string]*string) *PutProfileObjectTypeOutput { s.Tags = v @@ -8296,6 +9720,113 @@ func (s *ResourceNotFoundException) RequestID() string { return s.RespMetadata.RequestID } +// Configuration information about the S3 bucket where Identity Resolution Jobs +// write result files. +type S3ExportingConfig struct { + _ struct{} `type:"structure"` + + // The name of the S3 bucket where Identity Resolution Jobs write result files. + // + // S3BucketName is a required field + S3BucketName *string `min:"3" type:"string" required:"true"` + + // The S3 key name of the location where Identity Resolution Jobs write result + // files. + S3KeyName *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 S3ExportingConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s S3ExportingConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3ExportingConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3ExportingConfig"} + if s.S3BucketName == nil { + invalidParams.Add(request.NewErrParamRequired("S3BucketName")) + } + if s.S3BucketName != nil && len(*s.S3BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("S3BucketName", 3)) + } + if s.S3KeyName != nil && len(*s.S3KeyName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("S3KeyName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *S3ExportingConfig) SetS3BucketName(v string) *S3ExportingConfig { + s.S3BucketName = &v + return s +} + +// SetS3KeyName sets the S3KeyName field's value. +func (s *S3ExportingConfig) SetS3KeyName(v string) *S3ExportingConfig { + s.S3KeyName = &v + return s +} + +// The S3 location where Identity Resolution Jobs write result files. +type S3ExportingLocation struct { + _ struct{} `type:"structure"` + + // The name of the S3 bucket name where Identity Resolution Jobs write result + // files. + S3BucketName *string `min:"3" type:"string"` + + // The S3 key name of the location where Identity Resolution Jobs write result + // files. + S3KeyName *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 S3ExportingLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s S3ExportingLocation) GoString() string { + return s.String() +} + +// SetS3BucketName sets the S3BucketName field's value. +func (s *S3ExportingLocation) SetS3BucketName(v string) *S3ExportingLocation { + s.S3BucketName = &v + return s +} + +// SetS3KeyName sets the S3KeyName field's value. +func (s *S3ExportingLocation) SetS3KeyName(v string) *S3ExportingLocation { + s.S3KeyName = &v + return s +} + // The properties that are applied when Amazon S3 is being used as the flow // source. type S3SourceProperties struct { @@ -9498,10 +11029,14 @@ type UpdateDomainInput struct { DomainName *string `location:"uri" locationName:"DomainName" min:"1" type:"string" required:"true"` // The process of matching duplicate profiles. If Matching = true, Amazon Connect - // Customer Profiles starts a weekly batch process every Saturday at 12AM UTC - // to detect duplicate profiles in your domains. After that batch process completes, - // use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) - // API to return and review the results. + // Customer Profiles starts a weekly batch process called Identity Resolution + // Job. If you do not specify a date and time for Identity Resolution Job to + // run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles + // in your domains. + // + // After the Identity Resolution Job completes, use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) + // API to return and review the results. Or, if you have configured ExportingConfig + // in the MatchingRequest, you can download the results from S3. Matching *MatchingRequest `type:"structure"` // The tags used to organize, track, or control access for this resource. @@ -9620,10 +11155,14 @@ type UpdateDomainOutput struct { LastUpdatedAt *time.Time `type:"timestamp" required:"true"` // The process of matching duplicate profiles. If Matching = true, Amazon Connect - // Customer Profiles starts a weekly batch process every Saturday at 12AM UTC - // to detect duplicate profiles in your domains. After that batch process completes, - // use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) - // API to return and review the results. + // Customer Profiles starts a weekly batch process called Identity Resolution + // Job. If you do not specify a date and time for Identity Resolution Job to + // run, by default it runs every Saturday at 12AM UTC to detect duplicate profiles + // in your domains. + // + // After the Identity Resolution Job completes, use the GetMatches (https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_GetMatches.html) + // API to return and review the results. Or, if you have configured ExportingConfig + // in the MatchingRequest, you can download the results from S3. Matching *MatchingResponse `type:"structure"` // The tags used to organize, track, or control access for this resource. @@ -10031,6 +11570,22 @@ func (s *ZendeskSourceProperties) SetObject(v string) *ZendeskSourceProperties { return s } +const ( + // ConflictResolvingModelRecency is a ConflictResolvingModel enum value + ConflictResolvingModelRecency = "RECENCY" + + // ConflictResolvingModelSource is a ConflictResolvingModel enum value + ConflictResolvingModelSource = "SOURCE" +) + +// ConflictResolvingModel_Values returns all elements of the ConflictResolvingModel enum +func ConflictResolvingModel_Values() []string { + return []string{ + ConflictResolvingModelRecency, + ConflictResolvingModelSource, + } +} + const ( // DataPullModeIncremental is a DataPullMode enum value DataPullModeIncremental = "Incremental" @@ -10095,6 +11650,78 @@ func Gender_Values() []string { } } +const ( + // IdentityResolutionJobStatusPending is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusPending = "PENDING" + + // IdentityResolutionJobStatusPreprocessing is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusPreprocessing = "PREPROCESSING" + + // IdentityResolutionJobStatusFindMatching is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusFindMatching = "FIND_MATCHING" + + // IdentityResolutionJobStatusMerging is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusMerging = "MERGING" + + // IdentityResolutionJobStatusCompleted is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusCompleted = "COMPLETED" + + // IdentityResolutionJobStatusPartialSuccess is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusPartialSuccess = "PARTIAL_SUCCESS" + + // IdentityResolutionJobStatusFailed is a IdentityResolutionJobStatus enum value + IdentityResolutionJobStatusFailed = "FAILED" +) + +// IdentityResolutionJobStatus_Values returns all elements of the IdentityResolutionJobStatus enum +func IdentityResolutionJobStatus_Values() []string { + return []string{ + IdentityResolutionJobStatusPending, + IdentityResolutionJobStatusPreprocessing, + IdentityResolutionJobStatusFindMatching, + IdentityResolutionJobStatusMerging, + IdentityResolutionJobStatusCompleted, + IdentityResolutionJobStatusPartialSuccess, + IdentityResolutionJobStatusFailed, + } +} + +const ( + // JobScheduleDayOfTheWeekSunday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekSunday = "SUNDAY" + + // JobScheduleDayOfTheWeekMonday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekMonday = "MONDAY" + + // JobScheduleDayOfTheWeekTuesday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekTuesday = "TUESDAY" + + // JobScheduleDayOfTheWeekWednesday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekWednesday = "WEDNESDAY" + + // JobScheduleDayOfTheWeekThursday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekThursday = "THURSDAY" + + // JobScheduleDayOfTheWeekFriday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekFriday = "FRIDAY" + + // JobScheduleDayOfTheWeekSaturday is a JobScheduleDayOfTheWeek enum value + JobScheduleDayOfTheWeekSaturday = "SATURDAY" +) + +// JobScheduleDayOfTheWeek_Values returns all elements of the JobScheduleDayOfTheWeek enum +func JobScheduleDayOfTheWeek_Values() []string { + return []string{ + JobScheduleDayOfTheWeekSunday, + JobScheduleDayOfTheWeekMonday, + JobScheduleDayOfTheWeekTuesday, + JobScheduleDayOfTheWeekWednesday, + JobScheduleDayOfTheWeekThursday, + JobScheduleDayOfTheWeekFriday, + JobScheduleDayOfTheWeekSaturday, + } +} + const ( // MarketoConnectorOperatorProjection is a MarketoConnectorOperator enum value MarketoConnectorOperatorProjection = "PROJECTION" diff --git a/service/customerprofiles/customerprofilesiface/interface.go b/service/customerprofiles/customerprofilesiface/interface.go index 6d7405c2e1..b9b2b9081c 100644 --- a/service/customerprofiles/customerprofilesiface/interface.go +++ b/service/customerprofiles/customerprofilesiface/interface.go @@ -96,10 +96,18 @@ type CustomerProfilesAPI interface { DeleteProfileObjectTypeWithContext(aws.Context, *customerprofiles.DeleteProfileObjectTypeInput, ...request.Option) (*customerprofiles.DeleteProfileObjectTypeOutput, error) DeleteProfileObjectTypeRequest(*customerprofiles.DeleteProfileObjectTypeInput) (*request.Request, *customerprofiles.DeleteProfileObjectTypeOutput) + GetAutoMergingPreview(*customerprofiles.GetAutoMergingPreviewInput) (*customerprofiles.GetAutoMergingPreviewOutput, error) + GetAutoMergingPreviewWithContext(aws.Context, *customerprofiles.GetAutoMergingPreviewInput, ...request.Option) (*customerprofiles.GetAutoMergingPreviewOutput, error) + GetAutoMergingPreviewRequest(*customerprofiles.GetAutoMergingPreviewInput) (*request.Request, *customerprofiles.GetAutoMergingPreviewOutput) + GetDomain(*customerprofiles.GetDomainInput) (*customerprofiles.GetDomainOutput, error) GetDomainWithContext(aws.Context, *customerprofiles.GetDomainInput, ...request.Option) (*customerprofiles.GetDomainOutput, error) GetDomainRequest(*customerprofiles.GetDomainInput) (*request.Request, *customerprofiles.GetDomainOutput) + GetIdentityResolutionJob(*customerprofiles.GetIdentityResolutionJobInput) (*customerprofiles.GetIdentityResolutionJobOutput, error) + GetIdentityResolutionJobWithContext(aws.Context, *customerprofiles.GetIdentityResolutionJobInput, ...request.Option) (*customerprofiles.GetIdentityResolutionJobOutput, error) + GetIdentityResolutionJobRequest(*customerprofiles.GetIdentityResolutionJobInput) (*request.Request, *customerprofiles.GetIdentityResolutionJobOutput) + GetIntegration(*customerprofiles.GetIntegrationInput) (*customerprofiles.GetIntegrationOutput, error) GetIntegrationWithContext(aws.Context, *customerprofiles.GetIntegrationInput, ...request.Option) (*customerprofiles.GetIntegrationOutput, error) GetIntegrationRequest(*customerprofiles.GetIntegrationInput) (*request.Request, *customerprofiles.GetIntegrationOutput) @@ -124,6 +132,10 @@ type CustomerProfilesAPI interface { ListDomainsWithContext(aws.Context, *customerprofiles.ListDomainsInput, ...request.Option) (*customerprofiles.ListDomainsOutput, error) ListDomainsRequest(*customerprofiles.ListDomainsInput) (*request.Request, *customerprofiles.ListDomainsOutput) + ListIdentityResolutionJobs(*customerprofiles.ListIdentityResolutionJobsInput) (*customerprofiles.ListIdentityResolutionJobsOutput, error) + ListIdentityResolutionJobsWithContext(aws.Context, *customerprofiles.ListIdentityResolutionJobsInput, ...request.Option) (*customerprofiles.ListIdentityResolutionJobsOutput, error) + ListIdentityResolutionJobsRequest(*customerprofiles.ListIdentityResolutionJobsInput) (*request.Request, *customerprofiles.ListIdentityResolutionJobsOutput) + ListIntegrations(*customerprofiles.ListIntegrationsInput) (*customerprofiles.ListIntegrationsOutput, error) ListIntegrationsWithContext(aws.Context, *customerprofiles.ListIntegrationsInput, ...request.Option) (*customerprofiles.ListIntegrationsOutput, error) ListIntegrationsRequest(*customerprofiles.ListIntegrationsInput) (*request.Request, *customerprofiles.ListIntegrationsOutput) diff --git a/service/elasticache/api.go b/service/elasticache/api.go index 8b38ec259e..0693703160 100644 --- a/service/elasticache/api.go +++ b/service/elasticache/api.go @@ -8006,7 +8006,7 @@ type CacheCluster struct { AuthTokenLastModifiedDate *time.Time `type:"timestamp"` // If you are running Redis engine version 6.0 or later, set this parameter - // to yes if you want to opt-in to the next minor version upgrade campaign. + // to yes if you want to opt-in to the next auto minor version upgrade campaign. // This parameter is disabled for previous versions. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -8028,30 +8028,35 @@ type CacheCluster struct { // the current generation types provide more memory and computational power // at lower cost when compared to their equivalent previous generation counterparts. // - // * General purpose: Current generation: M6g node types (available only + // * General purpose: Current generation: M6g node types: (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, + // 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -8463,30 +8468,35 @@ func (s *CacheEngineVersion) SetEngineVersion(v string) *CacheEngineVersion { // the current generation types provide more memory and computational power // at lower cost when compared to their equivalent previous generation counterparts. // -// * General purpose: Current generation: M6g node types (available only +// * General purpose: Current generation: M6g node types: (available only // for Redis engine version 5.0.6 onward and for Memcached engine version -// 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, +// 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, -// cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, -// cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, -// cache.t2.medium Previous generation: (not recommended) T1 node types: -// cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, -// cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, -// cache.m3.2xlarge +// cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available +// only for Redis engine version 5.0.6 onward and for Memcached engine version +// 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 +// node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: +// cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not +// recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, +// cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, +// cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // -// * Memory optimized: Current generation: R6gd node types (available only -// for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, -// cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge -// R6g node types (available only for Redis engine version 5.0.6 onward and -// for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, -// cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, -// cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) +// * Memory optimized with data tiering: Current generation: R6gd node types +// (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, +// cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, +// cache.r6gd.16xlarge +// +// * Memory optimized: Current generation: R6g node types (available only +// for Redis engine version 5.0.6 onward and for Memcached engine version +// 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, +// cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge +// For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -9583,7 +9593,7 @@ type CreateCacheClusterInput struct { AuthToken *string `type:"string"` // If you are running Redis engine version 6.0 or later, set this parameter - // to yes if you want to opt-in to the next minor version upgrade campaign. + // to yes if you want to opt-in to the next auto minor version upgrade campaign. // This parameter is disabled for previous versions. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -9609,28 +9619,33 @@ type CreateCacheClusterInput struct { // // * General purpose: Current generation: M6g node types (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, + // 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -10548,7 +10563,7 @@ type CreateReplicationGroupInput struct { AuthToken *string `type:"string"` // If you are running Redis engine version 6.0 or later, set this parameter - // to yes if you want to opt-in to the next minor version upgrade campaign. + // to yes if you want to opt-in to the next auto minor version upgrade campaign. // This parameter is disabled for previous versions. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -10569,28 +10584,33 @@ type CreateReplicationGroupInput struct { // // * General purpose: Current generation: M6g node types (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, + // 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -11343,6 +11363,7 @@ type CreateUserGroupOutput struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // A list of updates being applied to the user group. @@ -11568,6 +11589,7 @@ type CreateUserOutput struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // Indicates the user status. Can be "active", "modifying" or "deleting". @@ -12614,6 +12636,7 @@ type DeleteUserGroupOutput struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // A list of updates being applied to the user group. @@ -12762,6 +12785,7 @@ type DeleteUserOutput struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // Indicates the user status. Can be "active", "modifying" or "deleting". @@ -14019,30 +14043,35 @@ type DescribeReservedCacheNodesInput struct { // the current generation types provide more memory and computational power // at lower cost when compared to their equivalent previous generation counterparts. // - // * General purpose: Current generation: M6g node types (available only + // * General purpose: Current generation: M6g node types: (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, + // 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -14179,30 +14208,35 @@ type DescribeReservedCacheNodesOfferingsInput struct { // the current generation types provide more memory and computational power // at lower cost when compared to their equivalent previous generation counterparts. // - // * General purpose: Current generation: M6g node types (available only + // * General purpose: Current generation: M6g node types: (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, - // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge - // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // 1.5.16 onward) cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, cache.m6g.4xlarge, + // cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge For region availability, + // see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -16553,7 +16587,7 @@ type ModifyCacheClusterInput struct { AuthTokenUpdateStrategy *string `type:"string" enum:"AuthTokenUpdateStrategyType"` // If you are running Redis engine version 6.0 or later, set this parameter - // to yes if you want to opt-in to the next minor version upgrade campaign. + // to yes if you want to opt-in to the next auto minor version upgrade campaign. // This parameter is disabled for previous versions. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -17280,7 +17314,7 @@ type ModifyReplicationGroupInput struct { AuthTokenUpdateStrategy *string `type:"string" enum:"AuthTokenUpdateStrategyType"` // If you are running Redis engine version 6.0 or later, set this parameter - // to yes if you want to opt-in to the next minor version upgrade campaign. + // to yes if you want to opt-in to the next auto minor version upgrade campaign. // This parameter is disabled for previous versions. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -17876,6 +17910,7 @@ type ModifyUserGroupOutput struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // A list of updates being applied to the user group. @@ -18063,6 +18098,7 @@ type ModifyUserOutput struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // Indicates the user status. Can be "active", "modifying" or "deleting". @@ -19950,30 +19986,35 @@ type ReservedCacheNode struct { // the current generation types provide more memory and computational power // at lower cost when compared to their equivalent previous generation counterparts. // - // * General purpose: Current generation: M6g node types (available only + // * General purpose: Current generation: M6g node types: (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, + // 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -20135,30 +20176,35 @@ type ReservedCacheNodesOffering struct { // the current generation types provide more memory and computational power // at lower cost when compared to their equivalent previous generation counterparts. // - // * General purpose: Current generation: M6g node types (available only + // * General purpose: Current generation: M6g node types: (available only // for Redis engine version 5.0.6 onward and for Memcached engine version - // 1.5.16 onward). cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, + // 1.5.16 onward): cache.m6g.large, cache.m6g.xlarge, cache.m6g.2xlarge, // cache.m6g.4xlarge, cache.m6g.8xlarge, cache.m6g.12xlarge, cache.m6g.16xlarge // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -20758,7 +20804,7 @@ type Snapshot struct { ARN *string `type:"string"` // If you are running Redis engine version 6.0 or later, set this parameter - // to yes if you want to opt-in to the next minor version upgrade campaign. + // to yes if you want to opt-in to the next auto minor version upgrade campaign. // This parameter is disabled for previous versions. AutoMinorVersionUpgrade *bool `type:"boolean"` @@ -20785,23 +20831,29 @@ type Snapshot struct { // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // M5 node types: cache.m5.large, cache.m5.xlarge, cache.m5.2xlarge, cache.m5.4xlarge, // cache.m5.12xlarge, cache.m5.24xlarge M4 node types: cache.m4.large, cache.m4.xlarge, - // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T3 node types: cache.t3.micro, - // cache.t3.small, cache.t3.medium T2 node types: cache.t2.micro, cache.t2.small, - // cache.t2.medium Previous generation: (not recommended) T1 node types: - // cache.t1.micro M1 node types: cache.m1.small, cache.m1.medium, cache.m1.large, - // cache.m1.xlarge M3 node types: cache.m3.medium, cache.m3.large, cache.m3.xlarge, - // cache.m3.2xlarge + // cache.m4.2xlarge, cache.m4.4xlarge, cache.m4.10xlarge T4g node types (available + // only for Redis engine version 5.0.6 onward and Memcached engine version + // 1.5.16 onward): cache.t4g.micro, cache.t4g.small, cache.t4g.medium T3 + // node types: cache.t3.micro, cache.t3.small, cache.t3.medium T2 node types: + // cache.t2.micro, cache.t2.small, cache.t2.medium Previous generation: (not + // recommended) T1 node types: cache.t1.micro M1 node types: cache.m1.small, + // cache.m1.medium, cache.m1.large, cache.m1.xlarge M3 node types: cache.m3.medium, + // cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge // // * Compute optimized: Previous generation: (not recommended) C1 node types: // cache.c1.xlarge // - // * Memory optimized: Current generation: R6gd node types (available only - // for Redis engine version 6.2 onward). cache.r6gd.xlarge, cache.r6gd.2xlarge, - // cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, cache.r6gd.16xlarge - // R6g node types (available only for Redis engine version 5.0.6 onward and - // for Memcached engine version 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, - // cache.r6g.2xlarge, cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, - // cache.r6g.16xlarge For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // * Memory optimized with data tiering: Current generation: R6gd node types + // (available only for Redis engine version 6.2 onward). cache.r6gd.xlarge, + // cache.r6gd.2xlarge, cache.r6gd.4xlarge, cache.r6gd.8xlarge, cache.r6gd.12xlarge, + // cache.r6gd.16xlarge + // + // * Memory optimized: Current generation: R6g node types (available only + // for Redis engine version 5.0.6 onward and for Memcached engine version + // 1.5.16 onward). cache.r6g.large, cache.r6g.xlarge, cache.r6g.2xlarge, + // cache.r6g.4xlarge, cache.r6g.8xlarge, cache.r6g.12xlarge, cache.r6g.16xlarge + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) + // For region availability, see Supported Node Types (https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheNodes.SupportedTypes.html#CacheNodes.SupportedTypesByRegion) // R5 node types: cache.r5.large, cache.r5.xlarge, cache.r5.2xlarge, cache.r5.4xlarge, // cache.r5.12xlarge, cache.r5.24xlarge R4 node types: cache.r4.large, cache.r4.xlarge, // cache.r4.2xlarge, cache.r4.4xlarge, cache.r4.8xlarge, cache.r4.16xlarge @@ -21775,6 +21827,7 @@ type User struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // Indicates the user status. Can be "active", "modifying" or "deleting". @@ -21871,6 +21924,7 @@ type UserGroup struct { // The current supported value is Redis. Engine *string `type:"string"` + // The minimum engine version required, which is Redis 6.0 MinimumEngineVersion *string `type:"string"` // A list of updates being applied to the user group. diff --git a/service/imagebuilder/api.go b/service/imagebuilder/api.go index df4479d215..06eff4f3f7 100644 --- a/service/imagebuilder/api.go +++ b/service/imagebuilder/api.go @@ -1269,7 +1269,7 @@ func (c *Imagebuilder) DeleteImageRequest(input *DeleteImageInput) (req *request // * To deregister an EC2 Windows AMI, see Deregister your Windows AMI (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/deregister-ami.html) // in the Amazon EC2 Windows Guide . // -// * To delete a container image from Amazon ECR, see Deleting an image (https://docs.aws.amazon.com/https:/docs.aws.amazon.comAmazonECR/latest/userguide/delete_image.html) +// * To delete a container image from Amazon ECR, see Deleting an image (https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html) // in the Amazon ECR User Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -4773,9 +4773,9 @@ func (c *Imagebuilder) PutContainerRecipePolicyRequest(input *PutContainerRecipe // PutContainerRecipePolicy API operation for EC2 Image Builder. // // Applies a policy to a container image. We recommend that you call the RAM -// API CreateResourceShare (https://docs.aws.amazon.com/ram/latest/APIReference/API_CreateResourceShare.html) +// API CreateResourceShare (https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) // to share resources. If you call the Image Builder API PutContainerImagePolicy, -// you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) +// you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) // in order for the resource to be visible to all principals with whom the resource // is shared. // @@ -5802,8 +5802,8 @@ type AmiDistributionConfiguration struct { // The tags to apply to AMIs distributed to this Region. AmiTags map[string]*string `locationName:"amiTags" min:"1" type:"map"` - // The description of the distribution configuration. Minimum and maximum length - // are in characters. + // The description of the AMI distribution configuration. Minimum and maximum + // length are in characters. Description *string `locationName:"description" min:"1" type:"string"` // The KMS key identifier used to encrypt the distributed image. @@ -13197,6 +13197,15 @@ func (s *InvalidVersionNumberException) RequestID() string { type LaunchPermissionConfiguration struct { _ struct{} `type:"structure"` + // The ARN for an Amazon Web Services Organization that you want to share your + // AMI with. For more information, see What is Organizations? (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html). + OrganizationArns []*string `locationName:"organizationArns" min:"1" type:"list"` + + // The ARN for an Organizations organizational unit (OU) that you want to share + // your AMI with. For more information about key concepts for Organizations, + // see Organizations terminology and concepts (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html). + OrganizationalUnitArns []*string `locationName:"organizationalUnitArns" min:"1" type:"list"` + // The name of the group. UserGroups []*string `locationName:"userGroups" type:"list"` @@ -13225,6 +13234,12 @@ func (s LaunchPermissionConfiguration) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *LaunchPermissionConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LaunchPermissionConfiguration"} + if s.OrganizationArns != nil && len(s.OrganizationArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationArns", 1)) + } + if s.OrganizationalUnitArns != nil && len(s.OrganizationalUnitArns) < 1 { + invalidParams.Add(request.NewErrParamMinLen("OrganizationalUnitArns", 1)) + } if s.UserIds != nil && len(s.UserIds) < 1 { invalidParams.Add(request.NewErrParamMinLen("UserIds", 1)) } @@ -13235,6 +13250,18 @@ func (s *LaunchPermissionConfiguration) Validate() error { return nil } +// SetOrganizationArns sets the OrganizationArns field's value. +func (s *LaunchPermissionConfiguration) SetOrganizationArns(v []*string) *LaunchPermissionConfiguration { + s.OrganizationArns = v + return s +} + +// SetOrganizationalUnitArns sets the OrganizationalUnitArns field's value. +func (s *LaunchPermissionConfiguration) SetOrganizationalUnitArns(v []*string) *LaunchPermissionConfiguration { + s.OrganizationalUnitArns = v + return s +} + // SetUserGroups sets the UserGroups field's value. func (s *LaunchPermissionConfiguration) SetUserGroups(v []*string) *LaunchPermissionConfiguration { s.UserGroups = v diff --git a/service/iotsitewise/api.go b/service/iotsitewise/api.go index 1871030c85..3653b1eebb 100644 --- a/service/iotsitewise/api.go +++ b/service/iotsitewise/api.go @@ -125,6 +125,107 @@ func (c *IoTSiteWise) AssociateAssetsWithContext(ctx aws.Context, input *Associa return out, req.Send() } +const opAssociateTimeSeriesToAssetProperty = "AssociateTimeSeriesToAssetProperty" + +// AssociateTimeSeriesToAssetPropertyRequest generates a "aws/request.Request" representing the +// client's request for the AssociateTimeSeriesToAssetProperty 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 AssociateTimeSeriesToAssetProperty for more information on using the AssociateTimeSeriesToAssetProperty +// 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 AssociateTimeSeriesToAssetPropertyRequest method. +// req, resp := client.AssociateTimeSeriesToAssetPropertyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/AssociateTimeSeriesToAssetProperty +func (c *IoTSiteWise) AssociateTimeSeriesToAssetPropertyRequest(input *AssociateTimeSeriesToAssetPropertyInput) (req *request.Request, output *AssociateTimeSeriesToAssetPropertyOutput) { + op := &request.Operation{ + Name: opAssociateTimeSeriesToAssetProperty, + HTTPMethod: "POST", + HTTPPath: "/timeseries/associate/", + } + + if input == nil { + input = &AssociateTimeSeriesToAssetPropertyInput{} + } + + output = &AssociateTimeSeriesToAssetPropertyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// AssociateTimeSeriesToAssetProperty API operation for AWS IoT SiteWise. +// +// Associates a time series (data stream) with an asset property. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation AssociateTimeSeriesToAssetProperty for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/AssociateTimeSeriesToAssetProperty +func (c *IoTSiteWise) AssociateTimeSeriesToAssetProperty(input *AssociateTimeSeriesToAssetPropertyInput) (*AssociateTimeSeriesToAssetPropertyOutput, error) { + req, out := c.AssociateTimeSeriesToAssetPropertyRequest(input) + return out, req.Send() +} + +// AssociateTimeSeriesToAssetPropertyWithContext is the same as AssociateTimeSeriesToAssetProperty with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateTimeSeriesToAssetProperty 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 *IoTSiteWise) AssociateTimeSeriesToAssetPropertyWithContext(ctx aws.Context, input *AssociateTimeSeriesToAssetPropertyInput, opts ...request.Option) (*AssociateTimeSeriesToAssetPropertyOutput, error) { + req, out := c.AssociateTimeSeriesToAssetPropertyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opBatchAssociateProjectAssets = "BatchAssociateProjectAssets" // BatchAssociateProjectAssetsRequest generates a "aws/request.Request" representing the @@ -1164,6 +1265,9 @@ func (c *IoTSiteWise) CreateProjectRequest(input *CreateProjectInput) (req *requ // // Creates a project in the specified portal. // +// Make sure that the project name and description don't contain confidential +// information. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1921,6 +2025,118 @@ func (c *IoTSiteWise) DeleteProjectWithContext(ctx aws.Context, input *DeletePro return out, req.Send() } +const opDeleteTimeSeries = "DeleteTimeSeries" + +// DeleteTimeSeriesRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTimeSeries 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 DeleteTimeSeries for more information on using the DeleteTimeSeries +// 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 DeleteTimeSeriesRequest method. +// req, resp := client.DeleteTimeSeriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteTimeSeries +func (c *IoTSiteWise) DeleteTimeSeriesRequest(input *DeleteTimeSeriesInput) (req *request.Request, output *DeleteTimeSeriesOutput) { + op := &request.Operation{ + Name: opDeleteTimeSeries, + HTTPMethod: "POST", + HTTPPath: "/timeseries/delete/", + } + + if input == nil { + input = &DeleteTimeSeriesInput{} + } + + output = &DeleteTimeSeriesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DeleteTimeSeries API operation for AWS IoT SiteWise. +// +// Deletes a time series (data stream). If you delete a time series that's associated +// with an asset property, the asset property still exists, but the time series +// will no longer be associated with this asset property. +// +// To identify a time series, do one of the following: +// +// * If the time series isn't associated with an asset property, specify +// the alias of the time series. +// +// * If the time series is associated with an asset property, specify one +// of the following: The alias of the time series. The assetId and propertyId +// that identifies the asset property. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation DeleteTimeSeries for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteTimeSeries +func (c *IoTSiteWise) DeleteTimeSeries(input *DeleteTimeSeriesInput) (*DeleteTimeSeriesOutput, error) { + req, out := c.DeleteTimeSeriesRequest(input) + return out, req.Send() +} + +// DeleteTimeSeriesWithContext is the same as DeleteTimeSeries with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTimeSeries 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 *IoTSiteWise) DeleteTimeSeriesWithContext(ctx aws.Context, input *DeleteTimeSeriesInput, opts ...request.Option) (*DeleteTimeSeriesOutput, error) { + req, out := c.DeleteTimeSeriesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeAccessPolicy = "DescribeAccessPolicy" // DescribeAccessPolicyRequest generates a "aws/request.Request" representing the @@ -3099,62 +3315,69 @@ func (c *IoTSiteWise) DescribeStorageConfigurationWithContext(ctx aws.Context, i return out, req.Send() } -const opDisassociateAssets = "DisassociateAssets" +const opDescribeTimeSeries = "DescribeTimeSeries" -// DisassociateAssetsRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateAssets operation. The "output" return +// DescribeTimeSeriesRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTimeSeries 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 DisassociateAssets for more information on using the DisassociateAssets +// See DescribeTimeSeries for more information on using the DescribeTimeSeries // 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 DisassociateAssetsRequest method. -// req, resp := client.DisassociateAssetsRequest(params) +// // Example sending a request using the DescribeTimeSeriesRequest method. +// req, resp := client.DescribeTimeSeriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets -func (c *IoTSiteWise) DisassociateAssetsRequest(input *DisassociateAssetsInput) (req *request.Request, output *DisassociateAssetsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeTimeSeries +func (c *IoTSiteWise) DescribeTimeSeriesRequest(input *DescribeTimeSeriesInput) (req *request.Request, output *DescribeTimeSeriesOutput) { op := &request.Operation{ - Name: opDisassociateAssets, - HTTPMethod: "POST", - HTTPPath: "/assets/{assetId}/disassociate", + Name: opDescribeTimeSeries, + HTTPMethod: "GET", + HTTPPath: "/timeseries/describe/", } if input == nil { - input = &DisassociateAssetsInput{} + input = &DescribeTimeSeriesInput{} } - output = &DisassociateAssetsOutput{} + output = &DescribeTimeSeriesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DisassociateAssets API operation for AWS IoT SiteWise. +// DescribeTimeSeries API operation for AWS IoT SiteWise. // -// Disassociates a child asset from the given parent asset through a hierarchy -// defined in the parent asset's model. +// Retrieves information about a time series (data stream). +// +// To identify a time series, do one of the following: +// +// * If the time series isn't associated with an asset property, specify +// the alias of the time series. +// +// * If the time series is associated with an asset property, specify one +// of the following: The alias of the time series. The assetId and propertyId +// that identifies the asset property. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation DisassociateAssets for usage and error information. +// API operation DescribeTimeSeries for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3175,101 +3398,84 @@ func (c *IoTSiteWise) DisassociateAssetsRequest(input *DisassociateAssetsInput) // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets -func (c *IoTSiteWise) DisassociateAssets(input *DisassociateAssetsInput) (*DisassociateAssetsOutput, error) { - req, out := c.DisassociateAssetsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DescribeTimeSeries +func (c *IoTSiteWise) DescribeTimeSeries(input *DescribeTimeSeriesInput) (*DescribeTimeSeriesOutput, error) { + req, out := c.DescribeTimeSeriesRequest(input) return out, req.Send() } -// DisassociateAssetsWithContext is the same as DisassociateAssets with the addition of +// DescribeTimeSeriesWithContext is the same as DescribeTimeSeries with the addition of // the ability to pass a context and additional request options. // -// See DisassociateAssets for details on how to use this API operation. +// See DescribeTimeSeries 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 *IoTSiteWise) DisassociateAssetsWithContext(ctx aws.Context, input *DisassociateAssetsInput, opts ...request.Option) (*DisassociateAssetsOutput, error) { - req, out := c.DisassociateAssetsRequest(input) +func (c *IoTSiteWise) DescribeTimeSeriesWithContext(ctx aws.Context, input *DescribeTimeSeriesInput, opts ...request.Option) (*DescribeTimeSeriesOutput, error) { + req, out := c.DescribeTimeSeriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAssetPropertyAggregates = "GetAssetPropertyAggregates" +const opDisassociateAssets = "DisassociateAssets" -// GetAssetPropertyAggregatesRequest generates a "aws/request.Request" representing the -// client's request for the GetAssetPropertyAggregates operation. The "output" return +// DisassociateAssetsRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateAssets 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 GetAssetPropertyAggregates for more information on using the GetAssetPropertyAggregates +// See DisassociateAssets for more information on using the DisassociateAssets // 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 GetAssetPropertyAggregatesRequest method. -// req, resp := client.GetAssetPropertyAggregatesRequest(params) +// // Example sending a request using the DisassociateAssetsRequest method. +// req, resp := client.DisassociateAssetsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates -func (c *IoTSiteWise) GetAssetPropertyAggregatesRequest(input *GetAssetPropertyAggregatesInput) (req *request.Request, output *GetAssetPropertyAggregatesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets +func (c *IoTSiteWise) DisassociateAssetsRequest(input *DisassociateAssetsInput) (req *request.Request, output *DisassociateAssetsOutput) { op := &request.Operation{ - Name: opGetAssetPropertyAggregates, - HTTPMethod: "GET", - HTTPPath: "/properties/aggregates", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, + Name: opDisassociateAssets, + HTTPMethod: "POST", + HTTPPath: "/assets/{assetId}/disassociate", } if input == nil { - input = &GetAssetPropertyAggregatesInput{} + input = &DisassociateAssetsInput{} } - output = &GetAssetPropertyAggregatesOutput{} + output = &DisassociateAssetsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetAssetPropertyAggregates API operation for AWS IoT SiteWise. -// -// Gets aggregated values for an asset property. For more information, see Querying -// aggregates (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#aggregates) -// in the IoT SiteWise User Guide. -// -// To identify an asset property, you must specify one of the following: -// -// * The assetId and propertyId of an asset property. +// DisassociateAssets API operation for AWS IoT SiteWise. // -// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). -// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +// Disassociates a child asset from the given parent asset through a hierarchy +// defined in the parent asset's model. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation GetAssetPropertyAggregates for usage and error information. +// API operation DisassociateAssets for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3290,14 +3496,230 @@ func (c *IoTSiteWise) GetAssetPropertyAggregatesRequest(input *GetAssetPropertyA // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * ServiceUnavailableException -// The requested service is unavailable. +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates -func (c *IoTSiteWise) GetAssetPropertyAggregates(input *GetAssetPropertyAggregatesInput) (*GetAssetPropertyAggregatesOutput, error) { - req, out := c.GetAssetPropertyAggregatesRequest(input) - return out, req.Send() -} +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateAssets +func (c *IoTSiteWise) DisassociateAssets(input *DisassociateAssetsInput) (*DisassociateAssetsOutput, error) { + req, out := c.DisassociateAssetsRequest(input) + return out, req.Send() +} + +// DisassociateAssetsWithContext is the same as DisassociateAssets with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateAssets 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 *IoTSiteWise) DisassociateAssetsWithContext(ctx aws.Context, input *DisassociateAssetsInput, opts ...request.Option) (*DisassociateAssetsOutput, error) { + req, out := c.DisassociateAssetsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateTimeSeriesFromAssetProperty = "DisassociateTimeSeriesFromAssetProperty" + +// DisassociateTimeSeriesFromAssetPropertyRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateTimeSeriesFromAssetProperty 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 DisassociateTimeSeriesFromAssetProperty for more information on using the DisassociateTimeSeriesFromAssetProperty +// 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 DisassociateTimeSeriesFromAssetPropertyRequest method. +// req, resp := client.DisassociateTimeSeriesFromAssetPropertyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateTimeSeriesFromAssetProperty +func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyRequest(input *DisassociateTimeSeriesFromAssetPropertyInput) (req *request.Request, output *DisassociateTimeSeriesFromAssetPropertyOutput) { + op := &request.Operation{ + Name: opDisassociateTimeSeriesFromAssetProperty, + HTTPMethod: "POST", + HTTPPath: "/timeseries/disassociate/", + } + + if input == nil { + input = &DisassociateTimeSeriesFromAssetPropertyInput{} + } + + output = &DisassociateTimeSeriesFromAssetPropertyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DisassociateTimeSeriesFromAssetProperty API operation for AWS IoT SiteWise. +// +// Disassociates a time series (data stream) from an asset property. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation DisassociateTimeSeriesFromAssetProperty for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DisassociateTimeSeriesFromAssetProperty +func (c *IoTSiteWise) DisassociateTimeSeriesFromAssetProperty(input *DisassociateTimeSeriesFromAssetPropertyInput) (*DisassociateTimeSeriesFromAssetPropertyOutput, error) { + req, out := c.DisassociateTimeSeriesFromAssetPropertyRequest(input) + return out, req.Send() +} + +// DisassociateTimeSeriesFromAssetPropertyWithContext is the same as DisassociateTimeSeriesFromAssetProperty with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateTimeSeriesFromAssetProperty 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 *IoTSiteWise) DisassociateTimeSeriesFromAssetPropertyWithContext(ctx aws.Context, input *DisassociateTimeSeriesFromAssetPropertyInput, opts ...request.Option) (*DisassociateTimeSeriesFromAssetPropertyOutput, error) { + req, out := c.DisassociateTimeSeriesFromAssetPropertyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAssetPropertyAggregates = "GetAssetPropertyAggregates" + +// GetAssetPropertyAggregatesRequest generates a "aws/request.Request" representing the +// client's request for the GetAssetPropertyAggregates 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 GetAssetPropertyAggregates for more information on using the GetAssetPropertyAggregates +// 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 GetAssetPropertyAggregatesRequest method. +// req, resp := client.GetAssetPropertyAggregatesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates +func (c *IoTSiteWise) GetAssetPropertyAggregatesRequest(input *GetAssetPropertyAggregatesInput) (req *request.Request, output *GetAssetPropertyAggregatesOutput) { + op := &request.Operation{ + Name: opGetAssetPropertyAggregates, + HTTPMethod: "GET", + HTTPPath: "/properties/aggregates", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetAssetPropertyAggregatesInput{} + } + + output = &GetAssetPropertyAggregatesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetAssetPropertyAggregates API operation for AWS IoT SiteWise. +// +// Gets aggregated values for an asset property. For more information, see Querying +// aggregates (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/query-industrial-data.html#aggregates) +// in the IoT SiteWise User Guide. +// +// To identify an asset property, you must specify one of the following: +// +// * The assetId and propertyId of an asset property. +// +// * A propertyAlias, which is a data stream alias (for example, /company/windfarm/3/turbine/7/temperature). +// To define an asset property's alias, see UpdateAssetProperty (https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_UpdateAssetProperty.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation GetAssetPropertyAggregates for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * ResourceNotFoundException +// The requested resource can't be found. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ServiceUnavailableException +// The requested service is unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/GetAssetPropertyAggregates +func (c *IoTSiteWise) GetAssetPropertyAggregates(input *GetAssetPropertyAggregatesInput) (*GetAssetPropertyAggregatesOutput, error) { + req, out := c.GetAssetPropertyAggregatesRequest(input) + return out, req.Send() +} // GetAssetPropertyAggregatesWithContext is the same as GetAssetPropertyAggregates with the addition of // the ability to pass a context and additional request options. @@ -5464,68 +5886,75 @@ func (c *IoTSiteWise) ListTagsForResourceWithContext(ctx aws.Context, input *Lis return out, req.Send() } -const opPutDefaultEncryptionConfiguration = "PutDefaultEncryptionConfiguration" +const opListTimeSeries = "ListTimeSeries" -// PutDefaultEncryptionConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutDefaultEncryptionConfiguration operation. The "output" return +// ListTimeSeriesRequest generates a "aws/request.Request" representing the +// client's request for the ListTimeSeries 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 PutDefaultEncryptionConfiguration for more information on using the PutDefaultEncryptionConfiguration +// See ListTimeSeries for more information on using the ListTimeSeries // 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 PutDefaultEncryptionConfigurationRequest method. -// req, resp := client.PutDefaultEncryptionConfigurationRequest(params) +// // Example sending a request using the ListTimeSeriesRequest method. +// req, resp := client.ListTimeSeriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration -func (c *IoTSiteWise) PutDefaultEncryptionConfigurationRequest(input *PutDefaultEncryptionConfigurationInput) (req *request.Request, output *PutDefaultEncryptionConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTimeSeries +func (c *IoTSiteWise) ListTimeSeriesRequest(input *ListTimeSeriesInput) (req *request.Request, output *ListTimeSeriesOutput) { op := &request.Operation{ - Name: opPutDefaultEncryptionConfiguration, - HTTPMethod: "POST", - HTTPPath: "/configuration/account/encryption", + Name: opListTimeSeries, + HTTPMethod: "GET", + HTTPPath: "/timeseries/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutDefaultEncryptionConfigurationInput{} + input = &ListTimeSeriesInput{} } - output = &PutDefaultEncryptionConfigurationOutput{} + output = &ListTimeSeriesOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// PutDefaultEncryptionConfiguration API operation for AWS IoT SiteWise. +// ListTimeSeries API operation for AWS IoT SiteWise. // -// Sets the default encryption configuration for the Amazon Web Services account. -// For more information, see Key management (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html) -// in the IoT SiteWise User Guide. +// Retrieves a paginated list of time series (data streams). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT SiteWise's -// API operation PutDefaultEncryptionConfiguration for usage and error information. +// API operation ListTimeSeries for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request isn't valid. This can occur if your request contains malformed // JSON or unsupported characters. Check your request and try again. // +// * ResourceNotFoundException +// The requested resource can't be found. +// // * InternalFailureException // IoT SiteWise can't process your request right now. Try again later. // @@ -5537,51 +5966,198 @@ func (c *IoTSiteWise) PutDefaultEncryptionConfigurationRequest(input *PutDefault // For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) // in the IoT SiteWise User Guide. // -// * LimitExceededException -// You've reached the limit for a resource. For example, this can occur if you're -// trying to associate more than the allowed number of child assets or attempting -// to create more than the allowed number of properties for an asset model. -// -// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) -// in the IoT SiteWise User Guide. -// -// * ConflictingOperationException -// Your request has conflicting operations. This can occur if you're trying -// to perform more than one operation on the same resource at the same time. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration -func (c *IoTSiteWise) PutDefaultEncryptionConfiguration(input *PutDefaultEncryptionConfigurationInput) (*PutDefaultEncryptionConfigurationOutput, error) { - req, out := c.PutDefaultEncryptionConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListTimeSeries +func (c *IoTSiteWise) ListTimeSeries(input *ListTimeSeriesInput) (*ListTimeSeriesOutput, error) { + req, out := c.ListTimeSeriesRequest(input) return out, req.Send() } -// PutDefaultEncryptionConfigurationWithContext is the same as PutDefaultEncryptionConfiguration with the addition of +// ListTimeSeriesWithContext is the same as ListTimeSeries with the addition of // the ability to pass a context and additional request options. // -// See PutDefaultEncryptionConfiguration for details on how to use this API operation. +// See ListTimeSeries 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 *IoTSiteWise) PutDefaultEncryptionConfigurationWithContext(ctx aws.Context, input *PutDefaultEncryptionConfigurationInput, opts ...request.Option) (*PutDefaultEncryptionConfigurationOutput, error) { - req, out := c.PutDefaultEncryptionConfigurationRequest(input) +func (c *IoTSiteWise) ListTimeSeriesWithContext(ctx aws.Context, input *ListTimeSeriesInput, opts ...request.Option) (*ListTimeSeriesOutput, error) { + req, out := c.ListTimeSeriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutLoggingOptions = "PutLoggingOptions" - -// PutLoggingOptionsRequest generates a "aws/request.Request" representing the -// client's request for the PutLoggingOptions operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListTimeSeriesPages iterates over the pages of a ListTimeSeries 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 ListTimeSeries method for more information on how to use this operation. // -// See PutLoggingOptions for more information on using the PutLoggingOptions +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListTimeSeries operation. +// pageNum := 0 +// err := client.ListTimeSeriesPages(params, +// func(page *iotsitewise.ListTimeSeriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTSiteWise) ListTimeSeriesPages(input *ListTimeSeriesInput, fn func(*ListTimeSeriesOutput, bool) bool) error { + return c.ListTimeSeriesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTimeSeriesPagesWithContext same as ListTimeSeriesPages 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 *IoTSiteWise) ListTimeSeriesPagesWithContext(ctx aws.Context, input *ListTimeSeriesInput, fn func(*ListTimeSeriesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTimeSeriesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTimeSeriesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListTimeSeriesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutDefaultEncryptionConfiguration = "PutDefaultEncryptionConfiguration" + +// PutDefaultEncryptionConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutDefaultEncryptionConfiguration 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 PutDefaultEncryptionConfiguration for more information on using the PutDefaultEncryptionConfiguration +// 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 PutDefaultEncryptionConfigurationRequest method. +// req, resp := client.PutDefaultEncryptionConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration +func (c *IoTSiteWise) PutDefaultEncryptionConfigurationRequest(input *PutDefaultEncryptionConfigurationInput) (req *request.Request, output *PutDefaultEncryptionConfigurationOutput) { + op := &request.Operation{ + Name: opPutDefaultEncryptionConfiguration, + HTTPMethod: "POST", + HTTPPath: "/configuration/account/encryption", + } + + if input == nil { + input = &PutDefaultEncryptionConfigurationInput{} + } + + output = &PutDefaultEncryptionConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("api.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// PutDefaultEncryptionConfiguration API operation for AWS IoT SiteWise. +// +// Sets the default encryption configuration for the Amazon Web Services account. +// For more information, see Key management (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/key-management.html) +// in the IoT SiteWise User Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT SiteWise's +// API operation PutDefaultEncryptionConfiguration for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request isn't valid. This can occur if your request contains malformed +// JSON or unsupported characters. Check your request and try again. +// +// * InternalFailureException +// IoT SiteWise can't process your request right now. Try again later. +// +// * ThrottlingException +// Your request exceeded a rate limit. For example, you might have exceeded +// the number of IoT SiteWise assets that can be created per second, the allowed +// number of messages per second, and so on. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * LimitExceededException +// You've reached the limit for a resource. For example, this can occur if you're +// trying to associate more than the allowed number of child assets or attempting +// to create more than the allowed number of properties for an asset model. +// +// For more information, see Quotas (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/quotas.html) +// in the IoT SiteWise User Guide. +// +// * ConflictingOperationException +// Your request has conflicting operations. This can occur if you're trying +// to perform more than one operation on the same resource at the same time. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/PutDefaultEncryptionConfiguration +func (c *IoTSiteWise) PutDefaultEncryptionConfiguration(input *PutDefaultEncryptionConfigurationInput) (*PutDefaultEncryptionConfigurationOutput, error) { + req, out := c.PutDefaultEncryptionConfigurationRequest(input) + return out, req.Send() +} + +// PutDefaultEncryptionConfigurationWithContext is the same as PutDefaultEncryptionConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutDefaultEncryptionConfiguration 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 *IoTSiteWise) PutDefaultEncryptionConfigurationWithContext(ctx aws.Context, input *PutDefaultEncryptionConfigurationInput, opts ...request.Option) (*PutDefaultEncryptionConfigurationOutput, error) { + req, out := c.PutDefaultEncryptionConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutLoggingOptions = "PutLoggingOptions" + +// PutLoggingOptionsRequest generates a "aws/request.Request" representing the +// client's request for the PutLoggingOptions 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 PutLoggingOptions for more information on using the PutLoggingOptions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration @@ -8702,6 +9278,125 @@ func (s AssociateAssetsOutput) GoString() string { return s.String() } +type AssociateTimeSeriesToAssetPropertyInput struct { + _ struct{} `type:"structure"` + + // The alias that identifies the time series. + // + // Alias is a required field + Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string" required:"true"` + + // The ID of the asset in which the asset property was created. + // + // AssetId is a required field + AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string" required:"true"` + + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + + // The ID of the asset property. + // + // PropertyId is a required field + PropertyId *string `location:"querystring" locationName:"propertyId" min:"36" 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 AssociateTimeSeriesToAssetPropertyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateTimeSeriesToAssetPropertyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateTimeSeriesToAssetPropertyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateTimeSeriesToAssetPropertyInput"} + if s.Alias == nil { + invalidParams.Add(request.NewErrParamRequired("Alias")) + } + if s.Alias != nil && len(*s.Alias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) + } + if s.AssetId == nil { + invalidParams.Add(request.NewErrParamRequired("AssetId")) + } + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) + } + if s.PropertyId == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyId")) + } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlias sets the Alias field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetAlias(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.Alias = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetAssetId(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.AssetId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetClientToken(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.ClientToken = &v + return s +} + +// SetPropertyId sets the PropertyId field's value. +func (s *AssociateTimeSeriesToAssetPropertyInput) SetPropertyId(v string) *AssociateTimeSeriesToAssetPropertyInput { + s.PropertyId = &v + return s +} + +type AssociateTimeSeriesToAssetPropertyOutput 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 AssociateTimeSeriesToAssetPropertyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AssociateTimeSeriesToAssetPropertyOutput) GoString() string { + return s.String() +} + // Contains a summary of an associated asset. type AssociatedAssetsSummary struct { _ struct{} `type:"structure"` @@ -11540,11 +12235,115 @@ func (s DeleteProjectOutput) GoString() string { return s.String() } -type DescribeAccessPolicyInput struct { - _ struct{} `type:"structure" nopayload:"true"` +type DeleteTimeSeriesInput struct { + _ struct{} `type:"structure"` - // The ID of the access policy. - // + // The alias that identifies the time series. + Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string"` + + // The ID of the asset in which the asset property was created. + AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string"` + + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + + // The ID of the asset property. + PropertyId *string `location:"querystring" locationName:"propertyId" min:"36" 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 DeleteTimeSeriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteTimeSeriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTimeSeriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTimeSeriesInput"} + if s.Alias != nil && len(*s.Alias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) + } + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) + } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlias sets the Alias field's value. +func (s *DeleteTimeSeriesInput) SetAlias(v string) *DeleteTimeSeriesInput { + s.Alias = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *DeleteTimeSeriesInput) SetAssetId(v string) *DeleteTimeSeriesInput { + s.AssetId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *DeleteTimeSeriesInput) SetClientToken(v string) *DeleteTimeSeriesInput { + s.ClientToken = &v + return s +} + +// SetPropertyId sets the PropertyId field's value. +func (s *DeleteTimeSeriesInput) SetPropertyId(v string) *DeleteTimeSeriesInput { + s.PropertyId = &v + return s +} + +type DeleteTimeSeriesOutput 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 DeleteTimeSeriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteTimeSeriesOutput) GoString() string { + return s.String() +} + +type DescribeAccessPolicyInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the access policy. + // // AccessPolicyId is a required field AccessPolicyId *string `location:"uri" locationName:"accessPolicyId" min:"36" type:"string" required:"true"` } @@ -12411,8 +13210,8 @@ type DescribeDefaultEncryptionConfigurationOutput struct { // EncryptionType is a required field EncryptionType *string `locationName:"encryptionType" type:"string" required:"true" enum:"EncryptionType"` - // The key ARN of the customer managed customer master key (CMK) used for KMS - // encryption if you use KMS_BASED_ENCRYPTION. + // The key ARN of the customer managed key used for KMS encryption if you use + // KMS_BASED_ENCRYPTION. KmsKeyArn *string `locationName:"kmsKeyArn" min:"1" type:"string"` } @@ -13219,6 +14018,21 @@ type DescribeStorageConfigurationOutput struct { // ConfigurationStatus is a required field ConfigurationStatus *ConfigurationStatus `locationName:"configurationStatus" type:"structure" required:"true"` + // Contains the storage configuration for time series (data streams) that aren't + // associated with asset properties. The disassociatedDataStorage can be one + // of the following values: + // + // * ENABLED – IoT SiteWise accepts time series that aren't associated + // with asset properties. After the disassociatedDataStorage is enabled, + // you can't disable it. + // + // * DISABLED – IoT SiteWise doesn't accept time series (data streams) + // that aren't associated with asset properties. + // + // For more information, see Data streams (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/data-streams.html) + // in the IoT SiteWise User Guide. + DisassociatedDataStorage *string `locationName:"disassociatedDataStorage" type:"string" enum:"DisassociatedDataStorageState"` + // The date the storage configuration was last updated, in Unix epoch time. LastUpdateDate *time.Time `locationName:"lastUpdateDate" type:"timestamp"` @@ -13263,6 +14077,12 @@ func (s *DescribeStorageConfigurationOutput) SetConfigurationStatus(v *Configura return s } +// SetDisassociatedDataStorage sets the DisassociatedDataStorage field's value. +func (s *DescribeStorageConfigurationOutput) SetDisassociatedDataStorage(v string) *DescribeStorageConfigurationOutput { + s.DisassociatedDataStorage = &v + return s +} + // SetLastUpdateDate sets the LastUpdateDate field's value. func (s *DescribeStorageConfigurationOutput) SetLastUpdateDate(v time.Time) *DescribeStorageConfigurationOutput { s.LastUpdateDate = &v @@ -13281,6 +14101,184 @@ func (s *DescribeStorageConfigurationOutput) SetStorageType(v string) *DescribeS return s } +type DescribeTimeSeriesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The alias that identifies the time series. + Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string"` + + // The ID of the asset in which the asset property was created. + AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string"` + + // The ID of the asset property. + PropertyId *string `location:"querystring" locationName:"propertyId" min:"36" 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 DescribeTimeSeriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeTimeSeriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTimeSeriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTimeSeriesInput"} + if s.Alias != nil && len(*s.Alias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) + } + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAlias sets the Alias field's value. +func (s *DescribeTimeSeriesInput) SetAlias(v string) *DescribeTimeSeriesInput { + s.Alias = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *DescribeTimeSeriesInput) SetAssetId(v string) *DescribeTimeSeriesInput { + s.AssetId = &v + return s +} + +// SetPropertyId sets the PropertyId field's value. +func (s *DescribeTimeSeriesInput) SetPropertyId(v string) *DescribeTimeSeriesInput { + s.PropertyId = &v + return s +} + +type DescribeTimeSeriesOutput struct { + _ struct{} `type:"structure"` + + // The alias that identifies the time series. + Alias *string `locationName:"alias" min:"1" type:"string"` + + // The ID of the asset in which the asset property was created. + AssetId *string `locationName:"assetId" min:"36" type:"string"` + + // The data type of the time series. + // + // If you specify STRUCT, you must also specify dataTypeSpec to identify the + // type of the structure for this time series. + // + // DataType is a required field + DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` + + // The data type of the structure for this time series. This parameter is required + // for time series that have the STRUCT data type. + // + // The options for this parameter depend on the type of the composite model + // in which you created the asset property that is associated with your time + // series. Use AWS/ALARM_STATE for alarm state in alarm composite models. + DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` + + // The ID of the asset property. + PropertyId *string `locationName:"propertyId" min:"36" type:"string"` + + // The date that the time series was created, in Unix epoch time. + // + // TimeSeriesCreationDate is a required field + TimeSeriesCreationDate *time.Time `locationName:"timeSeriesCreationDate" type:"timestamp" required:"true"` + + // The ID of the time series. + // + // TimeSeriesId is a required field + TimeSeriesId *string `locationName:"timeSeriesId" min:"36" type:"string" required:"true"` + + // The date that the time series was last updated, in Unix epoch time. + // + // TimeSeriesLastUpdateDate is a required field + TimeSeriesLastUpdateDate *time.Time `locationName:"timeSeriesLastUpdateDate" type:"timestamp" 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 DescribeTimeSeriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeTimeSeriesOutput) GoString() string { + return s.String() +} + +// SetAlias sets the Alias field's value. +func (s *DescribeTimeSeriesOutput) SetAlias(v string) *DescribeTimeSeriesOutput { + s.Alias = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *DescribeTimeSeriesOutput) SetAssetId(v string) *DescribeTimeSeriesOutput { + s.AssetId = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *DescribeTimeSeriesOutput) SetDataType(v string) *DescribeTimeSeriesOutput { + s.DataType = &v + return s +} + +// SetDataTypeSpec sets the DataTypeSpec field's value. +func (s *DescribeTimeSeriesOutput) SetDataTypeSpec(v string) *DescribeTimeSeriesOutput { + s.DataTypeSpec = &v + return s +} + +// SetPropertyId sets the PropertyId field's value. +func (s *DescribeTimeSeriesOutput) SetPropertyId(v string) *DescribeTimeSeriesOutput { + s.PropertyId = &v + return s +} + +// SetTimeSeriesCreationDate sets the TimeSeriesCreationDate field's value. +func (s *DescribeTimeSeriesOutput) SetTimeSeriesCreationDate(v time.Time) *DescribeTimeSeriesOutput { + s.TimeSeriesCreationDate = &v + return s +} + +// SetTimeSeriesId sets the TimeSeriesId field's value. +func (s *DescribeTimeSeriesOutput) SetTimeSeriesId(v string) *DescribeTimeSeriesOutput { + s.TimeSeriesId = &v + return s +} + +// SetTimeSeriesLastUpdateDate sets the TimeSeriesLastUpdateDate field's value. +func (s *DescribeTimeSeriesOutput) SetTimeSeriesLastUpdateDate(v time.Time) *DescribeTimeSeriesOutput { + s.TimeSeriesLastUpdateDate = &v + return s +} + // Contains detailed error information. type DetailedError struct { _ struct{} `type:"structure"` @@ -13350,8 +14348,127 @@ type DisassociateAssetsInput struct { // For more information, see Asset hierarchies (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-hierarchies.html) // in the IoT SiteWise User Guide. // - // HierarchyId is a required field - HierarchyId *string `locationName:"hierarchyId" min:"36" type:"string" required:"true"` + // HierarchyId is a required field + HierarchyId *string `locationName:"hierarchyId" min:"36" 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 DisassociateAssetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociateAssetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateAssetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateAssetsInput"} + if s.AssetId == nil { + invalidParams.Add(request.NewErrParamRequired("AssetId")) + } + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.ChildAssetId == nil { + invalidParams.Add(request.NewErrParamRequired("ChildAssetId")) + } + if s.ChildAssetId != nil && len(*s.ChildAssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ChildAssetId", 36)) + } + if s.ClientToken != nil && len(*s.ClientToken) < 36 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) + } + if s.HierarchyId == nil { + invalidParams.Add(request.NewErrParamRequired("HierarchyId")) + } + if s.HierarchyId != nil && len(*s.HierarchyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("HierarchyId", 36)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssetId sets the AssetId field's value. +func (s *DisassociateAssetsInput) SetAssetId(v string) *DisassociateAssetsInput { + s.AssetId = &v + return s +} + +// SetChildAssetId sets the ChildAssetId field's value. +func (s *DisassociateAssetsInput) SetChildAssetId(v string) *DisassociateAssetsInput { + s.ChildAssetId = &v + return s +} + +// SetClientToken sets the ClientToken field's value. +func (s *DisassociateAssetsInput) SetClientToken(v string) *DisassociateAssetsInput { + s.ClientToken = &v + return s +} + +// SetHierarchyId sets the HierarchyId field's value. +func (s *DisassociateAssetsInput) SetHierarchyId(v string) *DisassociateAssetsInput { + s.HierarchyId = &v + return s +} + +type DisassociateAssetsOutput 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 DisassociateAssetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DisassociateAssetsOutput) GoString() string { + return s.String() +} + +type DisassociateTimeSeriesFromAssetPropertyInput struct { + _ struct{} `type:"structure"` + + // The alias that identifies the time series. + // + // Alias is a required field + Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string" required:"true"` + + // The ID of the asset in which the asset property was created. + // + // AssetId is a required field + AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string" required:"true"` + + // A unique case-sensitive identifier that you can provide to ensure the idempotency + // of the request. Don't reuse this client token if a new idempotent request + // is required. + ClientToken *string `locationName:"clientToken" min:"36" type:"string" idempotencyToken:"true"` + + // The ID of the asset property. + // + // PropertyId is a required field + PropertyId *string `location:"querystring" locationName:"propertyId" min:"36" type:"string" required:"true"` } // String returns the string representation. @@ -13359,7 +14476,7 @@ type DisassociateAssetsInput 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 DisassociateAssetsInput) String() string { +func (s DisassociateTimeSeriesFromAssetPropertyInput) String() string { return awsutil.Prettify(s) } @@ -13368,33 +14485,33 @@ func (s DisassociateAssetsInput) 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 DisassociateAssetsInput) GoString() string { +func (s DisassociateTimeSeriesFromAssetPropertyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateAssetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateAssetsInput"} +func (s *DisassociateTimeSeriesFromAssetPropertyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateTimeSeriesFromAssetPropertyInput"} + if s.Alias == nil { + invalidParams.Add(request.NewErrParamRequired("Alias")) + } + if s.Alias != nil && len(*s.Alias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Alias", 1)) + } if s.AssetId == nil { invalidParams.Add(request.NewErrParamRequired("AssetId")) } if s.AssetId != nil && len(*s.AssetId) < 36 { invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) } - if s.ChildAssetId == nil { - invalidParams.Add(request.NewErrParamRequired("ChildAssetId")) - } - if s.ChildAssetId != nil && len(*s.ChildAssetId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("ChildAssetId", 36)) - } if s.ClientToken != nil && len(*s.ClientToken) < 36 { invalidParams.Add(request.NewErrParamMinLen("ClientToken", 36)) } - if s.HierarchyId == nil { - invalidParams.Add(request.NewErrParamRequired("HierarchyId")) + if s.PropertyId == nil { + invalidParams.Add(request.NewErrParamRequired("PropertyId")) } - if s.HierarchyId != nil && len(*s.HierarchyId) < 36 { - invalidParams.Add(request.NewErrParamMinLen("HierarchyId", 36)) + if s.PropertyId != nil && len(*s.PropertyId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("PropertyId", 36)) } if invalidParams.Len() > 0 { @@ -13403,31 +14520,31 @@ func (s *DisassociateAssetsInput) Validate() error { return nil } -// SetAssetId sets the AssetId field's value. -func (s *DisassociateAssetsInput) SetAssetId(v string) *DisassociateAssetsInput { - s.AssetId = &v +// SetAlias sets the Alias field's value. +func (s *DisassociateTimeSeriesFromAssetPropertyInput) SetAlias(v string) *DisassociateTimeSeriesFromAssetPropertyInput { + s.Alias = &v return s } -// SetChildAssetId sets the ChildAssetId field's value. -func (s *DisassociateAssetsInput) SetChildAssetId(v string) *DisassociateAssetsInput { - s.ChildAssetId = &v +// SetAssetId sets the AssetId field's value. +func (s *DisassociateTimeSeriesFromAssetPropertyInput) SetAssetId(v string) *DisassociateTimeSeriesFromAssetPropertyInput { + s.AssetId = &v return s } // SetClientToken sets the ClientToken field's value. -func (s *DisassociateAssetsInput) SetClientToken(v string) *DisassociateAssetsInput { +func (s *DisassociateTimeSeriesFromAssetPropertyInput) SetClientToken(v string) *DisassociateTimeSeriesFromAssetPropertyInput { s.ClientToken = &v return s } -// SetHierarchyId sets the HierarchyId field's value. -func (s *DisassociateAssetsInput) SetHierarchyId(v string) *DisassociateAssetsInput { - s.HierarchyId = &v +// SetPropertyId sets the PropertyId field's value. +func (s *DisassociateTimeSeriesFromAssetPropertyInput) SetPropertyId(v string) *DisassociateTimeSeriesFromAssetPropertyInput { + s.PropertyId = &v return s } -type DisassociateAssetsOutput struct { +type DisassociateTimeSeriesFromAssetPropertyOutput struct { _ struct{} `type:"structure"` } @@ -13436,7 +14553,7 @@ type DisassociateAssetsOutput 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 DisassociateAssetsOutput) String() string { +func (s DisassociateTimeSeriesFromAssetPropertyOutput) String() string { return awsutil.Prettify(s) } @@ -13445,7 +14562,7 @@ func (s DisassociateAssetsOutput) 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 DisassociateAssetsOutput) GoString() string { +func (s DisassociateTimeSeriesFromAssetPropertyOutput) GoString() string { return s.String() } @@ -14356,26 +15473,26 @@ type GetInterpolatedAssetPropertyValuesInput struct { // IntervalInSeconds is a required field IntervalInSeconds *int64 `location:"querystring" locationName:"intervalInSeconds" min:"1" type:"long" required:"true"` - // The query interval for the window in seconds. IoT SiteWise computes each - // interpolated value by using data points from the timestamp of each interval + // The query interval for the window, in seconds. IoT SiteWise computes each + // interpolated value by using data points from the timestamp of each interval, // minus the window to the timestamp of each interval plus the window. If not - // specified, the window is between the start time minus the interval and the - // end time plus the interval. + // specified, the window ranges between the start time minus the interval and + // the end time plus the interval. // // * If you specify a value for the intervalWindowInSeconds parameter, the - // type parameter must be LINEAR_INTERPOLATION. + // value for the type parameter must be LINEAR_INTERPOLATION. // - // * If no data point is found during the specified query window, IoT SiteWise + // * If a data point isn't found during the specified query window, IoT SiteWise // won't return an interpolated value for the interval. This indicates that // there's a gap in the ingested data points. // // For example, you can get the interpolated temperature values for a wind turbine // every 24 hours over a duration of 7 days. If the interpolation starts on // July 1, 2021, at 9 AM with a window of 2 hours, IoT SiteWise uses the data - // points from 7 AM (9 AM - 2 hours) to 11 AM (9 AM + 2 hours) on July 2, 2021 - // to compute the first interpolated value, uses the data points from 7 AM (9 - // AM - 2 hours) to 11 AM (9 AM + 2 hours) on July 3, 2021 to compute the second - // interpolated value, and so on. + // points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) on July + // 2, 2021 to compute the first interpolated value. Next, IoT SiteWise uses + // the data points from 7 AM (9 AM minus 2 hours) to 11 AM (9 AM plus 2 hours) + // on July 3, 2021 to compute the second interpolated value, and so on. IntervalWindowInSeconds *int64 `location:"querystring" locationName:"intervalWindowInSeconds" min:"1" type:"long"` // The maximum number of results to return for each paginated request. If not @@ -14417,7 +15534,7 @@ type GetInterpolatedAssetPropertyValuesInput struct { // (https://en.wikipedia.org/wiki/Linear_interpolation). For example, you // can use this operation to return the interpolated temperature values for // a wind turbine every 24 hours over a duration of 7 days. If the interpolation - // starts on July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated + // starts July 1, 2021, at 9 AM, IoT SiteWise returns the first interpolated // value on July 2, 2021, at 9 AM, the second interpolated value on July // 3, 2021, at 9 AM, and so on. // @@ -14426,11 +15543,11 @@ type GetInterpolatedAssetPropertyValuesInput struct { // IoT SiteWise returns the last observed data point for the previous interval // and carries forward this interpolated value until a new data point is // found. For example, you can get the state of an on-off valve every 24 - // hours over a duration of 7 days. If the interpolation starts on July 1, - // 2021, at 9 AM, IoT SiteWise returns the last observed data point between - // July 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated - // value. If no data point is found after 9 AM on July 2, 2021, IoT SiteWise - // uses the same interpolated value for the rest of the days. + // hours over a duration of 7 days. If the interpolation starts July 1, 2021, + // at 9 AM, IoT SiteWise returns the last observed data point between July + // 1, 2021, at 9 AM and July 2, 2021, at 9 AM as the first interpolated value. + // If a data point isn't found after 9 AM on July 2, 2021, IoT SiteWise uses + // the same interpolated value for the rest of the days. // // Type is a required field Type *string `location:"querystring" locationName:"type" min:"1" type:"string" required:"true"` @@ -16732,6 +17849,143 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +type ListTimeSeriesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The alias prefix of the time series. + AliasPrefix *string `location:"querystring" locationName:"aliasPrefix" min:"1" type:"string"` + + // The ID of the asset in which the asset property was created. + AssetId *string `location:"querystring" locationName:"assetId" min:"36" type:"string"` + + // The maximum number of results to return for each paginated request. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token to be used for the next set of paginated results. + NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` + + // The type of the time series. The time series type can be one of the following + // values: + // + // * ASSOCIATED – The time series is associated with an asset property. + // + // * DISASSOCIATED – The time series isn't associated with any asset property. + TimeSeriesType *string `location:"querystring" locationName:"timeSeriesType" type:"string" enum:"ListTimeSeriesType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTimeSeriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTimeSeriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTimeSeriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTimeSeriesInput"} + if s.AliasPrefix != nil && len(*s.AliasPrefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AliasPrefix", 1)) + } + if s.AssetId != nil && len(*s.AssetId) < 36 { + invalidParams.Add(request.NewErrParamMinLen("AssetId", 36)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAliasPrefix sets the AliasPrefix field's value. +func (s *ListTimeSeriesInput) SetAliasPrefix(v string) *ListTimeSeriesInput { + s.AliasPrefix = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *ListTimeSeriesInput) SetAssetId(v string) *ListTimeSeriesInput { + s.AssetId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTimeSeriesInput) SetMaxResults(v int64) *ListTimeSeriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTimeSeriesInput) SetNextToken(v string) *ListTimeSeriesInput { + s.NextToken = &v + return s +} + +// SetTimeSeriesType sets the TimeSeriesType field's value. +func (s *ListTimeSeriesInput) SetTimeSeriesType(v string) *ListTimeSeriesInput { + s.TimeSeriesType = &v + return s +} + +type ListTimeSeriesOutput struct { + _ struct{} `type:"structure"` + + // The token for the next set of results, or null if there are no additional + // results. + NextToken *string `locationName:"nextToken" min:"1" type:"string"` + + // One or more time series summaries to list. + // + // TimeSeriesSummaries is a required field + TimeSeriesSummaries []*TimeSeriesSummary `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 ListTimeSeriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListTimeSeriesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTimeSeriesOutput) SetNextToken(v string) *ListTimeSeriesOutput { + s.NextToken = &v + return s +} + +// SetTimeSeriesSummaries sets the TimeSeriesSummaries field's value. +func (s *ListTimeSeriesOutput) SetTimeSeriesSummaries(v []*TimeSeriesSummary) *ListTimeSeriesOutput { + s.TimeSeriesSummaries = v + return s +} + // Contains logging options. type LoggingOptions struct { _ struct{} `type:"structure"` @@ -17894,8 +19148,8 @@ type PutDefaultEncryptionConfigurationInput struct { // EncryptionType is a required field EncryptionType *string `locationName:"encryptionType" type:"string" required:"true" enum:"EncryptionType"` - // The Key ID of the customer managed customer master key (CMK) used for KMS - // encryption. This is required if you use KMS_BASED_ENCRYPTION. + // The Key ID of the customer managed key used for KMS encryption. This is required + // if you use KMS_BASED_ENCRYPTION. KmsKeyId *string `locationName:"kmsKeyId" min:"1" type:"string"` } @@ -17959,7 +19213,7 @@ type PutDefaultEncryptionConfigurationOutput struct { // EncryptionType is a required field EncryptionType *string `locationName:"encryptionType" type:"string" required:"true" enum:"EncryptionType"` - // The Key ARN of the KMS CMK used for KMS encryption if you use KMS_BASED_ENCRYPTION. + // The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION. KmsKeyArn *string `locationName:"kmsKeyArn" min:"1" type:"string"` } @@ -18075,6 +19329,21 @@ func (s PutLoggingOptionsOutput) GoString() string { type PutStorageConfigurationInput struct { _ struct{} `type:"structure"` + // Contains the storage configuration for time series (data streams) that aren't + // associated with asset properties. The disassociatedDataStorage can be one + // of the following values: + // + // * ENABLED – IoT SiteWise accepts time series that aren't associated + // with asset properties. After the disassociatedDataStorage is enabled, + // you can't disable it. + // + // * DISABLED – IoT SiteWise doesn't accept time series (data streams) + // that aren't associated with asset properties. + // + // For more information, see Data streams (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/data-streams.html) + // in the IoT SiteWise User Guide. + DisassociatedDataStorage *string `locationName:"disassociatedDataStorage" type:"string" enum:"DisassociatedDataStorageState"` + // Identifies a storage destination. If you specified MULTI_LAYER_STORAGE for // the storage type, you must specify a MultiLayerStorage object. MultiLayerStorage *MultiLayerStorage `locationName:"multiLayerStorage" type:"structure"` @@ -18129,6 +19398,12 @@ func (s *PutStorageConfigurationInput) Validate() error { return nil } +// SetDisassociatedDataStorage sets the DisassociatedDataStorage field's value. +func (s *PutStorageConfigurationInput) SetDisassociatedDataStorage(v string) *PutStorageConfigurationInput { + s.DisassociatedDataStorage = &v + return s +} + // SetMultiLayerStorage sets the MultiLayerStorage field's value. func (s *PutStorageConfigurationInput) SetMultiLayerStorage(v *MultiLayerStorage) *PutStorageConfigurationInput { s.MultiLayerStorage = v @@ -18149,6 +19424,21 @@ type PutStorageConfigurationOutput struct { // ConfigurationStatus is a required field ConfigurationStatus *ConfigurationStatus `locationName:"configurationStatus" type:"structure" required:"true"` + // Contains the storage configuration for time series (data streams) that aren't + // associated with asset properties. The disassociatedDataStorage can be one + // of the following values: + // + // * ENABLED – IoT SiteWise accepts time series that aren't associated + // with asset properties. After the disassociatedDataStorage is enabled, + // you can't disable it. + // + // * DISABLED – IoT SiteWise doesn't accept time series (data streams) + // that aren't associated with asset properties. + // + // For more information, see Data streams (https://docs.aws.amazon.com/iot-sitewise/latest/userguide/data-streams.html) + // in the IoT SiteWise User Guide. + DisassociatedDataStorage *string `locationName:"disassociatedDataStorage" type:"string" enum:"DisassociatedDataStorageState"` + // Contains information about the storage destination. MultiLayerStorage *MultiLayerStorage `locationName:"multiLayerStorage" type:"structure"` @@ -18190,6 +19480,12 @@ func (s *PutStorageConfigurationOutput) SetConfigurationStatus(v *ConfigurationS return s } +// SetDisassociatedDataStorage sets the DisassociatedDataStorage field's value. +func (s *PutStorageConfigurationOutput) SetDisassociatedDataStorage(v string) *PutStorageConfigurationOutput { + s.DisassociatedDataStorage = &v + return s +} + // SetMultiLayerStorage sets the MultiLayerStorage field's value. func (s *PutStorageConfigurationOutput) SetMultiLayerStorage(v *MultiLayerStorage) *PutStorageConfigurationOutput { s.MultiLayerStorage = v @@ -18685,6 +19981,117 @@ func (s *TimeInNanos) SetTimeInSeconds(v int64) *TimeInNanos { return s } +// Contains a summary of a time series (data stream). +type TimeSeriesSummary struct { + _ struct{} `type:"structure"` + + // The alias that identifies the time series. + Alias *string `locationName:"alias" min:"1" type:"string"` + + // The ID of the asset in which the asset property was created. + AssetId *string `locationName:"assetId" min:"36" type:"string"` + + // The data type of the time series. + // + // If you specify STRUCT, you must also specify dataTypeSpec to identify the + // type of the structure for this time series. + // + // DataType is a required field + DataType *string `locationName:"dataType" type:"string" required:"true" enum:"PropertyDataType"` + + // The data type of the structure for this time series. This parameter is required + // for time series that have the STRUCT data type. + // + // The options for this parameter depend on the type of the composite model + // in which you created the asset property that is associated with your time + // series. Use AWS/ALARM_STATE for alarm state in alarm composite models. + DataTypeSpec *string `locationName:"dataTypeSpec" min:"1" type:"string"` + + // The ID of the asset property. + PropertyId *string `locationName:"propertyId" min:"36" type:"string"` + + // The date that the time series was created, in Unix epoch time. + // + // TimeSeriesCreationDate is a required field + TimeSeriesCreationDate *time.Time `locationName:"timeSeriesCreationDate" type:"timestamp" required:"true"` + + // The ID of the time series. + // + // TimeSeriesId is a required field + TimeSeriesId *string `locationName:"timeSeriesId" min:"36" type:"string" required:"true"` + + // The date that the time series was last updated, in Unix epoch time. + // + // TimeSeriesLastUpdateDate is a required field + TimeSeriesLastUpdateDate *time.Time `locationName:"timeSeriesLastUpdateDate" type:"timestamp" 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 TimeSeriesSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimeSeriesSummary) GoString() string { + return s.String() +} + +// SetAlias sets the Alias field's value. +func (s *TimeSeriesSummary) SetAlias(v string) *TimeSeriesSummary { + s.Alias = &v + return s +} + +// SetAssetId sets the AssetId field's value. +func (s *TimeSeriesSummary) SetAssetId(v string) *TimeSeriesSummary { + s.AssetId = &v + return s +} + +// SetDataType sets the DataType field's value. +func (s *TimeSeriesSummary) SetDataType(v string) *TimeSeriesSummary { + s.DataType = &v + return s +} + +// SetDataTypeSpec sets the DataTypeSpec field's value. +func (s *TimeSeriesSummary) SetDataTypeSpec(v string) *TimeSeriesSummary { + s.DataTypeSpec = &v + return s +} + +// SetPropertyId sets the PropertyId field's value. +func (s *TimeSeriesSummary) SetPropertyId(v string) *TimeSeriesSummary { + s.PropertyId = &v + return s +} + +// SetTimeSeriesCreationDate sets the TimeSeriesCreationDate field's value. +func (s *TimeSeriesSummary) SetTimeSeriesCreationDate(v time.Time) *TimeSeriesSummary { + s.TimeSeriesCreationDate = &v + return s +} + +// SetTimeSeriesId sets the TimeSeriesId field's value. +func (s *TimeSeriesSummary) SetTimeSeriesId(v string) *TimeSeriesSummary { + s.TimeSeriesId = &v + return s +} + +// SetTimeSeriesLastUpdateDate sets the TimeSeriesLastUpdateDate field's value. +func (s *TimeSeriesSummary) SetTimeSeriesLastUpdateDate(v time.Time) *TimeSeriesSummary { + s.TimeSeriesLastUpdateDate = &v + return s +} + // You've reached the limit for the number of tags allowed for a resource. For // more information, see Tag naming limits and requirements (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html#tag-conventions) // in the Amazon Web Services General Reference. @@ -18923,16 +20330,16 @@ func (s *TransformProcessingConfig) SetForwardingConfig(v *ForwardingConfig) *Tr } // Contains a tumbling window, which is a repeating fixed-sized, non-overlapping, -// and contiguous time window. You use this window in metrics to aggregate data -// from properties and other assets. +// and contiguous time window. You can use this window in metrics to aggregate +// data from properties and other assets. // // You can use m, h, d, and w when you specify an interval or offset. Note that -// m represents minutes, and w represents weeks. You can also use s to represent -// seconds in offset. +// m represents minutes, h represents hours, d represents days, and w represents +// weeks. You can also use s to represent seconds in offset. // // The interval and offset parameters support the ISO 8601 format (https://en.wikipedia.org/wiki/ISO_8601). -// For example, PT5S represents five seconds, PT5M represents five minutes, -// and PT5H represents five hours. +// For example, PT5S represents 5 seconds, PT5M represents 5 minutes, and PT5H +// represents 5 hours. type TumblingWindow struct { _ struct{} `type:"structure"` @@ -18954,28 +20361,28 @@ type TumblingWindow struct { // // * The offset time. For example, if you specify 18h for offset and 1d for // interval, IoT SiteWise aggregates data in one of the following ways: If - // you create the metric before or at 6:00 PM (UTC), you get the first aggregation + // you create the metric before or at 6 PM (UTC), you get the first aggregation // result at 6 PM (UTC) on the day when you create the metric. If you create - // the metric after 6:00 PM (UTC), you get the first aggregation result at - // 6 PM (UTC) the next day. + // the metric after 6 PM (UTC), you get the first aggregation result at 6 + // PM (UTC) the next day. // // * The ISO 8601 format. For example, if you specify PT18H for offset and // 1d for interval, IoT SiteWise aggregates data in one of the following - // ways: If you create the metric before or at 6:00 PM (UTC), you get the - // first aggregation result at 6 PM (UTC) on the day when you create the - // metric. If you create the metric after 6:00 PM (UTC), you get the first - // aggregation result at 6 PM (UTC) the next day. + // ways: If you create the metric before or at 6 PM (UTC), you get the first + // aggregation result at 6 PM (UTC) on the day when you create the metric. + // If you create the metric after 6 PM (UTC), you get the first aggregation + // result at 6 PM (UTC) the next day. // - // * The 24-hour clock. For example, if you specify 00:03:00 for offset and + // * The 24-hour clock. For example, if you specify 00:03:00 for offset, // 5m for interval, and you create the metric at 2 PM (UTC), you get the // first aggregation result at 2:03 PM (UTC). You get the second aggregation // result at 2:08 PM (UTC). // // * The offset time zone. For example, if you specify 2021-07-23T18:00-08 // for offset and 1d for interval, IoT SiteWise aggregates data in one of - // the following ways: If you create the metric before or at 6:00 PM (PST), + // the following ways: If you create the metric before or at 6 PM (PST), // you get the first aggregation result at 6 PM (PST) on the day when you - // create the metric. If you create the metric after 6:00 PM (PST), you get + // create the metric. If you create the metric after 6 PM (PST), you get // the first aggregation result at 6 PM (PST) the next day. Offset *string `locationName:"offset" min:"2" type:"string"` } @@ -20884,6 +22291,22 @@ func DetailedErrorCode_Values() []string { } } +const ( + // DisassociatedDataStorageStateEnabled is a DisassociatedDataStorageState enum value + DisassociatedDataStorageStateEnabled = "ENABLED" + + // DisassociatedDataStorageStateDisabled is a DisassociatedDataStorageState enum value + DisassociatedDataStorageStateDisabled = "DISABLED" +) + +// DisassociatedDataStorageState_Values returns all elements of the DisassociatedDataStorageState enum +func DisassociatedDataStorageState_Values() []string { + return []string{ + DisassociatedDataStorageStateEnabled, + DisassociatedDataStorageStateDisabled, + } +} + const ( // EncryptionTypeSitewiseDefaultEncryption is a EncryptionType enum value EncryptionTypeSitewiseDefaultEncryption = "SITEWISE_DEFAULT_ENCRYPTION" @@ -20980,6 +22403,22 @@ func ListAssetsFilter_Values() []string { } } +const ( + // ListTimeSeriesTypeAssociated is a ListTimeSeriesType enum value + ListTimeSeriesTypeAssociated = "ASSOCIATED" + + // ListTimeSeriesTypeDisassociated is a ListTimeSeriesType enum value + ListTimeSeriesTypeDisassociated = "DISASSOCIATED" +) + +// ListTimeSeriesType_Values returns all elements of the ListTimeSeriesType enum +func ListTimeSeriesType_Values() []string { + return []string{ + ListTimeSeriesTypeAssociated, + ListTimeSeriesTypeDisassociated, + } +} + const ( // LoggingLevelError is a LoggingLevel enum value LoggingLevelError = "ERROR" diff --git a/service/iotsitewise/iotsitewiseiface/interface.go b/service/iotsitewise/iotsitewiseiface/interface.go index c48e5c3315..5059004fca 100644 --- a/service/iotsitewise/iotsitewiseiface/interface.go +++ b/service/iotsitewise/iotsitewiseiface/interface.go @@ -64,6 +64,10 @@ type IoTSiteWiseAPI interface { AssociateAssetsWithContext(aws.Context, *iotsitewise.AssociateAssetsInput, ...request.Option) (*iotsitewise.AssociateAssetsOutput, error) AssociateAssetsRequest(*iotsitewise.AssociateAssetsInput) (*request.Request, *iotsitewise.AssociateAssetsOutput) + AssociateTimeSeriesToAssetProperty(*iotsitewise.AssociateTimeSeriesToAssetPropertyInput) (*iotsitewise.AssociateTimeSeriesToAssetPropertyOutput, error) + AssociateTimeSeriesToAssetPropertyWithContext(aws.Context, *iotsitewise.AssociateTimeSeriesToAssetPropertyInput, ...request.Option) (*iotsitewise.AssociateTimeSeriesToAssetPropertyOutput, error) + AssociateTimeSeriesToAssetPropertyRequest(*iotsitewise.AssociateTimeSeriesToAssetPropertyInput) (*request.Request, *iotsitewise.AssociateTimeSeriesToAssetPropertyOutput) + BatchAssociateProjectAssets(*iotsitewise.BatchAssociateProjectAssetsInput) (*iotsitewise.BatchAssociateProjectAssetsOutput, error) BatchAssociateProjectAssetsWithContext(aws.Context, *iotsitewise.BatchAssociateProjectAssetsInput, ...request.Option) (*iotsitewise.BatchAssociateProjectAssetsOutput, error) BatchAssociateProjectAssetsRequest(*iotsitewise.BatchAssociateProjectAssetsInput) (*request.Request, *iotsitewise.BatchAssociateProjectAssetsOutput) @@ -132,6 +136,10 @@ type IoTSiteWiseAPI interface { DeleteProjectWithContext(aws.Context, *iotsitewise.DeleteProjectInput, ...request.Option) (*iotsitewise.DeleteProjectOutput, error) DeleteProjectRequest(*iotsitewise.DeleteProjectInput) (*request.Request, *iotsitewise.DeleteProjectOutput) + DeleteTimeSeries(*iotsitewise.DeleteTimeSeriesInput) (*iotsitewise.DeleteTimeSeriesOutput, error) + DeleteTimeSeriesWithContext(aws.Context, *iotsitewise.DeleteTimeSeriesInput, ...request.Option) (*iotsitewise.DeleteTimeSeriesOutput, error) + DeleteTimeSeriesRequest(*iotsitewise.DeleteTimeSeriesInput) (*request.Request, *iotsitewise.DeleteTimeSeriesOutput) + DescribeAccessPolicy(*iotsitewise.DescribeAccessPolicyInput) (*iotsitewise.DescribeAccessPolicyOutput, error) DescribeAccessPolicyWithContext(aws.Context, *iotsitewise.DescribeAccessPolicyInput, ...request.Option) (*iotsitewise.DescribeAccessPolicyOutput, error) DescribeAccessPolicyRequest(*iotsitewise.DescribeAccessPolicyInput) (*request.Request, *iotsitewise.DescribeAccessPolicyOutput) @@ -180,10 +188,18 @@ type IoTSiteWiseAPI interface { DescribeStorageConfigurationWithContext(aws.Context, *iotsitewise.DescribeStorageConfigurationInput, ...request.Option) (*iotsitewise.DescribeStorageConfigurationOutput, error) DescribeStorageConfigurationRequest(*iotsitewise.DescribeStorageConfigurationInput) (*request.Request, *iotsitewise.DescribeStorageConfigurationOutput) + DescribeTimeSeries(*iotsitewise.DescribeTimeSeriesInput) (*iotsitewise.DescribeTimeSeriesOutput, error) + DescribeTimeSeriesWithContext(aws.Context, *iotsitewise.DescribeTimeSeriesInput, ...request.Option) (*iotsitewise.DescribeTimeSeriesOutput, error) + DescribeTimeSeriesRequest(*iotsitewise.DescribeTimeSeriesInput) (*request.Request, *iotsitewise.DescribeTimeSeriesOutput) + DisassociateAssets(*iotsitewise.DisassociateAssetsInput) (*iotsitewise.DisassociateAssetsOutput, error) DisassociateAssetsWithContext(aws.Context, *iotsitewise.DisassociateAssetsInput, ...request.Option) (*iotsitewise.DisassociateAssetsOutput, error) DisassociateAssetsRequest(*iotsitewise.DisassociateAssetsInput) (*request.Request, *iotsitewise.DisassociateAssetsOutput) + DisassociateTimeSeriesFromAssetProperty(*iotsitewise.DisassociateTimeSeriesFromAssetPropertyInput) (*iotsitewise.DisassociateTimeSeriesFromAssetPropertyOutput, error) + DisassociateTimeSeriesFromAssetPropertyWithContext(aws.Context, *iotsitewise.DisassociateTimeSeriesFromAssetPropertyInput, ...request.Option) (*iotsitewise.DisassociateTimeSeriesFromAssetPropertyOutput, error) + DisassociateTimeSeriesFromAssetPropertyRequest(*iotsitewise.DisassociateTimeSeriesFromAssetPropertyInput) (*request.Request, *iotsitewise.DisassociateTimeSeriesFromAssetPropertyOutput) + GetAssetPropertyAggregates(*iotsitewise.GetAssetPropertyAggregatesInput) (*iotsitewise.GetAssetPropertyAggregatesOutput, error) GetAssetPropertyAggregatesWithContext(aws.Context, *iotsitewise.GetAssetPropertyAggregatesInput, ...request.Option) (*iotsitewise.GetAssetPropertyAggregatesOutput, error) GetAssetPropertyAggregatesRequest(*iotsitewise.GetAssetPropertyAggregatesInput) (*request.Request, *iotsitewise.GetAssetPropertyAggregatesOutput) @@ -283,6 +299,13 @@ type IoTSiteWiseAPI interface { ListTagsForResourceWithContext(aws.Context, *iotsitewise.ListTagsForResourceInput, ...request.Option) (*iotsitewise.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*iotsitewise.ListTagsForResourceInput) (*request.Request, *iotsitewise.ListTagsForResourceOutput) + ListTimeSeries(*iotsitewise.ListTimeSeriesInput) (*iotsitewise.ListTimeSeriesOutput, error) + ListTimeSeriesWithContext(aws.Context, *iotsitewise.ListTimeSeriesInput, ...request.Option) (*iotsitewise.ListTimeSeriesOutput, error) + ListTimeSeriesRequest(*iotsitewise.ListTimeSeriesInput) (*request.Request, *iotsitewise.ListTimeSeriesOutput) + + ListTimeSeriesPages(*iotsitewise.ListTimeSeriesInput, func(*iotsitewise.ListTimeSeriesOutput, bool) bool) error + ListTimeSeriesPagesWithContext(aws.Context, *iotsitewise.ListTimeSeriesInput, func(*iotsitewise.ListTimeSeriesOutput, bool) bool, ...request.Option) error + PutDefaultEncryptionConfiguration(*iotsitewise.PutDefaultEncryptionConfigurationInput) (*iotsitewise.PutDefaultEncryptionConfigurationOutput, error) PutDefaultEncryptionConfigurationWithContext(aws.Context, *iotsitewise.PutDefaultEncryptionConfigurationInput, ...request.Option) (*iotsitewise.PutDefaultEncryptionConfigurationOutput, error) PutDefaultEncryptionConfigurationRequest(*iotsitewise.PutDefaultEncryptionConfigurationInput) (*request.Request, *iotsitewise.PutDefaultEncryptionConfigurationOutput) diff --git a/service/lambda/api.go b/service/lambda/api.go index dda864183d..3899a18228 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -721,95 +721,6 @@ func (c *Lambda) CreateFunctionWithContext(ctx aws.Context, input *CreateFunctio return out, req.Send() } -const opCreateFunctionUrlConfig = "CreateFunctionUrlConfig" - -// CreateFunctionUrlConfigRequest generates a "aws/request.Request" representing the -// client's request for the CreateFunctionUrlConfig 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 CreateFunctionUrlConfig for more information on using the CreateFunctionUrlConfig -// 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 CreateFunctionUrlConfigRequest method. -// req, resp := client.CreateFunctionUrlConfigRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig -func (c *Lambda) CreateFunctionUrlConfigRequest(input *CreateFunctionUrlConfigInput) (req *request.Request, output *CreateFunctionUrlConfigOutput) { - op := &request.Operation{ - Name: opCreateFunctionUrlConfig, - HTTPMethod: "POST", - HTTPPath: "/2021-10-31/functions/{FunctionName}/url", - } - - if input == nil { - input = &CreateFunctionUrlConfigInput{} - } - - output = &CreateFunctionUrlConfigOutput{} - req = c.newRequest(op, input, output) - return -} - -// CreateFunctionUrlConfig API operation for AWS Lambda. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Lambda's -// API operation CreateFunctionUrlConfig for usage and error information. -// -// Returned Error Types: -// * ResourceConflictException -// The resource already exists, or another operation is in progress. -// -// * ResourceNotFoundException -// The resource specified in the request does not exist. -// -// * InvalidParameterValueException -// One of the parameters in the request is invalid. -// -// * ServiceException -// The Lambda service encountered an internal error. -// -// * TooManyRequestsException -// The request throughput limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunctionUrlConfig -func (c *Lambda) CreateFunctionUrlConfig(input *CreateFunctionUrlConfigInput) (*CreateFunctionUrlConfigOutput, error) { - req, out := c.CreateFunctionUrlConfigRequest(input) - return out, req.Send() -} - -// CreateFunctionUrlConfigWithContext is the same as CreateFunctionUrlConfig with the addition of -// the ability to pass a context and additional request options. -// -// See CreateFunctionUrlConfig 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 *Lambda) CreateFunctionUrlConfigWithContext(ctx aws.Context, input *CreateFunctionUrlConfigInput, opts ...request.Option) (*CreateFunctionUrlConfigOutput, error) { - req, out := c.CreateFunctionUrlConfigRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - const opDeleteAlias = "DeleteAlias" // DeleteAliasRequest generates a "aws/request.Request" representing the @@ -1466,93 +1377,6 @@ func (c *Lambda) DeleteFunctionEventInvokeConfigWithContext(ctx aws.Context, inp return out, req.Send() } -const opDeleteFunctionUrlConfig = "DeleteFunctionUrlConfig" - -// DeleteFunctionUrlConfigRequest generates a "aws/request.Request" representing the -// client's request for the DeleteFunctionUrlConfig 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 DeleteFunctionUrlConfig for more information on using the DeleteFunctionUrlConfig -// 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 DeleteFunctionUrlConfigRequest method. -// req, resp := client.DeleteFunctionUrlConfigRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig -func (c *Lambda) DeleteFunctionUrlConfigRequest(input *DeleteFunctionUrlConfigInput) (req *request.Request, output *DeleteFunctionUrlConfigOutput) { - op := &request.Operation{ - Name: opDeleteFunctionUrlConfig, - HTTPMethod: "DELETE", - HTTPPath: "/2021-10-31/functions/{FunctionName}/url", - } - - if input == nil { - input = &DeleteFunctionUrlConfigInput{} - } - - output = &DeleteFunctionUrlConfigOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// DeleteFunctionUrlConfig API operation for AWS Lambda. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Lambda's -// API operation DeleteFunctionUrlConfig for usage and error information. -// -// Returned Error Types: -// * ResourceConflictException -// The resource already exists, or another operation is in progress. -// -// * ResourceNotFoundException -// The resource specified in the request does not exist. -// -// * ServiceException -// The Lambda service encountered an internal error. -// -// * TooManyRequestsException -// The request throughput limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionUrlConfig -func (c *Lambda) DeleteFunctionUrlConfig(input *DeleteFunctionUrlConfigInput) (*DeleteFunctionUrlConfigOutput, error) { - req, out := c.DeleteFunctionUrlConfigRequest(input) - return out, req.Send() -} - -// DeleteFunctionUrlConfigWithContext is the same as DeleteFunctionUrlConfig with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteFunctionUrlConfig 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 *Lambda) DeleteFunctionUrlConfigWithContext(ctx aws.Context, input *DeleteFunctionUrlConfigInput, opts ...request.Option) (*DeleteFunctionUrlConfigOutput, error) { - req, out := c.DeleteFunctionUrlConfigRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - const opDeleteLayerVersion = "DeleteLayerVersion" // DeleteLayerVersionRequest generates a "aws/request.Request" representing the @@ -2527,92 +2351,6 @@ func (c *Lambda) GetFunctionEventInvokeConfigWithContext(ctx aws.Context, input return out, req.Send() } -const opGetFunctionUrlConfig = "GetFunctionUrlConfig" - -// GetFunctionUrlConfigRequest generates a "aws/request.Request" representing the -// client's request for the GetFunctionUrlConfig 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 GetFunctionUrlConfig for more information on using the GetFunctionUrlConfig -// 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 GetFunctionUrlConfigRequest method. -// req, resp := client.GetFunctionUrlConfigRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig -func (c *Lambda) GetFunctionUrlConfigRequest(input *GetFunctionUrlConfigInput) (req *request.Request, output *GetFunctionUrlConfigOutput) { - op := &request.Operation{ - Name: opGetFunctionUrlConfig, - HTTPMethod: "GET", - HTTPPath: "/2021-10-31/functions/{FunctionName}/url", - } - - if input == nil { - input = &GetFunctionUrlConfigInput{} - } - - output = &GetFunctionUrlConfigOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetFunctionUrlConfig API operation for AWS Lambda. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Lambda's -// API operation GetFunctionUrlConfig for usage and error information. -// -// Returned Error Types: -// * InvalidParameterValueException -// One of the parameters in the request is invalid. -// -// * ServiceException -// The Lambda service encountered an internal error. -// -// * ResourceNotFoundException -// The resource specified in the request does not exist. -// -// * TooManyRequestsException -// The request throughput limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionUrlConfig -func (c *Lambda) GetFunctionUrlConfig(input *GetFunctionUrlConfigInput) (*GetFunctionUrlConfigOutput, error) { - req, out := c.GetFunctionUrlConfigRequest(input) - return out, req.Send() -} - -// GetFunctionUrlConfigWithContext is the same as GetFunctionUrlConfig with the addition of -// the ability to pass a context and additional request options. -// -// See GetFunctionUrlConfig 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 *Lambda) GetFunctionUrlConfigWithContext(ctx aws.Context, input *GetFunctionUrlConfigInput, opts ...request.Option) (*GetFunctionUrlConfigOutput, error) { - req, out := c.GetFunctionUrlConfigRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - const opGetLayerVersion = "GetLayerVersion" // GetLayerVersionRequest generates a "aws/request.Request" representing the @@ -3845,243 +3583,99 @@ func (c *Lambda) ListFunctionEventInvokeConfigsRequest(input *ListFunctionEventI } if input == nil { - input = &ListFunctionEventInvokeConfigsInput{} - } - - output = &ListFunctionEventInvokeConfigsOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListFunctionEventInvokeConfigs API operation for AWS Lambda. -// -// Retrieves a list of configurations for asynchronous invocation for a function. -// -// To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Lambda's -// API operation ListFunctionEventInvokeConfigs for usage and error information. -// -// Returned Error Types: -// * InvalidParameterValueException -// One of the parameters in the request is invalid. -// -// * ResourceNotFoundException -// The resource specified in the request does not exist. -// -// * TooManyRequestsException -// The request throughput limit was exceeded. -// -// * ServiceException -// The Lambda service encountered an internal error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs -func (c *Lambda) ListFunctionEventInvokeConfigs(input *ListFunctionEventInvokeConfigsInput) (*ListFunctionEventInvokeConfigsOutput, error) { - req, out := c.ListFunctionEventInvokeConfigsRequest(input) - return out, req.Send() -} - -// ListFunctionEventInvokeConfigsWithContext is the same as ListFunctionEventInvokeConfigs with the addition of -// the ability to pass a context and additional request options. -// -// See ListFunctionEventInvokeConfigs 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 *Lambda) ListFunctionEventInvokeConfigsWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, opts ...request.Option) (*ListFunctionEventInvokeConfigsOutput, error) { - req, out := c.ListFunctionEventInvokeConfigsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListFunctionEventInvokeConfigsPages iterates over the pages of a ListFunctionEventInvokeConfigs operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListFunctionEventInvokeConfigs 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 ListFunctionEventInvokeConfigs operation. -// pageNum := 0 -// err := client.ListFunctionEventInvokeConfigsPages(params, -// func(page *lambda.ListFunctionEventInvokeConfigsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Lambda) ListFunctionEventInvokeConfigsPages(input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool) error { - return c.ListFunctionEventInvokeConfigsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListFunctionEventInvokeConfigsPagesWithContext same as ListFunctionEventInvokeConfigsPages 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 *Lambda) ListFunctionEventInvokeConfigsPagesWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListFunctionEventInvokeConfigsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListFunctionEventInvokeConfigsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListFunctionEventInvokeConfigsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListFunctionUrlConfigs = "ListFunctionUrlConfigs" - -// ListFunctionUrlConfigsRequest generates a "aws/request.Request" representing the -// client's request for the ListFunctionUrlConfigs 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 ListFunctionUrlConfigs for more information on using the ListFunctionUrlConfigs -// 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 ListFunctionUrlConfigsRequest method. -// req, resp := client.ListFunctionUrlConfigsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigs -func (c *Lambda) ListFunctionUrlConfigsRequest(input *ListFunctionUrlConfigsInput) (req *request.Request, output *ListFunctionUrlConfigsOutput) { - op := &request.Operation{ - Name: opListFunctionUrlConfigs, - HTTPMethod: "GET", - HTTPPath: "/2021-10-31/functions/{FunctionName}/urls", - Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"NextMarker"}, - LimitToken: "MaxItems", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListFunctionUrlConfigsInput{} + input = &ListFunctionEventInvokeConfigsInput{} } - output = &ListFunctionUrlConfigsOutput{} + output = &ListFunctionEventInvokeConfigsOutput{} req = c.newRequest(op, input, output) return } -// ListFunctionUrlConfigs API operation for AWS Lambda. +// ListFunctionEventInvokeConfigs API operation for AWS Lambda. +// +// Retrieves a list of configurations for asynchronous invocation for a function. +// +// To configure options for asynchronous invocation, use PutFunctionEventInvokeConfig. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Lambda's -// API operation ListFunctionUrlConfigs for usage and error information. +// API operation ListFunctionEventInvokeConfigs for usage and error information. // // Returned Error Types: // * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ServiceException -// The Lambda service encountered an internal error. -// // * ResourceNotFoundException // The resource specified in the request does not exist. // // * TooManyRequestsException // The request throughput limit was exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionUrlConfigs -func (c *Lambda) ListFunctionUrlConfigs(input *ListFunctionUrlConfigsInput) (*ListFunctionUrlConfigsOutput, error) { - req, out := c.ListFunctionUrlConfigsRequest(input) +// * ServiceException +// The Lambda service encountered an internal error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs +func (c *Lambda) ListFunctionEventInvokeConfigs(input *ListFunctionEventInvokeConfigsInput) (*ListFunctionEventInvokeConfigsOutput, error) { + req, out := c.ListFunctionEventInvokeConfigsRequest(input) return out, req.Send() } -// ListFunctionUrlConfigsWithContext is the same as ListFunctionUrlConfigs with the addition of +// ListFunctionEventInvokeConfigsWithContext is the same as ListFunctionEventInvokeConfigs with the addition of // the ability to pass a context and additional request options. // -// See ListFunctionUrlConfigs for details on how to use this API operation. +// See ListFunctionEventInvokeConfigs 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 *Lambda) ListFunctionUrlConfigsWithContext(ctx aws.Context, input *ListFunctionUrlConfigsInput, opts ...request.Option) (*ListFunctionUrlConfigsOutput, error) { - req, out := c.ListFunctionUrlConfigsRequest(input) +func (c *Lambda) ListFunctionEventInvokeConfigsWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, opts ...request.Option) (*ListFunctionEventInvokeConfigsOutput, error) { + req, out := c.ListFunctionEventInvokeConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListFunctionUrlConfigsPages iterates over the pages of a ListFunctionUrlConfigs operation, +// ListFunctionEventInvokeConfigsPages iterates over the pages of a ListFunctionEventInvokeConfigs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListFunctionUrlConfigs method for more information on how to use this operation. +// See ListFunctionEventInvokeConfigs 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 ListFunctionUrlConfigs operation. +// // Example iterating over at most 3 pages of a ListFunctionEventInvokeConfigs operation. // pageNum := 0 -// err := client.ListFunctionUrlConfigsPages(params, -// func(page *lambda.ListFunctionUrlConfigsOutput, lastPage bool) bool { +// err := client.ListFunctionEventInvokeConfigsPages(params, +// func(page *lambda.ListFunctionEventInvokeConfigsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Lambda) ListFunctionUrlConfigsPages(input *ListFunctionUrlConfigsInput, fn func(*ListFunctionUrlConfigsOutput, bool) bool) error { - return c.ListFunctionUrlConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Lambda) ListFunctionEventInvokeConfigsPages(input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool) error { + return c.ListFunctionEventInvokeConfigsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListFunctionUrlConfigsPagesWithContext same as ListFunctionUrlConfigsPages except +// ListFunctionEventInvokeConfigsPagesWithContext same as ListFunctionEventInvokeConfigsPages 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 *Lambda) ListFunctionUrlConfigsPagesWithContext(ctx aws.Context, input *ListFunctionUrlConfigsInput, fn func(*ListFunctionUrlConfigsOutput, bool) bool, opts ...request.Option) error { +func (c *Lambda) ListFunctionEventInvokeConfigsPagesWithContext(ctx aws.Context, input *ListFunctionEventInvokeConfigsInput, fn func(*ListFunctionEventInvokeConfigsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListFunctionUrlConfigsInput + var inCpy *ListFunctionEventInvokeConfigsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListFunctionUrlConfigsRequest(inCpy) + req, _ := c.ListFunctionEventInvokeConfigsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4089,7 +3683,7 @@ func (c *Lambda) ListFunctionUrlConfigsPagesWithContext(ctx aws.Context, input * } for p.Next() { - if !fn(p.Page().(*ListFunctionUrlConfigsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListFunctionEventInvokeConfigsOutput), !p.HasNextPage()) { break } } @@ -6719,95 +6313,6 @@ func (c *Lambda) UpdateFunctionEventInvokeConfigWithContext(ctx aws.Context, inp return out, req.Send() } -const opUpdateFunctionUrlConfig = "UpdateFunctionUrlConfig" - -// UpdateFunctionUrlConfigRequest generates a "aws/request.Request" representing the -// client's request for the UpdateFunctionUrlConfig 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 UpdateFunctionUrlConfig for more information on using the UpdateFunctionUrlConfig -// 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 UpdateFunctionUrlConfigRequest method. -// req, resp := client.UpdateFunctionUrlConfigRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfig -func (c *Lambda) UpdateFunctionUrlConfigRequest(input *UpdateFunctionUrlConfigInput) (req *request.Request, output *UpdateFunctionUrlConfigOutput) { - op := &request.Operation{ - Name: opUpdateFunctionUrlConfig, - HTTPMethod: "PUT", - HTTPPath: "/2021-10-31/functions/{FunctionName}/url", - } - - if input == nil { - input = &UpdateFunctionUrlConfigInput{} - } - - output = &UpdateFunctionUrlConfigOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateFunctionUrlConfig API operation for AWS Lambda. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Lambda's -// API operation UpdateFunctionUrlConfig for usage and error information. -// -// Returned Error Types: -// * ResourceConflictException -// The resource already exists, or another operation is in progress. -// -// * ResourceNotFoundException -// The resource specified in the request does not exist. -// -// * InvalidParameterValueException -// One of the parameters in the request is invalid. -// -// * ServiceException -// The Lambda service encountered an internal error. -// -// * TooManyRequestsException -// The request throughput limit was exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionUrlConfig -func (c *Lambda) UpdateFunctionUrlConfig(input *UpdateFunctionUrlConfigInput) (*UpdateFunctionUrlConfigOutput, error) { - req, out := c.UpdateFunctionUrlConfigRequest(input) - return out, req.Send() -} - -// UpdateFunctionUrlConfigWithContext is the same as UpdateFunctionUrlConfig with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateFunctionUrlConfig 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 *Lambda) UpdateFunctionUrlConfigWithContext(ctx aws.Context, input *UpdateFunctionUrlConfigInput, opts ...request.Option) (*UpdateFunctionUrlConfigOutput, error) { - req, out := c.UpdateFunctionUrlConfigRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - // Limits that are related to concurrency and storage. All file and storage // sizes are in bytes. type AccountLimit struct { @@ -7784,76 +7289,6 @@ func (s *CodeVerificationFailedException) RequestID() string { return s.RespMetadata.RequestID } -type Cors struct { - _ struct{} `type:"structure"` - - AllowCredentials *bool `type:"boolean"` - - AllowHeaders []*string `type:"list"` - - AllowMethods []*string `type:"list"` - - AllowOrigins []*string `type:"list"` - - ExposeHeaders []*string `type:"list"` - - MaxAge *int64 `type:"integer"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Cors) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s Cors) GoString() string { - return s.String() -} - -// SetAllowCredentials sets the AllowCredentials field's value. -func (s *Cors) SetAllowCredentials(v bool) *Cors { - s.AllowCredentials = &v - return s -} - -// SetAllowHeaders sets the AllowHeaders field's value. -func (s *Cors) SetAllowHeaders(v []*string) *Cors { - s.AllowHeaders = v - return s -} - -// SetAllowMethods sets the AllowMethods field's value. -func (s *Cors) SetAllowMethods(v []*string) *Cors { - s.AllowMethods = v - return s -} - -// SetAllowOrigins sets the AllowOrigins field's value. -func (s *Cors) SetAllowOrigins(v []*string) *Cors { - s.AllowOrigins = v - return s -} - -// SetExposeHeaders sets the ExposeHeaders field's value. -func (s *Cors) SetExposeHeaders(v []*string) *Cors { - s.ExposeHeaders = v - return s -} - -// SetMaxAge sets the MaxAge field's value. -func (s *Cors) SetMaxAge(v int64) *Cors { - s.MaxAge = &v - return s -} - type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -8117,7 +7552,7 @@ type CreateEventSourceMappingInput struct { // * Amazon Managed Streaming for Apache Kafka - The ARN of the cluster. EventSourceArn *string `type:"string"` - // (Streams and Amazon SQS) A object that defines the filter criteria used to + // (Streams and Amazon SQS) An object that defines the filter criteria that // determine whether Lambda should process an event. For more information, see // Lambda event filtering (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). FilterCriteria *FilterCriteria `type:"structure"` @@ -8140,8 +7575,8 @@ type CreateEventSourceMappingInput struct { // FunctionName is a required field FunctionName *string `min:"1" type:"string" required:"true"` - // (Streams only) A list of current response type enums applied to the event - // source mapping. + // (Streams and Amazon SQS) A list of current response type enums applied to + // the event source mapping. FunctionResponseTypes []*string `type:"list"` // (Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, @@ -8421,9 +7856,10 @@ type CreateFunctionInput struct { FunctionName *string `min:"1" type:"string" required:"true"` // The name of the method within your code that Lambda calls to execute your - // function. The format includes the file name. It can also include namespaces - // and other qualifiers, depending on the runtime. For more information, see - // Programming Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). + // function. Handler is required if the deployment package is a .zip file archive. + // The format includes the file name. It can also include namespaces and other + // qualifiers, depending on the runtime. For more information, see Programming + // Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). Handler *string `type:"string"` // Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/configuration-images.html#configuration-images-settings) @@ -8458,6 +7894,7 @@ type CreateFunctionInput struct { Role *string `type:"string" required:"true"` // The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). + // Runtime is required if the deployment package is a .zip file archive. Runtime *string `type:"string" enum:"Runtime"` // A list of tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html) @@ -8647,170 +8084,26 @@ func (s *CreateFunctionInput) SetRuntime(v string) *CreateFunctionInput { } // SetTags sets the Tags field's value. -func (s *CreateFunctionInput) SetTags(v map[string]*string) *CreateFunctionInput { - s.Tags = v - return s -} - -// SetTimeout sets the Timeout field's value. -func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput { - s.Timeout = &v - return s -} - -// SetTracingConfig sets the TracingConfig field's value. -func (s *CreateFunctionInput) SetTracingConfig(v *TracingConfig) *CreateFunctionInput { - s.TracingConfig = v - return s -} - -// SetVpcConfig sets the VpcConfig field's value. -func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { - s.VpcConfig = v - return s -} - -type CreateFunctionUrlConfigInput struct { - _ struct{} `type:"structure"` - - // AuthorizationType is a required field - AuthorizationType *string `type:"string" required:"true" enum:"AuthorizationType"` - - Cors *Cors `type:"structure"` - - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - Qualifier *string `location:"querystring" locationName:"Qualifier" 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 CreateFunctionUrlConfigInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateFunctionUrlConfigInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateFunctionUrlConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateFunctionUrlConfigInput"} - if s.AuthorizationType == nil { - invalidParams.Add(request.NewErrParamRequired("AuthorizationType")) - } - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.Qualifier != nil && len(*s.Qualifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAuthorizationType sets the AuthorizationType field's value. -func (s *CreateFunctionUrlConfigInput) SetAuthorizationType(v string) *CreateFunctionUrlConfigInput { - s.AuthorizationType = &v - return s -} - -// SetCors sets the Cors field's value. -func (s *CreateFunctionUrlConfigInput) SetCors(v *Cors) *CreateFunctionUrlConfigInput { - s.Cors = v - return s -} - -// SetFunctionName sets the FunctionName field's value. -func (s *CreateFunctionUrlConfigInput) SetFunctionName(v string) *CreateFunctionUrlConfigInput { - s.FunctionName = &v - return s -} - -// SetQualifier sets the Qualifier field's value. -func (s *CreateFunctionUrlConfigInput) SetQualifier(v string) *CreateFunctionUrlConfigInput { - s.Qualifier = &v - return s -} - -type CreateFunctionUrlConfigOutput struct { - _ struct{} `type:"structure"` - - // AuthorizationType is a required field - AuthorizationType *string `type:"string" required:"true" enum:"AuthorizationType"` - - Cors *Cors `type:"structure"` - - // CreationTime is a required field - CreationTime *string `type:"string" required:"true"` - - // FunctionArn is a required field - FunctionArn *string `type:"string" required:"true"` - - // FunctionUrl is a required field - FunctionUrl *string `min:"40" 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 CreateFunctionUrlConfigOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s CreateFunctionUrlConfigOutput) GoString() string { - return s.String() -} - -// SetAuthorizationType sets the AuthorizationType field's value. -func (s *CreateFunctionUrlConfigOutput) SetAuthorizationType(v string) *CreateFunctionUrlConfigOutput { - s.AuthorizationType = &v - return s -} - -// SetCors sets the Cors field's value. -func (s *CreateFunctionUrlConfigOutput) SetCors(v *Cors) *CreateFunctionUrlConfigOutput { - s.Cors = v +func (s *CreateFunctionInput) SetTags(v map[string]*string) *CreateFunctionInput { + s.Tags = v return s } -// SetCreationTime sets the CreationTime field's value. -func (s *CreateFunctionUrlConfigOutput) SetCreationTime(v string) *CreateFunctionUrlConfigOutput { - s.CreationTime = &v +// SetTimeout sets the Timeout field's value. +func (s *CreateFunctionInput) SetTimeout(v int64) *CreateFunctionInput { + s.Timeout = &v return s } -// SetFunctionArn sets the FunctionArn field's value. -func (s *CreateFunctionUrlConfigOutput) SetFunctionArn(v string) *CreateFunctionUrlConfigOutput { - s.FunctionArn = &v +// SetTracingConfig sets the TracingConfig field's value. +func (s *CreateFunctionInput) SetTracingConfig(v *TracingConfig) *CreateFunctionInput { + s.TracingConfig = v return s } -// SetFunctionUrl sets the FunctionUrl field's value. -func (s *CreateFunctionUrlConfigOutput) SetFunctionUrl(v string) *CreateFunctionUrlConfigOutput { - s.FunctionUrl = &v +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateFunctionInput) SetVpcConfig(v *VpcConfig) *CreateFunctionInput { + s.VpcConfig = v return s } @@ -9421,86 +8714,6 @@ func (s DeleteFunctionOutput) GoString() string { return s.String() } -type DeleteFunctionUrlConfigInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - Qualifier *string `location:"querystring" locationName:"Qualifier" 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 DeleteFunctionUrlConfigInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteFunctionUrlConfigInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFunctionUrlConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFunctionUrlConfigInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.Qualifier != nil && len(*s.Qualifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFunctionName sets the FunctionName field's value. -func (s *DeleteFunctionUrlConfigInput) SetFunctionName(v string) *DeleteFunctionUrlConfigInput { - s.FunctionName = &v - return s -} - -// SetQualifier sets the Qualifier field's value. -func (s *DeleteFunctionUrlConfigInput) SetQualifier(v string) *DeleteFunctionUrlConfigInput { - s.Qualifier = &v - return s -} - -type DeleteFunctionUrlConfigOutput 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 DeleteFunctionUrlConfigOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteFunctionUrlConfigOutput) GoString() string { - return s.String() -} - type DeleteLayerVersionInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -10423,9 +9636,9 @@ type EventSourceMappingConfiguration struct { // The Amazon Resource Name (ARN) of the event source. EventSourceArn *string `type:"string"` - // (Streams and Amazon SQS) A object that defines the filter criteria used to + // (Streams and Amazon SQS) An object that defines the filter criteria that // determine whether Lambda should process an event. For more information, see - // Event filtering. + // Lambda event filtering (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). FilterCriteria *FilterCriteria `type:"structure"` // The ARN of the Lambda function. @@ -10722,12 +9935,13 @@ func (s *FileSystemConfig) SetLocalMountPath(v string) *FileSystemConfig { return s } -// An object that specifies a filter criteria. +// A structure within a FilterCriteria object that defines an event filtering +// pattern. type Filter struct { _ struct{} `type:"structure"` // A filter pattern. For more information on the syntax of a filter pattern, - // see Filter criteria syntax (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). + // see Filter rule syntax (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax). Pattern *string `type:"string"` } @@ -10755,7 +9969,7 @@ func (s *Filter) SetPattern(v string) *Filter { return s } -// An object that contains the filters on the event source. +// An object that contains the filters for an event source. type FilterCriteria struct { _ struct{} `type:"structure"` @@ -11341,81 +10555,6 @@ func (s *FunctionEventInvokeConfig) SetMaximumRetryAttempts(v int64) *FunctionEv return s } -type FunctionUrlConfig struct { - _ struct{} `type:"structure"` - - // AuthorizationType is a required field - AuthorizationType *string `type:"string" required:"true" enum:"AuthorizationType"` - - Cors *Cors `type:"structure"` - - // CreationTime is a required field - CreationTime *string `type:"string" required:"true"` - - // FunctionArn is a required field - FunctionArn *string `type:"string" required:"true"` - - // FunctionUrl is a required field - FunctionUrl *string `min:"40" type:"string" required:"true"` - - // LastModifiedTime is a required field - LastModifiedTime *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s FunctionUrlConfig) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s FunctionUrlConfig) GoString() string { - return s.String() -} - -// SetAuthorizationType sets the AuthorizationType field's value. -func (s *FunctionUrlConfig) SetAuthorizationType(v string) *FunctionUrlConfig { - s.AuthorizationType = &v - return s -} - -// SetCors sets the Cors field's value. -func (s *FunctionUrlConfig) SetCors(v *Cors) *FunctionUrlConfig { - s.Cors = v - return s -} - -// SetCreationTime sets the CreationTime field's value. -func (s *FunctionUrlConfig) SetCreationTime(v string) *FunctionUrlConfig { - s.CreationTime = &v - return s -} - -// SetFunctionArn sets the FunctionArn field's value. -func (s *FunctionUrlConfig) SetFunctionArn(v string) *FunctionUrlConfig { - s.FunctionArn = &v - return s -} - -// SetFunctionUrl sets the FunctionUrl field's value. -func (s *FunctionUrlConfig) SetFunctionUrl(v string) *FunctionUrlConfig { - s.FunctionUrl = &v - return s -} - -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *FunctionUrlConfig) SetLastModifiedTime(v string) *FunctionUrlConfig { - s.LastModifiedTime = &v - return s -} - type GetAccountSettingsInput struct { _ struct{} `type:"structure" nopayload:"true"` } @@ -12123,137 +11262,21 @@ type GetFunctionInput struct { // // Name formats // - // * Function name - my-function (name-only), my-function:v1 (with alias). - // - // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. - // - // * Partial ARN - 123456789012:function:my-function. - // - // You can append a version number or alias to any of the formats. The length - // constraint applies only to the full ARN. If you specify only the function - // name, it is limited to 64 characters in length. - // - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - // Specify a version or alias to get details about a published version of the - // function. - Qualifier *string `location:"querystring" locationName:"Qualifier" 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 GetFunctionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetFunctionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFunctionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.Qualifier != nil && len(*s.Qualifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFunctionName sets the FunctionName field's value. -func (s *GetFunctionInput) SetFunctionName(v string) *GetFunctionInput { - s.FunctionName = &v - return s -} - -// SetQualifier sets the Qualifier field's value. -func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput { - s.Qualifier = &v - return s -} - -type GetFunctionOutput struct { - _ struct{} `type:"structure"` - - // The deployment package of the function or version. - Code *FunctionCodeLocation `type:"structure"` - - // The function's reserved concurrency (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). - Concurrency *PutFunctionConcurrencyOutput `type:"structure"` - - // The configuration of the function or version. - Configuration *FunctionConfiguration `type:"structure"` - - // The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). - 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 GetFunctionOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetFunctionOutput) GoString() string { - return s.String() -} - -// SetCode sets the Code field's value. -func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput { - s.Code = v - return s -} - -// SetConcurrency sets the Concurrency field's value. -func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput { - s.Concurrency = v - return s -} - -// SetConfiguration sets the Configuration field's value. -func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput { - s.Configuration = v - return s -} - -// SetTags sets the Tags field's value. -func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput { - s.Tags = v - return s -} - -type GetFunctionUrlConfigInput struct { - _ struct{} `type:"structure" nopayload:"true"` - + // * Function name - my-function (name-only), my-function:v1 (with alias). + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // You can append a version number or alias to any of the formats. The length + // constraint applies only to the full ARN. If you specify only the function + // name, it is limited to 64 characters in length. + // // FunctionName is a required field FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + // Specify a version or alias to get details about a published version of the + // function. Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` } @@ -12262,7 +11285,7 @@ type GetFunctionUrlConfigInput 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 GetFunctionUrlConfigInput) String() string { +func (s GetFunctionInput) String() string { return awsutil.Prettify(s) } @@ -12271,13 +11294,13 @@ func (s GetFunctionUrlConfigInput) 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 GetFunctionUrlConfigInput) GoString() string { +func (s GetFunctionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetFunctionUrlConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFunctionUrlConfigInput"} +func (s *GetFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFunctionInput"} if s.FunctionName == nil { invalidParams.Add(request.NewErrParamRequired("FunctionName")) } @@ -12295,36 +11318,31 @@ func (s *GetFunctionUrlConfigInput) Validate() error { } // SetFunctionName sets the FunctionName field's value. -func (s *GetFunctionUrlConfigInput) SetFunctionName(v string) *GetFunctionUrlConfigInput { +func (s *GetFunctionInput) SetFunctionName(v string) *GetFunctionInput { s.FunctionName = &v return s } // SetQualifier sets the Qualifier field's value. -func (s *GetFunctionUrlConfigInput) SetQualifier(v string) *GetFunctionUrlConfigInput { +func (s *GetFunctionInput) SetQualifier(v string) *GetFunctionInput { s.Qualifier = &v return s } -type GetFunctionUrlConfigOutput struct { +type GetFunctionOutput struct { _ struct{} `type:"structure"` - // AuthorizationType is a required field - AuthorizationType *string `type:"string" required:"true" enum:"AuthorizationType"` - - Cors *Cors `type:"structure"` - - // CreationTime is a required field - CreationTime *string `type:"string" required:"true"` + // The deployment package of the function or version. + Code *FunctionCodeLocation `type:"structure"` - // FunctionArn is a required field - FunctionArn *string `type:"string" required:"true"` + // The function's reserved concurrency (https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html). + Concurrency *PutFunctionConcurrencyOutput `type:"structure"` - // FunctionUrl is a required field - FunctionUrl *string `min:"40" type:"string" required:"true"` + // The configuration of the function or version. + Configuration *FunctionConfiguration `type:"structure"` - // LastModifiedTime is a required field - LastModifiedTime *string `type:"string" required:"true"` + // The function's tags (https://docs.aws.amazon.com/lambda/latest/dg/tagging.html). + Tags map[string]*string `type:"map"` } // String returns the string representation. @@ -12332,7 +11350,7 @@ type GetFunctionUrlConfigOutput 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 GetFunctionUrlConfigOutput) String() string { +func (s GetFunctionOutput) String() string { return awsutil.Prettify(s) } @@ -12341,43 +11359,31 @@ func (s GetFunctionUrlConfigOutput) 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 GetFunctionUrlConfigOutput) GoString() string { +func (s GetFunctionOutput) GoString() string { return s.String() } -// SetAuthorizationType sets the AuthorizationType field's value. -func (s *GetFunctionUrlConfigOutput) SetAuthorizationType(v string) *GetFunctionUrlConfigOutput { - s.AuthorizationType = &v - return s -} - -// SetCors sets the Cors field's value. -func (s *GetFunctionUrlConfigOutput) SetCors(v *Cors) *GetFunctionUrlConfigOutput { - s.Cors = v - return s -} - -// SetCreationTime sets the CreationTime field's value. -func (s *GetFunctionUrlConfigOutput) SetCreationTime(v string) *GetFunctionUrlConfigOutput { - s.CreationTime = &v +// SetCode sets the Code field's value. +func (s *GetFunctionOutput) SetCode(v *FunctionCodeLocation) *GetFunctionOutput { + s.Code = v return s } -// SetFunctionArn sets the FunctionArn field's value. -func (s *GetFunctionUrlConfigOutput) SetFunctionArn(v string) *GetFunctionUrlConfigOutput { - s.FunctionArn = &v +// SetConcurrency sets the Concurrency field's value. +func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput { + s.Concurrency = v return s } -// SetFunctionUrl sets the FunctionUrl field's value. -func (s *GetFunctionUrlConfigOutput) SetFunctionUrl(v string) *GetFunctionUrlConfigOutput { - s.FunctionUrl = &v +// SetConfiguration sets the Configuration field's value. +func (s *GetFunctionOutput) SetConfiguration(v *FunctionConfiguration) *GetFunctionOutput { + s.Configuration = v return s } -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *GetFunctionUrlConfigOutput) SetLastModifiedTime(v string) *GetFunctionUrlConfigOutput { - s.LastModifiedTime = &v +// SetTags sets the Tags field's value. +func (s *GetFunctionOutput) SetTags(v map[string]*string) *GetFunctionOutput { + s.Tags = v return s } @@ -15098,111 +14104,6 @@ func (s *ListFunctionEventInvokeConfigsOutput) SetNextMarker(v string) *ListFunc return s } -type ListFunctionUrlConfigsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - Marker *string `location:"querystring" locationName:"Marker" type:"string"` - - MaxItems *int64 `location:"querystring" locationName:"MaxItems" min:"1" type:"integer"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListFunctionUrlConfigsInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListFunctionUrlConfigsInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListFunctionUrlConfigsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListFunctionUrlConfigsInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.MaxItems != nil && *s.MaxItems < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxItems", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetFunctionName sets the FunctionName field's value. -func (s *ListFunctionUrlConfigsInput) SetFunctionName(v string) *ListFunctionUrlConfigsInput { - s.FunctionName = &v - return s -} - -// SetMarker sets the Marker field's value. -func (s *ListFunctionUrlConfigsInput) SetMarker(v string) *ListFunctionUrlConfigsInput { - s.Marker = &v - return s -} - -// SetMaxItems sets the MaxItems field's value. -func (s *ListFunctionUrlConfigsInput) SetMaxItems(v int64) *ListFunctionUrlConfigsInput { - s.MaxItems = &v - return s -} - -type ListFunctionUrlConfigsOutput struct { - _ struct{} `type:"structure"` - - // FunctionUrlConfigs is a required field - FunctionUrlConfigs []*FunctionUrlConfig `type:"list" required:"true"` - - NextMarker *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 ListFunctionUrlConfigsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListFunctionUrlConfigsOutput) GoString() string { - return s.String() -} - -// SetFunctionUrlConfigs sets the FunctionUrlConfigs field's value. -func (s *ListFunctionUrlConfigsOutput) SetFunctionUrlConfigs(v []*FunctionUrlConfig) *ListFunctionUrlConfigsOutput { - s.FunctionUrlConfigs = v - return s -} - -// SetNextMarker sets the NextMarker field's value. -func (s *ListFunctionUrlConfigsOutput) SetNextMarker(v string) *ListFunctionUrlConfigsOutput { - s.NextMarker = &v - return s -} - type ListFunctionsByCodeSigningConfigInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -17975,6 +16876,16 @@ type SourceAccessConfiguration struct { // * VIRTUAL_HOST - (Amazon MQ) The name of the virtual host in your RabbitMQ // broker. Lambda uses this RabbitMQ host as the event source. This property // cannot be specified in an UpdateEventSourceMapping API call. + // + // * CLIENT_CERTIFICATE_TLS_AUTH - (Amazon MSK, Self-managed Apache Kafka) + // The Secrets Manager ARN of your secret key containing the certificate + // chain (X.509 PEM), private key (PKCS#8 PEM), and private key password + // (optional) used for mutual TLS authentication of your MSK/Apache Kafka + // brokers. + // + // * SERVER_ROOT_CA_CERTIFICATE - (Self-managed Apache Kafka) The Secrets + // Manager ARN of your secret key containing the root CA certificate (X.509 + // PEM) used for TLS encryption of your Apache Kafka brokers. Type *string `type:"string" enum:"SourceAccessType"` // The value for your chosen configuration in Type. For example: "URI": "arn:aws:secretsmanager:us-east-1:01234567890:secret:MyBrokerSecretName". @@ -18733,7 +17644,7 @@ type UpdateEventSourceMappingInput struct { // Default: True Enabled *bool `type:"boolean"` - // (Streams and Amazon SQS) A object that defines the filter criteria used to + // (Streams and Amazon SQS) An object that defines the filter criteria that // determine whether Lambda should process an event. For more information, see // Lambda event filtering (https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html). FilterCriteria *FilterCriteria `type:"structure"` @@ -18754,8 +17665,8 @@ type UpdateEventSourceMappingInput struct { // function name, it's limited to 64 characters in length. FunctionName *string `min:"1" type:"string"` - // (Streams only) A list of current response type enums applied to the event - // source mapping. + // (Streams and Amazon SQS) A list of current response type enums applied to + // the event source mapping. FunctionResponseTypes []*string `type:"list"` // (Streams and Amazon SQS standard queues) The maximum amount of time, in seconds, @@ -19137,9 +18048,10 @@ type UpdateFunctionConfigurationInput struct { FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` // The name of the method within your code that Lambda calls to execute your - // function. The format includes the file name. It can also include namespaces - // and other qualifiers, depending on the runtime. For more information, see - // Programming Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). + // function. Handler is required if the deployment package is a .zip file archive. + // The format includes the file name. It can also include namespaces and other + // qualifiers, depending on the runtime. For more information, see Programming + // Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html). Handler *string `type:"string"` // Container image configuration values (https://docs.aws.amazon.com/lambda/latest/dg/images-parms.html) @@ -19170,6 +18082,7 @@ type UpdateFunctionConfigurationInput struct { Role *string `type:"string"` // The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). + // Runtime is required if the deployment package is a .zip file archive. Runtime *string `type:"string" enum:"Runtime"` // The amount of time (in seconds) that Lambda allows a function to run before @@ -19524,155 +18437,6 @@ func (s *UpdateFunctionEventInvokeConfigOutput) SetMaximumRetryAttempts(v int64) return s } -type UpdateFunctionUrlConfigInput struct { - _ struct{} `type:"structure"` - - AuthorizationType *string `type:"string" enum:"AuthorizationType"` - - Cors *Cors `type:"structure"` - - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` - - Qualifier *string `location:"querystring" locationName:"Qualifier" 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 UpdateFunctionUrlConfigInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateFunctionUrlConfigInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateFunctionUrlConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateFunctionUrlConfigInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.Qualifier != nil && len(*s.Qualifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAuthorizationType sets the AuthorizationType field's value. -func (s *UpdateFunctionUrlConfigInput) SetAuthorizationType(v string) *UpdateFunctionUrlConfigInput { - s.AuthorizationType = &v - return s -} - -// SetCors sets the Cors field's value. -func (s *UpdateFunctionUrlConfigInput) SetCors(v *Cors) *UpdateFunctionUrlConfigInput { - s.Cors = v - return s -} - -// SetFunctionName sets the FunctionName field's value. -func (s *UpdateFunctionUrlConfigInput) SetFunctionName(v string) *UpdateFunctionUrlConfigInput { - s.FunctionName = &v - return s -} - -// SetQualifier sets the Qualifier field's value. -func (s *UpdateFunctionUrlConfigInput) SetQualifier(v string) *UpdateFunctionUrlConfigInput { - s.Qualifier = &v - return s -} - -type UpdateFunctionUrlConfigOutput struct { - _ struct{} `type:"structure"` - - // AuthorizationType is a required field - AuthorizationType *string `type:"string" required:"true" enum:"AuthorizationType"` - - Cors *Cors `type:"structure"` - - // CreationTime is a required field - CreationTime *string `type:"string" required:"true"` - - // FunctionArn is a required field - FunctionArn *string `type:"string" required:"true"` - - // FunctionUrl is a required field - FunctionUrl *string `min:"40" type:"string" required:"true"` - - // LastModifiedTime is a required field - LastModifiedTime *string `type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateFunctionUrlConfigOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateFunctionUrlConfigOutput) GoString() string { - return s.String() -} - -// SetAuthorizationType sets the AuthorizationType field's value. -func (s *UpdateFunctionUrlConfigOutput) SetAuthorizationType(v string) *UpdateFunctionUrlConfigOutput { - s.AuthorizationType = &v - return s -} - -// SetCors sets the Cors field's value. -func (s *UpdateFunctionUrlConfigOutput) SetCors(v *Cors) *UpdateFunctionUrlConfigOutput { - s.Cors = v - return s -} - -// SetCreationTime sets the CreationTime field's value. -func (s *UpdateFunctionUrlConfigOutput) SetCreationTime(v string) *UpdateFunctionUrlConfigOutput { - s.CreationTime = &v - return s -} - -// SetFunctionArn sets the FunctionArn field's value. -func (s *UpdateFunctionUrlConfigOutput) SetFunctionArn(v string) *UpdateFunctionUrlConfigOutput { - s.FunctionArn = &v - return s -} - -// SetFunctionUrl sets the FunctionUrl field's value. -func (s *UpdateFunctionUrlConfigOutput) SetFunctionUrl(v string) *UpdateFunctionUrlConfigOutput { - s.FunctionUrl = &v - return s -} - -// SetLastModifiedTime sets the LastModifiedTime field's value. -func (s *UpdateFunctionUrlConfigOutput) SetLastModifiedTime(v string) *UpdateFunctionUrlConfigOutput { - s.LastModifiedTime = &v - return s -} - // The VPC security groups and subnets that are attached to a Lambda function. // For more information, see VPC Settings (https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html). type VpcConfig struct { @@ -19781,22 +18545,6 @@ func Architecture_Values() []string { } } -const ( - // AuthorizationTypeNone is a AuthorizationType enum value - AuthorizationTypeNone = "NONE" - - // AuthorizationTypeAwsIam is a AuthorizationType enum value - AuthorizationTypeAwsIam = "AWS_IAM" -) - -// AuthorizationType_Values returns all elements of the AuthorizationType enum -func AuthorizationType_Values() []string { - return []string{ - AuthorizationTypeNone, - AuthorizationTypeAwsIam, - } -} - const ( // CodeSigningPolicyWarn is a CodeSigningPolicy enum value CodeSigningPolicyWarn = "Warn" diff --git a/service/lambda/lambdaiface/interface.go b/service/lambda/lambdaiface/interface.go index 3c90df7933..2271210d63 100644 --- a/service/lambda/lambdaiface/interface.go +++ b/service/lambda/lambdaiface/interface.go @@ -84,10 +84,6 @@ type LambdaAPI interface { CreateFunctionWithContext(aws.Context, *lambda.CreateFunctionInput, ...request.Option) (*lambda.FunctionConfiguration, error) CreateFunctionRequest(*lambda.CreateFunctionInput) (*request.Request, *lambda.FunctionConfiguration) - CreateFunctionUrlConfig(*lambda.CreateFunctionUrlConfigInput) (*lambda.CreateFunctionUrlConfigOutput, error) - CreateFunctionUrlConfigWithContext(aws.Context, *lambda.CreateFunctionUrlConfigInput, ...request.Option) (*lambda.CreateFunctionUrlConfigOutput, error) - CreateFunctionUrlConfigRequest(*lambda.CreateFunctionUrlConfigInput) (*request.Request, *lambda.CreateFunctionUrlConfigOutput) - DeleteAlias(*lambda.DeleteAliasInput) (*lambda.DeleteAliasOutput, error) DeleteAliasWithContext(aws.Context, *lambda.DeleteAliasInput, ...request.Option) (*lambda.DeleteAliasOutput, error) DeleteAliasRequest(*lambda.DeleteAliasInput) (*request.Request, *lambda.DeleteAliasOutput) @@ -116,10 +112,6 @@ type LambdaAPI interface { DeleteFunctionEventInvokeConfigWithContext(aws.Context, *lambda.DeleteFunctionEventInvokeConfigInput, ...request.Option) (*lambda.DeleteFunctionEventInvokeConfigOutput, error) DeleteFunctionEventInvokeConfigRequest(*lambda.DeleteFunctionEventInvokeConfigInput) (*request.Request, *lambda.DeleteFunctionEventInvokeConfigOutput) - DeleteFunctionUrlConfig(*lambda.DeleteFunctionUrlConfigInput) (*lambda.DeleteFunctionUrlConfigOutput, error) - DeleteFunctionUrlConfigWithContext(aws.Context, *lambda.DeleteFunctionUrlConfigInput, ...request.Option) (*lambda.DeleteFunctionUrlConfigOutput, error) - DeleteFunctionUrlConfigRequest(*lambda.DeleteFunctionUrlConfigInput) (*request.Request, *lambda.DeleteFunctionUrlConfigOutput) - DeleteLayerVersion(*lambda.DeleteLayerVersionInput) (*lambda.DeleteLayerVersionOutput, error) DeleteLayerVersionWithContext(aws.Context, *lambda.DeleteLayerVersionInput, ...request.Option) (*lambda.DeleteLayerVersionOutput, error) DeleteLayerVersionRequest(*lambda.DeleteLayerVersionInput) (*request.Request, *lambda.DeleteLayerVersionOutput) @@ -164,10 +156,6 @@ type LambdaAPI interface { GetFunctionEventInvokeConfigWithContext(aws.Context, *lambda.GetFunctionEventInvokeConfigInput, ...request.Option) (*lambda.GetFunctionEventInvokeConfigOutput, error) GetFunctionEventInvokeConfigRequest(*lambda.GetFunctionEventInvokeConfigInput) (*request.Request, *lambda.GetFunctionEventInvokeConfigOutput) - GetFunctionUrlConfig(*lambda.GetFunctionUrlConfigInput) (*lambda.GetFunctionUrlConfigOutput, error) - GetFunctionUrlConfigWithContext(aws.Context, *lambda.GetFunctionUrlConfigInput, ...request.Option) (*lambda.GetFunctionUrlConfigOutput, error) - GetFunctionUrlConfigRequest(*lambda.GetFunctionUrlConfigInput) (*request.Request, *lambda.GetFunctionUrlConfigOutput) - GetLayerVersion(*lambda.GetLayerVersionInput) (*lambda.GetLayerVersionOutput, error) GetLayerVersionWithContext(aws.Context, *lambda.GetLayerVersionInput, ...request.Option) (*lambda.GetLayerVersionOutput, error) GetLayerVersionRequest(*lambda.GetLayerVersionInput) (*request.Request, *lambda.GetLayerVersionOutput) @@ -224,13 +212,6 @@ type LambdaAPI interface { ListFunctionEventInvokeConfigsPages(*lambda.ListFunctionEventInvokeConfigsInput, func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool) error ListFunctionEventInvokeConfigsPagesWithContext(aws.Context, *lambda.ListFunctionEventInvokeConfigsInput, func(*lambda.ListFunctionEventInvokeConfigsOutput, bool) bool, ...request.Option) error - ListFunctionUrlConfigs(*lambda.ListFunctionUrlConfigsInput) (*lambda.ListFunctionUrlConfigsOutput, error) - ListFunctionUrlConfigsWithContext(aws.Context, *lambda.ListFunctionUrlConfigsInput, ...request.Option) (*lambda.ListFunctionUrlConfigsOutput, error) - ListFunctionUrlConfigsRequest(*lambda.ListFunctionUrlConfigsInput) (*request.Request, *lambda.ListFunctionUrlConfigsOutput) - - ListFunctionUrlConfigsPages(*lambda.ListFunctionUrlConfigsInput, func(*lambda.ListFunctionUrlConfigsOutput, bool) bool) error - ListFunctionUrlConfigsPagesWithContext(aws.Context, *lambda.ListFunctionUrlConfigsInput, func(*lambda.ListFunctionUrlConfigsOutput, bool) bool, ...request.Option) error - ListFunctions(*lambda.ListFunctionsInput) (*lambda.ListFunctionsOutput, error) ListFunctionsWithContext(aws.Context, *lambda.ListFunctionsInput, ...request.Option) (*lambda.ListFunctionsOutput, error) ListFunctionsRequest(*lambda.ListFunctionsInput) (*request.Request, *lambda.ListFunctionsOutput) @@ -341,10 +322,6 @@ type LambdaAPI interface { UpdateFunctionEventInvokeConfigWithContext(aws.Context, *lambda.UpdateFunctionEventInvokeConfigInput, ...request.Option) (*lambda.UpdateFunctionEventInvokeConfigOutput, error) UpdateFunctionEventInvokeConfigRequest(*lambda.UpdateFunctionEventInvokeConfigInput) (*request.Request, *lambda.UpdateFunctionEventInvokeConfigOutput) - UpdateFunctionUrlConfig(*lambda.UpdateFunctionUrlConfigInput) (*lambda.UpdateFunctionUrlConfigOutput, error) - UpdateFunctionUrlConfigWithContext(aws.Context, *lambda.UpdateFunctionUrlConfigInput, ...request.Option) (*lambda.UpdateFunctionUrlConfigOutput, error) - UpdateFunctionUrlConfigRequest(*lambda.UpdateFunctionUrlConfigInput) (*request.Request, *lambda.UpdateFunctionUrlConfigOutput) - WaitUntilFunctionActive(*lambda.GetFunctionConfigurationInput) error WaitUntilFunctionActiveWithContext(aws.Context, *lambda.GetFunctionConfigurationInput, ...request.WaiterOption) error diff --git a/service/proton/api.go b/service/proton/api.go index f884620e07..373c30e99e 100644 --- a/service/proton/api.go +++ b/service/proton/api.go @@ -58,12 +58,12 @@ func (c *Proton) AcceptEnvironmentAccountConnectionRequest(input *AcceptEnvironm // AcceptEnvironmentAccountConnection API operation for AWS Proton. // // In a management account, an environment account connection request is accepted. -// When the environment account connection request is accepted, AWS Proton can -// use the associated IAM role to provision environment infrastructure resources +// When the environment account connection request is accepted, Proton can use +// the associated IAM role to provision environment infrastructure resources // in the associated environment account. // // For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// in the Proton Administrator 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 @@ -161,7 +161,7 @@ func (c *Proton) CancelEnvironmentDeploymentRequest(input *CancelEnvironmentDepl // Attempts to cancel an environment deployment on an UpdateEnvironment action, // if the deployment is IN_PROGRESS. For more information, see Update an environment // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-update.html) -// in the AWS Proton Administrator guide. +// in the Proton Administrator guide. // // The following list includes potential cancellation scenarios. // @@ -270,8 +270,8 @@ func (c *Proton) CancelServiceInstanceDeploymentRequest(input *CancelServiceInst // // Attempts to cancel a service instance deployment on an UpdateServiceInstance // action, if the deployment is IN_PROGRESS. For more information, see Update -// a service instance in the AWS Proton Administrator guide (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-instance-update.html) -// or the AWS Proton User guide (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-instance-update.html). +// a service instance in the Proton Administrator guide (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-instance-update.html) +// or the Proton User guide (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-instance-update.html). // // The following list includes potential cancellation scenarios. // @@ -380,8 +380,8 @@ func (c *Proton) CancelServicePipelineDeploymentRequest(input *CancelServicePipe // // Attempts to cancel a service pipeline deployment on an UpdateServicePipeline // action, if the deployment is IN_PROGRESS. For more information, see Update -// a service pipeline in the AWS Proton Administrator guide (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-pipeline-update.html) -// or the AWS Proton User guide (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-pipeline-update.html). +// a service pipeline in the Proton Administrator guide (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-pipeline-update.html) +// or the Proton User guide (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-pipeline-update.html). // // The following list includes potential cancellation scenarios. // @@ -488,10 +488,20 @@ func (c *Proton) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *r // CreateEnvironment API operation for AWS Proton. // -// Deploy a new environment. An AWS Proton environment is created from an environment +// Deploy a new environment. An Proton environment is created from an environment // template that defines infrastructure and resources that can be shared across -// services. For more information, see the Environments (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) -// in the AWS Proton Administrator Guide. +// services. +// +// You can provision environments using the following methods: +// +// * Standard provisioning: Proton makes direct calls to provision your resources. +// +// * Pull request provisioning: Proton makes pull requests on your repository +// to provide compiled infrastructure as code (IaC) files that your IaC engine +// uses to provision resources. +// +// For more information, see the Environments (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) +// in the Proton Administrator 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 @@ -502,8 +512,8 @@ func (c *Proton) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req *r // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -598,7 +608,7 @@ func (c *Proton) CreateEnvironmentAccountConnectionRequest(input *CreateEnvironm // a management account and an environment account that maintains authorization // and permissions. For more information, see Environment account connections // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// in the Proton Administrator 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 @@ -609,8 +619,8 @@ func (c *Proton) CreateEnvironmentAccountConnectionRequest(input *CreateEnvironm // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -694,23 +704,23 @@ func (c *Proton) CreateEnvironmentTemplateRequest(input *CreateEnvironmentTempla // CreateEnvironmentTemplate API operation for AWS Proton. // -// Create an environment template for AWS Proton. For more information, see -// Environment Templates (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) -// in the AWS Proton Administrator Guide. +// Create an environment template for Proton. For more information, see Environment +// Templates (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) +// in the Proton Administrator Guide. // // You can create an environment template in one of the two following ways: // // * Register and publish a standard environment template that instructs -// AWS Proton to deploy and manage environment infrastructure. +// Proton to deploy and manage environment infrastructure. // // * Register and publish a customer managed environment template that connects -// AWS Proton to your existing provisioned infrastructure that you manage. -// AWS Proton doesn't manage your existing provisioned infrastructure. To -// create an environment template for customer provisioned and managed infrastructure, +// Proton to your existing provisioned infrastructure that you manage. Proton +// doesn't manage your existing provisioned infrastructure. To create an +// environment template for customer provisioned and managed infrastructure, // include the provisioning parameter and set the value to CUSTOMER_MANAGED. // For more information, see Register and publish an environment template // (https://docs.aws.amazon.com/proton/latest/adminguide/template-create.html) -// in the AWS Proton Administrator Guide. +// in the Proton Administrator 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 @@ -721,8 +731,8 @@ func (c *Proton) CreateEnvironmentTemplateRequest(input *CreateEnvironmentTempla // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -820,8 +830,8 @@ func (c *Proton) CreateEnvironmentTemplateVersionRequest(input *CreateEnvironmen // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -864,6 +874,106 @@ func (c *Proton) CreateEnvironmentTemplateVersionWithContext(ctx aws.Context, in return out, req.Send() } +const opCreateRepository = "CreateRepository" + +// CreateRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the CreateRepository 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 CreateRepository for more information on using the CreateRepository +// 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 CreateRepositoryRequest method. +// req, resp := client.CreateRepositoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateRepository +func (c *Proton) CreateRepositoryRequest(input *CreateRepositoryInput) (req *request.Request, output *CreateRepositoryOutput) { + op := &request.Operation{ + Name: opCreateRepository, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateRepositoryInput{} + } + + output = &CreateRepositoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateRepository API operation for AWS Proton. +// +// Create and register a link to a repository that can be used with pull request +// provisioning or template sync configurations. For more information, see Template +// bundles (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-bundles.html) +// and Template sync configurations (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-sync-configs.html) +// in the Proton Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation CreateRepository for usage and error information. +// +// Returned Error Types: +// * ServiceQuotaExceededException +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. +// +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateRepository +func (c *Proton) CreateRepository(input *CreateRepositoryInput) (*CreateRepositoryOutput, error) { + req, out := c.CreateRepositoryRequest(input) + return out, req.Send() +} + +// CreateRepositoryWithContext is the same as CreateRepository with the addition of +// the ability to pass a context and additional request options. +// +// See CreateRepository 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 *Proton) CreateRepositoryWithContext(ctx aws.Context, input *CreateRepositoryInput, opts ...request.Option) (*CreateRepositoryOutput, error) { + req, out := c.CreateRepositoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateService = "CreateService" // CreateServiceRequest generates a "aws/request.Request" representing the @@ -908,11 +1018,11 @@ func (c *Proton) CreateServiceRequest(input *CreateServiceInput) (req *request.R // CreateService API operation for AWS Proton. // -// Create an AWS Proton service. An AWS Proton service is an instantiation of -// a service template and often includes several service instances and pipeline. -// For more information, see Services (https://docs.aws.amazon.com/proton/latest/adminguide/ag-services.html) -// in the AWS Proton Administrator Guide and Services (https://docs.aws.amazon.com/proton/latest/userguide/ug-service.html) -// in the AWS Proton User Guide. +// Create an Proton service. An Proton service is an instantiation of a service +// template and often includes several service instances and pipeline. For more +// information, see Services (https://docs.aws.amazon.com/proton/latest/adminguide/ag-services.html) +// in the Proton Administrator Guide and Services (https://docs.aws.amazon.com/proton/latest/userguide/ug-service.html) +// in the Proton 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 @@ -923,8 +1033,8 @@ func (c *Proton) CreateServiceRequest(input *CreateServiceInput) (req *request.R // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -1013,12 +1123,12 @@ func (c *Proton) CreateServiceTemplateRequest(input *CreateServiceTemplateInput) // // Create a service template. The administrator creates a service template to // define standardized infrastructure and an optional CICD service pipeline. -// Developers, in turn, select the service template from AWS Proton. If the -// selected service template includes a service pipeline definition, they provide -// a link to their source code repository. AWS Proton then deploys and manages -// the infrastructure defined by the selected service template. For more information, -// see Service Templates (https://docs.aws.amazon.com/proton/latest/adminguide/managing-svc-templates.html) -// in the AWS Proton Administrator Guide. +// Developers, in turn, select the service template from Proton. If the selected +// service template includes a service pipeline definition, they provide a link +// to their source code repository. Proton then deploys and manages the infrastructure +// defined by the selected service template. For more information, see Service +// Templates (https://docs.aws.amazon.com/proton/latest/adminguide/managing-svc-templates.html) +// in the Proton Administrator 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 @@ -1029,8 +1139,8 @@ func (c *Proton) CreateServiceTemplateRequest(input *CreateServiceTemplateInput) // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -1115,8 +1225,8 @@ func (c *Proton) CreateServiceTemplateVersionRequest(input *CreateServiceTemplat // CreateServiceTemplateVersion API operation for AWS Proton. // // Create a new major or minor version of a service template. A major version -// of a service template is a version that isn't backwards compatible. A minor -// version of a service template is a version that's backwards compatible within +// of a service template is a version that isn't backward compatible. A minor +// version of a service template is a version that's backward compatible within // its major version. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -1128,8 +1238,8 @@ func (c *Proton) CreateServiceTemplateVersionRequest(input *CreateServiceTemplat // // Returned Error Types: // * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. // // * ValidationException // The input is invalid or an out-of-range value was supplied for the input @@ -1172,6 +1282,108 @@ func (c *Proton) CreateServiceTemplateVersionWithContext(ctx aws.Context, input return out, req.Send() } +const opCreateTemplateSyncConfig = "CreateTemplateSyncConfig" + +// CreateTemplateSyncConfigRequest generates a "aws/request.Request" representing the +// client's request for the CreateTemplateSyncConfig 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 CreateTemplateSyncConfig for more information on using the CreateTemplateSyncConfig +// 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 CreateTemplateSyncConfigRequest method. +// req, resp := client.CreateTemplateSyncConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateTemplateSyncConfig +func (c *Proton) CreateTemplateSyncConfigRequest(input *CreateTemplateSyncConfigInput) (req *request.Request, output *CreateTemplateSyncConfigOutput) { + op := &request.Operation{ + Name: opCreateTemplateSyncConfig, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateTemplateSyncConfigInput{} + } + + output = &CreateTemplateSyncConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateTemplateSyncConfig API operation for AWS Proton. +// +// Set up a template for automated template version creation. When a commit +// is pushed to your registered repository (https://docs.aws.amazon.com/proton/latest/APIReference/API_Repository.html), +// Proton checks for changes to your repository template bundles. If it detects +// a template bundle change, a new minor or major version of its template is +// created, if the version doesn’t already exist. For more information, see +// Template sync configurations (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-sync-configs.html) +// in the Proton Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation CreateTemplateSyncConfig for usage and error information. +// +// Returned Error Types: +// * ServiceQuotaExceededException +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. +// +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/CreateTemplateSyncConfig +func (c *Proton) CreateTemplateSyncConfig(input *CreateTemplateSyncConfigInput) (*CreateTemplateSyncConfigOutput, error) { + req, out := c.CreateTemplateSyncConfigRequest(input) + return out, req.Send() +} + +// CreateTemplateSyncConfigWithContext is the same as CreateTemplateSyncConfig with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTemplateSyncConfig 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 *Proton) CreateTemplateSyncConfigWithContext(ctx aws.Context, input *CreateTemplateSyncConfigInput, opts ...request.Option) (*CreateTemplateSyncConfigOutput, error) { + req, out := c.CreateTemplateSyncConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteEnvironment = "DeleteEnvironment" // DeleteEnvironmentRequest generates a "aws/request.Request" representing the @@ -1314,13 +1526,13 @@ func (c *Proton) DeleteEnvironmentAccountConnectionRequest(input *DeleteEnvironm // In an environment account, delete an environment account connection. // // After you delete an environment account connection that’s in use by an -// AWS Proton environment, AWS Proton can’t manage the environment infrastructure +// Proton environment, Proton can’t manage the environment infrastructure // resources until a new environment account connection is accepted for the // environment account and associated environment. You're responsible for cleaning // up provisioned resources that remain without an environment connection. // // For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// in the Proton Administrator 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 @@ -1515,12 +1727,12 @@ func (c *Proton) DeleteEnvironmentTemplateVersionRequest(input *DeleteEnvironmen // version of the environment template if it's not the Recommended version. // Delete the Recommended version of the environment template if no other major // versions or minor versions of the environment template exist. A major version -// of an environment template is a version that's not backwards compatible. +// of an environment template is a version that's not backward compatible. // // Delete a minor version of an environment template if it isn't the Recommended // version. Delete a Recommended minor version of the environment template if // no other minor versions of the environment template exist. A minor version -// of an environment template is a version that's backwards compatible. +// of an environment template is a version that's backward compatible. // // 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 @@ -1571,6 +1783,101 @@ func (c *Proton) DeleteEnvironmentTemplateVersionWithContext(ctx aws.Context, in return out, req.Send() } +const opDeleteRepository = "DeleteRepository" + +// DeleteRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRepository 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 DeleteRepository for more information on using the DeleteRepository +// 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 DeleteRepositoryRequest method. +// req, resp := client.DeleteRepositoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/DeleteRepository +func (c *Proton) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *request.Request, output *DeleteRepositoryOutput) { + op := &request.Operation{ + Name: opDeleteRepository, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteRepositoryInput{} + } + + output = &DeleteRepositoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// DeleteRepository API operation for AWS Proton. +// +// De-register and unlink your repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation DeleteRepository for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/DeleteRepository +func (c *Proton) DeleteRepository(input *DeleteRepositoryInput) (*DeleteRepositoryOutput, error) { + req, out := c.DeleteRepositoryRequest(input) + return out, req.Send() +} + +// DeleteRepositoryWithContext is the same as DeleteRepository with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteRepository 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 *Proton) DeleteRepositoryWithContext(ctx aws.Context, input *DeleteRepositoryInput, opts ...request.Option) (*DeleteRepositoryOutput, error) { + req, out := c.DeleteRepositoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteService = "DeleteService" // DeleteServiceRequest generates a "aws/request.Request" representing the @@ -1866,58 +2173,58 @@ func (c *Proton) DeleteServiceTemplateVersionWithContext(ctx aws.Context, input return out, req.Send() } -const opGetAccountSettings = "GetAccountSettings" +const opDeleteTemplateSyncConfig = "DeleteTemplateSyncConfig" -// GetAccountSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetAccountSettings operation. The "output" return +// DeleteTemplateSyncConfigRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTemplateSyncConfig 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 GetAccountSettings for more information on using the GetAccountSettings +// See DeleteTemplateSyncConfig for more information on using the DeleteTemplateSyncConfig // 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 GetAccountSettingsRequest method. -// req, resp := client.GetAccountSettingsRequest(params) +// // Example sending a request using the DeleteTemplateSyncConfigRequest method. +// req, resp := client.DeleteTemplateSyncConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetAccountSettings -func (c *Proton) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/DeleteTemplateSyncConfig +func (c *Proton) DeleteTemplateSyncConfigRequest(input *DeleteTemplateSyncConfigInput) (req *request.Request, output *DeleteTemplateSyncConfigOutput) { op := &request.Operation{ - Name: opGetAccountSettings, + Name: opDeleteTemplateSyncConfig, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &GetAccountSettingsInput{} + input = &DeleteTemplateSyncConfigInput{} } - output = &GetAccountSettingsOutput{} + output = &DeleteTemplateSyncConfigOutput{} req = c.newRequest(op, input, output) return } -// GetAccountSettings API operation for AWS Proton. +// DeleteTemplateSyncConfig API operation for AWS Proton. // -// Get detail data for the AWS Proton pipeline service role. +// Delete a template sync configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation GetAccountSettings for usage and error information. +// API operation DeleteTemplateSyncConfig for usage and error information. // // Returned Error Types: // * ValidationException @@ -1930,52 +2237,147 @@ func (c *Proton) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req // * ThrottlingException // The request was denied due to request throttling. // +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetAccountSettings -func (c *Proton) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { - req, out := c.GetAccountSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/DeleteTemplateSyncConfig +func (c *Proton) DeleteTemplateSyncConfig(input *DeleteTemplateSyncConfigInput) (*DeleteTemplateSyncConfigOutput, error) { + req, out := c.DeleteTemplateSyncConfigRequest(input) return out, req.Send() } -// GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of +// DeleteTemplateSyncConfigWithContext is the same as DeleteTemplateSyncConfig with the addition of // the ability to pass a context and additional request options. // -// See GetAccountSettings for details on how to use this API operation. +// See DeleteTemplateSyncConfig 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 *Proton) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error) { - req, out := c.GetAccountSettingsRequest(input) +func (c *Proton) DeleteTemplateSyncConfigWithContext(ctx aws.Context, input *DeleteTemplateSyncConfigInput, opts ...request.Option) (*DeleteTemplateSyncConfigOutput, error) { + req, out := c.DeleteTemplateSyncConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetEnvironment = "GetEnvironment" +const opGetAccountSettings = "GetAccountSettings" -// GetEnvironmentRequest generates a "aws/request.Request" representing the -// client's request for the GetEnvironment operation. The "output" return +// GetAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetAccountSettings operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetEnvironment for more information on using the GetEnvironment +// See GetAccountSettings for more information on using the GetAccountSettings // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetEnvironmentRequest method. +// // Example sending a request using the GetAccountSettingsRequest method. +// req, resp := client.GetAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetAccountSettings +func (c *Proton) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { + op := &request.Operation{ + Name: opGetAccountSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetAccountSettingsInput{} + } + + output = &GetAccountSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAccountSettings API operation for AWS Proton. +// +// Get detail data for the Proton pipeline service role. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation GetAccountSettings for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetAccountSettings +func (c *Proton) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) + return out, req.Send() +} + +// GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See GetAccountSettings 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 *Proton) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetEnvironment = "GetEnvironment" + +// GetEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the GetEnvironment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetEnvironment for more information on using the GetEnvironment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetEnvironmentRequest method. // req, resp := client.GetEnvironmentRequest(params) // // err := req.Send() @@ -2098,7 +2500,7 @@ func (c *Proton) GetEnvironmentAccountConnectionRequest(input *GetEnvironmentAcc // connection. // // For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// in the Proton Administrator 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 @@ -2330,6 +2732,190 @@ func (c *Proton) GetEnvironmentTemplateVersionWithContext(ctx aws.Context, input return out, req.Send() } +const opGetRepository = "GetRepository" + +// GetRepositoryRequest generates a "aws/request.Request" representing the +// client's request for the GetRepository 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 GetRepository for more information on using the GetRepository +// 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 GetRepositoryRequest method. +// req, resp := client.GetRepositoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetRepository +func (c *Proton) GetRepositoryRequest(input *GetRepositoryInput) (req *request.Request, output *GetRepositoryOutput) { + op := &request.Operation{ + Name: opGetRepository, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRepositoryInput{} + } + + output = &GetRepositoryOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRepository API operation for AWS Proton. +// +// Get detail data for a repository. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation GetRepository for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetRepository +func (c *Proton) GetRepository(input *GetRepositoryInput) (*GetRepositoryOutput, error) { + req, out := c.GetRepositoryRequest(input) + return out, req.Send() +} + +// GetRepositoryWithContext is the same as GetRepository with the addition of +// the ability to pass a context and additional request options. +// +// See GetRepository 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 *Proton) GetRepositoryWithContext(ctx aws.Context, input *GetRepositoryInput, opts ...request.Option) (*GetRepositoryOutput, error) { + req, out := c.GetRepositoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetRepositorySyncStatus = "GetRepositorySyncStatus" + +// GetRepositorySyncStatusRequest generates a "aws/request.Request" representing the +// client's request for the GetRepositorySyncStatus 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 GetRepositorySyncStatus for more information on using the GetRepositorySyncStatus +// 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 GetRepositorySyncStatusRequest method. +// req, resp := client.GetRepositorySyncStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetRepositorySyncStatus +func (c *Proton) GetRepositorySyncStatusRequest(input *GetRepositorySyncStatusInput) (req *request.Request, output *GetRepositorySyncStatusOutput) { + op := &request.Operation{ + Name: opGetRepositorySyncStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetRepositorySyncStatusInput{} + } + + output = &GetRepositorySyncStatusOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetRepositorySyncStatus API operation for AWS Proton. +// +// Get the repository sync status. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation GetRepositorySyncStatus for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetRepositorySyncStatus +func (c *Proton) GetRepositorySyncStatus(input *GetRepositorySyncStatusInput) (*GetRepositorySyncStatusOutput, error) { + req, out := c.GetRepositorySyncStatusRequest(input) + return out, req.Send() +} + +// GetRepositorySyncStatusWithContext is the same as GetRepositorySyncStatus with the addition of +// the ability to pass a context and additional request options. +// +// See GetRepositorySyncStatus 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 *Proton) GetRepositorySyncStatusWithContext(ctx aws.Context, input *GetRepositorySyncStatusInput, opts ...request.Option) (*GetRepositorySyncStatusOutput, error) { + req, out := c.GetRepositorySyncStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opGetService = "GetService" // GetServiceRequest generates a "aws/request.Request" representing the @@ -2699,67 +3285,58 @@ func (c *Proton) GetServiceTemplateVersionWithContext(ctx aws.Context, input *Ge return out, req.Send() } -const opListEnvironmentAccountConnections = "ListEnvironmentAccountConnections" +const opGetTemplateSyncConfig = "GetTemplateSyncConfig" -// ListEnvironmentAccountConnectionsRequest generates a "aws/request.Request" representing the -// client's request for the ListEnvironmentAccountConnections operation. The "output" return +// GetTemplateSyncConfigRequest generates a "aws/request.Request" representing the +// client's request for the GetTemplateSyncConfig 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 ListEnvironmentAccountConnections for more information on using the ListEnvironmentAccountConnections +// See GetTemplateSyncConfig for more information on using the GetTemplateSyncConfig // 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 ListEnvironmentAccountConnectionsRequest method. -// req, resp := client.ListEnvironmentAccountConnectionsRequest(params) +// // Example sending a request using the GetTemplateSyncConfigRequest method. +// req, resp := client.GetTemplateSyncConfigRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentAccountConnections -func (c *Proton) ListEnvironmentAccountConnectionsRequest(input *ListEnvironmentAccountConnectionsInput) (req *request.Request, output *ListEnvironmentAccountConnectionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetTemplateSyncConfig +func (c *Proton) GetTemplateSyncConfigRequest(input *GetTemplateSyncConfigInput) (req *request.Request, output *GetTemplateSyncConfigOutput) { op := &request.Operation{ - Name: opListEnvironmentAccountConnections, + Name: opGetTemplateSyncConfig, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"nextToken"}, - OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", - TruncationToken: "", - }, } if input == nil { - input = &ListEnvironmentAccountConnectionsInput{} + input = &GetTemplateSyncConfigInput{} } - output = &ListEnvironmentAccountConnectionsOutput{} + output = &GetTemplateSyncConfigOutput{} req = c.newRequest(op, input, output) return } -// ListEnvironmentAccountConnections API operation for AWS Proton. +// GetTemplateSyncConfig API operation for AWS Proton. // -// View a list of environment account connections. -// -// For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// Get detail data for a template sync configuration. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListEnvironmentAccountConnections for usage and error information. +// API operation GetTemplateSyncConfig for usage and error information. // // Returned Error Types: // * ValidationException @@ -2772,112 +3349,155 @@ func (c *Proton) ListEnvironmentAccountConnectionsRequest(input *ListEnvironment // * ThrottlingException // The request was denied due to request throttling. // +// * ResourceNotFoundException +// The requested resource wasn't found. +// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentAccountConnections -func (c *Proton) ListEnvironmentAccountConnections(input *ListEnvironmentAccountConnectionsInput) (*ListEnvironmentAccountConnectionsOutput, error) { - req, out := c.ListEnvironmentAccountConnectionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetTemplateSyncConfig +func (c *Proton) GetTemplateSyncConfig(input *GetTemplateSyncConfigInput) (*GetTemplateSyncConfigOutput, error) { + req, out := c.GetTemplateSyncConfigRequest(input) return out, req.Send() } -// ListEnvironmentAccountConnectionsWithContext is the same as ListEnvironmentAccountConnections with the addition of +// GetTemplateSyncConfigWithContext is the same as GetTemplateSyncConfig with the addition of // the ability to pass a context and additional request options. // -// See ListEnvironmentAccountConnections for details on how to use this API operation. +// See GetTemplateSyncConfig 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 *Proton) ListEnvironmentAccountConnectionsWithContext(ctx aws.Context, input *ListEnvironmentAccountConnectionsInput, opts ...request.Option) (*ListEnvironmentAccountConnectionsOutput, error) { - req, out := c.ListEnvironmentAccountConnectionsRequest(input) +func (c *Proton) GetTemplateSyncConfigWithContext(ctx aws.Context, input *GetTemplateSyncConfigInput, opts ...request.Option) (*GetTemplateSyncConfigOutput, error) { + req, out := c.GetTemplateSyncConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEnvironmentAccountConnectionsPages iterates over the pages of a ListEnvironmentAccountConnections operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opGetTemplateSyncStatus = "GetTemplateSyncStatus" + +// GetTemplateSyncStatusRequest generates a "aws/request.Request" representing the +// client's request for the GetTemplateSyncStatus operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListEnvironmentAccountConnections method for more information on how to use this operation. +// 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. // -// Note: This operation can generate multiple requests to a service. +// See GetTemplateSyncStatus for more information on using the GetTemplateSyncStatus +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListEnvironmentAccountConnections operation. -// pageNum := 0 -// err := client.ListEnvironmentAccountConnectionsPages(params, -// func(page *proton.ListEnvironmentAccountConnectionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// 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. // -func (c *Proton) ListEnvironmentAccountConnectionsPages(input *ListEnvironmentAccountConnectionsInput, fn func(*ListEnvironmentAccountConnectionsOutput, bool) bool) error { - return c.ListEnvironmentAccountConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) +// +// // Example sending a request using the GetTemplateSyncStatusRequest method. +// req, resp := client.GetTemplateSyncStatusRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetTemplateSyncStatus +func (c *Proton) GetTemplateSyncStatusRequest(input *GetTemplateSyncStatusInput) (req *request.Request, output *GetTemplateSyncStatusOutput) { + op := &request.Operation{ + Name: opGetTemplateSyncStatus, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetTemplateSyncStatusInput{} + } + + output = &GetTemplateSyncStatusOutput{} + req = c.newRequest(op, input, output) + return } -// ListEnvironmentAccountConnectionsPagesWithContext same as ListEnvironmentAccountConnectionsPages except -// it takes a Context and allows setting request options on the pages. +// GetTemplateSyncStatus API operation for AWS Proton. +// +// Get the status of a template sync. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation GetTemplateSyncStatus for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/GetTemplateSyncStatus +func (c *Proton) GetTemplateSyncStatus(input *GetTemplateSyncStatusInput) (*GetTemplateSyncStatusOutput, error) { + req, out := c.GetTemplateSyncStatusRequest(input) + return out, req.Send() +} + +// GetTemplateSyncStatusWithContext is the same as GetTemplateSyncStatus with the addition of +// the ability to pass a context and additional request options. +// +// See GetTemplateSyncStatus 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 *Proton) ListEnvironmentAccountConnectionsPagesWithContext(ctx aws.Context, input *ListEnvironmentAccountConnectionsInput, fn func(*ListEnvironmentAccountConnectionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListEnvironmentAccountConnectionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListEnvironmentAccountConnectionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListEnvironmentAccountConnectionsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() +func (c *Proton) GetTemplateSyncStatusWithContext(ctx aws.Context, input *GetTemplateSyncStatusInput, opts ...request.Option) (*GetTemplateSyncStatusOutput, error) { + req, out := c.GetTemplateSyncStatusRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -const opListEnvironmentTemplateVersions = "ListEnvironmentTemplateVersions" +const opListEnvironmentAccountConnections = "ListEnvironmentAccountConnections" -// ListEnvironmentTemplateVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListEnvironmentTemplateVersions operation. The "output" return +// ListEnvironmentAccountConnectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironmentAccountConnections 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 ListEnvironmentTemplateVersions for more information on using the ListEnvironmentTemplateVersions +// See ListEnvironmentAccountConnections for more information on using the ListEnvironmentAccountConnections // 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 ListEnvironmentTemplateVersionsRequest method. -// req, resp := client.ListEnvironmentTemplateVersionsRequest(params) +// // Example sending a request using the ListEnvironmentAccountConnectionsRequest method. +// req, resp := client.ListEnvironmentAccountConnectionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplateVersions -func (c *Proton) ListEnvironmentTemplateVersionsRequest(input *ListEnvironmentTemplateVersionsInput) (req *request.Request, output *ListEnvironmentTemplateVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentAccountConnections +func (c *Proton) ListEnvironmentAccountConnectionsRequest(input *ListEnvironmentAccountConnectionsInput) (req *request.Request, output *ListEnvironmentAccountConnectionsOutput) { op := &request.Operation{ - Name: opListEnvironmentTemplateVersions, + Name: opListEnvironmentAccountConnections, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -2889,24 +3509,27 @@ func (c *Proton) ListEnvironmentTemplateVersionsRequest(input *ListEnvironmentTe } if input == nil { - input = &ListEnvironmentTemplateVersionsInput{} + input = &ListEnvironmentAccountConnectionsInput{} } - output = &ListEnvironmentTemplateVersionsOutput{} + output = &ListEnvironmentAccountConnectionsOutput{} req = c.newRequest(op, input, output) return } -// ListEnvironmentTemplateVersions API operation for AWS Proton. +// ListEnvironmentAccountConnections API operation for AWS Proton. // -// List major or minor versions of an environment template with detail data. +// View a list of environment account connections. +// +// For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the Proton Administrator guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListEnvironmentTemplateVersions for usage and error information. +// API operation ListEnvironmentAccountConnections for usage and error information. // // Returned Error Types: // * ValidationException @@ -2919,71 +3542,68 @@ func (c *Proton) ListEnvironmentTemplateVersionsRequest(input *ListEnvironmentTe // * ThrottlingException // The request was denied due to request throttling. // -// * ResourceNotFoundException -// The requested resource wasn't found. -// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplateVersions -func (c *Proton) ListEnvironmentTemplateVersions(input *ListEnvironmentTemplateVersionsInput) (*ListEnvironmentTemplateVersionsOutput, error) { - req, out := c.ListEnvironmentTemplateVersionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentAccountConnections +func (c *Proton) ListEnvironmentAccountConnections(input *ListEnvironmentAccountConnectionsInput) (*ListEnvironmentAccountConnectionsOutput, error) { + req, out := c.ListEnvironmentAccountConnectionsRequest(input) return out, req.Send() } -// ListEnvironmentTemplateVersionsWithContext is the same as ListEnvironmentTemplateVersions with the addition of +// ListEnvironmentAccountConnectionsWithContext is the same as ListEnvironmentAccountConnections with the addition of // the ability to pass a context and additional request options. // -// See ListEnvironmentTemplateVersions for details on how to use this API operation. +// See ListEnvironmentAccountConnections 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 *Proton) ListEnvironmentTemplateVersionsWithContext(ctx aws.Context, input *ListEnvironmentTemplateVersionsInput, opts ...request.Option) (*ListEnvironmentTemplateVersionsOutput, error) { - req, out := c.ListEnvironmentTemplateVersionsRequest(input) +func (c *Proton) ListEnvironmentAccountConnectionsWithContext(ctx aws.Context, input *ListEnvironmentAccountConnectionsInput, opts ...request.Option) (*ListEnvironmentAccountConnectionsOutput, error) { + req, out := c.ListEnvironmentAccountConnectionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEnvironmentTemplateVersionsPages iterates over the pages of a ListEnvironmentTemplateVersions operation, +// ListEnvironmentAccountConnectionsPages iterates over the pages of a ListEnvironmentAccountConnections operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListEnvironmentTemplateVersions method for more information on how to use this operation. +// See ListEnvironmentAccountConnections 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 ListEnvironmentTemplateVersions operation. +// // Example iterating over at most 3 pages of a ListEnvironmentAccountConnections operation. // pageNum := 0 -// err := client.ListEnvironmentTemplateVersionsPages(params, -// func(page *proton.ListEnvironmentTemplateVersionsOutput, lastPage bool) bool { +// err := client.ListEnvironmentAccountConnectionsPages(params, +// func(page *proton.ListEnvironmentAccountConnectionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListEnvironmentTemplateVersionsPages(input *ListEnvironmentTemplateVersionsInput, fn func(*ListEnvironmentTemplateVersionsOutput, bool) bool) error { - return c.ListEnvironmentTemplateVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListEnvironmentAccountConnectionsPages(input *ListEnvironmentAccountConnectionsInput, fn func(*ListEnvironmentAccountConnectionsOutput, bool) bool) error { + return c.ListEnvironmentAccountConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListEnvironmentTemplateVersionsPagesWithContext same as ListEnvironmentTemplateVersionsPages except +// ListEnvironmentAccountConnectionsPagesWithContext same as ListEnvironmentAccountConnectionsPages 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 *Proton) ListEnvironmentTemplateVersionsPagesWithContext(ctx aws.Context, input *ListEnvironmentTemplateVersionsInput, fn func(*ListEnvironmentTemplateVersionsOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListEnvironmentAccountConnectionsPagesWithContext(ctx aws.Context, input *ListEnvironmentAccountConnectionsInput, fn func(*ListEnvironmentAccountConnectionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListEnvironmentTemplateVersionsInput + var inCpy *ListEnvironmentAccountConnectionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListEnvironmentTemplateVersionsRequest(inCpy) + req, _ := c.ListEnvironmentAccountConnectionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -2991,7 +3611,7 @@ func (c *Proton) ListEnvironmentTemplateVersionsPagesWithContext(ctx aws.Context } for p.Next() { - if !fn(p.Page().(*ListEnvironmentTemplateVersionsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListEnvironmentAccountConnectionsOutput), !p.HasNextPage()) { break } } @@ -2999,64 +3619,64 @@ func (c *Proton) ListEnvironmentTemplateVersionsPagesWithContext(ctx aws.Context return p.Err() } -const opListEnvironmentTemplates = "ListEnvironmentTemplates" +const opListEnvironmentOutputs = "ListEnvironmentOutputs" -// ListEnvironmentTemplatesRequest generates a "aws/request.Request" representing the -// client's request for the ListEnvironmentTemplates operation. The "output" return +// ListEnvironmentOutputsRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironmentOutputs 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 ListEnvironmentTemplates for more information on using the ListEnvironmentTemplates +// See ListEnvironmentOutputs for more information on using the ListEnvironmentOutputs // 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 ListEnvironmentTemplatesRequest method. -// req, resp := client.ListEnvironmentTemplatesRequest(params) +// // Example sending a request using the ListEnvironmentOutputsRequest method. +// req, resp := client.ListEnvironmentOutputsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplates -func (c *Proton) ListEnvironmentTemplatesRequest(input *ListEnvironmentTemplatesInput) (req *request.Request, output *ListEnvironmentTemplatesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentOutputs +func (c *Proton) ListEnvironmentOutputsRequest(input *ListEnvironmentOutputsInput) (req *request.Request, output *ListEnvironmentOutputsOutput) { op := &request.Operation{ - Name: opListEnvironmentTemplates, + Name: opListEnvironmentOutputs, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", + LimitToken: "", TruncationToken: "", }, } if input == nil { - input = &ListEnvironmentTemplatesInput{} + input = &ListEnvironmentOutputsInput{} } - output = &ListEnvironmentTemplatesOutput{} + output = &ListEnvironmentOutputsOutput{} req = c.newRequest(op, input, output) return } -// ListEnvironmentTemplates API operation for AWS Proton. +// ListEnvironmentOutputs API operation for AWS Proton. // -// List environment templates. +// List the infrastructure as code outputs for your environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListEnvironmentTemplates for usage and error information. +// API operation ListEnvironmentOutputs for usage and error information. // // Returned Error Types: // * ValidationException @@ -3069,68 +3689,71 @@ func (c *Proton) ListEnvironmentTemplatesRequest(input *ListEnvironmentTemplates // * ThrottlingException // The request was denied due to request throttling. // +// * ResourceNotFoundException +// The requested resource wasn't found. +// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplates -func (c *Proton) ListEnvironmentTemplates(input *ListEnvironmentTemplatesInput) (*ListEnvironmentTemplatesOutput, error) { - req, out := c.ListEnvironmentTemplatesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentOutputs +func (c *Proton) ListEnvironmentOutputs(input *ListEnvironmentOutputsInput) (*ListEnvironmentOutputsOutput, error) { + req, out := c.ListEnvironmentOutputsRequest(input) return out, req.Send() } -// ListEnvironmentTemplatesWithContext is the same as ListEnvironmentTemplates with the addition of +// ListEnvironmentOutputsWithContext is the same as ListEnvironmentOutputs with the addition of // the ability to pass a context and additional request options. // -// See ListEnvironmentTemplates for details on how to use this API operation. +// See ListEnvironmentOutputs 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 *Proton) ListEnvironmentTemplatesWithContext(ctx aws.Context, input *ListEnvironmentTemplatesInput, opts ...request.Option) (*ListEnvironmentTemplatesOutput, error) { - req, out := c.ListEnvironmentTemplatesRequest(input) +func (c *Proton) ListEnvironmentOutputsWithContext(ctx aws.Context, input *ListEnvironmentOutputsInput, opts ...request.Option) (*ListEnvironmentOutputsOutput, error) { + req, out := c.ListEnvironmentOutputsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEnvironmentTemplatesPages iterates over the pages of a ListEnvironmentTemplates operation, +// ListEnvironmentOutputsPages iterates over the pages of a ListEnvironmentOutputs operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListEnvironmentTemplates method for more information on how to use this operation. +// See ListEnvironmentOutputs 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 ListEnvironmentTemplates operation. +// // Example iterating over at most 3 pages of a ListEnvironmentOutputs operation. // pageNum := 0 -// err := client.ListEnvironmentTemplatesPages(params, -// func(page *proton.ListEnvironmentTemplatesOutput, lastPage bool) bool { +// err := client.ListEnvironmentOutputsPages(params, +// func(page *proton.ListEnvironmentOutputsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListEnvironmentTemplatesPages(input *ListEnvironmentTemplatesInput, fn func(*ListEnvironmentTemplatesOutput, bool) bool) error { - return c.ListEnvironmentTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListEnvironmentOutputsPages(input *ListEnvironmentOutputsInput, fn func(*ListEnvironmentOutputsOutput, bool) bool) error { + return c.ListEnvironmentOutputsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListEnvironmentTemplatesPagesWithContext same as ListEnvironmentTemplatesPages except +// ListEnvironmentOutputsPagesWithContext same as ListEnvironmentOutputsPages 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 *Proton) ListEnvironmentTemplatesPagesWithContext(ctx aws.Context, input *ListEnvironmentTemplatesInput, fn func(*ListEnvironmentTemplatesOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListEnvironmentOutputsPagesWithContext(ctx aws.Context, input *ListEnvironmentOutputsInput, fn func(*ListEnvironmentOutputsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListEnvironmentTemplatesInput + var inCpy *ListEnvironmentOutputsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListEnvironmentTemplatesRequest(inCpy) + req, _ := c.ListEnvironmentOutputsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3138,7 +3761,7 @@ func (c *Proton) ListEnvironmentTemplatesPagesWithContext(ctx aws.Context, input } for p.Next() { - if !fn(p.Page().(*ListEnvironmentTemplatesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListEnvironmentOutputsOutput), !p.HasNextPage()) { break } } @@ -3146,64 +3769,64 @@ func (c *Proton) ListEnvironmentTemplatesPagesWithContext(ctx aws.Context, input return p.Err() } -const opListEnvironments = "ListEnvironments" +const opListEnvironmentProvisionedResources = "ListEnvironmentProvisionedResources" -// ListEnvironmentsRequest generates a "aws/request.Request" representing the -// client's request for the ListEnvironments operation. The "output" return +// ListEnvironmentProvisionedResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironmentProvisionedResources operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListEnvironments for more information on using the ListEnvironments +// See ListEnvironmentProvisionedResources for more information on using the ListEnvironmentProvisionedResources // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListEnvironmentsRequest method. -// req, resp := client.ListEnvironmentsRequest(params) +// // Example sending a request using the ListEnvironmentProvisionedResourcesRequest method. +// req, resp := client.ListEnvironmentProvisionedResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironments -func (c *Proton) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *request.Request, output *ListEnvironmentsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentProvisionedResources +func (c *Proton) ListEnvironmentProvisionedResourcesRequest(input *ListEnvironmentProvisionedResourcesInput) (req *request.Request, output *ListEnvironmentProvisionedResourcesOutput) { op := &request.Operation{ - Name: opListEnvironments, + Name: opListEnvironmentProvisionedResources, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", + LimitToken: "", TruncationToken: "", }, } if input == nil { - input = &ListEnvironmentsInput{} + input = &ListEnvironmentProvisionedResourcesInput{} } - output = &ListEnvironmentsOutput{} + output = &ListEnvironmentProvisionedResourcesOutput{} req = c.newRequest(op, input, output) return } -// ListEnvironments API operation for AWS Proton. +// ListEnvironmentProvisionedResources API operation for AWS Proton. // -// List environments with detail data summaries. +// List the provisioned resources for your environment. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListEnvironments for usage and error information. +// API operation ListEnvironmentProvisionedResources for usage and error information. // // Returned Error Types: // * ValidationException @@ -3222,65 +3845,65 @@ func (c *Proton) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *req // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironments -func (c *Proton) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironmentsOutput, error) { - req, out := c.ListEnvironmentsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentProvisionedResources +func (c *Proton) ListEnvironmentProvisionedResources(input *ListEnvironmentProvisionedResourcesInput) (*ListEnvironmentProvisionedResourcesOutput, error) { + req, out := c.ListEnvironmentProvisionedResourcesRequest(input) return out, req.Send() } -// ListEnvironmentsWithContext is the same as ListEnvironments with the addition of +// ListEnvironmentProvisionedResourcesWithContext is the same as ListEnvironmentProvisionedResources with the addition of // the ability to pass a context and additional request options. // -// See ListEnvironments for details on how to use this API operation. +// See ListEnvironmentProvisionedResources 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 *Proton) ListEnvironmentsWithContext(ctx aws.Context, input *ListEnvironmentsInput, opts ...request.Option) (*ListEnvironmentsOutput, error) { - req, out := c.ListEnvironmentsRequest(input) +func (c *Proton) ListEnvironmentProvisionedResourcesWithContext(ctx aws.Context, input *ListEnvironmentProvisionedResourcesInput, opts ...request.Option) (*ListEnvironmentProvisionedResourcesOutput, error) { + req, out := c.ListEnvironmentProvisionedResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListEnvironmentsPages iterates over the pages of a ListEnvironments operation, +// ListEnvironmentProvisionedResourcesPages iterates over the pages of a ListEnvironmentProvisionedResources operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListEnvironments method for more information on how to use this operation. +// See ListEnvironmentProvisionedResources method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListEnvironments operation. +// // Example iterating over at most 3 pages of a ListEnvironmentProvisionedResources operation. // pageNum := 0 -// err := client.ListEnvironmentsPages(params, -// func(page *proton.ListEnvironmentsOutput, lastPage bool) bool { +// err := client.ListEnvironmentProvisionedResourcesPages(params, +// func(page *proton.ListEnvironmentProvisionedResourcesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListEnvironmentsPages(input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool) error { - return c.ListEnvironmentsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListEnvironmentProvisionedResourcesPages(input *ListEnvironmentProvisionedResourcesInput, fn func(*ListEnvironmentProvisionedResourcesOutput, bool) bool) error { + return c.ListEnvironmentProvisionedResourcesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListEnvironmentsPagesWithContext same as ListEnvironmentsPages except +// ListEnvironmentProvisionedResourcesPagesWithContext same as ListEnvironmentProvisionedResourcesPages 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 *Proton) ListEnvironmentsPagesWithContext(ctx aws.Context, input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListEnvironmentProvisionedResourcesPagesWithContext(ctx aws.Context, input *ListEnvironmentProvisionedResourcesInput, fn func(*ListEnvironmentProvisionedResourcesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListEnvironmentsInput + var inCpy *ListEnvironmentProvisionedResourcesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListEnvironmentsRequest(inCpy) + req, _ := c.ListEnvironmentProvisionedResourcesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3288,7 +3911,7 @@ func (c *Proton) ListEnvironmentsPagesWithContext(ctx aws.Context, input *ListEn } for p.Next() { - if !fn(p.Page().(*ListEnvironmentsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListEnvironmentProvisionedResourcesOutput), !p.HasNextPage()) { break } } @@ -3296,35 +3919,35 @@ func (c *Proton) ListEnvironmentsPagesWithContext(ctx aws.Context, input *ListEn return p.Err() } -const opListServiceInstances = "ListServiceInstances" +const opListEnvironmentTemplateVersions = "ListEnvironmentTemplateVersions" -// ListServiceInstancesRequest generates a "aws/request.Request" representing the -// client's request for the ListServiceInstances operation. The "output" return +// ListEnvironmentTemplateVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironmentTemplateVersions 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 ListServiceInstances for more information on using the ListServiceInstances +// See ListEnvironmentTemplateVersions for more information on using the ListEnvironmentTemplateVersions // 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 ListServiceInstancesRequest method. -// req, resp := client.ListServiceInstancesRequest(params) +// // Example sending a request using the ListEnvironmentTemplateVersionsRequest method. +// req, resp := client.ListEnvironmentTemplateVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstances -func (c *Proton) ListServiceInstancesRequest(input *ListServiceInstancesInput) (req *request.Request, output *ListServiceInstancesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplateVersions +func (c *Proton) ListEnvironmentTemplateVersionsRequest(input *ListEnvironmentTemplateVersionsInput) (req *request.Request, output *ListEnvironmentTemplateVersionsOutput) { op := &request.Operation{ - Name: opListServiceInstances, + Name: opListEnvironmentTemplateVersions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3336,24 +3959,24 @@ func (c *Proton) ListServiceInstancesRequest(input *ListServiceInstancesInput) ( } if input == nil { - input = &ListServiceInstancesInput{} + input = &ListEnvironmentTemplateVersionsInput{} } - output = &ListServiceInstancesOutput{} + output = &ListEnvironmentTemplateVersionsOutput{} req = c.newRequest(op, input, output) return } -// ListServiceInstances API operation for AWS Proton. +// ListEnvironmentTemplateVersions API operation for AWS Proton. // -// List service instances with summaries of detail data. +// List major or minor versions of an environment template with detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListServiceInstances for usage and error information. +// API operation ListEnvironmentTemplateVersions for usage and error information. // // Returned Error Types: // * ValidationException @@ -3372,65 +3995,65 @@ func (c *Proton) ListServiceInstancesRequest(input *ListServiceInstancesInput) ( // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstances -func (c *Proton) ListServiceInstances(input *ListServiceInstancesInput) (*ListServiceInstancesOutput, error) { - req, out := c.ListServiceInstancesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplateVersions +func (c *Proton) ListEnvironmentTemplateVersions(input *ListEnvironmentTemplateVersionsInput) (*ListEnvironmentTemplateVersionsOutput, error) { + req, out := c.ListEnvironmentTemplateVersionsRequest(input) return out, req.Send() } -// ListServiceInstancesWithContext is the same as ListServiceInstances with the addition of +// ListEnvironmentTemplateVersionsWithContext is the same as ListEnvironmentTemplateVersions with the addition of // the ability to pass a context and additional request options. // -// See ListServiceInstances for details on how to use this API operation. +// See ListEnvironmentTemplateVersions 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 *Proton) ListServiceInstancesWithContext(ctx aws.Context, input *ListServiceInstancesInput, opts ...request.Option) (*ListServiceInstancesOutput, error) { - req, out := c.ListServiceInstancesRequest(input) +func (c *Proton) ListEnvironmentTemplateVersionsWithContext(ctx aws.Context, input *ListEnvironmentTemplateVersionsInput, opts ...request.Option) (*ListEnvironmentTemplateVersionsOutput, error) { + req, out := c.ListEnvironmentTemplateVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListServiceInstancesPages iterates over the pages of a ListServiceInstances operation, +// ListEnvironmentTemplateVersionsPages iterates over the pages of a ListEnvironmentTemplateVersions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListServiceInstances method for more information on how to use this operation. +// See ListEnvironmentTemplateVersions 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 ListServiceInstances operation. +// // Example iterating over at most 3 pages of a ListEnvironmentTemplateVersions operation. // pageNum := 0 -// err := client.ListServiceInstancesPages(params, -// func(page *proton.ListServiceInstancesOutput, lastPage bool) bool { +// err := client.ListEnvironmentTemplateVersionsPages(params, +// func(page *proton.ListEnvironmentTemplateVersionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListServiceInstancesPages(input *ListServiceInstancesInput, fn func(*ListServiceInstancesOutput, bool) bool) error { - return c.ListServiceInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListEnvironmentTemplateVersionsPages(input *ListEnvironmentTemplateVersionsInput, fn func(*ListEnvironmentTemplateVersionsOutput, bool) bool) error { + return c.ListEnvironmentTemplateVersionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListServiceInstancesPagesWithContext same as ListServiceInstancesPages except +// ListEnvironmentTemplateVersionsPagesWithContext same as ListEnvironmentTemplateVersionsPages 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 *Proton) ListServiceInstancesPagesWithContext(ctx aws.Context, input *ListServiceInstancesInput, fn func(*ListServiceInstancesOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListEnvironmentTemplateVersionsPagesWithContext(ctx aws.Context, input *ListEnvironmentTemplateVersionsInput, fn func(*ListEnvironmentTemplateVersionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListServiceInstancesInput + var inCpy *ListEnvironmentTemplateVersionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListServiceInstancesRequest(inCpy) + req, _ := c.ListEnvironmentTemplateVersionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3438,7 +4061,7 @@ func (c *Proton) ListServiceInstancesPagesWithContext(ctx aws.Context, input *Li } for p.Next() { - if !fn(p.Page().(*ListServiceInstancesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListEnvironmentTemplateVersionsOutput), !p.HasNextPage()) { break } } @@ -3446,35 +4069,35 @@ func (c *Proton) ListServiceInstancesPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListServiceTemplateVersions = "ListServiceTemplateVersions" +const opListEnvironmentTemplates = "ListEnvironmentTemplates" -// ListServiceTemplateVersionsRequest generates a "aws/request.Request" representing the -// client's request for the ListServiceTemplateVersions operation. The "output" return +// ListEnvironmentTemplatesRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironmentTemplates 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 ListServiceTemplateVersions for more information on using the ListServiceTemplateVersions +// See ListEnvironmentTemplates for more information on using the ListEnvironmentTemplates // 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 ListServiceTemplateVersionsRequest method. -// req, resp := client.ListServiceTemplateVersionsRequest(params) +// // Example sending a request using the ListEnvironmentTemplatesRequest method. +// req, resp := client.ListEnvironmentTemplatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplateVersions -func (c *Proton) ListServiceTemplateVersionsRequest(input *ListServiceTemplateVersionsInput) (req *request.Request, output *ListServiceTemplateVersionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplates +func (c *Proton) ListEnvironmentTemplatesRequest(input *ListEnvironmentTemplatesInput) (req *request.Request, output *ListEnvironmentTemplatesOutput) { op := &request.Operation{ - Name: opListServiceTemplateVersions, + Name: opListEnvironmentTemplates, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3486,24 +4109,24 @@ func (c *Proton) ListServiceTemplateVersionsRequest(input *ListServiceTemplateVe } if input == nil { - input = &ListServiceTemplateVersionsInput{} + input = &ListEnvironmentTemplatesInput{} } - output = &ListServiceTemplateVersionsOutput{} + output = &ListEnvironmentTemplatesOutput{} req = c.newRequest(op, input, output) return } -// ListServiceTemplateVersions API operation for AWS Proton. +// ListEnvironmentTemplates API operation for AWS Proton. // -// List major or minor versions of a service template with detail data. +// List environment templates. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListServiceTemplateVersions for usage and error information. +// API operation ListEnvironmentTemplates for usage and error information. // // Returned Error Types: // * ValidationException @@ -3516,71 +4139,68 @@ func (c *Proton) ListServiceTemplateVersionsRequest(input *ListServiceTemplateVe // * ThrottlingException // The request was denied due to request throttling. // -// * ResourceNotFoundException -// The requested resource wasn't found. -// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplateVersions -func (c *Proton) ListServiceTemplateVersions(input *ListServiceTemplateVersionsInput) (*ListServiceTemplateVersionsOutput, error) { - req, out := c.ListServiceTemplateVersionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironmentTemplates +func (c *Proton) ListEnvironmentTemplates(input *ListEnvironmentTemplatesInput) (*ListEnvironmentTemplatesOutput, error) { + req, out := c.ListEnvironmentTemplatesRequest(input) return out, req.Send() } -// ListServiceTemplateVersionsWithContext is the same as ListServiceTemplateVersions with the addition of +// ListEnvironmentTemplatesWithContext is the same as ListEnvironmentTemplates with the addition of // the ability to pass a context and additional request options. // -// See ListServiceTemplateVersions for details on how to use this API operation. +// See ListEnvironmentTemplates 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 *Proton) ListServiceTemplateVersionsWithContext(ctx aws.Context, input *ListServiceTemplateVersionsInput, opts ...request.Option) (*ListServiceTemplateVersionsOutput, error) { - req, out := c.ListServiceTemplateVersionsRequest(input) +func (c *Proton) ListEnvironmentTemplatesWithContext(ctx aws.Context, input *ListEnvironmentTemplatesInput, opts ...request.Option) (*ListEnvironmentTemplatesOutput, error) { + req, out := c.ListEnvironmentTemplatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListServiceTemplateVersionsPages iterates over the pages of a ListServiceTemplateVersions operation, +// ListEnvironmentTemplatesPages iterates over the pages of a ListEnvironmentTemplates operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListServiceTemplateVersions method for more information on how to use this operation. +// See ListEnvironmentTemplates 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 ListServiceTemplateVersions operation. +// // Example iterating over at most 3 pages of a ListEnvironmentTemplates operation. // pageNum := 0 -// err := client.ListServiceTemplateVersionsPages(params, -// func(page *proton.ListServiceTemplateVersionsOutput, lastPage bool) bool { +// err := client.ListEnvironmentTemplatesPages(params, +// func(page *proton.ListEnvironmentTemplatesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListServiceTemplateVersionsPages(input *ListServiceTemplateVersionsInput, fn func(*ListServiceTemplateVersionsOutput, bool) bool) error { - return c.ListServiceTemplateVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListEnvironmentTemplatesPages(input *ListEnvironmentTemplatesInput, fn func(*ListEnvironmentTemplatesOutput, bool) bool) error { + return c.ListEnvironmentTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListServiceTemplateVersionsPagesWithContext same as ListServiceTemplateVersionsPages except +// ListEnvironmentTemplatesPagesWithContext same as ListEnvironmentTemplatesPages 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 *Proton) ListServiceTemplateVersionsPagesWithContext(ctx aws.Context, input *ListServiceTemplateVersionsInput, fn func(*ListServiceTemplateVersionsOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListEnvironmentTemplatesPagesWithContext(ctx aws.Context, input *ListEnvironmentTemplatesInput, fn func(*ListEnvironmentTemplatesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListServiceTemplateVersionsInput + var inCpy *ListEnvironmentTemplatesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListServiceTemplateVersionsRequest(inCpy) + req, _ := c.ListEnvironmentTemplatesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3588,7 +4208,7 @@ func (c *Proton) ListServiceTemplateVersionsPagesWithContext(ctx aws.Context, in } for p.Next() { - if !fn(p.Page().(*ListServiceTemplateVersionsOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListEnvironmentTemplatesOutput), !p.HasNextPage()) { break } } @@ -3596,35 +4216,35 @@ func (c *Proton) ListServiceTemplateVersionsPagesWithContext(ctx aws.Context, in return p.Err() } -const opListServiceTemplates = "ListServiceTemplates" +const opListEnvironments = "ListEnvironments" -// ListServiceTemplatesRequest generates a "aws/request.Request" representing the -// client's request for the ListServiceTemplates operation. The "output" return +// ListEnvironmentsRequest generates a "aws/request.Request" representing the +// client's request for the ListEnvironments operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListServiceTemplates for more information on using the ListServiceTemplates +// See ListEnvironments for more information on using the ListEnvironments // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListServiceTemplatesRequest method. -// req, resp := client.ListServiceTemplatesRequest(params) +// // Example sending a request using the ListEnvironmentsRequest method. +// req, resp := client.ListEnvironmentsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplates -func (c *Proton) ListServiceTemplatesRequest(input *ListServiceTemplatesInput) (req *request.Request, output *ListServiceTemplatesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironments +func (c *Proton) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *request.Request, output *ListEnvironmentsOutput) { op := &request.Operation{ - Name: opListServiceTemplates, + Name: opListEnvironments, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3636,24 +4256,24 @@ func (c *Proton) ListServiceTemplatesRequest(input *ListServiceTemplatesInput) ( } if input == nil { - input = &ListServiceTemplatesInput{} + input = &ListEnvironmentsInput{} } - output = &ListServiceTemplatesOutput{} + output = &ListEnvironmentsOutput{} req = c.newRequest(op, input, output) return } -// ListServiceTemplates API operation for AWS Proton. +// ListEnvironments API operation for AWS Proton. // -// List service templates with detail data. +// List environments with detail data summaries. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListServiceTemplates for usage and error information. +// API operation ListEnvironments for usage and error information. // // Returned Error Types: // * ValidationException @@ -3666,68 +4286,71 @@ func (c *Proton) ListServiceTemplatesRequest(input *ListServiceTemplatesInput) ( // * ThrottlingException // The request was denied due to request throttling. // +// * ResourceNotFoundException +// The requested resource wasn't found. +// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplates -func (c *Proton) ListServiceTemplates(input *ListServiceTemplatesInput) (*ListServiceTemplatesOutput, error) { - req, out := c.ListServiceTemplatesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListEnvironments +func (c *Proton) ListEnvironments(input *ListEnvironmentsInput) (*ListEnvironmentsOutput, error) { + req, out := c.ListEnvironmentsRequest(input) return out, req.Send() } -// ListServiceTemplatesWithContext is the same as ListServiceTemplates with the addition of +// ListEnvironmentsWithContext is the same as ListEnvironments with the addition of // the ability to pass a context and additional request options. // -// See ListServiceTemplates for details on how to use this API operation. +// See ListEnvironments for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Proton) ListServiceTemplatesWithContext(ctx aws.Context, input *ListServiceTemplatesInput, opts ...request.Option) (*ListServiceTemplatesOutput, error) { - req, out := c.ListServiceTemplatesRequest(input) +func (c *Proton) ListEnvironmentsWithContext(ctx aws.Context, input *ListEnvironmentsInput, opts ...request.Option) (*ListEnvironmentsOutput, error) { + req, out := c.ListEnvironmentsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListServiceTemplatesPages iterates over the pages of a ListServiceTemplates operation, +// ListEnvironmentsPages iterates over the pages of a ListEnvironments operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListServiceTemplates method for more information on how to use this operation. +// See ListEnvironments method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListServiceTemplates operation. +// // Example iterating over at most 3 pages of a ListEnvironments operation. // pageNum := 0 -// err := client.ListServiceTemplatesPages(params, -// func(page *proton.ListServiceTemplatesOutput, lastPage bool) bool { +// err := client.ListEnvironmentsPages(params, +// func(page *proton.ListEnvironmentsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListServiceTemplatesPages(input *ListServiceTemplatesInput, fn func(*ListServiceTemplatesOutput, bool) bool) error { - return c.ListServiceTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListEnvironmentsPages(input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool) error { + return c.ListEnvironmentsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListServiceTemplatesPagesWithContext same as ListServiceTemplatesPages except +// ListEnvironmentsPagesWithContext same as ListEnvironmentsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Proton) ListServiceTemplatesPagesWithContext(ctx aws.Context, input *ListServiceTemplatesInput, fn func(*ListServiceTemplatesOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListEnvironmentsPagesWithContext(ctx aws.Context, input *ListEnvironmentsInput, fn func(*ListEnvironmentsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListServiceTemplatesInput + var inCpy *ListEnvironmentsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListServiceTemplatesRequest(inCpy) + req, _ := c.ListEnvironmentsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3735,7 +4358,7 @@ func (c *Proton) ListServiceTemplatesPagesWithContext(ctx aws.Context, input *Li } for p.Next() { - if !fn(p.Page().(*ListServiceTemplatesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListEnvironmentsOutput), !p.HasNextPage()) { break } } @@ -3743,35 +4366,35 @@ func (c *Proton) ListServiceTemplatesPagesWithContext(ctx aws.Context, input *Li return p.Err() } -const opListServices = "ListServices" +const opListRepositories = "ListRepositories" -// ListServicesRequest generates a "aws/request.Request" representing the -// client's request for the ListServices operation. The "output" return +// ListRepositoriesRequest generates a "aws/request.Request" representing the +// client's request for the ListRepositories 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 ListServices for more information on using the ListServices +// See ListRepositories for more information on using the ListRepositories // 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 ListServicesRequest method. -// req, resp := client.ListServicesRequest(params) +// // Example sending a request using the ListRepositoriesRequest method. +// req, resp := client.ListRepositoriesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServices -func (c *Proton) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListRepositories +func (c *Proton) ListRepositoriesRequest(input *ListRepositoriesInput) (req *request.Request, output *ListRepositoriesOutput) { op := &request.Operation{ - Name: opListServices, + Name: opListRepositories, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ @@ -3783,24 +4406,24 @@ func (c *Proton) ListServicesRequest(input *ListServicesInput) (req *request.Req } if input == nil { - input = &ListServicesInput{} + input = &ListRepositoriesInput{} } - output = &ListServicesOutput{} + output = &ListRepositoriesOutput{} req = c.newRequest(op, input, output) return } -// ListServices API operation for AWS Proton. +// ListRepositories API operation for AWS Proton. // -// List services with summaries of detail data. +// List repositories with detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListServices for usage and error information. +// API operation ListRepositories for usage and error information. // // Returned Error Types: // * ValidationException @@ -3813,68 +4436,71 @@ func (c *Proton) ListServicesRequest(input *ListServicesInput) (req *request.Req // * ThrottlingException // The request was denied due to request throttling. // +// * ResourceNotFoundException +// The requested resource wasn't found. +// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServices -func (c *Proton) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { - req, out := c.ListServicesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListRepositories +func (c *Proton) ListRepositories(input *ListRepositoriesInput) (*ListRepositoriesOutput, error) { + req, out := c.ListRepositoriesRequest(input) return out, req.Send() } -// ListServicesWithContext is the same as ListServices with the addition of +// ListRepositoriesWithContext is the same as ListRepositories with the addition of // the ability to pass a context and additional request options. // -// See ListServices for details on how to use this API operation. +// See ListRepositories 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 *Proton) ListServicesWithContext(ctx aws.Context, input *ListServicesInput, opts ...request.Option) (*ListServicesOutput, error) { - req, out := c.ListServicesRequest(input) +func (c *Proton) ListRepositoriesWithContext(ctx aws.Context, input *ListRepositoriesInput, opts ...request.Option) (*ListRepositoriesOutput, error) { + req, out := c.ListRepositoriesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListServicesPages iterates over the pages of a ListServices operation, +// ListRepositoriesPages iterates over the pages of a ListRepositories operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListServices method for more information on how to use this operation. +// See ListRepositories 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 ListServices operation. +// // Example iterating over at most 3 pages of a ListRepositories operation. // pageNum := 0 -// err := client.ListServicesPages(params, -// func(page *proton.ListServicesOutput, lastPage bool) bool { +// err := client.ListRepositoriesPages(params, +// func(page *proton.ListRepositoriesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListServicesPages(input *ListServicesInput, fn func(*ListServicesOutput, bool) bool) error { - return c.ListServicesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListRepositoriesPages(input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool) error { + return c.ListRepositoriesPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListServicesPagesWithContext same as ListServicesPages except +// ListRepositoriesPagesWithContext same as ListRepositoriesPages 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 *Proton) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesInput, fn func(*ListServicesOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListRepositoriesPagesWithContext(ctx aws.Context, input *ListRepositoriesInput, fn func(*ListRepositoriesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListServicesInput + var inCpy *ListRepositoriesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListServicesRequest(inCpy) + req, _ := c.ListRepositoriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3882,7 +4508,7 @@ func (c *Proton) ListServicesPagesWithContext(ctx aws.Context, input *ListServic } for p.Next() { - if !fn(p.Page().(*ListServicesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListRepositoriesOutput), !p.HasNextPage()) { break } } @@ -3890,66 +4516,64 @@ func (c *Proton) ListServicesPagesWithContext(ctx aws.Context, input *ListServic return p.Err() } -const opListTagsForResource = "ListTagsForResource" +const opListRepositorySyncDefinitions = "ListRepositorySyncDefinitions" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// ListRepositorySyncDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListRepositorySyncDefinitions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTagsForResource for more information on using the ListTagsForResource +// See ListRepositorySyncDefinitions for more information on using the ListRepositorySyncDefinitions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the ListRepositorySyncDefinitionsRequest method. +// req, resp := client.ListRepositorySyncDefinitionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListTagsForResource -func (c *Proton) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListRepositorySyncDefinitions +func (c *Proton) ListRepositorySyncDefinitionsRequest(input *ListRepositorySyncDefinitionsInput) (req *request.Request, output *ListRepositorySyncDefinitionsOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opListRepositorySyncDefinitions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, - LimitToken: "maxResults", + LimitToken: "", TruncationToken: "", }, } if input == nil { - input = &ListTagsForResourceInput{} + input = &ListRepositorySyncDefinitionsInput{} } - output = &ListTagsForResourceOutput{} + output = &ListRepositorySyncDefinitionsOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for AWS Proton. +// ListRepositorySyncDefinitions API operation for AWS Proton. // -// List tags for a resource. For more information, see AWS Proton resources -// and tagging in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) -// or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). +// List repository sync definitions with detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation ListTagsForResource for usage and error information. +// API operation ListRepositorySyncDefinitions for usage and error information. // // Returned Error Types: // * ValidationException @@ -3962,71 +4586,68 @@ func (c *Proton) ListTagsForResourceRequest(input *ListTagsForResourceInput) (re // * ThrottlingException // The request was denied due to request throttling. // -// * ResourceNotFoundException -// The requested resource wasn't found. -// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListTagsForResource -func (c *Proton) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListRepositorySyncDefinitions +func (c *Proton) ListRepositorySyncDefinitions(input *ListRepositorySyncDefinitionsInput) (*ListRepositorySyncDefinitionsOutput, error) { + req, out := c.ListRepositorySyncDefinitionsRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// ListRepositorySyncDefinitionsWithContext is the same as ListRepositorySyncDefinitions with the addition of // the ability to pass a context and additional request options. // -// See ListTagsForResource for details on how to use this API operation. +// See ListRepositorySyncDefinitions 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 *Proton) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *Proton) ListRepositorySyncDefinitionsWithContext(ctx aws.Context, input *ListRepositorySyncDefinitionsInput, opts ...request.Option) (*ListRepositorySyncDefinitionsOutput, error) { + req, out := c.ListRepositorySyncDefinitionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, +// ListRepositorySyncDefinitionsPages iterates over the pages of a ListRepositorySyncDefinitions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListTagsForResource method for more information on how to use this operation. +// See ListRepositorySyncDefinitions 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 ListTagsForResource operation. +// // Example iterating over at most 3 pages of a ListRepositorySyncDefinitions operation. // pageNum := 0 -// err := client.ListTagsForResourcePages(params, -// func(page *proton.ListTagsForResourceOutput, lastPage bool) bool { +// err := client.ListRepositorySyncDefinitionsPages(params, +// func(page *proton.ListRepositorySyncDefinitionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Proton) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { - return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Proton) ListRepositorySyncDefinitionsPages(input *ListRepositorySyncDefinitionsInput, fn func(*ListRepositorySyncDefinitionsOutput, bool) bool) error { + return c.ListRepositorySyncDefinitionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListTagsForResourcePagesWithContext same as ListTagsForResourcePages except +// ListRepositorySyncDefinitionsPagesWithContext same as ListRepositorySyncDefinitionsPages 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 *Proton) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { +func (c *Proton) ListRepositorySyncDefinitionsPagesWithContext(ctx aws.Context, input *ListRepositorySyncDefinitionsInput, fn func(*ListRepositorySyncDefinitionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListTagsForResourceInput + var inCpy *ListRepositorySyncDefinitionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListTagsForResourceRequest(inCpy) + req, _ := c.ListRepositorySyncDefinitionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4034,7 +4655,7 @@ func (c *Proton) ListTagsForResourcePagesWithContext(ctx aws.Context, input *Lis } for p.Next() { - if !fn(p.Page().(*ListTagsForResourceOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListRepositorySyncDefinitionsOutput), !p.HasNextPage()) { break } } @@ -4042,68 +4663,64 @@ func (c *Proton) ListTagsForResourcePagesWithContext(ctx aws.Context, input *Lis return p.Err() } -const opRejectEnvironmentAccountConnection = "RejectEnvironmentAccountConnection" +const opListServiceInstanceOutputs = "ListServiceInstanceOutputs" -// RejectEnvironmentAccountConnectionRequest generates a "aws/request.Request" representing the -// client's request for the RejectEnvironmentAccountConnection operation. The "output" return +// ListServiceInstanceOutputsRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceInstanceOutputs 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 RejectEnvironmentAccountConnection for more information on using the RejectEnvironmentAccountConnection +// See ListServiceInstanceOutputs for more information on using the ListServiceInstanceOutputs // 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 RejectEnvironmentAccountConnectionRequest method. -// req, resp := client.RejectEnvironmentAccountConnectionRequest(params) +// // Example sending a request using the ListServiceInstanceOutputsRequest method. +// req, resp := client.ListServiceInstanceOutputsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/RejectEnvironmentAccountConnection -func (c *Proton) RejectEnvironmentAccountConnectionRequest(input *RejectEnvironmentAccountConnectionInput) (req *request.Request, output *RejectEnvironmentAccountConnectionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstanceOutputs +func (c *Proton) ListServiceInstanceOutputsRequest(input *ListServiceInstanceOutputsInput) (req *request.Request, output *ListServiceInstanceOutputsOutput) { op := &request.Operation{ - Name: opRejectEnvironmentAccountConnection, + Name: opListServiceInstanceOutputs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, } if input == nil { - input = &RejectEnvironmentAccountConnectionInput{} + input = &ListServiceInstanceOutputsInput{} } - output = &RejectEnvironmentAccountConnectionOutput{} + output = &ListServiceInstanceOutputsOutput{} req = c.newRequest(op, input, output) return } -// RejectEnvironmentAccountConnection API operation for AWS Proton. -// -// In a management account, reject an environment account connection from another -// environment account. -// -// After you reject an environment account connection request, you won’t be -// able to accept or use the rejected environment account connection. +// ListServiceInstanceOutputs API operation for AWS Proton. // -// You can’t reject an environment account connection that is connected to -// an environment. -// -// For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// View a list service instance infrastructure as code outputs with detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation RejectEnvironmentAccountConnection for usage and error information. +// API operation ListServiceInstanceOutputs for usage and error information. // // Returned Error Types: // * ValidationException @@ -4116,92 +4733,144 @@ func (c *Proton) RejectEnvironmentAccountConnectionRequest(input *RejectEnvironm // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/RejectEnvironmentAccountConnection -func (c *Proton) RejectEnvironmentAccountConnection(input *RejectEnvironmentAccountConnectionInput) (*RejectEnvironmentAccountConnectionOutput, error) { - req, out := c.RejectEnvironmentAccountConnectionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstanceOutputs +func (c *Proton) ListServiceInstanceOutputs(input *ListServiceInstanceOutputsInput) (*ListServiceInstanceOutputsOutput, error) { + req, out := c.ListServiceInstanceOutputsRequest(input) return out, req.Send() } -// RejectEnvironmentAccountConnectionWithContext is the same as RejectEnvironmentAccountConnection with the addition of +// ListServiceInstanceOutputsWithContext is the same as ListServiceInstanceOutputs with the addition of // the ability to pass a context and additional request options. // -// See RejectEnvironmentAccountConnection for details on how to use this API operation. +// See ListServiceInstanceOutputs 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 *Proton) RejectEnvironmentAccountConnectionWithContext(ctx aws.Context, input *RejectEnvironmentAccountConnectionInput, opts ...request.Option) (*RejectEnvironmentAccountConnectionOutput, error) { - req, out := c.RejectEnvironmentAccountConnectionRequest(input) +func (c *Proton) ListServiceInstanceOutputsWithContext(ctx aws.Context, input *ListServiceInstanceOutputsInput, opts ...request.Option) (*ListServiceInstanceOutputsOutput, error) { + req, out := c.ListServiceInstanceOutputsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// ListServiceInstanceOutputsPages iterates over the pages of a ListServiceInstanceOutputs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServiceInstanceOutputs 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 ListServiceInstanceOutputs operation. +// pageNum := 0 +// err := client.ListServiceInstanceOutputsPages(params, +// func(page *proton.ListServiceInstanceOutputsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListServiceInstanceOutputsPages(input *ListServiceInstanceOutputsInput, fn func(*ListServiceInstanceOutputsOutput, bool) bool) error { + return c.ListServiceInstanceOutputsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// ListServiceInstanceOutputsPagesWithContext same as ListServiceInstanceOutputsPages 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 *Proton) ListServiceInstanceOutputsPagesWithContext(ctx aws.Context, input *ListServiceInstanceOutputsInput, fn func(*ListServiceInstanceOutputsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceInstanceOutputsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceInstanceOutputsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServiceInstanceOutputsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListServiceInstanceProvisionedResources = "ListServiceInstanceProvisionedResources" + +// ListServiceInstanceProvisionedResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceInstanceProvisionedResources 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 +// See ListServiceInstanceProvisionedResources for more information on using the ListServiceInstanceProvisionedResources // 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) +// // Example sending a request using the ListServiceInstanceProvisionedResourcesRequest method. +// req, resp := client.ListServiceInstanceProvisionedResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/TagResource -func (c *Proton) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstanceProvisionedResources +func (c *Proton) ListServiceInstanceProvisionedResourcesRequest(input *ListServiceInstanceProvisionedResourcesInput) (req *request.Request, output *ListServiceInstanceProvisionedResourcesOutput) { op := &request.Operation{ - Name: opTagResource, + Name: opListServiceInstanceProvisionedResources, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, } if input == nil { - input = &TagResourceInput{} + input = &ListServiceInstanceProvisionedResourcesInput{} } - output = &TagResourceOutput{} + output = &ListServiceInstanceProvisionedResourcesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for AWS Proton. +// ListServiceInstanceProvisionedResources API operation for AWS Proton. // -// Tag a resource. For more information, see AWS Proton resources and tagging -// in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) -// or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). +// List provisioned resources for a service instance with details. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation TagResource for usage and error information. +// API operation ListServiceInstanceProvisionedResources for usage and error information. // // Returned Error Types: // * ValidationException @@ -4214,92 +4883,144 @@ func (c *Proton) TagResourceRequest(input *TagResourceInput) (req *request.Reque // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/TagResource -func (c *Proton) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstanceProvisionedResources +func (c *Proton) ListServiceInstanceProvisionedResources(input *ListServiceInstanceProvisionedResourcesInput) (*ListServiceInstanceProvisionedResourcesOutput, error) { + req, out := c.ListServiceInstanceProvisionedResourcesRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// ListServiceInstanceProvisionedResourcesWithContext is the same as ListServiceInstanceProvisionedResources 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. +// See ListServiceInstanceProvisionedResources 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 *Proton) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *Proton) ListServiceInstanceProvisionedResourcesWithContext(ctx aws.Context, input *ListServiceInstanceProvisionedResourcesInput, opts ...request.Option) (*ListServiceInstanceProvisionedResourcesOutput, error) { + req, out := c.ListServiceInstanceProvisionedResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +// ListServiceInstanceProvisionedResourcesPages iterates over the pages of a ListServiceInstanceProvisionedResources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServiceInstanceProvisionedResources 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 ListServiceInstanceProvisionedResources operation. +// pageNum := 0 +// err := client.ListServiceInstanceProvisionedResourcesPages(params, +// func(page *proton.ListServiceInstanceProvisionedResourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListServiceInstanceProvisionedResourcesPages(input *ListServiceInstanceProvisionedResourcesInput, fn func(*ListServiceInstanceProvisionedResourcesOutput, bool) bool) error { + return c.ListServiceInstanceProvisionedResourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// ListServiceInstanceProvisionedResourcesPagesWithContext same as ListServiceInstanceProvisionedResourcesPages 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 *Proton) ListServiceInstanceProvisionedResourcesPagesWithContext(ctx aws.Context, input *ListServiceInstanceProvisionedResourcesInput, fn func(*ListServiceInstanceProvisionedResourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceInstanceProvisionedResourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceInstanceProvisionedResourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServiceInstanceProvisionedResourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListServiceInstances = "ListServiceInstances" + +// ListServiceInstancesRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceInstances 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 +// See ListServiceInstances for more information on using the ListServiceInstances // 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) +// // Example sending a request using the ListServiceInstancesRequest method. +// req, resp := client.ListServiceInstancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UntagResource -func (c *Proton) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstances +func (c *Proton) ListServiceInstancesRequest(input *ListServiceInstancesInput) (req *request.Request, output *ListServiceInstancesOutput) { op := &request.Operation{ - Name: opUntagResource, + Name: opListServiceInstances, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &ListServiceInstancesInput{} } - output = &UntagResourceOutput{} + output = &ListServiceInstancesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for AWS Proton. +// ListServiceInstances API operation for AWS Proton. // -// Remove a tag from a resource. For more information, see AWS Proton resources -// and tagging in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) -// or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). +// List service instances with summaries of detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UntagResource for usage and error information. +// API operation ListServiceInstances for usage and error information. // // Returned Error Types: // * ValidationException @@ -4312,224 +5033,144 @@ func (c *Proton) UntagResourceRequest(input *UntagResourceInput) (req *request.R // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UntagResource -func (c *Proton) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceInstances +func (c *Proton) ListServiceInstances(input *ListServiceInstancesInput) (*ListServiceInstancesOutput, error) { + req, out := c.ListServiceInstancesRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// ListServiceInstancesWithContext is the same as ListServiceInstances 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. +// See ListServiceInstances 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 *Proton) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *Proton) ListServiceInstancesWithContext(ctx aws.Context, input *ListServiceInstancesInput, opts ...request.Option) (*ListServiceInstancesOutput, error) { + req, out := c.ListServiceInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAccountSettings = "UpdateAccountSettings" - -// UpdateAccountSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAccountSettings 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 UpdateAccountSettings for more information on using the UpdateAccountSettings -// 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. +// ListServiceInstancesPages iterates over the pages of a ListServiceInstances operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // +// See ListServiceInstances method for more information on how to use this operation. // -// // Example sending a request using the UpdateAccountSettingsRequest method. -// req, resp := client.UpdateAccountSettingsRequest(params) +// Note: This operation can generate multiple requests to a service. // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +// // Example iterating over at most 3 pages of a ListServiceInstances operation. +// pageNum := 0 +// err := client.ListServiceInstancesPages(params, +// func(page *proton.ListServiceInstancesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateAccountSettings -func (c *Proton) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) (req *request.Request, output *UpdateAccountSettingsOutput) { - op := &request.Operation{ - Name: opUpdateAccountSettings, - HTTPMethod: "POST", - HTTPPath: "/", - } +func (c *Proton) ListServiceInstancesPages(input *ListServiceInstancesInput, fn func(*ListServiceInstancesOutput, bool) bool) error { + return c.ListServiceInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +} - if input == nil { - input = &UpdateAccountSettingsInput{} - } - - output = &UpdateAccountSettingsOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateAccountSettings API operation for AWS Proton. -// -// Update the AWS Proton pipeline service account settings. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Proton's -// API operation UpdateAccountSettings for usage and error information. -// -// Returned Error Types: -// * ValidationException -// The input is invalid or an out-of-range value was supplied for the input -// parameter. -// -// * AccessDeniedException -// There isn't sufficient access for performing this action. -// -// * ThrottlingException -// The request was denied due to request throttling. -// -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// -// * InternalServerException -// The request failed to register with the service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateAccountSettings -func (c *Proton) UpdateAccountSettings(input *UpdateAccountSettingsInput) (*UpdateAccountSettingsOutput, error) { - req, out := c.UpdateAccountSettingsRequest(input) - return out, req.Send() -} - -// UpdateAccountSettingsWithContext is the same as UpdateAccountSettings with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateAccountSettings for details on how to use this API operation. +// ListServiceInstancesPagesWithContext same as ListServiceInstancesPages 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 *Proton) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateAccountSettingsInput, opts ...request.Option) (*UpdateAccountSettingsOutput, error) { - req, out := c.UpdateAccountSettingsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *Proton) ListServiceInstancesPagesWithContext(ctx aws.Context, input *ListServiceInstancesInput, fn func(*ListServiceInstancesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceInstancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceInstancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServiceInstancesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() } -const opUpdateEnvironment = "UpdateEnvironment" +const opListServicePipelineOutputs = "ListServicePipelineOutputs" -// UpdateEnvironmentRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEnvironment operation. The "output" return +// ListServicePipelineOutputsRequest generates a "aws/request.Request" representing the +// client's request for the ListServicePipelineOutputs operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateEnvironment for more information on using the UpdateEnvironment +// See ListServicePipelineOutputs for more information on using the ListServicePipelineOutputs // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateEnvironmentRequest method. -// req, resp := client.UpdateEnvironmentRequest(params) +// // Example sending a request using the ListServicePipelineOutputsRequest method. +// req, resp := client.ListServicePipelineOutputsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironment -func (c *Proton) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *UpdateEnvironmentOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServicePipelineOutputs +func (c *Proton) ListServicePipelineOutputsRequest(input *ListServicePipelineOutputsInput) (req *request.Request, output *ListServicePipelineOutputsOutput) { op := &request.Operation{ - Name: opUpdateEnvironment, + Name: opListServicePipelineOutputs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, } if input == nil { - input = &UpdateEnvironmentInput{} + input = &ListServicePipelineOutputsInput{} } - output = &UpdateEnvironmentOutput{} + output = &ListServicePipelineOutputsOutput{} req = c.newRequest(op, input, output) return } -// UpdateEnvironment API operation for AWS Proton. -// -// Update an environment. -// -// If the environment is associated with an environment account connection, -// don't update or include the protonServiceRoleArn parameter to update or connect -// to an environment account connection. -// -// You can only update to a new environment account connection if it was created -// in the same environment account that the current environment account connection -// was created in and is associated with the current environment. -// -// If the environment isn't associated with an environment account connection, -// don't update or include the environmentAccountConnectionId parameter to update -// or connect to an environment account connection. -// -// You can update either the environmentAccountConnectionId or protonServiceRoleArn -// parameter and value. You can’t update both. -// -// There are four modes for updating an environment as described in the following. -// The deploymentType field defines the mode. -// -// NONE -// -// In this mode, a deployment doesn't occur. Only the requested metadata parameters -// are updated. -// -// CURRENT_VERSION -// -// In this mode, the environment is deployed and updated with the new spec that -// you provide. Only requested parameters are updated. Don’t include minor -// or major version parameters when you use this deployment-type. -// -// MINOR_VERSION -// -// In this mode, the environment is deployed and updated with the published, -// recommended (latest) minor version of the current major version in use, by -// default. You can also specify a different minor version of the current major -// version in use. -// -// MAJOR_VERSION +// ListServicePipelineOutputs API operation for AWS Proton. // -// In this mode, the environment is deployed and updated with the published, -// recommended (latest) major and minor version of the current template, by -// default. You can also specify a different major version that's higher than -// the major version in use and a minor version (optional). +// View a list service pipeline infrastructure as code outputs with detail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateEnvironment for usage and error information. +// API operation ListServicePipelineOutputs for usage and error information. // // Returned Error Types: // * ValidationException @@ -4542,93 +5183,144 @@ func (c *Proton) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *r // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironment -func (c *Proton) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvironmentOutput, error) { - req, out := c.UpdateEnvironmentRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServicePipelineOutputs +func (c *Proton) ListServicePipelineOutputs(input *ListServicePipelineOutputsInput) (*ListServicePipelineOutputsOutput, error) { + req, out := c.ListServicePipelineOutputsRequest(input) return out, req.Send() } -// UpdateEnvironmentWithContext is the same as UpdateEnvironment with the addition of +// ListServicePipelineOutputsWithContext is the same as ListServicePipelineOutputs with the addition of // the ability to pass a context and additional request options. // -// See UpdateEnvironment for details on how to use this API operation. +// See ListServicePipelineOutputs 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 *Proton) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*UpdateEnvironmentOutput, error) { - req, out := c.UpdateEnvironmentRequest(input) +func (c *Proton) ListServicePipelineOutputsWithContext(ctx aws.Context, input *ListServicePipelineOutputsInput, opts ...request.Option) (*ListServicePipelineOutputsOutput, error) { + req, out := c.ListServicePipelineOutputsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateEnvironmentAccountConnection = "UpdateEnvironmentAccountConnection" +// ListServicePipelineOutputsPages iterates over the pages of a ListServicePipelineOutputs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServicePipelineOutputs 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 ListServicePipelineOutputs operation. +// pageNum := 0 +// err := client.ListServicePipelineOutputsPages(params, +// func(page *proton.ListServicePipelineOutputsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListServicePipelineOutputsPages(input *ListServicePipelineOutputsInput, fn func(*ListServicePipelineOutputsOutput, bool) bool) error { + return c.ListServicePipelineOutputsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateEnvironmentAccountConnectionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEnvironmentAccountConnection operation. The "output" return +// ListServicePipelineOutputsPagesWithContext same as ListServicePipelineOutputsPages 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 *Proton) ListServicePipelineOutputsPagesWithContext(ctx aws.Context, input *ListServicePipelineOutputsInput, fn func(*ListServicePipelineOutputsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServicePipelineOutputsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServicePipelineOutputsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServicePipelineOutputsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListServicePipelineProvisionedResources = "ListServicePipelineProvisionedResources" + +// ListServicePipelineProvisionedResourcesRequest generates a "aws/request.Request" representing the +// client's request for the ListServicePipelineProvisionedResources 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 UpdateEnvironmentAccountConnection for more information on using the UpdateEnvironmentAccountConnection +// See ListServicePipelineProvisionedResources for more information on using the ListServicePipelineProvisionedResources // 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 UpdateEnvironmentAccountConnectionRequest method. -// req, resp := client.UpdateEnvironmentAccountConnectionRequest(params) +// // Example sending a request using the ListServicePipelineProvisionedResourcesRequest method. +// req, resp := client.ListServicePipelineProvisionedResourcesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentAccountConnection -func (c *Proton) UpdateEnvironmentAccountConnectionRequest(input *UpdateEnvironmentAccountConnectionInput) (req *request.Request, output *UpdateEnvironmentAccountConnectionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServicePipelineProvisionedResources +func (c *Proton) ListServicePipelineProvisionedResourcesRequest(input *ListServicePipelineProvisionedResourcesInput) (req *request.Request, output *ListServicePipelineProvisionedResourcesOutput) { op := &request.Operation{ - Name: opUpdateEnvironmentAccountConnection, + Name: opListServicePipelineProvisionedResources, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "", + TruncationToken: "", + }, } if input == nil { - input = &UpdateEnvironmentAccountConnectionInput{} + input = &ListServicePipelineProvisionedResourcesInput{} } - output = &UpdateEnvironmentAccountConnectionOutput{} + output = &ListServicePipelineProvisionedResourcesOutput{} req = c.newRequest(op, input, output) return } -// UpdateEnvironmentAccountConnection API operation for AWS Proton. -// -// In an environment account, update an environment account connection to use -// a new IAM role. +// ListServicePipelineProvisionedResources API operation for AWS Proton. // -// For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) -// in the AWS Proton Administrator guide. +// List provisioned resources for a service and pipeline with details. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateEnvironmentAccountConnection for usage and error information. +// API operation ListServicePipelineProvisionedResources for usage and error information. // // Returned Error Types: // * ValidationException @@ -4641,184 +5333,144 @@ func (c *Proton) UpdateEnvironmentAccountConnectionRequest(input *UpdateEnvironm // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentAccountConnection -func (c *Proton) UpdateEnvironmentAccountConnection(input *UpdateEnvironmentAccountConnectionInput) (*UpdateEnvironmentAccountConnectionOutput, error) { - req, out := c.UpdateEnvironmentAccountConnectionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServicePipelineProvisionedResources +func (c *Proton) ListServicePipelineProvisionedResources(input *ListServicePipelineProvisionedResourcesInput) (*ListServicePipelineProvisionedResourcesOutput, error) { + req, out := c.ListServicePipelineProvisionedResourcesRequest(input) return out, req.Send() } -// UpdateEnvironmentAccountConnectionWithContext is the same as UpdateEnvironmentAccountConnection with the addition of +// ListServicePipelineProvisionedResourcesWithContext is the same as ListServicePipelineProvisionedResources with the addition of // the ability to pass a context and additional request options. // -// See UpdateEnvironmentAccountConnection for details on how to use this API operation. +// See ListServicePipelineProvisionedResources 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 *Proton) UpdateEnvironmentAccountConnectionWithContext(ctx aws.Context, input *UpdateEnvironmentAccountConnectionInput, opts ...request.Option) (*UpdateEnvironmentAccountConnectionOutput, error) { - req, out := c.UpdateEnvironmentAccountConnectionRequest(input) +func (c *Proton) ListServicePipelineProvisionedResourcesWithContext(ctx aws.Context, input *ListServicePipelineProvisionedResourcesInput, opts ...request.Option) (*ListServicePipelineProvisionedResourcesOutput, error) { + req, out := c.ListServicePipelineProvisionedResourcesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateEnvironmentTemplate = "UpdateEnvironmentTemplate" - -// UpdateEnvironmentTemplateRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEnvironmentTemplate 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 UpdateEnvironmentTemplate for more information on using the UpdateEnvironmentTemplate -// 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. +// ListServicePipelineProvisionedResourcesPages iterates over the pages of a ListServicePipelineProvisionedResources operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // +// See ListServicePipelineProvisionedResources method for more information on how to use this operation. // -// // Example sending a request using the UpdateEnvironmentTemplateRequest method. -// req, resp := client.UpdateEnvironmentTemplateRequest(params) +// Note: This operation can generate multiple requests to a service. // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +// // Example iterating over at most 3 pages of a ListServicePipelineProvisionedResources operation. +// pageNum := 0 +// err := client.ListServicePipelineProvisionedResourcesPages(params, +// func(page *proton.ListServicePipelineProvisionedResourcesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplate -func (c *Proton) UpdateEnvironmentTemplateRequest(input *UpdateEnvironmentTemplateInput) (req *request.Request, output *UpdateEnvironmentTemplateOutput) { - op := &request.Operation{ - Name: opUpdateEnvironmentTemplate, - HTTPMethod: "POST", - HTTPPath: "/", - } +func (c *Proton) ListServicePipelineProvisionedResourcesPages(input *ListServicePipelineProvisionedResourcesInput, fn func(*ListServicePipelineProvisionedResourcesOutput, bool) bool) error { + return c.ListServicePipelineProvisionedResourcesPagesWithContext(aws.BackgroundContext(), input, fn) +} - if input == nil { - input = &UpdateEnvironmentTemplateInput{} - } - - output = &UpdateEnvironmentTemplateOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateEnvironmentTemplate API operation for AWS Proton. -// -// Update an environment template. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for AWS Proton's -// API operation UpdateEnvironmentTemplate for usage and error information. -// -// Returned Error Types: -// * ValidationException -// The input is invalid or an out-of-range value was supplied for the input -// parameter. -// -// * AccessDeniedException -// There isn't sufficient access for performing this action. -// -// * ThrottlingException -// The request was denied due to request throttling. -// -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// -// * ResourceNotFoundException -// The requested resource wasn't found. -// -// * InternalServerException -// The request failed to register with the service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplate -func (c *Proton) UpdateEnvironmentTemplate(input *UpdateEnvironmentTemplateInput) (*UpdateEnvironmentTemplateOutput, error) { - req, out := c.UpdateEnvironmentTemplateRequest(input) - return out, req.Send() -} - -// UpdateEnvironmentTemplateWithContext is the same as UpdateEnvironmentTemplate with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateEnvironmentTemplate for details on how to use this API operation. +// ListServicePipelineProvisionedResourcesPagesWithContext same as ListServicePipelineProvisionedResourcesPages 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 *Proton) UpdateEnvironmentTemplateWithContext(ctx aws.Context, input *UpdateEnvironmentTemplateInput, opts ...request.Option) (*UpdateEnvironmentTemplateOutput, error) { - req, out := c.UpdateEnvironmentTemplateRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *Proton) ListServicePipelineProvisionedResourcesPagesWithContext(ctx aws.Context, input *ListServicePipelineProvisionedResourcesInput, fn func(*ListServicePipelineProvisionedResourcesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServicePipelineProvisionedResourcesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServicePipelineProvisionedResourcesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServicePipelineProvisionedResourcesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() } -const opUpdateEnvironmentTemplateVersion = "UpdateEnvironmentTemplateVersion" +const opListServiceTemplateVersions = "ListServiceTemplateVersions" -// UpdateEnvironmentTemplateVersionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateEnvironmentTemplateVersion operation. The "output" return +// ListServiceTemplateVersionsRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceTemplateVersions 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 UpdateEnvironmentTemplateVersion for more information on using the UpdateEnvironmentTemplateVersion +// See ListServiceTemplateVersions for more information on using the ListServiceTemplateVersions // 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 UpdateEnvironmentTemplateVersionRequest method. -// req, resp := client.UpdateEnvironmentTemplateVersionRequest(params) +// // Example sending a request using the ListServiceTemplateVersionsRequest method. +// req, resp := client.ListServiceTemplateVersionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplateVersion -func (c *Proton) UpdateEnvironmentTemplateVersionRequest(input *UpdateEnvironmentTemplateVersionInput) (req *request.Request, output *UpdateEnvironmentTemplateVersionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplateVersions +func (c *Proton) ListServiceTemplateVersionsRequest(input *ListServiceTemplateVersionsInput) (req *request.Request, output *ListServiceTemplateVersionsOutput) { op := &request.Operation{ - Name: opUpdateEnvironmentTemplateVersion, + Name: opListServiceTemplateVersions, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateEnvironmentTemplateVersionInput{} + input = &ListServiceTemplateVersionsInput{} } - output = &UpdateEnvironmentTemplateVersionOutput{} + output = &ListServiceTemplateVersionsOutput{} req = c.newRequest(op, input, output) return } -// UpdateEnvironmentTemplateVersion API operation for AWS Proton. +// ListServiceTemplateVersions API operation for AWS Proton. // -// Update a major or minor version of an environment template. +// List major or minor versions of a service template with detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateEnvironmentTemplateVersion for usage and error information. +// API operation ListServiceTemplateVersions for usage and error information. // // Returned Error Types: // * ValidationException @@ -4831,102 +5483,146 @@ func (c *Proton) UpdateEnvironmentTemplateVersionRequest(input *UpdateEnvironmen // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplateVersion -func (c *Proton) UpdateEnvironmentTemplateVersion(input *UpdateEnvironmentTemplateVersionInput) (*UpdateEnvironmentTemplateVersionOutput, error) { - req, out := c.UpdateEnvironmentTemplateVersionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplateVersions +func (c *Proton) ListServiceTemplateVersions(input *ListServiceTemplateVersionsInput) (*ListServiceTemplateVersionsOutput, error) { + req, out := c.ListServiceTemplateVersionsRequest(input) return out, req.Send() } -// UpdateEnvironmentTemplateVersionWithContext is the same as UpdateEnvironmentTemplateVersion with the addition of +// ListServiceTemplateVersionsWithContext is the same as ListServiceTemplateVersions with the addition of // the ability to pass a context and additional request options. // -// See UpdateEnvironmentTemplateVersion for details on how to use this API operation. +// See ListServiceTemplateVersions 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 *Proton) UpdateEnvironmentTemplateVersionWithContext(ctx aws.Context, input *UpdateEnvironmentTemplateVersionInput, opts ...request.Option) (*UpdateEnvironmentTemplateVersionOutput, error) { - req, out := c.UpdateEnvironmentTemplateVersionRequest(input) +func (c *Proton) ListServiceTemplateVersionsWithContext(ctx aws.Context, input *ListServiceTemplateVersionsInput, opts ...request.Option) (*ListServiceTemplateVersionsOutput, error) { + req, out := c.ListServiceTemplateVersionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateService = "UpdateService" +// ListServiceTemplateVersionsPages iterates over the pages of a ListServiceTemplateVersions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServiceTemplateVersions 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 ListServiceTemplateVersions operation. +// pageNum := 0 +// err := client.ListServiceTemplateVersionsPages(params, +// func(page *proton.ListServiceTemplateVersionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListServiceTemplateVersionsPages(input *ListServiceTemplateVersionsInput, fn func(*ListServiceTemplateVersionsOutput, bool) bool) error { + return c.ListServiceTemplateVersionsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateServiceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateService operation. The "output" return +// ListServiceTemplateVersionsPagesWithContext same as ListServiceTemplateVersionsPages 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 *Proton) ListServiceTemplateVersionsPagesWithContext(ctx aws.Context, input *ListServiceTemplateVersionsInput, fn func(*ListServiceTemplateVersionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceTemplateVersionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceTemplateVersionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServiceTemplateVersionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListServiceTemplates = "ListServiceTemplates" + +// ListServiceTemplatesRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceTemplates 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 UpdateService for more information on using the UpdateService +// See ListServiceTemplates for more information on using the ListServiceTemplates // 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 UpdateServiceRequest method. -// req, resp := client.UpdateServiceRequest(params) +// // Example sending a request using the ListServiceTemplatesRequest method. +// req, resp := client.ListServiceTemplatesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateService -func (c *Proton) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplates +func (c *Proton) ListServiceTemplatesRequest(input *ListServiceTemplatesInput) (req *request.Request, output *ListServiceTemplatesOutput) { op := &request.Operation{ - Name: opUpdateService, + Name: opListServiceTemplates, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateServiceInput{} + input = &ListServiceTemplatesInput{} } - output = &UpdateServiceOutput{} + output = &ListServiceTemplatesOutput{} req = c.newRequest(op, input, output) return } -// UpdateService API operation for AWS Proton. -// -// Edit a service description or use a spec to add and delete service instances. -// -// Existing service instances and the service pipeline can't be edited using -// this API. They can only be deleted. -// -// Use the description parameter to modify the description. +// ListServiceTemplates API operation for AWS Proton. // -// Edit the spec parameter to add or delete instances. +// List service templates with detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateService for usage and error information. +// API operation ListServiceTemplates for usage and error information. // // Returned Error Types: -// * ServiceQuotaExceededException -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. -// // * ValidationException // The input is invalid or an out-of-range value was supplied for the input // parameter. @@ -4937,117 +5633,141 @@ func (c *Proton) UpdateServiceRequest(input *UpdateServiceInput) (req *request.R // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// -// * ResourceNotFoundException -// The requested resource wasn't found. -// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateService -func (c *Proton) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { - req, out := c.UpdateServiceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServiceTemplates +func (c *Proton) ListServiceTemplates(input *ListServiceTemplatesInput) (*ListServiceTemplatesOutput, error) { + req, out := c.ListServiceTemplatesRequest(input) return out, req.Send() } -// UpdateServiceWithContext is the same as UpdateService with the addition of +// ListServiceTemplatesWithContext is the same as ListServiceTemplates with the addition of // the ability to pass a context and additional request options. // -// See UpdateService for details on how to use this API operation. +// See ListServiceTemplates 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 *Proton) UpdateServiceWithContext(ctx aws.Context, input *UpdateServiceInput, opts ...request.Option) (*UpdateServiceOutput, error) { - req, out := c.UpdateServiceRequest(input) +func (c *Proton) ListServiceTemplatesWithContext(ctx aws.Context, input *ListServiceTemplatesInput, opts ...request.Option) (*ListServiceTemplatesOutput, error) { + req, out := c.ListServiceTemplatesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateServiceInstance = "UpdateServiceInstance" - -// UpdateServiceInstanceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateServiceInstance 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 UpdateServiceInstance for more information on using the UpdateServiceInstance -// API call, and error handling. +// ListServiceTemplatesPages iterates over the pages of a ListServiceTemplates operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// 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. +// See ListServiceTemplates method for more information on how to use this operation. // +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the UpdateServiceInstanceRequest method. -// req, resp := client.UpdateServiceInstanceRequest(params) +// // Example iterating over at most 3 pages of a ListServiceTemplates operation. +// pageNum := 0 +// err := client.ListServiceTemplatesPages(params, +// func(page *proton.ListServiceTemplatesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListServiceTemplatesPages(input *ListServiceTemplatesInput, fn func(*ListServiceTemplatesOutput, bool) bool) error { + return c.ListServiceTemplatesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListServiceTemplatesPagesWithContext same as ListServiceTemplatesPages 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 *Proton) ListServiceTemplatesPagesWithContext(ctx aws.Context, input *ListServiceTemplatesInput, fn func(*ListServiceTemplatesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceTemplatesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceTemplatesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServiceTemplatesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListServices = "ListServices" + +// ListServicesRequest generates a "aws/request.Request" representing the +// client's request for the ListServices 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 ListServices for more information on using the ListServices +// 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 ListServicesRequest method. +// req, resp := client.ListServicesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceInstance -func (c *Proton) UpdateServiceInstanceRequest(input *UpdateServiceInstanceInput) (req *request.Request, output *UpdateServiceInstanceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServices +func (c *Proton) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { op := &request.Operation{ - Name: opUpdateServiceInstance, + Name: opListServices, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateServiceInstanceInput{} + input = &ListServicesInput{} } - output = &UpdateServiceInstanceOutput{} + output = &ListServicesOutput{} req = c.newRequest(op, input, output) return } -// UpdateServiceInstance API operation for AWS Proton. -// -// Update a service instance. -// -// There are four modes for updating a service instance as described in the -// following. The deploymentType field defines the mode. -// -// NONE -// -// In this mode, a deployment doesn't occur. Only the requested metadata parameters -// are updated. -// -// CURRENT_VERSION -// -// In this mode, the service instance is deployed and updated with the new spec -// that you provide. Only requested parameters are updated. Don’t include -// minor or major version parameters when you use this deployment-type. -// -// MINOR_VERSION -// -// In this mode, the service instance is deployed and updated with the published, -// recommended (latest) minor version of the current major version in use, by -// default. You can also specify a different minor version of the current major -// version in use. -// -// MAJOR_VERSION +// ListServices API operation for AWS Proton. // -// In this mode, the service instance is deployed and updated with the published, -// recommended (latest) major and minor version of the current template, by -// default. You can also specify a different major version that is higher than -// the major version in use and a minor version (optional). +// List services with summaries of detail data. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateServiceInstance for usage and error information. +// API operation ListServices for usage and error information. // // Returned Error Types: // * ValidationException @@ -5060,117 +5780,143 @@ func (c *Proton) UpdateServiceInstanceRequest(input *UpdateServiceInstanceInput) // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// -// * ResourceNotFoundException -// The requested resource wasn't found. -// // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceInstance -func (c *Proton) UpdateServiceInstance(input *UpdateServiceInstanceInput) (*UpdateServiceInstanceOutput, error) { - req, out := c.UpdateServiceInstanceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListServices +func (c *Proton) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { + req, out := c.ListServicesRequest(input) return out, req.Send() } -// UpdateServiceInstanceWithContext is the same as UpdateServiceInstance with the addition of +// ListServicesWithContext is the same as ListServices with the addition of // the ability to pass a context and additional request options. // -// See UpdateServiceInstance for details on how to use this API operation. +// See ListServices 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 *Proton) UpdateServiceInstanceWithContext(ctx aws.Context, input *UpdateServiceInstanceInput, opts ...request.Option) (*UpdateServiceInstanceOutput, error) { - req, out := c.UpdateServiceInstanceRequest(input) +func (c *Proton) ListServicesWithContext(ctx aws.Context, input *ListServicesInput, opts ...request.Option) (*ListServicesOutput, error) { + req, out := c.ListServicesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateServicePipeline = "UpdateServicePipeline" +// ListServicesPages iterates over the pages of a ListServices operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServices 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 ListServices operation. +// pageNum := 0 +// err := client.ListServicesPages(params, +// func(page *proton.ListServicesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListServicesPages(input *ListServicesInput, fn func(*ListServicesOutput, bool) bool) error { + return c.ListServicesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateServicePipelineRequest generates a "aws/request.Request" representing the -// client's request for the UpdateServicePipeline operation. The "output" return +// ListServicesPagesWithContext same as ListServicesPages 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 *Proton) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesInput, fn func(*ListServicesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServicesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServicesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServicesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateServicePipeline for more information on using the UpdateServicePipeline +// 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 UpdateServicePipelineRequest method. -// req, resp := client.UpdateServicePipelineRequest(params) +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServicePipeline -func (c *Proton) UpdateServicePipelineRequest(input *UpdateServicePipelineInput) (req *request.Request, output *UpdateServicePipelineOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListTagsForResource +func (c *Proton) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opUpdateServicePipeline, + Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"nextToken"}, + OutputTokens: []string{"nextToken"}, + LimitToken: "maxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateServicePipelineInput{} + input = &ListTagsForResourceInput{} } - output = &UpdateServicePipelineOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// UpdateServicePipeline API operation for AWS Proton. -// -// Update the service pipeline. -// -// There are four modes for updating a service pipeline as described in the -// following. The deploymentType field defines the mode. -// -// NONE -// -// In this mode, a deployment doesn't occur. Only the requested metadata parameters -// are updated. -// -// CURRENT_VERSION -// -// In this mode, the service pipeline is deployed and updated with the new spec -// that you provide. Only requested parameters are updated. Don’t include -// minor or major version parameters when you use this deployment-type. -// -// MINOR_VERSION -// -// In this mode, the service pipeline is deployed and updated with the published, -// recommended (latest) minor version of the current major version in use, by -// default. You can also specify a different minor version of the current major -// version in use. -// -// MAJOR_VERSION +// ListTagsForResource API operation for AWS Proton. // -// In this mode, the service pipeline is deployed and updated with the published, -// recommended (latest) major and minor version of the current template by default. -// You can also specify a different major version that is higher than the major -// version in use and a minor version (optional). +// List tags for a resource. For more information, see Proton resources and +// tagging in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) +// or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateServicePipeline for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * ValidationException @@ -5183,91 +5929,151 @@ func (c *Proton) UpdateServicePipelineRequest(input *UpdateServicePipelineInput) // * ThrottlingException // The request was denied due to request throttling. // -// * ConflictException -// The request couldn't be made due to a conflicting operation or resource. -// // * ResourceNotFoundException // The requested resource wasn't found. // // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServicePipeline -func (c *Proton) UpdateServicePipeline(input *UpdateServicePipelineInput) (*UpdateServicePipelineOutput, error) { - req, out := c.UpdateServicePipelineRequest(input) - return out, req.Send() -} +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListTagsForResource +func (c *Proton) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} -// UpdateServicePipelineWithContext is the same as UpdateServicePipeline with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateServicePipeline for details on how to use this API operation. +// See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Proton) UpdateServicePipelineWithContext(ctx aws.Context, input *UpdateServicePipelineInput, opts ...request.Option) (*UpdateServicePipelineOutput, error) { - req, out := c.UpdateServicePipelineRequest(input) +func (c *Proton) 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 opUpdateServiceTemplate = "UpdateServiceTemplate" +// ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTagsForResource 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 ListTagsForResource operation. +// pageNum := 0 +// err := client.ListTagsForResourcePages(params, +// func(page *proton.ListTagsForResourceOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Proton) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { + return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateServiceTemplateRequest generates a "aws/request.Request" representing the -// client's request for the UpdateServiceTemplate operation. The "output" return +// ListTagsForResourcePagesWithContext same as ListTagsForResourcePages 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 *Proton) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTagsForResourceInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTagsForResourceRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListTagsForResourceOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opNotifyResourceDeploymentStatusChange = "NotifyResourceDeploymentStatusChange" + +// NotifyResourceDeploymentStatusChangeRequest generates a "aws/request.Request" representing the +// client's request for the NotifyResourceDeploymentStatusChange 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 UpdateServiceTemplate for more information on using the UpdateServiceTemplate +// See NotifyResourceDeploymentStatusChange for more information on using the NotifyResourceDeploymentStatusChange // 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 UpdateServiceTemplateRequest method. -// req, resp := client.UpdateServiceTemplateRequest(params) +// // Example sending a request using the NotifyResourceDeploymentStatusChangeRequest method. +// req, resp := client.NotifyResourceDeploymentStatusChangeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplate -func (c *Proton) UpdateServiceTemplateRequest(input *UpdateServiceTemplateInput) (req *request.Request, output *UpdateServiceTemplateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/NotifyResourceDeploymentStatusChange +func (c *Proton) NotifyResourceDeploymentStatusChangeRequest(input *NotifyResourceDeploymentStatusChangeInput) (req *request.Request, output *NotifyResourceDeploymentStatusChangeOutput) { op := &request.Operation{ - Name: opUpdateServiceTemplate, + Name: opNotifyResourceDeploymentStatusChange, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateServiceTemplateInput{} + input = &NotifyResourceDeploymentStatusChangeInput{} } - output = &UpdateServiceTemplateOutput{} + output = &NotifyResourceDeploymentStatusChangeOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateServiceTemplate API operation for AWS Proton. +// NotifyResourceDeploymentStatusChange API operation for AWS Proton. // -// Update a service template. +// Notify Proton of status changes to a provisioned resource when you use pull +// request provisioning. For more information, see Template bundles (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-bundles.html). +// +// Provisioning by pull request is currently in feature preview and is only +// usable with Terraform based Proton Templates. To learn more about Amazon +// Web Services Feature Preview terms (https://aws.amazon.com/service-terms), +// see section 2 on Beta and Previews. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateServiceTemplate for usage and error information. +// API operation NotifyResourceDeploymentStatusChange for usage and error information. // // Returned Error Types: +// * ServiceQuotaExceededException +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. +// // * ValidationException // The input is invalid or an out-of-range value was supplied for the input // parameter. @@ -5287,80 +6093,90 @@ func (c *Proton) UpdateServiceTemplateRequest(input *UpdateServiceTemplateInput) // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplate -func (c *Proton) UpdateServiceTemplate(input *UpdateServiceTemplateInput) (*UpdateServiceTemplateOutput, error) { - req, out := c.UpdateServiceTemplateRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/NotifyResourceDeploymentStatusChange +func (c *Proton) NotifyResourceDeploymentStatusChange(input *NotifyResourceDeploymentStatusChangeInput) (*NotifyResourceDeploymentStatusChangeOutput, error) { + req, out := c.NotifyResourceDeploymentStatusChangeRequest(input) return out, req.Send() } -// UpdateServiceTemplateWithContext is the same as UpdateServiceTemplate with the addition of +// NotifyResourceDeploymentStatusChangeWithContext is the same as NotifyResourceDeploymentStatusChange with the addition of // the ability to pass a context and additional request options. // -// See UpdateServiceTemplate for details on how to use this API operation. +// See NotifyResourceDeploymentStatusChange 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 *Proton) UpdateServiceTemplateWithContext(ctx aws.Context, input *UpdateServiceTemplateInput, opts ...request.Option) (*UpdateServiceTemplateOutput, error) { - req, out := c.UpdateServiceTemplateRequest(input) +func (c *Proton) NotifyResourceDeploymentStatusChangeWithContext(ctx aws.Context, input *NotifyResourceDeploymentStatusChangeInput, opts ...request.Option) (*NotifyResourceDeploymentStatusChangeOutput, error) { + req, out := c.NotifyResourceDeploymentStatusChangeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateServiceTemplateVersion = "UpdateServiceTemplateVersion" +const opRejectEnvironmentAccountConnection = "RejectEnvironmentAccountConnection" -// UpdateServiceTemplateVersionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateServiceTemplateVersion operation. The "output" return +// RejectEnvironmentAccountConnectionRequest generates a "aws/request.Request" representing the +// client's request for the RejectEnvironmentAccountConnection 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 UpdateServiceTemplateVersion for more information on using the UpdateServiceTemplateVersion +// See RejectEnvironmentAccountConnection for more information on using the RejectEnvironmentAccountConnection // 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 UpdateServiceTemplateVersionRequest method. -// req, resp := client.UpdateServiceTemplateVersionRequest(params) +// // Example sending a request using the RejectEnvironmentAccountConnectionRequest method. +// req, resp := client.RejectEnvironmentAccountConnectionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplateVersion -func (c *Proton) UpdateServiceTemplateVersionRequest(input *UpdateServiceTemplateVersionInput) (req *request.Request, output *UpdateServiceTemplateVersionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/RejectEnvironmentAccountConnection +func (c *Proton) RejectEnvironmentAccountConnectionRequest(input *RejectEnvironmentAccountConnectionInput) (req *request.Request, output *RejectEnvironmentAccountConnectionOutput) { op := &request.Operation{ - Name: opUpdateServiceTemplateVersion, + Name: opRejectEnvironmentAccountConnection, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { - input = &UpdateServiceTemplateVersionInput{} + input = &RejectEnvironmentAccountConnectionInput{} } - output = &UpdateServiceTemplateVersionOutput{} + output = &RejectEnvironmentAccountConnectionOutput{} req = c.newRequest(op, input, output) return } -// UpdateServiceTemplateVersion API operation for AWS Proton. +// RejectEnvironmentAccountConnection API operation for AWS Proton. // -// Update a major or minor version of a service template. +// In a management account, reject an environment account connection from another +// environment account. +// +// After you reject an environment account connection request, you won’t be +// able to accept or use the rejected environment account connection. +// +// You can’t reject an environment account connection that is connected to +// an environment. +// +// For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the Proton Administrator guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Proton's -// API operation UpdateServiceTemplateVersion for usage and error information. +// API operation RejectEnvironmentAccountConnection for usage and error information. // // Returned Error Types: // * ValidationException @@ -5382,89 +6198,3599 @@ func (c *Proton) UpdateServiceTemplateVersionRequest(input *UpdateServiceTemplat // * InternalServerException // The request failed to register with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplateVersion -func (c *Proton) UpdateServiceTemplateVersion(input *UpdateServiceTemplateVersionInput) (*UpdateServiceTemplateVersionOutput, error) { - req, out := c.UpdateServiceTemplateVersionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/RejectEnvironmentAccountConnection +func (c *Proton) RejectEnvironmentAccountConnection(input *RejectEnvironmentAccountConnectionInput) (*RejectEnvironmentAccountConnectionOutput, error) { + req, out := c.RejectEnvironmentAccountConnectionRequest(input) return out, req.Send() } -// UpdateServiceTemplateVersionWithContext is the same as UpdateServiceTemplateVersion with the addition of +// RejectEnvironmentAccountConnectionWithContext is the same as RejectEnvironmentAccountConnection with the addition of // the ability to pass a context and additional request options. // -// See UpdateServiceTemplateVersion for details on how to use this API operation. +// See RejectEnvironmentAccountConnection 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 *Proton) UpdateServiceTemplateVersionWithContext(ctx aws.Context, input *UpdateServiceTemplateVersionInput, opts ...request.Option) (*UpdateServiceTemplateVersionOutput, error) { - req, out := c.UpdateServiceTemplateVersionRequest(input) +func (c *Proton) RejectEnvironmentAccountConnectionWithContext(ctx aws.Context, input *RejectEnvironmentAccountConnectionInput, opts ...request.Option) (*RejectEnvironmentAccountConnectionOutput, error) { + req, out := c.RejectEnvironmentAccountConnectionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type AcceptEnvironmentAccountConnectionInput struct { - _ struct{} `type:"structure"` - - // The ID of the environment account connection. - // - // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` -} +const opTagResource = "TagResource" -// String returns the string representation. +// 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. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AcceptEnvironmentAccountConnectionInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AcceptEnvironmentAccountConnectionInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *AcceptEnvironmentAccountConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AcceptEnvironmentAccountConnectionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +// 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/proton-2020-07-20/TagResource +func (c *Proton) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/", } - if invalidParams.Len() > 0 { - return invalidParams + if input == nil { + input = &TagResourceInput{} } - return nil -} -// SetId sets the Id field's value. -func (s *AcceptEnvironmentAccountConnectionInput) SetId(v string) *AcceptEnvironmentAccountConnectionInput { - s.Id = &v - return s + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return } -type AcceptEnvironmentAccountConnectionOutput struct { - _ struct{} `type:"structure"` - - // The environment account connection data that's returned by AWS Proton. - // - // EnvironmentAccountConnection is a required field - EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` +// TagResource API operation for AWS Proton. +// +// Tag a resource. For more information, see Proton resources and tagging in +// the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) +// or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/TagResource +func (c *Proton) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() } -// String returns the string representation. +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. // -// API parameter values that are decorated as "sensitive" in the API will not +// 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 *Proton) 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/proton-2020-07-20/UntagResource +func (c *Proton) 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 AWS Proton. +// +// Remove a tag from a resource. For more information, see Proton resources +// and tagging in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) +// or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UntagResource +func (c *Proton) 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 *Proton) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccountSettings = "UpdateAccountSettings" + +// UpdateAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccountSettings 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 UpdateAccountSettings for more information on using the UpdateAccountSettings +// 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 UpdateAccountSettingsRequest method. +// req, resp := client.UpdateAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateAccountSettings +func (c *Proton) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) (req *request.Request, output *UpdateAccountSettingsOutput) { + op := &request.Operation{ + Name: opUpdateAccountSettings, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateAccountSettingsInput{} + } + + output = &UpdateAccountSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAccountSettings API operation for AWS Proton. +// +// Update the Proton service pipeline role or repository settings. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateAccountSettings for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateAccountSettings +func (c *Proton) UpdateAccountSettings(input *UpdateAccountSettingsInput) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + return out, req.Send() +} + +// UpdateAccountSettingsWithContext is the same as UpdateAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccountSettings 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 *Proton) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateAccountSettingsInput, opts ...request.Option) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEnvironment = "UpdateEnvironment" + +// UpdateEnvironmentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEnvironment operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateEnvironment for more information on using the UpdateEnvironment +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateEnvironmentRequest method. +// req, resp := client.UpdateEnvironmentRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironment +func (c *Proton) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *request.Request, output *UpdateEnvironmentOutput) { + op := &request.Operation{ + Name: opUpdateEnvironment, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEnvironmentInput{} + } + + output = &UpdateEnvironmentOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEnvironment API operation for AWS Proton. +// +// Update an environment. +// +// If the environment is associated with an environment account connection, +// don't update or include the protonServiceRoleArn and provisioningRepository +// parameter to update or connect to an environment account connection. +// +// You can only update to a new environment account connection if it was created +// in the same environment account that the current environment account connection +// was created in and is associated with the current environment. +// +// If the environment isn't associated with an environment account connection, +// don't update or include the environmentAccountConnectionId parameter to update +// or connect to an environment account connection. +// +// You can update either the environmentAccountConnectionId or protonServiceRoleArn +// parameter and value. You can’t update both. +// +// If the environment was provisioned with pull request provisioning, include +// the provisioningRepository parameter and omit the protonServiceRoleArn and +// environmentAccountConnectionId parameters. +// +// If the environment wasn't provisioned with pull request provisioning, omit +// the provisioningRepository parameter. +// +// There are four modes for updating an environment as described in the following. +// The deploymentType field defines the mode. +// +// NONE +// +// In this mode, a deployment doesn't occur. Only the requested metadata parameters +// are updated. +// +// CURRENT_VERSION +// +// In this mode, the environment is deployed and updated with the new spec that +// you provide. Only requested parameters are updated. Don’t include minor +// or major version parameters when you use this deployment-type. +// +// MINOR_VERSION +// +// In this mode, the environment is deployed and updated with the published, +// recommended (latest) minor version of the current major version in use, by +// default. You can also specify a different minor version of the current major +// version in use. +// +// MAJOR_VERSION +// +// In this mode, the environment is deployed and updated with the published, +// recommended (latest) major and minor version of the current template, by +// default. You can also specify a different major version that's higher than +// the major version in use and a minor version (optional). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateEnvironment for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironment +func (c *Proton) UpdateEnvironment(input *UpdateEnvironmentInput) (*UpdateEnvironmentOutput, error) { + req, out := c.UpdateEnvironmentRequest(input) + return out, req.Send() +} + +// UpdateEnvironmentWithContext is the same as UpdateEnvironment with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEnvironment for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Proton) UpdateEnvironmentWithContext(ctx aws.Context, input *UpdateEnvironmentInput, opts ...request.Option) (*UpdateEnvironmentOutput, error) { + req, out := c.UpdateEnvironmentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEnvironmentAccountConnection = "UpdateEnvironmentAccountConnection" + +// UpdateEnvironmentAccountConnectionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEnvironmentAccountConnection 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 UpdateEnvironmentAccountConnection for more information on using the UpdateEnvironmentAccountConnection +// 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 UpdateEnvironmentAccountConnectionRequest method. +// req, resp := client.UpdateEnvironmentAccountConnectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentAccountConnection +func (c *Proton) UpdateEnvironmentAccountConnectionRequest(input *UpdateEnvironmentAccountConnectionInput) (req *request.Request, output *UpdateEnvironmentAccountConnectionOutput) { + op := &request.Operation{ + Name: opUpdateEnvironmentAccountConnection, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEnvironmentAccountConnectionInput{} + } + + output = &UpdateEnvironmentAccountConnectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEnvironmentAccountConnection API operation for AWS Proton. +// +// In an environment account, update an environment account connection to use +// a new IAM role. +// +// For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) +// in the Proton Administrator guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateEnvironmentAccountConnection for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentAccountConnection +func (c *Proton) UpdateEnvironmentAccountConnection(input *UpdateEnvironmentAccountConnectionInput) (*UpdateEnvironmentAccountConnectionOutput, error) { + req, out := c.UpdateEnvironmentAccountConnectionRequest(input) + return out, req.Send() +} + +// UpdateEnvironmentAccountConnectionWithContext is the same as UpdateEnvironmentAccountConnection with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEnvironmentAccountConnection 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 *Proton) UpdateEnvironmentAccountConnectionWithContext(ctx aws.Context, input *UpdateEnvironmentAccountConnectionInput, opts ...request.Option) (*UpdateEnvironmentAccountConnectionOutput, error) { + req, out := c.UpdateEnvironmentAccountConnectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEnvironmentTemplate = "UpdateEnvironmentTemplate" + +// UpdateEnvironmentTemplateRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEnvironmentTemplate 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 UpdateEnvironmentTemplate for more information on using the UpdateEnvironmentTemplate +// 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 UpdateEnvironmentTemplateRequest method. +// req, resp := client.UpdateEnvironmentTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplate +func (c *Proton) UpdateEnvironmentTemplateRequest(input *UpdateEnvironmentTemplateInput) (req *request.Request, output *UpdateEnvironmentTemplateOutput) { + op := &request.Operation{ + Name: opUpdateEnvironmentTemplate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEnvironmentTemplateInput{} + } + + output = &UpdateEnvironmentTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEnvironmentTemplate API operation for AWS Proton. +// +// Update an environment template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateEnvironmentTemplate for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplate +func (c *Proton) UpdateEnvironmentTemplate(input *UpdateEnvironmentTemplateInput) (*UpdateEnvironmentTemplateOutput, error) { + req, out := c.UpdateEnvironmentTemplateRequest(input) + return out, req.Send() +} + +// UpdateEnvironmentTemplateWithContext is the same as UpdateEnvironmentTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEnvironmentTemplate 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 *Proton) UpdateEnvironmentTemplateWithContext(ctx aws.Context, input *UpdateEnvironmentTemplateInput, opts ...request.Option) (*UpdateEnvironmentTemplateOutput, error) { + req, out := c.UpdateEnvironmentTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateEnvironmentTemplateVersion = "UpdateEnvironmentTemplateVersion" + +// UpdateEnvironmentTemplateVersionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateEnvironmentTemplateVersion 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 UpdateEnvironmentTemplateVersion for more information on using the UpdateEnvironmentTemplateVersion +// 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 UpdateEnvironmentTemplateVersionRequest method. +// req, resp := client.UpdateEnvironmentTemplateVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplateVersion +func (c *Proton) UpdateEnvironmentTemplateVersionRequest(input *UpdateEnvironmentTemplateVersionInput) (req *request.Request, output *UpdateEnvironmentTemplateVersionOutput) { + op := &request.Operation{ + Name: opUpdateEnvironmentTemplateVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateEnvironmentTemplateVersionInput{} + } + + output = &UpdateEnvironmentTemplateVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateEnvironmentTemplateVersion API operation for AWS Proton. +// +// Update a major or minor version of an environment template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateEnvironmentTemplateVersion for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateEnvironmentTemplateVersion +func (c *Proton) UpdateEnvironmentTemplateVersion(input *UpdateEnvironmentTemplateVersionInput) (*UpdateEnvironmentTemplateVersionOutput, error) { + req, out := c.UpdateEnvironmentTemplateVersionRequest(input) + return out, req.Send() +} + +// UpdateEnvironmentTemplateVersionWithContext is the same as UpdateEnvironmentTemplateVersion with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateEnvironmentTemplateVersion 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 *Proton) UpdateEnvironmentTemplateVersionWithContext(ctx aws.Context, input *UpdateEnvironmentTemplateVersionInput, opts ...request.Option) (*UpdateEnvironmentTemplateVersionOutput, error) { + req, out := c.UpdateEnvironmentTemplateVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateService = "UpdateService" + +// UpdateServiceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateService 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 UpdateService for more information on using the UpdateService +// 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 UpdateServiceRequest method. +// req, resp := client.UpdateServiceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateService +func (c *Proton) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { + op := &request.Operation{ + Name: opUpdateService, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceInput{} + } + + output = &UpdateServiceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateService API operation for AWS Proton. +// +// Edit a service description or use a spec to add and delete service instances. +// +// Existing service instances and the service pipeline can't be edited using +// this API. They can only be deleted. +// +// Use the description parameter to modify the description. +// +// Edit the spec parameter to add or delete instances. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateService for usage and error information. +// +// Returned Error Types: +// * ServiceQuotaExceededException +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. +// +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateService +func (c *Proton) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { + req, out := c.UpdateServiceRequest(input) + return out, req.Send() +} + +// UpdateServiceWithContext is the same as UpdateService with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateService 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 *Proton) UpdateServiceWithContext(ctx aws.Context, input *UpdateServiceInput, opts ...request.Option) (*UpdateServiceOutput, error) { + req, out := c.UpdateServiceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateServiceInstance = "UpdateServiceInstance" + +// UpdateServiceInstanceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServiceInstance 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 UpdateServiceInstance for more information on using the UpdateServiceInstance +// 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 UpdateServiceInstanceRequest method. +// req, resp := client.UpdateServiceInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceInstance +func (c *Proton) UpdateServiceInstanceRequest(input *UpdateServiceInstanceInput) (req *request.Request, output *UpdateServiceInstanceOutput) { + op := &request.Operation{ + Name: opUpdateServiceInstance, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceInstanceInput{} + } + + output = &UpdateServiceInstanceOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServiceInstance API operation for AWS Proton. +// +// Update a service instance. +// +// There are four modes for updating a service instance as described in the +// following. The deploymentType field defines the mode. +// +// NONE +// +// In this mode, a deployment doesn't occur. Only the requested metadata parameters +// are updated. +// +// CURRENT_VERSION +// +// In this mode, the service instance is deployed and updated with the new spec +// that you provide. Only requested parameters are updated. Don’t include +// minor or major version parameters when you use this deployment-type. +// +// MINOR_VERSION +// +// In this mode, the service instance is deployed and updated with the published, +// recommended (latest) minor version of the current major version in use, by +// default. You can also specify a different minor version of the current major +// version in use. +// +// MAJOR_VERSION +// +// In this mode, the service instance is deployed and updated with the published, +// recommended (latest) major and minor version of the current template, by +// default. You can also specify a different major version that is higher than +// the major version in use and a minor version (optional). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateServiceInstance for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceInstance +func (c *Proton) UpdateServiceInstance(input *UpdateServiceInstanceInput) (*UpdateServiceInstanceOutput, error) { + req, out := c.UpdateServiceInstanceRequest(input) + return out, req.Send() +} + +// UpdateServiceInstanceWithContext is the same as UpdateServiceInstance with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServiceInstance 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 *Proton) UpdateServiceInstanceWithContext(ctx aws.Context, input *UpdateServiceInstanceInput, opts ...request.Option) (*UpdateServiceInstanceOutput, error) { + req, out := c.UpdateServiceInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateServicePipeline = "UpdateServicePipeline" + +// UpdateServicePipelineRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServicePipeline 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 UpdateServicePipeline for more information on using the UpdateServicePipeline +// 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 UpdateServicePipelineRequest method. +// req, resp := client.UpdateServicePipelineRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServicePipeline +func (c *Proton) UpdateServicePipelineRequest(input *UpdateServicePipelineInput) (req *request.Request, output *UpdateServicePipelineOutput) { + op := &request.Operation{ + Name: opUpdateServicePipeline, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServicePipelineInput{} + } + + output = &UpdateServicePipelineOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServicePipeline API operation for AWS Proton. +// +// Update the service pipeline. +// +// There are four modes for updating a service pipeline as described in the +// following. The deploymentType field defines the mode. +// +// NONE +// +// In this mode, a deployment doesn't occur. Only the requested metadata parameters +// are updated. +// +// CURRENT_VERSION +// +// In this mode, the service pipeline is deployed and updated with the new spec +// that you provide. Only requested parameters are updated. Don’t include +// minor or major version parameters when you use this deployment-type. +// +// MINOR_VERSION +// +// In this mode, the service pipeline is deployed and updated with the published, +// recommended (latest) minor version of the current major version in use, by +// default. You can also specify a different minor version of the current major +// version in use. +// +// MAJOR_VERSION +// +// In this mode, the service pipeline is deployed and updated with the published, +// recommended (latest) major and minor version of the current template by default. +// You can also specify a different major version that is higher than the major +// version in use and a minor version (optional). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateServicePipeline for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServicePipeline +func (c *Proton) UpdateServicePipeline(input *UpdateServicePipelineInput) (*UpdateServicePipelineOutput, error) { + req, out := c.UpdateServicePipelineRequest(input) + return out, req.Send() +} + +// UpdateServicePipelineWithContext is the same as UpdateServicePipeline with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServicePipeline 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 *Proton) UpdateServicePipelineWithContext(ctx aws.Context, input *UpdateServicePipelineInput, opts ...request.Option) (*UpdateServicePipelineOutput, error) { + req, out := c.UpdateServicePipelineRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateServiceTemplate = "UpdateServiceTemplate" + +// UpdateServiceTemplateRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServiceTemplate 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 UpdateServiceTemplate for more information on using the UpdateServiceTemplate +// 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 UpdateServiceTemplateRequest method. +// req, resp := client.UpdateServiceTemplateRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplate +func (c *Proton) UpdateServiceTemplateRequest(input *UpdateServiceTemplateInput) (req *request.Request, output *UpdateServiceTemplateOutput) { + op := &request.Operation{ + Name: opUpdateServiceTemplate, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceTemplateInput{} + } + + output = &UpdateServiceTemplateOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServiceTemplate API operation for AWS Proton. +// +// Update a service template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateServiceTemplate for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplate +func (c *Proton) UpdateServiceTemplate(input *UpdateServiceTemplateInput) (*UpdateServiceTemplateOutput, error) { + req, out := c.UpdateServiceTemplateRequest(input) + return out, req.Send() +} + +// UpdateServiceTemplateWithContext is the same as UpdateServiceTemplate with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServiceTemplate 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 *Proton) UpdateServiceTemplateWithContext(ctx aws.Context, input *UpdateServiceTemplateInput, opts ...request.Option) (*UpdateServiceTemplateOutput, error) { + req, out := c.UpdateServiceTemplateRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateServiceTemplateVersion = "UpdateServiceTemplateVersion" + +// UpdateServiceTemplateVersionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateServiceTemplateVersion 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 UpdateServiceTemplateVersion for more information on using the UpdateServiceTemplateVersion +// 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 UpdateServiceTemplateVersionRequest method. +// req, resp := client.UpdateServiceTemplateVersionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplateVersion +func (c *Proton) UpdateServiceTemplateVersionRequest(input *UpdateServiceTemplateVersionInput) (req *request.Request, output *UpdateServiceTemplateVersionOutput) { + op := &request.Operation{ + Name: opUpdateServiceTemplateVersion, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateServiceTemplateVersionInput{} + } + + output = &UpdateServiceTemplateVersionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateServiceTemplateVersion API operation for AWS Proton. +// +// Update a major or minor version of a service template. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateServiceTemplateVersion for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateServiceTemplateVersion +func (c *Proton) UpdateServiceTemplateVersion(input *UpdateServiceTemplateVersionInput) (*UpdateServiceTemplateVersionOutput, error) { + req, out := c.UpdateServiceTemplateVersionRequest(input) + return out, req.Send() +} + +// UpdateServiceTemplateVersionWithContext is the same as UpdateServiceTemplateVersion with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateServiceTemplateVersion 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 *Proton) UpdateServiceTemplateVersionWithContext(ctx aws.Context, input *UpdateServiceTemplateVersionInput, opts ...request.Option) (*UpdateServiceTemplateVersionOutput, error) { + req, out := c.UpdateServiceTemplateVersionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateTemplateSyncConfig = "UpdateTemplateSyncConfig" + +// UpdateTemplateSyncConfigRequest generates a "aws/request.Request" representing the +// client's request for the UpdateTemplateSyncConfig 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 UpdateTemplateSyncConfig for more information on using the UpdateTemplateSyncConfig +// 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 UpdateTemplateSyncConfigRequest method. +// req, resp := client.UpdateTemplateSyncConfigRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateTemplateSyncConfig +func (c *Proton) UpdateTemplateSyncConfigRequest(input *UpdateTemplateSyncConfigInput) (req *request.Request, output *UpdateTemplateSyncConfigOutput) { + op := &request.Operation{ + Name: opUpdateTemplateSyncConfig, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateTemplateSyncConfigInput{} + } + + output = &UpdateTemplateSyncConfigOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateTemplateSyncConfig API operation for AWS Proton. +// +// Update template sync configuration parameters, except for the templateName +// and templateType. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Proton's +// API operation UpdateTemplateSyncConfig for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input is invalid or an out-of-range value was supplied for the input +// parameter. +// +// * AccessDeniedException +// There isn't sufficient access for performing this action. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ConflictException +// The request couldn't be made due to a conflicting operation or resource. +// +// * ResourceNotFoundException +// The requested resource wasn't found. +// +// * InternalServerException +// The request failed to register with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/UpdateTemplateSyncConfig +func (c *Proton) UpdateTemplateSyncConfig(input *UpdateTemplateSyncConfigInput) (*UpdateTemplateSyncConfigOutput, error) { + req, out := c.UpdateTemplateSyncConfigRequest(input) + return out, req.Send() +} + +// UpdateTemplateSyncConfigWithContext is the same as UpdateTemplateSyncConfig with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateTemplateSyncConfig 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 *Proton) UpdateTemplateSyncConfigWithContext(ctx aws.Context, input *UpdateTemplateSyncConfigInput, opts ...request.Option) (*UpdateTemplateSyncConfigOutput, error) { + req, out := c.UpdateTemplateSyncConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +type AcceptEnvironmentAccountConnectionInput struct { + _ struct{} `type:"structure"` + + // The ID of the environment account connection. + // + // Id is a required field + Id *string `locationName:"id" 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 AcceptEnvironmentAccountConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AcceptEnvironmentAccountConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AcceptEnvironmentAccountConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AcceptEnvironmentAccountConnectionInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AcceptEnvironmentAccountConnectionInput) SetId(v string) *AcceptEnvironmentAccountConnectionInput { + s.Id = &v + return s +} + +type AcceptEnvironmentAccountConnectionOutput struct { + _ struct{} `type:"structure"` + + // The environment account connection data that's returned by Proton. + // + // EnvironmentAccountConnection is a required field + EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AcceptEnvironmentAccountConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AcceptEnvironmentAccountConnectionOutput) GoString() string { + return s.String() +} + +// SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. +func (s *AcceptEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *AcceptEnvironmentAccountConnectionOutput { + s.EnvironmentAccountConnection = v + return s +} + +// There isn't sufficient access for performing this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Message_ is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by AccessDeniedException's + // String and GoString methods. + Message_ *string `locationName:"message" 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 AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The Proton pipeline service role and repository data. +type AccountSettings struct { + _ struct{} `type:"structure"` + + // The repository that you provide with pull request provisioning. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + PipelineProvisioningRepository *RepositoryBranch `locationName:"pipelineProvisioningRepository" type:"structure"` + + // The Amazon Resource Name (ARN) of the Proton pipeline service role. + PipelineServiceRoleArn *string `locationName:"pipelineServiceRoleArn" 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 AccountSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccountSettings) GoString() string { + return s.String() +} + +// SetPipelineProvisioningRepository sets the PipelineProvisioningRepository field's value. +func (s *AccountSettings) SetPipelineProvisioningRepository(v *RepositoryBranch) *AccountSettings { + s.PipelineProvisioningRepository = v + return s +} + +// SetPipelineServiceRoleArn sets the PipelineServiceRoleArn field's value. +func (s *AccountSettings) SetPipelineServiceRoleArn(v string) *AccountSettings { + s.PipelineServiceRoleArn = &v + return s +} + +type CancelEnvironmentDeploymentInput struct { + _ struct{} `type:"structure"` + + // The name of the environment with the deployment to cancel. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" 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 CancelEnvironmentDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelEnvironmentDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelEnvironmentDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelEnvironmentDeploymentInput"} + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *CancelEnvironmentDeploymentInput) SetEnvironmentName(v string) *CancelEnvironmentDeploymentInput { + s.EnvironmentName = &v + return s +} + +type CancelEnvironmentDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The environment summary data that's returned by Proton. + // + // Environment is a required field + Environment *Environment `locationName:"environment" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelEnvironmentDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelEnvironmentDeploymentOutput) GoString() string { + return s.String() +} + +// SetEnvironment sets the Environment field's value. +func (s *CancelEnvironmentDeploymentOutput) SetEnvironment(v *Environment) *CancelEnvironmentDeploymentOutput { + s.Environment = v + return s +} + +type CancelServiceInstanceDeploymentInput struct { + _ struct{} `type:"structure"` + + // The name of the service instance with the deployment to cancel. + // + // ServiceInstanceName is a required field + ServiceInstanceName *string `locationName:"serviceInstanceName" min:"1" type:"string" required:"true"` + + // The name of the service with the service instance deployment to cancel. + // + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" 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 CancelServiceInstanceDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelServiceInstanceDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelServiceInstanceDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelServiceInstanceDeploymentInput"} + if s.ServiceInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceInstanceName")) + } + if s.ServiceInstanceName != nil && len(*s.ServiceInstanceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceInstanceName", 1)) + } + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceInstanceName sets the ServiceInstanceName field's value. +func (s *CancelServiceInstanceDeploymentInput) SetServiceInstanceName(v string) *CancelServiceInstanceDeploymentInput { + s.ServiceInstanceName = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *CancelServiceInstanceDeploymentInput) SetServiceName(v string) *CancelServiceInstanceDeploymentInput { + s.ServiceName = &v + return s +} + +type CancelServiceInstanceDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The service instance summary data that's returned by Proton. + // + // ServiceInstance is a required field + ServiceInstance *ServiceInstance `locationName:"serviceInstance" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelServiceInstanceDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelServiceInstanceDeploymentOutput) GoString() string { + return s.String() +} + +// SetServiceInstance sets the ServiceInstance field's value. +func (s *CancelServiceInstanceDeploymentOutput) SetServiceInstance(v *ServiceInstance) *CancelServiceInstanceDeploymentOutput { + s.ServiceInstance = v + return s +} + +type CancelServicePipelineDeploymentInput struct { + _ struct{} `type:"structure"` + + // The name of the service with the service pipeline deployment to cancel. + // + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" 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 CancelServicePipelineDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelServicePipelineDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelServicePipelineDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelServicePipelineDeploymentInput"} + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetServiceName sets the ServiceName field's value. +func (s *CancelServicePipelineDeploymentInput) SetServiceName(v string) *CancelServicePipelineDeploymentInput { + s.ServiceName = &v + return s +} + +type CancelServicePipelineDeploymentOutput struct { + _ struct{} `type:"structure"` + + // The service pipeline detail data that's returned by Proton. + // + // Pipeline is a required field + Pipeline *ServicePipeline `locationName:"pipeline" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelServicePipelineDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelServicePipelineDeploymentOutput) GoString() string { + return s.String() +} + +// SetPipeline sets the Pipeline field's value. +func (s *CancelServicePipelineDeploymentOutput) SetPipeline(v *ServicePipeline) *CancelServicePipelineDeploymentOutput { + s.Pipeline = v + return s +} + +// Compatible environment template data. +type CompatibleEnvironmentTemplate struct { + _ struct{} `type:"structure"` + + // The major version of the compatible environment template. + // + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + + // The compatible environment template name. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" 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 CompatibleEnvironmentTemplate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CompatibleEnvironmentTemplate) GoString() string { + return s.String() +} + +// SetMajorVersion sets the MajorVersion field's value. +func (s *CompatibleEnvironmentTemplate) SetMajorVersion(v string) *CompatibleEnvironmentTemplate { + s.MajorVersion = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CompatibleEnvironmentTemplate) SetTemplateName(v string) *CompatibleEnvironmentTemplate { + s.TemplateName = &v + return s +} + +// Compatible environment template data. +type CompatibleEnvironmentTemplateInput struct { + _ struct{} `type:"structure"` + + // The major version of the compatible environment template. + // + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + + // The compatible environment template name. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" 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 CompatibleEnvironmentTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CompatibleEnvironmentTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CompatibleEnvironmentTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CompatibleEnvironmentTemplateInput"} + if s.MajorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MajorVersion")) + } + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMajorVersion sets the MajorVersion field's value. +func (s *CompatibleEnvironmentTemplateInput) SetMajorVersion(v string) *CompatibleEnvironmentTemplateInput { + s.MajorVersion = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CompatibleEnvironmentTemplateInput) SetTemplateName(v string) *CompatibleEnvironmentTemplateInput { + s.TemplateName = &v + return s +} + +// The request couldn't be made due to a conflicting operation or resource. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Message_ is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ConflictException's + // String and GoString methods. + Message_ *string `locationName:"message" 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 ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateEnvironmentAccountConnectionInput struct { + _ struct{} `type:"structure"` + + // When included, if two identical requests are made with the same client token, + // Proton returns the environment account connection that the first request + // created. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The name of the Proton environment that's created in the associated management + // account. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` + + // The ID of the management account that accepts or rejects the environment + // account connection. You create an manage the Proton environment in this account. + // If the management account accepts the environment account connection, Proton + // can use the associated IAM role to provision environment infrastructure resources + // in the associated environment account. + // + // ManagementAccountId is a required field + ManagementAccountId *string `locationName:"managementAccountId" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the IAM service role that's created in + // the environment account. Proton uses this role to provision infrastructure + // resources in the associated environment account. + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + + // Tags for your environment account connection. For more information, see Proton + // resources and tagging (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) + // in the Proton Administrator Guide. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentAccountConnectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentAccountConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEnvironmentAccountConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentAccountConnectionInput"} + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.ManagementAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("ManagementAccountId")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateEnvironmentAccountConnectionInput) SetClientToken(v string) *CreateEnvironmentAccountConnectionInput { + s.ClientToken = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *CreateEnvironmentAccountConnectionInput) SetEnvironmentName(v string) *CreateEnvironmentAccountConnectionInput { + s.EnvironmentName = &v + return s +} + +// SetManagementAccountId sets the ManagementAccountId field's value. +func (s *CreateEnvironmentAccountConnectionInput) SetManagementAccountId(v string) *CreateEnvironmentAccountConnectionInput { + s.ManagementAccountId = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateEnvironmentAccountConnectionInput) SetRoleArn(v string) *CreateEnvironmentAccountConnectionInput { + s.RoleArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentAccountConnectionInput) SetTags(v []*Tag) *CreateEnvironmentAccountConnectionInput { + s.Tags = v + return s +} + +type CreateEnvironmentAccountConnectionOutput struct { + _ struct{} `type:"structure"` + + // The environment account connection detail data that's returned by Proton. + // + // EnvironmentAccountConnection is a required field + EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentAccountConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentAccountConnectionOutput) GoString() string { + return s.String() +} + +// SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. +func (s *CreateEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *CreateEnvironmentAccountConnectionOutput { + s.EnvironmentAccountConnection = v + return s +} + +type CreateEnvironmentInput struct { + _ struct{} `type:"structure"` + + // A description of the environment that's being created and deployed. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateEnvironmentInput's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // The ID of the environment account connection that you provide if you're provisioning + // your environment infrastructure resources to an environment account. You + // must include either the environmentAccountConnectionId or protonServiceRoleArn + // parameter and value and omit the provisioningRepository parameter and values. + // For more information, see Environment account connections (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) + // in the Proton Administrator guide. + EnvironmentAccountConnectionId *string `locationName:"environmentAccountConnectionId" type:"string"` + + // The name of the environment. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the Proton service role that allows Proton + // to make calls to other services on your behalf. You must include either the + // environmentAccountConnectionId or protonServiceRoleArn parameter and value + // and omit the provisioningRepository parameter when you use standard provisioning. + ProtonServiceRoleArn *string `locationName:"protonServiceRoleArn" min:"1" type:"string"` + + // The repository that you provide with pull request provisioning. If you provide + // this parameter, you must omit the environmentAccountConnectionId and protonServiceRoleArn + // parameters. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + ProvisioningRepository *RepositoryBranchInput_ `locationName:"provisioningRepository" type:"structure"` + + // A link to a YAML formatted spec file that provides inputs as defined in the + // environment template bundle schema file. For more information, see Environments + // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) + // in the Proton Administrator Guide. + // + // Spec is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateEnvironmentInput's + // String and GoString methods. + // + // Spec is a required field + Spec *string `locationName:"spec" min:"1" type:"string" required:"true" sensitive:"true"` + + // Create tags for your environment. For more information, see Proton resources + // and tagging in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) + // or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). + Tags []*Tag `locationName:"tags" type:"list"` + + // The major version of the environment template. + // + // TemplateMajorVersion is a required field + TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` + + // The minor version of the environment template. + TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string"` + + // The name of the environment template. For more information, see Environment + // Templates (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) + // in the Proton Administrator Guide. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" 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 CreateEnvironmentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ProtonServiceRoleArn != nil && len(*s.ProtonServiceRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProtonServiceRoleArn", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.Spec != nil && len(*s.Spec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Spec", 1)) + } + if s.TemplateMajorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateMajorVersion")) + } + if s.TemplateMajorVersion != nil && len(*s.TemplateMajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateMajorVersion", 1)) + } + if s.TemplateMinorVersion != nil && len(*s.TemplateMinorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateMinorVersion", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.ProvisioningRepository != nil { + if err := s.ProvisioningRepository.Validate(); err != nil { + invalidParams.AddNested("ProvisioningRepository", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput { + s.Description = &v + return s +} + +// SetEnvironmentAccountConnectionId sets the EnvironmentAccountConnectionId field's value. +func (s *CreateEnvironmentInput) SetEnvironmentAccountConnectionId(v string) *CreateEnvironmentInput { + s.EnvironmentAccountConnectionId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateEnvironmentInput) SetName(v string) *CreateEnvironmentInput { + s.Name = &v + return s +} + +// SetProtonServiceRoleArn sets the ProtonServiceRoleArn field's value. +func (s *CreateEnvironmentInput) SetProtonServiceRoleArn(v string) *CreateEnvironmentInput { + s.ProtonServiceRoleArn = &v + return s +} + +// SetProvisioningRepository sets the ProvisioningRepository field's value. +func (s *CreateEnvironmentInput) SetProvisioningRepository(v *RepositoryBranchInput_) *CreateEnvironmentInput { + s.ProvisioningRepository = v + return s +} + +// SetSpec sets the Spec field's value. +func (s *CreateEnvironmentInput) SetSpec(v string) *CreateEnvironmentInput { + s.Spec = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentInput) SetTags(v []*Tag) *CreateEnvironmentInput { + s.Tags = v + return s +} + +// SetTemplateMajorVersion sets the TemplateMajorVersion field's value. +func (s *CreateEnvironmentInput) SetTemplateMajorVersion(v string) *CreateEnvironmentInput { + s.TemplateMajorVersion = &v + return s +} + +// SetTemplateMinorVersion sets the TemplateMinorVersion field's value. +func (s *CreateEnvironmentInput) SetTemplateMinorVersion(v string) *CreateEnvironmentInput { + s.TemplateMinorVersion = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateEnvironmentInput) SetTemplateName(v string) *CreateEnvironmentInput { + s.TemplateName = &v + return s +} + +type CreateEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The environment detail data that's returned by Proton. + // + // Environment is a required field + Environment *Environment `locationName:"environment" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentOutput) GoString() string { + return s.String() +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateEnvironmentOutput) SetEnvironment(v *Environment) *CreateEnvironmentOutput { + s.Environment = v + return s +} + +type CreateEnvironmentTemplateInput struct { + _ struct{} `type:"structure"` + + // A description of the environment template. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateEnvironmentTemplateInput's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // The environment template name as displayed in the developer interface. + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateEnvironmentTemplateInput's + // String and GoString methods. + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` + + // A customer provided encryption key that Proton uses to encrypt data. + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + + // The name of the environment template. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // When included, indicates that the environment template is for customer provisioned + // and managed infrastructure. + Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` + + // Create tags for your environment template. For more information, see Proton + // resources and tagging in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) + // or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEnvironmentTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentTemplateInput"} + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateEnvironmentTemplateInput) SetDescription(v string) *CreateEnvironmentTemplateInput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateEnvironmentTemplateInput) SetDisplayName(v string) *CreateEnvironmentTemplateInput { + s.DisplayName = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *CreateEnvironmentTemplateInput) SetEncryptionKey(v string) *CreateEnvironmentTemplateInput { + s.EncryptionKey = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateEnvironmentTemplateInput) SetName(v string) *CreateEnvironmentTemplateInput { + s.Name = &v + return s +} + +// SetProvisioning sets the Provisioning field's value. +func (s *CreateEnvironmentTemplateInput) SetProvisioning(v string) *CreateEnvironmentTemplateInput { + s.Provisioning = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentTemplateInput) SetTags(v []*Tag) *CreateEnvironmentTemplateInput { + s.Tags = v + return s +} + +type CreateEnvironmentTemplateOutput struct { + _ struct{} `type:"structure"` + + // The environment template detail data that's returned by Proton. + // + // EnvironmentTemplate is a required field + EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateOutput) GoString() string { + return s.String() +} + +// SetEnvironmentTemplate sets the EnvironmentTemplate field's value. +func (s *CreateEnvironmentTemplateOutput) SetEnvironmentTemplate(v *EnvironmentTemplate) *CreateEnvironmentTemplateOutput { + s.EnvironmentTemplate = v + return s +} + +type CreateEnvironmentTemplateVersionInput struct { + _ struct{} `type:"structure"` + + // When included, if two identical requests are made with the same client token, + // Proton returns the environment template version that the first request created. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // A description of the new version of an environment template. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateEnvironmentTemplateVersionInput's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // To create a new minor version of the environment template, include a major + // Version. + // + // To create a new major and minor version of the environment template, exclude + // major Version. + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` + + // An object that includes the template bundle S3 bucket path and name for the + // new version of an template. + // + // Source is a required field + Source *TemplateVersionSourceInput `locationName:"source" type:"structure" required:"true"` + + // Create tags for a new version of an environment template. + Tags []*Tag `locationName:"tags" type:"list"` + + // The name of the environment template. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" 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 CreateEnvironmentTemplateVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateEnvironmentTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentTemplateVersionInput"} + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateEnvironmentTemplateVersionInput) SetClientToken(v string) *CreateEnvironmentTemplateVersionInput { + s.ClientToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateEnvironmentTemplateVersionInput) SetDescription(v string) *CreateEnvironmentTemplateVersionInput { + s.Description = &v + return s +} + +// SetMajorVersion sets the MajorVersion field's value. +func (s *CreateEnvironmentTemplateVersionInput) SetMajorVersion(v string) *CreateEnvironmentTemplateVersionInput { + s.MajorVersion = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateEnvironmentTemplateVersionInput) SetSource(v *TemplateVersionSourceInput) *CreateEnvironmentTemplateVersionInput { + s.Source = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateEnvironmentTemplateVersionInput) SetTags(v []*Tag) *CreateEnvironmentTemplateVersionInput { + s.Tags = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateEnvironmentTemplateVersionInput) SetTemplateName(v string) *CreateEnvironmentTemplateVersionInput { + s.TemplateName = &v + return s +} + +type CreateEnvironmentTemplateVersionOutput struct { + _ struct{} `type:"structure"` + + // The environment template detail data that's returned by Proton. + // + // EnvironmentTemplateVersion is a required field + EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateEnvironmentTemplateVersionOutput) GoString() string { + return s.String() +} + +// SetEnvironmentTemplateVersion sets the EnvironmentTemplateVersion field's value. +func (s *CreateEnvironmentTemplateVersionOutput) SetEnvironmentTemplateVersion(v *EnvironmentTemplateVersion) *CreateEnvironmentTemplateVersionOutput { + s.EnvironmentTemplateVersion = v + return s +} + +type CreateRepositoryInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of your Amazon Web Services CodeStar connection. + // For more information, see Setting up for Proton (https://docs.aws.amazon.com/setting-up-for-service) + // in the Proton Administrator Guide. + // + // ConnectionArn is a required field + ConnectionArn *string `locationName:"connectionArn" min:"1" type:"string" required:"true"` + + // The ARN of your customer Amazon Web Services Key Management Service (Amazon + // Web Services KMS) key. + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + + // The repository name, for example myrepos/myrepo. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"} + if s.ConnectionArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) + } + if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) + } + if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Provider == nil { + invalidParams.Add(request.NewErrParamRequired("Provider")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConnectionArn sets the ConnectionArn field's value. +func (s *CreateRepositoryInput) SetConnectionArn(v string) *CreateRepositoryInput { + s.ConnectionArn = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *CreateRepositoryInput) SetEncryptionKey(v string) *CreateRepositoryInput { + s.EncryptionKey = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRepositoryInput) SetName(v string) *CreateRepositoryInput { + s.Name = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *CreateRepositoryInput) SetProvider(v string) *CreateRepositoryInput { + s.Provider = &v + return s +} + +type CreateRepositoryOutput struct { + _ struct{} `type:"structure"` + + // The repository detail data that's returned by Proton. + // + // Repository is a required field + Repository *Repository `locationName:"repository" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateRepositoryOutput) GoString() string { + return s.String() +} + +// SetRepository sets the Repository field's value. +func (s *CreateRepositoryOutput) SetRepository(v *Repository) *CreateRepositoryOutput { + s.Repository = v + return s +} + +type CreateServiceInput struct { + _ struct{} `type:"structure"` + + // The name of the code repository branch that holds the code that's deployed + // in Proton. Don't include this parameter if your service template doesn't + // include a service pipeline. + BranchName *string `locationName:"branchName" min:"1" type:"string"` + + // A description of the Proton service. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateServiceInput's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // The service name. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the repository connection. For more information, + // see Set up repository connection (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) + // in the Proton Administrator Guide and Setting up with Proton (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) + // in the Proton User Guide. Don't include this parameter if your service template + // doesn't include a service pipeline. + RepositoryConnectionArn *string `locationName:"repositoryConnectionArn" min:"1" type:"string"` + + // The ID of the code repository. Don't include this parameter if your service + // template doesn't include a service pipeline. + RepositoryId *string `locationName:"repositoryId" min:"1" type:"string"` + + // A link to a spec file that provides inputs as defined in the service template + // bundle schema file. The spec file is in YAML format. Don’t include pipeline + // inputs in the spec if your service template doesn’t include a service pipeline. + // For more information, see Create a service (https://docs.aws.amazon.com/proton/latest/adminguide/ag-create-svc.html.html) + // in the Proton Administrator Guide and Create a service (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-create.html) + // in the Proton User Guide. + // + // Spec is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateServiceInput's + // String and GoString methods. + // + // Spec is a required field + Spec *string `locationName:"spec" min:"1" type:"string" required:"true" sensitive:"true"` + + // Create tags for your service. For more information, see Proton resources + // and tagging in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) + // or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). + Tags []*Tag `locationName:"tags" type:"list"` + + // The major version of the service template that was used to create the service. + // + // TemplateMajorVersion is a required field + TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` + + // The minor version of the service template that was used to create the service. + TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string"` + + // The name of the service template that's used to create the service. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" 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 CreateServiceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.RepositoryConnectionArn != nil && len(*s.RepositoryConnectionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryConnectionArn", 1)) + } + if s.RepositoryId != nil && len(*s.RepositoryId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryId", 1)) + } + if s.Spec == nil { + invalidParams.Add(request.NewErrParamRequired("Spec")) + } + if s.Spec != nil && len(*s.Spec) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Spec", 1)) + } + if s.TemplateMajorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateMajorVersion")) + } + if s.TemplateMajorVersion != nil && len(*s.TemplateMajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateMajorVersion", 1)) + } + if s.TemplateMinorVersion != nil && len(*s.TemplateMinorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateMinorVersion", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *CreateServiceInput) SetBranchName(v string) *CreateServiceInput { + s.BranchName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateServiceInput) SetDescription(v string) *CreateServiceInput { + s.Description = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateServiceInput) SetName(v string) *CreateServiceInput { + s.Name = &v + return s +} + +// SetRepositoryConnectionArn sets the RepositoryConnectionArn field's value. +func (s *CreateServiceInput) SetRepositoryConnectionArn(v string) *CreateServiceInput { + s.RepositoryConnectionArn = &v + return s +} + +// SetRepositoryId sets the RepositoryId field's value. +func (s *CreateServiceInput) SetRepositoryId(v string) *CreateServiceInput { + s.RepositoryId = &v + return s +} + +// SetSpec sets the Spec field's value. +func (s *CreateServiceInput) SetSpec(v string) *CreateServiceInput { + s.Spec = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateServiceInput) SetTags(v []*Tag) *CreateServiceInput { + s.Tags = v + return s +} + +// SetTemplateMajorVersion sets the TemplateMajorVersion field's value. +func (s *CreateServiceInput) SetTemplateMajorVersion(v string) *CreateServiceInput { + s.TemplateMajorVersion = &v + return s +} + +// SetTemplateMinorVersion sets the TemplateMinorVersion field's value. +func (s *CreateServiceInput) SetTemplateMinorVersion(v string) *CreateServiceInput { + s.TemplateMinorVersion = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateServiceInput) SetTemplateName(v string) *CreateServiceInput { + s.TemplateName = &v + return s +} + +type CreateServiceOutput struct { + _ struct{} `type:"structure"` + + // The service detail data that's returned by Proton. + // + // Service is a required field + Service *Service `locationName:"service" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceOutput) GoString() string { + return s.String() +} + +// SetService sets the Service field's value. +func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { + s.Service = v + return s +} + +type CreateServiceTemplateInput struct { + _ struct{} `type:"structure"` + + // A description of the service template. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateServiceTemplateInput's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // The name of the service template as displayed in the developer interface. + // + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateServiceTemplateInput's + // String and GoString methods. + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` + + // A customer provided encryption key that's used to encrypt data. + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + + // The name of the service template. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // Proton includes a service pipeline for your service by default. When included, + // this parameter indicates that an Proton service pipeline won't be included + // for your service. Once specified, this parameter can't be changed. For more + // information, see Service template bundles (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-bundles.html) + // in the Proton Administrator Guide. + PipelineProvisioning *string `locationName:"pipelineProvisioning" type:"string" enum:"Provisioning"` + + // Create tags for your service template. For more information, see Proton resources + // and tagging in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) + // or Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceTemplateInput"} + if s.DisplayName != nil && len(*s.DisplayName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) + } + if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateServiceTemplateInput) SetDescription(v string) *CreateServiceTemplateInput { + s.Description = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateServiceTemplateInput) SetDisplayName(v string) *CreateServiceTemplateInput { + s.DisplayName = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *CreateServiceTemplateInput) SetEncryptionKey(v string) *CreateServiceTemplateInput { + s.EncryptionKey = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateServiceTemplateInput) SetName(v string) *CreateServiceTemplateInput { + s.Name = &v + return s +} + +// SetPipelineProvisioning sets the PipelineProvisioning field's value. +func (s *CreateServiceTemplateInput) SetPipelineProvisioning(v string) *CreateServiceTemplateInput { + s.PipelineProvisioning = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateServiceTemplateInput) SetTags(v []*Tag) *CreateServiceTemplateInput { + s.Tags = v + return s +} + +type CreateServiceTemplateOutput struct { + _ struct{} `type:"structure"` + + // The service template detail data that's returned by Proton. + // + // ServiceTemplate is a required field + ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateOutput) GoString() string { + return s.String() +} + +// SetServiceTemplate sets the ServiceTemplate field's value. +func (s *CreateServiceTemplateOutput) SetServiceTemplate(v *ServiceTemplate) *CreateServiceTemplateOutput { + s.ServiceTemplate = v + return s +} + +type CreateServiceTemplateVersionInput struct { + _ struct{} `type:"structure"` + + // When included, if two identical requests are made with the same client token, + // Proton returns the service template version that the first request created. + ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // An array of compatible environment template objects for the new version of + // a service template. + // + // CompatibleEnvironmentTemplates is a required field + CompatibleEnvironmentTemplates []*CompatibleEnvironmentTemplateInput `locationName:"compatibleEnvironmentTemplates" min:"1" type:"list" required:"true"` + + // A description of the new version of a service template. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateServiceTemplateVersionInput's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // To create a new minor version of the service template, include a major Version. + // + // To create a new major and minor version of the service template, exclude + // major Version. + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` + + // An object that includes the template bundle S3 bucket path and name for the + // new version of a service template. + // + // Source is a required field + Source *TemplateVersionSourceInput `locationName:"source" type:"structure" required:"true"` + + // Create tags for a new version of a service template. + Tags []*Tag `locationName:"tags" type:"list"` + + // The name of the service template. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" 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 CreateServiceTemplateVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceTemplateVersionInput"} + if s.CompatibleEnvironmentTemplates == nil { + invalidParams.Add(request.NewErrParamRequired("CompatibleEnvironmentTemplates")) + } + if s.CompatibleEnvironmentTemplates != nil && len(s.CompatibleEnvironmentTemplates) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CompatibleEnvironmentTemplates", 1)) + } + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.Source == nil { + invalidParams.Add(request.NewErrParamRequired("Source")) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.CompatibleEnvironmentTemplates != nil { + for i, v := range s.CompatibleEnvironmentTemplates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CompatibleEnvironmentTemplates", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Source != nil { + if err := s.Source.Validate(); err != nil { + invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateServiceTemplateVersionInput) SetClientToken(v string) *CreateServiceTemplateVersionInput { + s.ClientToken = &v + return s +} + +// SetCompatibleEnvironmentTemplates sets the CompatibleEnvironmentTemplates field's value. +func (s *CreateServiceTemplateVersionInput) SetCompatibleEnvironmentTemplates(v []*CompatibleEnvironmentTemplateInput) *CreateServiceTemplateVersionInput { + s.CompatibleEnvironmentTemplates = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateServiceTemplateVersionInput) SetDescription(v string) *CreateServiceTemplateVersionInput { + s.Description = &v + return s +} + +// SetMajorVersion sets the MajorVersion field's value. +func (s *CreateServiceTemplateVersionInput) SetMajorVersion(v string) *CreateServiceTemplateVersionInput { + s.MajorVersion = &v + return s +} + +// SetSource sets the Source field's value. +func (s *CreateServiceTemplateVersionInput) SetSource(v *TemplateVersionSourceInput) *CreateServiceTemplateVersionInput { + s.Source = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateServiceTemplateVersionInput) SetTags(v []*Tag) *CreateServiceTemplateVersionInput { + s.Tags = v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateServiceTemplateVersionInput) SetTemplateName(v string) *CreateServiceTemplateVersionInput { + s.TemplateName = &v + return s +} + +type CreateServiceTemplateVersionOutput struct { + _ struct{} `type:"structure"` + + // The service template version summary of detail data that's returned by Proton. + // + // ServiceTemplateVersion is a required field + ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateVersionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateServiceTemplateVersionOutput) GoString() string { + return s.String() +} + +// SetServiceTemplateVersion sets the ServiceTemplateVersion field's value. +func (s *CreateServiceTemplateVersionOutput) SetServiceTemplateVersion(v *ServiceTemplateVersion) *CreateServiceTemplateVersionOutput { + s.ServiceTemplateVersion = v + return s +} + +type CreateTemplateSyncConfigInput struct { + _ struct{} `type:"structure"` + + // The branch of the registered repository for your template. + // + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` + + // The name of your repository, for example myrepos/myrepo. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The provider type for your repository. + // + // RepositoryProvider is a required field + RepositoryProvider *string `locationName:"repositoryProvider" type:"string" required:"true" enum:"RepositoryProvider"` + + // A repository subdirectory path to your template bundle directory. When included, + // Proton limits the template bundle search to this repository directory. + Subdirectory *string `locationName:"subdirectory" min:"1" type:"string"` + + // The name of your registered template. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + + // The type of the registered template. + // + // TemplateType is a required field + TemplateType *string `locationName:"templateType" type:"string" required:"true" enum:"TemplateType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateTemplateSyncConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateTemplateSyncConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTemplateSyncConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTemplateSyncConfigInput"} + if s.Branch == nil { + invalidParams.Add(request.NewErrParamRequired("Branch")) + } + if s.Branch != nil && len(*s.Branch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.RepositoryProvider == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryProvider")) + } + if s.Subdirectory != nil && len(*s.Subdirectory) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subdirectory", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.TemplateType == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranch sets the Branch field's value. +func (s *CreateTemplateSyncConfigInput) SetBranch(v string) *CreateTemplateSyncConfigInput { + s.Branch = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateTemplateSyncConfigInput) SetRepositoryName(v string) *CreateTemplateSyncConfigInput { + s.RepositoryName = &v + return s +} + +// SetRepositoryProvider sets the RepositoryProvider field's value. +func (s *CreateTemplateSyncConfigInput) SetRepositoryProvider(v string) *CreateTemplateSyncConfigInput { + s.RepositoryProvider = &v + return s +} + +// SetSubdirectory sets the Subdirectory field's value. +func (s *CreateTemplateSyncConfigInput) SetSubdirectory(v string) *CreateTemplateSyncConfigInput { + s.Subdirectory = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *CreateTemplateSyncConfigInput) SetTemplateName(v string) *CreateTemplateSyncConfigInput { + s.TemplateName = &v + return s +} + +// SetTemplateType sets the TemplateType field's value. +func (s *CreateTemplateSyncConfigInput) SetTemplateType(v string) *CreateTemplateSyncConfigInput { + s.TemplateType = &v + return s +} + +type CreateTemplateSyncConfigOutput struct { + _ struct{} `type:"structure"` + + // The template sync configuration detail data that's returned by Proton. + TemplateSyncConfig *TemplateSyncConfig `locationName:"templateSyncConfig" 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 CreateTemplateSyncConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateTemplateSyncConfigOutput) GoString() string { + return s.String() +} + +// SetTemplateSyncConfig sets the TemplateSyncConfig field's value. +func (s *CreateTemplateSyncConfigOutput) SetTemplateSyncConfig(v *TemplateSyncConfig) *CreateTemplateSyncConfigOutput { + s.TemplateSyncConfig = v + return s +} + +type DeleteEnvironmentAccountConnectionInput struct { + _ struct{} `type:"structure"` + + // The ID of the environment account connection to delete. + // + // Id is a required field + Id *string `locationName:"id" 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 AcceptEnvironmentAccountConnectionOutput) String() string { +func (s DeleteEnvironmentAccountConnectionInput) String() string { return awsutil.Prettify(s) } @@ -5473,25 +9799,67 @@ func (s AcceptEnvironmentAccountConnectionOutput) 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 AcceptEnvironmentAccountConnectionOutput) GoString() string { +func (s DeleteEnvironmentAccountConnectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEnvironmentAccountConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentAccountConnectionInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteEnvironmentAccountConnectionInput) SetId(v string) *DeleteEnvironmentAccountConnectionInput { + s.Id = &v + return s +} + +type DeleteEnvironmentAccountConnectionOutput struct { + _ struct{} `type:"structure"` + + // The environment account connection detail data that's returned by Proton. + EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" 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 DeleteEnvironmentAccountConnectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteEnvironmentAccountConnectionOutput) GoString() string { return s.String() } // SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. -func (s *AcceptEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *AcceptEnvironmentAccountConnectionOutput { +func (s *DeleteEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *DeleteEnvironmentAccountConnectionOutput { s.EnvironmentAccountConnection = v return s } -// There isn't sufficient access for performing this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type DeleteEnvironmentInput struct { + _ struct{} `type:"structure"` - // Message_ is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by AccessDeniedException's - // String and GoString methods. - Message_ *string `locationName:"message" type:"string" sensitive:"true"` + // The name of the environment to delete. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5499,7 +9867,7 @@ type AccessDeniedException 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 AccessDeniedException) String() string { +func (s DeleteEnvironmentInput) String() string { return awsutil.Prettify(s) } @@ -5508,54 +9876,117 @@ func (s AccessDeniedException) 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 AccessDeniedException) GoString() string { +func (s DeleteEnvironmentInput) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +// SetName sets the Name field's value. +func (s *DeleteEnvironmentInput) SetName(v string) *DeleteEnvironmentInput { + s.Name = &v + return s } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +type DeleteEnvironmentOutput struct { + _ struct{} `type:"structure"` + + // The environment detail data that's returned by Proton. + Environment *Environment `locationName:"environment" type:"structure"` } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteEnvironmentOutput) String() string { + return awsutil.Prettify(s) } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteEnvironmentOutput) GoString() string { + return s.String() } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetEnvironment sets the Environment field's value. +func (s *DeleteEnvironmentOutput) SetEnvironment(v *Environment) *DeleteEnvironmentOutput { + s.Environment = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +type DeleteEnvironmentTemplateInput struct { + _ struct{} `type:"structure"` + + // The name of the environment template to delete. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } -// The AWS Proton pipeline service role data. -type AccountSettings struct { +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteEnvironmentTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteEnvironmentTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteEnvironmentTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentTemplateInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteEnvironmentTemplateInput) SetName(v string) *DeleteEnvironmentTemplateInput { + s.Name = &v + return s +} + +type DeleteEnvironmentTemplateOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the AWS Proton pipeline service role. - PipelineServiceRoleArn *string `locationName:"pipelineServiceRoleArn" min:"1" type:"string"` + // The environment template detail data that's returned by Proton. + EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure"` } // String returns the string representation. @@ -5563,7 +9994,7 @@ type AccountSettings 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 AccountSettings) String() string { +func (s DeleteEnvironmentTemplateOutput) String() string { return awsutil.Prettify(s) } @@ -5572,23 +10003,33 @@ func (s AccountSettings) 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 AccountSettings) GoString() string { +func (s DeleteEnvironmentTemplateOutput) GoString() string { return s.String() } -// SetPipelineServiceRoleArn sets the PipelineServiceRoleArn field's value. -func (s *AccountSettings) SetPipelineServiceRoleArn(v string) *AccountSettings { - s.PipelineServiceRoleArn = &v +// SetEnvironmentTemplate sets the EnvironmentTemplate field's value. +func (s *DeleteEnvironmentTemplateOutput) SetEnvironmentTemplate(v *EnvironmentTemplate) *DeleteEnvironmentTemplateOutput { + s.EnvironmentTemplate = v return s } -type CancelEnvironmentDeploymentInput struct { +type DeleteEnvironmentTemplateVersionInput struct { _ struct{} `type:"structure"` - // The name of the environment with the deployment to cancel. + // The environment template major version to delete. // - // EnvironmentName is a required field - EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + + // The environment template minor version to delete. + // + // MinorVersion is a required field + MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` + + // The name of the environment template. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5596,7 +10037,7 @@ type CancelEnvironmentDeploymentInput 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 CancelEnvironmentDeploymentInput) String() string { +func (s DeleteEnvironmentTemplateVersionInput) String() string { return awsutil.Prettify(s) } @@ -5605,18 +10046,30 @@ func (s CancelEnvironmentDeploymentInput) 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 CancelEnvironmentDeploymentInput) GoString() string { +func (s DeleteEnvironmentTemplateVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CancelEnvironmentDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelEnvironmentDeploymentInput"} - if s.EnvironmentName == nil { - invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) +func (s *DeleteEnvironmentTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentTemplateVersionInput"} + if s.MajorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MajorVersion")) } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.MinorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MinorVersion")) + } + if s.MinorVersion != nil && len(*s.MinorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MinorVersion", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) } if invalidParams.Len() > 0 { @@ -5625,19 +10078,29 @@ func (s *CancelEnvironmentDeploymentInput) Validate() error { return nil } -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *CancelEnvironmentDeploymentInput) SetEnvironmentName(v string) *CancelEnvironmentDeploymentInput { - s.EnvironmentName = &v +// SetMajorVersion sets the MajorVersion field's value. +func (s *DeleteEnvironmentTemplateVersionInput) SetMajorVersion(v string) *DeleteEnvironmentTemplateVersionInput { + s.MajorVersion = &v return s } -type CancelEnvironmentDeploymentOutput struct { +// SetMinorVersion sets the MinorVersion field's value. +func (s *DeleteEnvironmentTemplateVersionInput) SetMinorVersion(v string) *DeleteEnvironmentTemplateVersionInput { + s.MinorVersion = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *DeleteEnvironmentTemplateVersionInput) SetTemplateName(v string) *DeleteEnvironmentTemplateVersionInput { + s.TemplateName = &v + return s +} + +type DeleteEnvironmentTemplateVersionOutput struct { _ struct{} `type:"structure"` - // The environment summary data that's returned by AWS Proton. - // - // Environment is a required field - Environment *Environment `locationName:"environment" type:"structure" required:"true"` + // The environment template version detail data that's returned by Proton. + EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure"` } // String returns the string representation. @@ -5645,7 +10108,7 @@ type CancelEnvironmentDeploymentOutput 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 CancelEnvironmentDeploymentOutput) String() string { +func (s DeleteEnvironmentTemplateVersionOutput) String() string { return awsutil.Prettify(s) } @@ -5654,28 +10117,28 @@ func (s CancelEnvironmentDeploymentOutput) 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 CancelEnvironmentDeploymentOutput) GoString() string { +func (s DeleteEnvironmentTemplateVersionOutput) GoString() string { return s.String() } -// SetEnvironment sets the Environment field's value. -func (s *CancelEnvironmentDeploymentOutput) SetEnvironment(v *Environment) *CancelEnvironmentDeploymentOutput { - s.Environment = v +// SetEnvironmentTemplateVersion sets the EnvironmentTemplateVersion field's value. +func (s *DeleteEnvironmentTemplateVersionOutput) SetEnvironmentTemplateVersion(v *EnvironmentTemplateVersion) *DeleteEnvironmentTemplateVersionOutput { + s.EnvironmentTemplateVersion = v return s } -type CancelServiceInstanceDeploymentInput struct { +type DeleteRepositoryInput struct { _ struct{} `type:"structure"` - // The name of the service instance with the deployment to cancel. + // The name of the repository. // - // ServiceInstanceName is a required field - ServiceInstanceName *string `locationName:"serviceInstanceName" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The name of the service with the service instance deployment to cancel. + // The repository provider. // - // ServiceName is a required field - ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` } // String returns the string representation. @@ -5683,7 +10146,7 @@ type CancelServiceInstanceDeploymentInput 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 CancelServiceInstanceDeploymentInput) String() string { +func (s DeleteRepositoryInput) String() string { return awsutil.Prettify(s) } @@ -5692,24 +10155,21 @@ func (s CancelServiceInstanceDeploymentInput) 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 CancelServiceInstanceDeploymentInput) GoString() string { +func (s DeleteRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CancelServiceInstanceDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelServiceInstanceDeploymentInput"} - if s.ServiceInstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceInstanceName")) - } - if s.ServiceInstanceName != nil && len(*s.ServiceInstanceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServiceInstanceName", 1)) +func (s *DeleteRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.ServiceName == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceName")) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } - if s.ServiceName != nil && len(*s.ServiceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) + if s.Provider == nil { + invalidParams.Add(request.NewErrParamRequired("Provider")) } if invalidParams.Len() > 0 { @@ -5718,25 +10178,23 @@ func (s *CancelServiceInstanceDeploymentInput) Validate() error { return nil } -// SetServiceInstanceName sets the ServiceInstanceName field's value. -func (s *CancelServiceInstanceDeploymentInput) SetServiceInstanceName(v string) *CancelServiceInstanceDeploymentInput { - s.ServiceInstanceName = &v +// SetName sets the Name field's value. +func (s *DeleteRepositoryInput) SetName(v string) *DeleteRepositoryInput { + s.Name = &v return s } -// SetServiceName sets the ServiceName field's value. -func (s *CancelServiceInstanceDeploymentInput) SetServiceName(v string) *CancelServiceInstanceDeploymentInput { - s.ServiceName = &v +// SetProvider sets the Provider field's value. +func (s *DeleteRepositoryInput) SetProvider(v string) *DeleteRepositoryInput { + s.Provider = &v return s } -type CancelServiceInstanceDeploymentOutput struct { +type DeleteRepositoryOutput struct { _ struct{} `type:"structure"` - // The service instance summary data that's returned by AWS Proton. - // - // ServiceInstance is a required field - ServiceInstance *ServiceInstance `locationName:"serviceInstance" type:"structure" required:"true"` + // The repository detail data that's returned by Proton. + Repository *Repository `locationName:"repository" type:"structure"` } // String returns the string representation. @@ -5744,7 +10202,7 @@ type CancelServiceInstanceDeploymentOutput 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 CancelServiceInstanceDeploymentOutput) String() string { +func (s DeleteRepositoryOutput) String() string { return awsutil.Prettify(s) } @@ -5753,23 +10211,23 @@ func (s CancelServiceInstanceDeploymentOutput) 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 CancelServiceInstanceDeploymentOutput) GoString() string { +func (s DeleteRepositoryOutput) GoString() string { return s.String() } -// SetServiceInstance sets the ServiceInstance field's value. -func (s *CancelServiceInstanceDeploymentOutput) SetServiceInstance(v *ServiceInstance) *CancelServiceInstanceDeploymentOutput { - s.ServiceInstance = v +// SetRepository sets the Repository field's value. +func (s *DeleteRepositoryOutput) SetRepository(v *Repository) *DeleteRepositoryOutput { + s.Repository = v return s } -type CancelServicePipelineDeploymentInput struct { +type DeleteServiceInput struct { _ struct{} `type:"structure"` - // The name of the service with the service pipeline deployment to cancel. + // The name of the service to delete. // - // ServiceName is a required field - ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5777,7 +10235,7 @@ type CancelServicePipelineDeploymentInput 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 CancelServicePipelineDeploymentInput) String() string { +func (s DeleteServiceInput) String() string { return awsutil.Prettify(s) } @@ -5786,18 +10244,18 @@ func (s CancelServicePipelineDeploymentInput) 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 CancelServicePipelineDeploymentInput) GoString() string { +func (s DeleteServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CancelServicePipelineDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelServicePipelineDeploymentInput"} - if s.ServiceName == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceName")) +func (s *DeleteServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.ServiceName != nil && len(*s.ServiceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -5806,19 +10264,17 @@ func (s *CancelServicePipelineDeploymentInput) Validate() error { return nil } -// SetServiceName sets the ServiceName field's value. -func (s *CancelServicePipelineDeploymentInput) SetServiceName(v string) *CancelServicePipelineDeploymentInput { - s.ServiceName = &v +// SetName sets the Name field's value. +func (s *DeleteServiceInput) SetName(v string) *DeleteServiceInput { + s.Name = &v return s } -type CancelServicePipelineDeploymentOutput struct { +type DeleteServiceOutput struct { _ struct{} `type:"structure"` - // The service pipeline detail data that's returned by AWS Proton. - // - // Pipeline is a required field - Pipeline *ServicePipeline `locationName:"pipeline" type:"structure" required:"true"` + // The service detail data that's returned by Proton. + Service *Service `locationName:"service" type:"structure"` } // String returns the string representation. @@ -5826,7 +10282,7 @@ type CancelServicePipelineDeploymentOutput 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 CancelServicePipelineDeploymentOutput) String() string { +func (s DeleteServiceOutput) String() string { return awsutil.Prettify(s) } @@ -5835,29 +10291,23 @@ func (s CancelServicePipelineDeploymentOutput) 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 CancelServicePipelineDeploymentOutput) GoString() string { +func (s DeleteServiceOutput) GoString() string { return s.String() } -// SetPipeline sets the Pipeline field's value. -func (s *CancelServicePipelineDeploymentOutput) SetPipeline(v *ServicePipeline) *CancelServicePipelineDeploymentOutput { - s.Pipeline = v +// SetService sets the Service field's value. +func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { + s.Service = v return s } -// Compatible environment template data. -type CompatibleEnvironmentTemplate struct { +type DeleteServiceTemplateInput struct { _ struct{} `type:"structure"` - // The major version of the compatible environment template. - // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - - // The compatible environment template name. + // The name of the service template to delete. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -5865,7 +10315,7 @@ type CompatibleEnvironmentTemplate 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 CompatibleEnvironmentTemplate) String() string { +func (s DeleteServiceTemplateInput) String() string { return awsutil.Prettify(s) } @@ -5874,32 +10324,77 @@ func (s CompatibleEnvironmentTemplate) 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 CompatibleEnvironmentTemplate) GoString() string { +func (s DeleteServiceTemplateInput) GoString() string { return s.String() } -// SetMajorVersion sets the MajorVersion field's value. -func (s *CompatibleEnvironmentTemplate) SetMajorVersion(v string) *CompatibleEnvironmentTemplate { - s.MajorVersion = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteServiceTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceTemplateInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteServiceTemplateInput) SetName(v string) *DeleteServiceTemplateInput { + s.Name = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *CompatibleEnvironmentTemplate) SetTemplateName(v string) *CompatibleEnvironmentTemplate { - s.TemplateName = &v +type DeleteServiceTemplateOutput struct { + _ struct{} `type:"structure"` + + // The service template detail data that's returned by Proton. + ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" 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 DeleteServiceTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteServiceTemplateOutput) GoString() string { + return s.String() +} + +// SetServiceTemplate sets the ServiceTemplate field's value. +func (s *DeleteServiceTemplateOutput) SetServiceTemplate(v *ServiceTemplate) *DeleteServiceTemplateOutput { + s.ServiceTemplate = v return s } -// Compatible environment template data. -type CompatibleEnvironmentTemplateInput struct { +type DeleteServiceTemplateVersionInput struct { _ struct{} `type:"structure"` - // The major version of the compatible environment template. + // The service template major version to delete. // // MajorVersion is a required field MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - // The compatible environment template name. + // The service template minor version to delete. + // + // MinorVersion is a required field + MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` + + // The name of the service template. // // TemplateName is a required field TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` @@ -5910,7 +10405,7 @@ type CompatibleEnvironmentTemplateInput 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 CompatibleEnvironmentTemplateInput) String() string { +func (s DeleteServiceTemplateVersionInput) String() string { return awsutil.Prettify(s) } @@ -5919,19 +10414,25 @@ func (s CompatibleEnvironmentTemplateInput) 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 CompatibleEnvironmentTemplateInput) GoString() string { +func (s DeleteServiceTemplateVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CompatibleEnvironmentTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CompatibleEnvironmentTemplateInput"} +func (s *DeleteServiceTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceTemplateVersionInput"} if s.MajorVersion == nil { invalidParams.Add(request.NewErrParamRequired("MajorVersion")) } if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) } + if s.MinorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MinorVersion")) + } + if s.MinorVersion != nil && len(*s.MinorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MinorVersion", 1)) + } if s.TemplateName == nil { invalidParams.Add(request.NewErrParamRequired("TemplateName")) } @@ -5946,113 +10447,66 @@ func (s *CompatibleEnvironmentTemplateInput) Validate() error { } // SetMajorVersion sets the MajorVersion field's value. -func (s *CompatibleEnvironmentTemplateInput) SetMajorVersion(v string) *CompatibleEnvironmentTemplateInput { +func (s *DeleteServiceTemplateVersionInput) SetMajorVersion(v string) *DeleteServiceTemplateVersionInput { s.MajorVersion = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *CompatibleEnvironmentTemplateInput) SetTemplateName(v string) *CompatibleEnvironmentTemplateInput { - s.TemplateName = &v +// SetMinorVersion sets the MinorVersion field's value. +func (s *DeleteServiceTemplateVersionInput) SetMinorVersion(v string) *DeleteServiceTemplateVersionInput { + s.MinorVersion = &v return s } -// The request couldn't be made due to a conflicting operation or resource. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - // Message_ is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ConflictException's - // String and GoString methods. - Message_ *string `locationName:"message" 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 ConflictException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) GoString() string { - return s.String() -} - -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" +// SetTemplateName sets the TemplateName field's value. +func (s *DeleteServiceTemplateVersionInput) SetTemplateName(v string) *DeleteServiceTemplateVersionInput { + s.TemplateName = &v + return s } -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} +type DeleteServiceTemplateVersionOutput struct { + _ struct{} `type:"structure"` -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil + // The service template version detail data that's returned by Proton. + ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure"` } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteServiceTemplateVersionOutput) String() string { + return awsutil.Prettify(s) } -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteServiceTemplateVersionOutput) GoString() string { + return s.String() } -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID +// SetServiceTemplateVersion sets the ServiceTemplateVersion field's value. +func (s *DeleteServiceTemplateVersionOutput) SetServiceTemplateVersion(v *ServiceTemplateVersion) *DeleteServiceTemplateVersionOutput { + s.ServiceTemplateVersion = v + return s } -type CreateEnvironmentAccountConnectionInput struct { +type DeleteTemplateSyncConfigInput struct { _ struct{} `type:"structure"` - // When included, if two identicial requests are made with the same client token, - // AWS Proton returns the environment account connection that the first request - // created. - ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` - - // The name of the AWS Proton environment that's created in the associated management - // account. - // - // EnvironmentName is a required field - EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` - - // The ID of the management account that accepts or rejects the environment - // account connection. You create an manage the AWS Proton environment in this - // account. If the management account accepts the environment account connection, - // AWS Proton can use the associated IAM role to provision environment infrastructure - // resources in the associated environment account. + // The template name. // - // ManagementAccountId is a required field - ManagementAccountId *string `locationName:"managementAccountId" type:"string" required:"true"` + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the IAM service role that's created in - // the environment account. AWS Proton uses this role to provision infrastructure - // resources in the associated environment account. + // The template type. // - // RoleArn is a required field - RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + // TemplateType is a required field + TemplateType *string `locationName:"templateType" type:"string" required:"true" enum:"TemplateType"` } // String returns the string representation. @@ -6060,7 +10514,7 @@ type CreateEnvironmentAccountConnectionInput 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 CreateEnvironmentAccountConnectionInput) String() string { +func (s DeleteTemplateSyncConfigInput) String() string { return awsutil.Prettify(s) } @@ -6069,27 +10523,21 @@ func (s CreateEnvironmentAccountConnectionInput) 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 CreateEnvironmentAccountConnectionInput) GoString() string { +func (s DeleteTemplateSyncConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEnvironmentAccountConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentAccountConnectionInput"} - if s.EnvironmentName == nil { - invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) - } - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) - } - if s.ManagementAccountId == nil { - invalidParams.Add(request.NewErrParamRequired("ManagementAccountId")) +func (s *DeleteTemplateSyncConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTemplateSyncConfigInput"} + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) } - if s.RoleArn != nil && len(*s.RoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) + if s.TemplateType == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateType")) } if invalidParams.Len() > 0 { @@ -6098,37 +10546,23 @@ func (s *CreateEnvironmentAccountConnectionInput) Validate() error { return nil } -// SetClientToken sets the ClientToken field's value. -func (s *CreateEnvironmentAccountConnectionInput) SetClientToken(v string) *CreateEnvironmentAccountConnectionInput { - s.ClientToken = &v - return s -} - -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *CreateEnvironmentAccountConnectionInput) SetEnvironmentName(v string) *CreateEnvironmentAccountConnectionInput { - s.EnvironmentName = &v - return s -} - -// SetManagementAccountId sets the ManagementAccountId field's value. -func (s *CreateEnvironmentAccountConnectionInput) SetManagementAccountId(v string) *CreateEnvironmentAccountConnectionInput { - s.ManagementAccountId = &v +// SetTemplateName sets the TemplateName field's value. +func (s *DeleteTemplateSyncConfigInput) SetTemplateName(v string) *DeleteTemplateSyncConfigInput { + s.TemplateName = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *CreateEnvironmentAccountConnectionInput) SetRoleArn(v string) *CreateEnvironmentAccountConnectionInput { - s.RoleArn = &v +// SetTemplateType sets the TemplateType field's value. +func (s *DeleteTemplateSyncConfigInput) SetTemplateType(v string) *DeleteTemplateSyncConfigInput { + s.TemplateType = &v return s } -type CreateEnvironmentAccountConnectionOutput struct { +type DeleteTemplateSyncConfigOutput struct { _ struct{} `type:"structure"` - // The environment account connection detail data that's returned by AWS Proton. - // - // EnvironmentAccountConnection is a required field - EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` + // The template sync configuration detail data that's returned by Proton. + TemplateSyncConfig *TemplateSyncConfig `locationName:"templateSyncConfig" type:"structure"` } // String returns the string representation. @@ -6136,7 +10570,7 @@ type CreateEnvironmentAccountConnectionOutput 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 CreateEnvironmentAccountConnectionOutput) String() string { +func (s DeleteTemplateSyncConfigOutput) String() string { return awsutil.Prettify(s) } @@ -6145,61 +10579,95 @@ func (s CreateEnvironmentAccountConnectionOutput) 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 CreateEnvironmentAccountConnectionOutput) GoString() string { +func (s DeleteTemplateSyncConfigOutput) GoString() string { return s.String() } -// SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. -func (s *CreateEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *CreateEnvironmentAccountConnectionOutput { - s.EnvironmentAccountConnection = v +// SetTemplateSyncConfig sets the TemplateSyncConfig field's value. +func (s *DeleteTemplateSyncConfigOutput) SetTemplateSyncConfig(v *TemplateSyncConfig) *DeleteTemplateSyncConfigOutput { + s.TemplateSyncConfig = v return s } -type CreateEnvironmentInput struct { +// The environment detail data. An Proton environment is a set resources shared +// across an Proton service. +type Environment struct { _ struct{} `type:"structure"` - // A description of the environment that's being created and deployed. + // The Amazon Resource Name (ARN) of the environment. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The time when the environment was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // The environment deployment status. + // + // DeploymentStatus is a required field + DeploymentStatus *string `locationName:"deploymentStatus" type:"string" required:"true" enum:"DeploymentStatus"` + + // An environment deployment status message. + // + // DeploymentStatusMessage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Environment's + // String and GoString methods. + DeploymentStatusMessage *string `locationName:"deploymentStatusMessage" type:"string" sensitive:"true"` + + // The description of the environment. // // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateEnvironmentInput's + // replaced with "sensitive" in string returned by Environment's // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // The ID of the environment account connection that you provide if you're provisioning - // your environment infrastructure resources to an environment account. You - // must include either the environmentAccountConnectionId or protonServiceRoleArn - // parameter and value. For more information, see Environment account connections - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-env-account-connections.html) - // in the AWS Proton Administrator guide. + // The ID of the environment account connection that's used to provision infrastructure + // resources in an environment account. EnvironmentAccountConnectionId *string `locationName:"environmentAccountConnectionId" type:"string"` + // The ID of the environment account that the environment infrastructure resources + // are provisioned in. + EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string"` + + // The time when a deployment of the environment was last attempted. + // + // LastDeploymentAttemptedAt is a required field + LastDeploymentAttemptedAt *time.Time `locationName:"lastDeploymentAttemptedAt" type:"timestamp" required:"true"` + + // The time when the environment was last deployed successfully. + // + // LastDeploymentSucceededAt is a required field + LastDeploymentSucceededAt *time.Time `locationName:"lastDeploymentSucceededAt" type:"timestamp" required:"true"` + // The name of the environment. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows - // AWS Proton to make calls to other services on your behalf. You must include - // either the environmentAccountConnectionId or protonServiceRoleArn parameter - // and value. + // The Amazon Resource Name (ARN) of the Proton service role that allows Proton + // to make calls to other services on your behalf. ProtonServiceRoleArn *string `locationName:"protonServiceRoleArn" min:"1" type:"string"` - // A link to a YAML formatted spec file that provides inputs as defined in the - // environment template bundle schema file. For more information, see Environments - // (https://docs.aws.amazon.com/proton/latest/adminguide/ag-environments.html) - // in the AWS Proton Administrator Guide. + // When included, indicates that the environment template is for customer provisioned + // and managed infrastructure. + Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` + + // The repository that you provide with pull request provisioning. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + ProvisioningRepository *RepositoryBranch `locationName:"provisioningRepository" type:"structure"` + + // The environment spec. // // Spec is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateEnvironmentInput's + // replaced with "sensitive" in string returned by Environment's // String and GoString methods. - // - // Spec is a required field - Spec *string `locationName:"spec" min:"1" type:"string" required:"true" sensitive:"true"` - - // Create tags for your environment. For more information, see AWS Proton resources - // and tagging in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) - // or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). - Tags []*Tag `locationName:"tags" type:"list"` + Spec *string `locationName:"spec" min:"1" type:"string" sensitive:"true"` // The ID of the major version of the environment template. // @@ -6207,11 +10675,11 @@ type CreateEnvironmentInput struct { TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` // The ID of the minor version of the environment template. - TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string"` + // + // TemplateMinorVersion is a required field + TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` - // The name of the environment template. For more information, see Environment - // Templates (https://docs.aws.amazon.com/proton/latest/adminguide/ag-templates.html) - // in the AWS Proton Administrator Guide. + // The Amazon Resource Name (ARN) of the environment template. // // TemplateName is a required field TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` @@ -6222,7 +10690,7 @@ type CreateEnvironmentInput 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 CreateEnvironmentInput) String() string { +func (s Environment) String() string { return awsutil.Prettify(s) } @@ -6231,121 +10699,162 @@ func (s CreateEnvironmentInput) 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 CreateEnvironmentInput) GoString() string { +func (s Environment) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.ProtonServiceRoleArn != nil && len(*s.ProtonServiceRoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProtonServiceRoleArn", 1)) - } - if s.Spec == nil { - invalidParams.Add(request.NewErrParamRequired("Spec")) - } - if s.Spec != nil && len(*s.Spec) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Spec", 1)) - } - if s.TemplateMajorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateMajorVersion")) - } - if s.TemplateMajorVersion != nil && len(*s.TemplateMajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateMajorVersion", 1)) - } - if s.TemplateMinorVersion != nil && len(*s.TemplateMinorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateMinorVersion", 1)) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } +// SetArn sets the Arn field's value. +func (s *Environment) SetArn(v string) *Environment { + s.Arn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedAt sets the CreatedAt field's value. +func (s *Environment) SetCreatedAt(v time.Time) *Environment { + s.CreatedAt = &v + return s +} + +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *Environment) SetDeploymentStatus(v string) *Environment { + s.DeploymentStatus = &v + return s +} + +// SetDeploymentStatusMessage sets the DeploymentStatusMessage field's value. +func (s *Environment) SetDeploymentStatusMessage(v string) *Environment { + s.DeploymentStatusMessage = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Environment) SetDescription(v string) *Environment { + s.Description = &v + return s +} + +// SetEnvironmentAccountConnectionId sets the EnvironmentAccountConnectionId field's value. +func (s *Environment) SetEnvironmentAccountConnectionId(v string) *Environment { + s.EnvironmentAccountConnectionId = &v + return s } -// SetDescription sets the Description field's value. -func (s *CreateEnvironmentInput) SetDescription(v string) *CreateEnvironmentInput { - s.Description = &v +// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. +func (s *Environment) SetEnvironmentAccountId(v string) *Environment { + s.EnvironmentAccountId = &v return s } -// SetEnvironmentAccountConnectionId sets the EnvironmentAccountConnectionId field's value. -func (s *CreateEnvironmentInput) SetEnvironmentAccountConnectionId(v string) *CreateEnvironmentInput { - s.EnvironmentAccountConnectionId = &v +// SetLastDeploymentAttemptedAt sets the LastDeploymentAttemptedAt field's value. +func (s *Environment) SetLastDeploymentAttemptedAt(v time.Time) *Environment { + s.LastDeploymentAttemptedAt = &v + return s +} + +// SetLastDeploymentSucceededAt sets the LastDeploymentSucceededAt field's value. +func (s *Environment) SetLastDeploymentSucceededAt(v time.Time) *Environment { + s.LastDeploymentSucceededAt = &v return s } // SetName sets the Name field's value. -func (s *CreateEnvironmentInput) SetName(v string) *CreateEnvironmentInput { +func (s *Environment) SetName(v string) *Environment { s.Name = &v return s } // SetProtonServiceRoleArn sets the ProtonServiceRoleArn field's value. -func (s *CreateEnvironmentInput) SetProtonServiceRoleArn(v string) *CreateEnvironmentInput { +func (s *Environment) SetProtonServiceRoleArn(v string) *Environment { s.ProtonServiceRoleArn = &v return s } -// SetSpec sets the Spec field's value. -func (s *CreateEnvironmentInput) SetSpec(v string) *CreateEnvironmentInput { - s.Spec = &v +// SetProvisioning sets the Provisioning field's value. +func (s *Environment) SetProvisioning(v string) *Environment { + s.Provisioning = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateEnvironmentInput) SetTags(v []*Tag) *CreateEnvironmentInput { - s.Tags = v +// SetProvisioningRepository sets the ProvisioningRepository field's value. +func (s *Environment) SetProvisioningRepository(v *RepositoryBranch) *Environment { + s.ProvisioningRepository = v + return s +} + +// SetSpec sets the Spec field's value. +func (s *Environment) SetSpec(v string) *Environment { + s.Spec = &v return s } // SetTemplateMajorVersion sets the TemplateMajorVersion field's value. -func (s *CreateEnvironmentInput) SetTemplateMajorVersion(v string) *CreateEnvironmentInput { +func (s *Environment) SetTemplateMajorVersion(v string) *Environment { s.TemplateMajorVersion = &v return s } // SetTemplateMinorVersion sets the TemplateMinorVersion field's value. -func (s *CreateEnvironmentInput) SetTemplateMinorVersion(v string) *CreateEnvironmentInput { +func (s *Environment) SetTemplateMinorVersion(v string) *Environment { s.TemplateMinorVersion = &v return s } // SetTemplateName sets the TemplateName field's value. -func (s *CreateEnvironmentInput) SetTemplateName(v string) *CreateEnvironmentInput { +func (s *Environment) SetTemplateName(v string) *Environment { s.TemplateName = &v return s } -type CreateEnvironmentOutput struct { +// The environment account connection detail data. +type EnvironmentAccountConnection struct { _ struct{} `type:"structure"` - // The environment detail data that's returned by AWS Proton. + // The Amazon Resource Name (ARN) of the environment account connection. // - // Environment is a required field - Environment *Environment `locationName:"environment" type:"structure" required:"true"` + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The environment account that's connected to the environment account connection. + // + // EnvironmentAccountId is a required field + EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string" required:"true"` + + // The name of the environment that's associated with the environment account + // connection. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` + + // The ID of the environment account connection. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` + + // The time when the environment account connection was last modified. + // + // LastModifiedAt is a required field + LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` + + // The ID of the management account that's connected to the environment account + // connection. + // + // ManagementAccountId is a required field + ManagementAccountId *string `locationName:"managementAccountId" type:"string" required:"true"` + + // The time when the environment account connection request was made. + // + // RequestedAt is a required field + RequestedAt *time.Time `locationName:"requestedAt" type:"timestamp" required:"true"` + + // The IAM service role that's associated with the environment account connection. + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + + // The status of the environment account connection. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"EnvironmentAccountConnectionStatus"` } // String returns the string representation. @@ -6353,7 +10862,7 @@ type CreateEnvironmentOutput 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 CreateEnvironmentOutput) String() string { +func (s EnvironmentAccountConnection) String() string { return awsutil.Prettify(s) } @@ -6362,49 +10871,115 @@ func (s CreateEnvironmentOutput) 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 CreateEnvironmentOutput) GoString() string { +func (s EnvironmentAccountConnection) GoString() string { return s.String() } -// SetEnvironment sets the Environment field's value. -func (s *CreateEnvironmentOutput) SetEnvironment(v *Environment) *CreateEnvironmentOutput { - s.Environment = v +// SetArn sets the Arn field's value. +func (s *EnvironmentAccountConnection) SetArn(v string) *EnvironmentAccountConnection { + s.Arn = &v return s } -type CreateEnvironmentTemplateInput struct { +// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. +func (s *EnvironmentAccountConnection) SetEnvironmentAccountId(v string) *EnvironmentAccountConnection { + s.EnvironmentAccountId = &v + return s +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentAccountConnection) SetEnvironmentName(v string) *EnvironmentAccountConnection { + s.EnvironmentName = &v + return s +} + +// SetId sets the Id field's value. +func (s *EnvironmentAccountConnection) SetId(v string) *EnvironmentAccountConnection { + s.Id = &v + return s +} + +// SetLastModifiedAt sets the LastModifiedAt field's value. +func (s *EnvironmentAccountConnection) SetLastModifiedAt(v time.Time) *EnvironmentAccountConnection { + s.LastModifiedAt = &v + return s +} + +// SetManagementAccountId sets the ManagementAccountId field's value. +func (s *EnvironmentAccountConnection) SetManagementAccountId(v string) *EnvironmentAccountConnection { + s.ManagementAccountId = &v + return s +} + +// SetRequestedAt sets the RequestedAt field's value. +func (s *EnvironmentAccountConnection) SetRequestedAt(v time.Time) *EnvironmentAccountConnection { + s.RequestedAt = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *EnvironmentAccountConnection) SetRoleArn(v string) *EnvironmentAccountConnection { + s.RoleArn = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EnvironmentAccountConnection) SetStatus(v string) *EnvironmentAccountConnection { + s.Status = &v + return s +} + +// A summary of the environment account connection detail data. +type EnvironmentAccountConnectionSummary struct { _ struct{} `type:"structure"` - // A description of the environment template. + // The Amazon Resource Name (ARN) of the environment account connection. // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateEnvironmentTemplateInput's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // The environment template name as displayed in the developer interface. + // The ID of the environment account that's connected to the environment account + // connection. // - // DisplayName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateEnvironmentTemplateInput's - // String and GoString methods. - DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` + // EnvironmentAccountId is a required field + EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string" required:"true"` - // A customer provided encryption key that AWS Proton uses to encrypt data. - EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + // The name of the environment that's associated with the environment account + // connection. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` - // The name of the environment template. + // The ID of the environment account connection. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` - // When included, indicates that the environment template is for customer provisioned - // and managed infrastructure. - Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` + // The time when the environment account connection was last modified. + // + // LastModifiedAt is a required field + LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - // Create tags for your environment template. For more information, see AWS - // Proton resources and tagging in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) - // or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). - Tags []*Tag `locationName:"tags" type:"list"` + // The ID of the management account that's connected to the environment account + // connection. + // + // ManagementAccountId is a required field + ManagementAccountId *string `locationName:"managementAccountId" type:"string" required:"true"` + + // The time when the environment account connection request was made. + // + // RequestedAt is a required field + RequestedAt *time.Time `locationName:"requestedAt" type:"timestamp" required:"true"` + + // The IAM service role that's associated with the environment account connection. + // + // RoleArn is a required field + RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + + // The status of the environment account connection. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"EnvironmentAccountConnectionStatus"` } // String returns the string representation. @@ -6412,7 +10987,7 @@ type CreateEnvironmentTemplateInput 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 CreateEnvironmentTemplateInput) String() string { +func (s EnvironmentAccountConnectionSummary) String() string { return awsutil.Prettify(s) } @@ -6421,140 +10996,137 @@ func (s CreateEnvironmentTemplateInput) 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 CreateEnvironmentTemplateInput) GoString() string { +func (s EnvironmentAccountConnectionSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEnvironmentTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentTemplateInput"} - if s.DisplayName != nil && len(*s.DisplayName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) - } - if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDescription sets the Description field's value. -func (s *CreateEnvironmentTemplateInput) SetDescription(v string) *CreateEnvironmentTemplateInput { - s.Description = &v - return s -} - -// SetDisplayName sets the DisplayName field's value. -func (s *CreateEnvironmentTemplateInput) SetDisplayName(v string) *CreateEnvironmentTemplateInput { - s.DisplayName = &v +// SetArn sets the Arn field's value. +func (s *EnvironmentAccountConnectionSummary) SetArn(v string) *EnvironmentAccountConnectionSummary { + s.Arn = &v return s } -// SetEncryptionKey sets the EncryptionKey field's value. -func (s *CreateEnvironmentTemplateInput) SetEncryptionKey(v string) *CreateEnvironmentTemplateInput { - s.EncryptionKey = &v +// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. +func (s *EnvironmentAccountConnectionSummary) SetEnvironmentAccountId(v string) *EnvironmentAccountConnectionSummary { + s.EnvironmentAccountId = &v return s } -// SetName sets the Name field's value. -func (s *CreateEnvironmentTemplateInput) SetName(v string) *CreateEnvironmentTemplateInput { - s.Name = &v +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *EnvironmentAccountConnectionSummary) SetEnvironmentName(v string) *EnvironmentAccountConnectionSummary { + s.EnvironmentName = &v return s } -// SetProvisioning sets the Provisioning field's value. -func (s *CreateEnvironmentTemplateInput) SetProvisioning(v string) *CreateEnvironmentTemplateInput { - s.Provisioning = &v +// SetId sets the Id field's value. +func (s *EnvironmentAccountConnectionSummary) SetId(v string) *EnvironmentAccountConnectionSummary { + s.Id = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateEnvironmentTemplateInput) SetTags(v []*Tag) *CreateEnvironmentTemplateInput { - s.Tags = v +// SetLastModifiedAt sets the LastModifiedAt field's value. +func (s *EnvironmentAccountConnectionSummary) SetLastModifiedAt(v time.Time) *EnvironmentAccountConnectionSummary { + s.LastModifiedAt = &v return s } -type CreateEnvironmentTemplateOutput struct { - _ struct{} `type:"structure"` - - // The environment template detail data that's returned by AWS Proton. - // - // EnvironmentTemplate is a required field - EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure" required:"true"` +// SetManagementAccountId sets the ManagementAccountId field's value. +func (s *EnvironmentAccountConnectionSummary) SetManagementAccountId(v string) *EnvironmentAccountConnectionSummary { + s.ManagementAccountId = &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 CreateEnvironmentTemplateOutput) String() string { - return awsutil.Prettify(s) +// SetRequestedAt sets the RequestedAt field's value. +func (s *EnvironmentAccountConnectionSummary) SetRequestedAt(v time.Time) *EnvironmentAccountConnectionSummary { + s.RequestedAt = &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 CreateEnvironmentTemplateOutput) GoString() string { - return s.String() +// SetRoleArn sets the RoleArn field's value. +func (s *EnvironmentAccountConnectionSummary) SetRoleArn(v string) *EnvironmentAccountConnectionSummary { + s.RoleArn = &v + return s } -// SetEnvironmentTemplate sets the EnvironmentTemplate field's value. -func (s *CreateEnvironmentTemplateOutput) SetEnvironmentTemplate(v *EnvironmentTemplate) *CreateEnvironmentTemplateOutput { - s.EnvironmentTemplate = v +// SetStatus sets the Status field's value. +func (s *EnvironmentAccountConnectionSummary) SetStatus(v string) *EnvironmentAccountConnectionSummary { + s.Status = &v return s } -type CreateEnvironmentTemplateVersionInput struct { +// A summary of the environment detail data. +type EnvironmentSummary struct { _ struct{} `type:"structure"` - // When included, if two identicial requests are made with the same client token, - // AWS Proton returns the environment template version that the first request - // created. - ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + // The Amazon Resource Name (ARN) of the environment. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // A description of the new version of an environment template. + // The time when the environment was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // The environment deployment status. + // + // DeploymentStatus is a required field + DeploymentStatus *string `locationName:"deploymentStatus" type:"string" required:"true" enum:"DeploymentStatus"` + + // An environment deployment status message. + // + // DeploymentStatusMessage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by EnvironmentSummary's + // String and GoString methods. + DeploymentStatusMessage *string `locationName:"deploymentStatusMessage" type:"string" sensitive:"true"` + + // The description of the environment. // // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateEnvironmentTemplateVersionInput's + // replaced with "sensitive" in string returned by EnvironmentSummary's // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // To create a new minor version of the environment template, include a majorVersion. + // The ID of the environment account connection that the environment is associated + // with. + EnvironmentAccountConnectionId *string `locationName:"environmentAccountConnectionId" type:"string"` + + // The ID of the environment account that the environment infrastructure resources + // are provisioned in. + EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string"` + + // The time when a deployment of the environment was last attempted. // - // To create a new major and minor version of the environment template, exclude - // majorVersion. - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` + // LastDeploymentAttemptedAt is a required field + LastDeploymentAttemptedAt *time.Time `locationName:"lastDeploymentAttemptedAt" type:"timestamp" required:"true"` - // An object that includes the template bundle S3 bucket path and name for the - // new version of an template. + // The time when the environment was last deployed successfully. // - // Source is a required field - Source *TemplateVersionSourceInput `locationName:"source" type:"structure" required:"true"` + // LastDeploymentSucceededAt is a required field + LastDeploymentSucceededAt *time.Time `locationName:"lastDeploymentSucceededAt" type:"timestamp" required:"true"` - // Create tags for a new version of an environment template. - Tags []*Tag `locationName:"tags" type:"list"` + // The name of the environment. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) of the Proton service role that allows Proton + // to make calls to other services on your behalf. + ProtonServiceRoleArn *string `locationName:"protonServiceRoleArn" min:"1" type:"string"` + + // When included, indicates that the environment template is for customer provisioned + // and managed infrastructure. + Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` + + // The major version of the environment template. + // + // TemplateMajorVersion is a required field + TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` + + // The minor version of the environment template. + // + // TemplateMinorVersion is a required field + TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` // The name of the environment template. // @@ -6567,7 +11139,7 @@ type CreateEnvironmentTemplateVersionInput 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 CreateEnvironmentTemplateVersionInput) String() string { +func (s EnvironmentSummary) String() string { return awsutil.Prettify(s) } @@ -6576,180 +11148,147 @@ func (s CreateEnvironmentTemplateVersionInput) 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 CreateEnvironmentTemplateVersionInput) GoString() string { +func (s EnvironmentSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateEnvironmentTemplateVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateEnvironmentTemplateVersionInput"} - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } - if s.Source == nil { - invalidParams.Add(request.NewErrParamRequired("Source")) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.Source != nil { - if err := s.Source.Validate(); err != nil { - invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } +// SetArn sets the Arn field's value. +func (s *EnvironmentSummary) SetArn(v string) *EnvironmentSummary { + s.Arn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedAt sets the CreatedAt field's value. +func (s *EnvironmentSummary) SetCreatedAt(v time.Time) *EnvironmentSummary { + s.CreatedAt = &v + return s } -// SetClientToken sets the ClientToken field's value. -func (s *CreateEnvironmentTemplateVersionInput) SetClientToken(v string) *CreateEnvironmentTemplateVersionInput { - s.ClientToken = &v +// SetDeploymentStatus sets the DeploymentStatus field's value. +func (s *EnvironmentSummary) SetDeploymentStatus(v string) *EnvironmentSummary { + s.DeploymentStatus = &v + return s +} + +// SetDeploymentStatusMessage sets the DeploymentStatusMessage field's value. +func (s *EnvironmentSummary) SetDeploymentStatusMessage(v string) *EnvironmentSummary { + s.DeploymentStatusMessage = &v return s } // SetDescription sets the Description field's value. -func (s *CreateEnvironmentTemplateVersionInput) SetDescription(v string) *CreateEnvironmentTemplateVersionInput { +func (s *EnvironmentSummary) SetDescription(v string) *EnvironmentSummary { s.Description = &v return s } -// SetMajorVersion sets the MajorVersion field's value. -func (s *CreateEnvironmentTemplateVersionInput) SetMajorVersion(v string) *CreateEnvironmentTemplateVersionInput { - s.MajorVersion = &v +// SetEnvironmentAccountConnectionId sets the EnvironmentAccountConnectionId field's value. +func (s *EnvironmentSummary) SetEnvironmentAccountConnectionId(v string) *EnvironmentSummary { + s.EnvironmentAccountConnectionId = &v return s } -// SetSource sets the Source field's value. -func (s *CreateEnvironmentTemplateVersionInput) SetSource(v *TemplateVersionSourceInput) *CreateEnvironmentTemplateVersionInput { - s.Source = v +// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. +func (s *EnvironmentSummary) SetEnvironmentAccountId(v string) *EnvironmentSummary { + s.EnvironmentAccountId = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateEnvironmentTemplateVersionInput) SetTags(v []*Tag) *CreateEnvironmentTemplateVersionInput { - s.Tags = v +// SetLastDeploymentAttemptedAt sets the LastDeploymentAttemptedAt field's value. +func (s *EnvironmentSummary) SetLastDeploymentAttemptedAt(v time.Time) *EnvironmentSummary { + s.LastDeploymentAttemptedAt = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *CreateEnvironmentTemplateVersionInput) SetTemplateName(v string) *CreateEnvironmentTemplateVersionInput { - s.TemplateName = &v +// SetLastDeploymentSucceededAt sets the LastDeploymentSucceededAt field's value. +func (s *EnvironmentSummary) SetLastDeploymentSucceededAt(v time.Time) *EnvironmentSummary { + s.LastDeploymentSucceededAt = &v return s } -type CreateEnvironmentTemplateVersionOutput struct { - _ struct{} `type:"structure"` +// SetName sets the Name field's value. +func (s *EnvironmentSummary) SetName(v string) *EnvironmentSummary { + s.Name = &v + return s +} - // The environment template detail data that's returned by AWS Proton. - // - // EnvironmentTemplateVersion is a required field - EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure" required:"true"` +// SetProtonServiceRoleArn sets the ProtonServiceRoleArn field's value. +func (s *EnvironmentSummary) SetProtonServiceRoleArn(v string) *EnvironmentSummary { + s.ProtonServiceRoleArn = &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 CreateEnvironmentTemplateVersionOutput) String() string { - return awsutil.Prettify(s) +// SetProvisioning sets the Provisioning field's value. +func (s *EnvironmentSummary) SetProvisioning(v string) *EnvironmentSummary { + s.Provisioning = &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 CreateEnvironmentTemplateVersionOutput) GoString() string { - return s.String() +// SetTemplateMajorVersion sets the TemplateMajorVersion field's value. +func (s *EnvironmentSummary) SetTemplateMajorVersion(v string) *EnvironmentSummary { + s.TemplateMajorVersion = &v + return s } -// SetEnvironmentTemplateVersion sets the EnvironmentTemplateVersion field's value. -func (s *CreateEnvironmentTemplateVersionOutput) SetEnvironmentTemplateVersion(v *EnvironmentTemplateVersion) *CreateEnvironmentTemplateVersionOutput { - s.EnvironmentTemplateVersion = v +// SetTemplateMinorVersion sets the TemplateMinorVersion field's value. +func (s *EnvironmentSummary) SetTemplateMinorVersion(v string) *EnvironmentSummary { + s.TemplateMinorVersion = &v return s } -type CreateServiceInput struct { +// SetTemplateName sets the TemplateName field's value. +func (s *EnvironmentSummary) SetTemplateName(v string) *EnvironmentSummary { + s.TemplateName = &v + return s +} + +// The environment template data. +type EnvironmentTemplate struct { _ struct{} `type:"structure"` - // The name of the code repository branch that holds the code that's deployed - // in AWS Proton. Don't include this parameter if your service template doesn't - // include a service pipeline. - BranchName *string `locationName:"branchName" min:"1" type:"string"` + // The Amazon Resource Name (ARN) of the environment template. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The time when the environment template was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` - // A description of the AWS Proton service. + // A description of the environment template. // // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateServiceInput's + // replaced with "sensitive" in string returned by EnvironmentTemplate's // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // The service name. + // The name of the environment template as displayed in the developer interface. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the repository connection. For more information, - // see Set up repository connection (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) - // in the AWS Proton Administrator Guide and Setting up with AWS Proton (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) - // in the AWS Proton User Guide. Don't include this parameter if your service - // template doesn't include a service pipeline. - RepositoryConnectionArn *string `locationName:"repositoryConnectionArn" min:"1" type:"string"` + // DisplayName is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by EnvironmentTemplate's + // String and GoString methods. + DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` - // The ID of the code repository. Don't include this parameter if your service - // template doesn't include a service pipeline. - RepositoryId *string `locationName:"repositoryId" min:"1" type:"string"` + // The customer provided encryption key for the environment template. + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` - // A link to a spec file that provides inputs as defined in the service template - // bundle schema file. The spec file is in YAML format. Don’t include pipeline - // inputs in the spec if your service template doesn’t include a service pipeline. - // For more information, see Create a service (https://docs.aws.amazon.com/proton/latest/adminguide/ag-create-svc.html.html) - // in the AWS Proton Administrator Guide and Create a service (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-create.html) - // in the AWS Proton User Guide. - // - // Spec is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateServiceInput's - // String and GoString methods. + // The time when the environment template was last modified. // - // Spec is a required field - Spec *string `locationName:"spec" min:"1" type:"string" required:"true" sensitive:"true"` - - // Create tags for your service. For more information, see AWS Proton resources - // and tagging in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) - // or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). - Tags []*Tag `locationName:"tags" type:"list"` + // LastModifiedAt is a required field + LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - // The ID of the major version of the service template that was used to create - // the service. + // The name of the environment template. // - // TemplateMajorVersion is a required field - TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The ID of the minor version of the service template that was used to create - // the service. - TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string"` + // When included, indicates that the environment template is for customer provisioned + // and managed infrastructure. + Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` - // The name of the service template that's used to create the service. - // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // The ID of the recommended version of the environment template. + RecommendedVersion *string `locationName:"recommendedVersion" min:"1" type:"string"` } // String returns the string representation. @@ -6757,7 +11296,7 @@ type CreateServiceInput 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 CreateServiceInput) String() string { +func (s EnvironmentTemplate) String() string { return awsutil.Prettify(s) } @@ -6766,133 +11305,77 @@ func (s CreateServiceInput) 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 CreateServiceInput) GoString() string { +func (s EnvironmentTemplate) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateServiceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.RepositoryConnectionArn != nil && len(*s.RepositoryConnectionArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryConnectionArn", 1)) - } - if s.RepositoryId != nil && len(*s.RepositoryId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryId", 1)) - } - if s.Spec == nil { - invalidParams.Add(request.NewErrParamRequired("Spec")) - } - if s.Spec != nil && len(*s.Spec) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Spec", 1)) - } - if s.TemplateMajorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateMajorVersion")) - } - if s.TemplateMajorVersion != nil && len(*s.TemplateMajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateMajorVersion", 1)) - } - if s.TemplateMinorVersion != nil && len(*s.TemplateMinorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateMinorVersion", 1)) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetArn sets the Arn field's value. +func (s *EnvironmentTemplate) SetArn(v string) *EnvironmentTemplate { + s.Arn = &v + return s } -// SetBranchName sets the BranchName field's value. -func (s *CreateServiceInput) SetBranchName(v string) *CreateServiceInput { - s.BranchName = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *EnvironmentTemplate) SetCreatedAt(v time.Time) *EnvironmentTemplate { + s.CreatedAt = &v return s } // SetDescription sets the Description field's value. -func (s *CreateServiceInput) SetDescription(v string) *CreateServiceInput { +func (s *EnvironmentTemplate) SetDescription(v string) *EnvironmentTemplate { s.Description = &v return s } -// SetName sets the Name field's value. -func (s *CreateServiceInput) SetName(v string) *CreateServiceInput { - s.Name = &v - return s -} - -// SetRepositoryConnectionArn sets the RepositoryConnectionArn field's value. -func (s *CreateServiceInput) SetRepositoryConnectionArn(v string) *CreateServiceInput { - s.RepositoryConnectionArn = &v - return s -} - -// SetRepositoryId sets the RepositoryId field's value. -func (s *CreateServiceInput) SetRepositoryId(v string) *CreateServiceInput { - s.RepositoryId = &v +// SetDisplayName sets the DisplayName field's value. +func (s *EnvironmentTemplate) SetDisplayName(v string) *EnvironmentTemplate { + s.DisplayName = &v return s } -// SetSpec sets the Spec field's value. -func (s *CreateServiceInput) SetSpec(v string) *CreateServiceInput { - s.Spec = &v +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *EnvironmentTemplate) SetEncryptionKey(v string) *EnvironmentTemplate { + s.EncryptionKey = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateServiceInput) SetTags(v []*Tag) *CreateServiceInput { - s.Tags = v +// SetLastModifiedAt sets the LastModifiedAt field's value. +func (s *EnvironmentTemplate) SetLastModifiedAt(v time.Time) *EnvironmentTemplate { + s.LastModifiedAt = &v return s } -// SetTemplateMajorVersion sets the TemplateMajorVersion field's value. -func (s *CreateServiceInput) SetTemplateMajorVersion(v string) *CreateServiceInput { - s.TemplateMajorVersion = &v +// SetName sets the Name field's value. +func (s *EnvironmentTemplate) SetName(v string) *EnvironmentTemplate { + s.Name = &v return s } -// SetTemplateMinorVersion sets the TemplateMinorVersion field's value. -func (s *CreateServiceInput) SetTemplateMinorVersion(v string) *CreateServiceInput { - s.TemplateMinorVersion = &v +// SetProvisioning sets the Provisioning field's value. +func (s *EnvironmentTemplate) SetProvisioning(v string) *EnvironmentTemplate { + s.Provisioning = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *CreateServiceInput) SetTemplateName(v string) *CreateServiceInput { - s.TemplateName = &v +// SetRecommendedVersion sets the RecommendedVersion field's value. +func (s *EnvironmentTemplate) SetRecommendedVersion(v string) *EnvironmentTemplate { + s.RecommendedVersion = &v return s } -type CreateServiceOutput struct { +// A search filter for environment templates. +type EnvironmentTemplateFilter struct { _ struct{} `type:"structure"` - // The service detail data that's returned by AWS Proton. + // Include majorVersion to filter search for a major version. + // + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + + // Include templateName to filter search for a template name. // - // Service is a required field - Service *Service `locationName:"service" type:"structure" required:"true"` + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -6900,7 +11383,7 @@ type CreateServiceOutput 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 CreateServiceOutput) String() string { +func (s EnvironmentTemplateFilter) String() string { return awsutil.Prettify(s) } @@ -6909,52 +11392,88 @@ func (s CreateServiceOutput) 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 CreateServiceOutput) GoString() string { +func (s EnvironmentTemplateFilter) GoString() string { return s.String() } -// SetService sets the Service field's value. -func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { - s.Service = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *EnvironmentTemplateFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EnvironmentTemplateFilter"} + if s.MajorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MajorVersion")) + } + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMajorVersion sets the MajorVersion field's value. +func (s *EnvironmentTemplateFilter) SetMajorVersion(v string) *EnvironmentTemplateFilter { + s.MajorVersion = &v return s } -type CreateServiceTemplateInput struct { +// SetTemplateName sets the TemplateName field's value. +func (s *EnvironmentTemplateFilter) SetTemplateName(v string) *EnvironmentTemplateFilter { + s.TemplateName = &v + return s +} + +// The environment template data. +type EnvironmentTemplateSummary struct { _ struct{} `type:"structure"` - // A description of the service template. + // The Amazon Resource Name (ARN) of the environment template. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The time when the environment template was created. + // + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // A description of the environment template. // // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateServiceTemplateInput's + // replaced with "sensitive" in string returned by EnvironmentTemplateSummary's // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // The name of the service template as displayed in the developer interface. + // The name of the environment template as displayed in the developer interface. // // DisplayName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateServiceTemplateInput's + // replaced with "sensitive" in string returned by EnvironmentTemplateSummary's // String and GoString methods. DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` - // A customer provided encryption key that's used to encrypt data. - EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` + // The time when the environment template was last modified. + // + // LastModifiedAt is a required field + LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - // The name of the service template. + // The name of the environment template. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // AWS Proton includes a service pipeline for your service by default. When - // included, this parameter indicates that an AWS Proton service pipeline won't - // be included for your service. Once specified, this parameter can't be changed. - // For more information, see Service template bundles (https://docs.aws.amazon.com/proton/latest/adminguide/ag-template-bundles.html) - // in the AWS Proton Administrator Guide. - PipelineProvisioning *string `locationName:"pipelineProvisioning" type:"string" enum:"Provisioning"` + // When included, indicates that the environment template is for customer provisioned + // and managed infrastructure. + Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` - // Create tags for your service template. For more information, see AWS Proton - // resources and tagging in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/resources.html) - // or AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/resources.html). - Tags []*Tag `locationName:"tags" type:"list"` + // The recommended version of the environment template. + RecommendedVersion *string `locationName:"recommendedVersion" min:"1" type:"string"` } // String returns the string representation. @@ -6962,7 +11481,7 @@ type CreateServiceTemplateInput 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 CreateServiceTemplateInput) String() string { +func (s EnvironmentTemplateSummary) String() string { return awsutil.Prettify(s) } @@ -6971,85 +11490,121 @@ func (s CreateServiceTemplateInput) 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 CreateServiceTemplateInput) GoString() string { +func (s EnvironmentTemplateSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateServiceTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateServiceTemplateInput"} - if s.DisplayName != nil && len(*s.DisplayName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DisplayName", 1)) - } - if s.EncryptionKey != nil && len(*s.EncryptionKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EncryptionKey", 1)) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } +// SetArn sets the Arn field's value. +func (s *EnvironmentTemplateSummary) SetArn(v string) *EnvironmentTemplateSummary { + s.Arn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedAt sets the CreatedAt field's value. +func (s *EnvironmentTemplateSummary) SetCreatedAt(v time.Time) *EnvironmentTemplateSummary { + s.CreatedAt = &v + return s } // SetDescription sets the Description field's value. -func (s *CreateServiceTemplateInput) SetDescription(v string) *CreateServiceTemplateInput { +func (s *EnvironmentTemplateSummary) SetDescription(v string) *EnvironmentTemplateSummary { s.Description = &v return s } // SetDisplayName sets the DisplayName field's value. -func (s *CreateServiceTemplateInput) SetDisplayName(v string) *CreateServiceTemplateInput { +func (s *EnvironmentTemplateSummary) SetDisplayName(v string) *EnvironmentTemplateSummary { s.DisplayName = &v return s } -// SetEncryptionKey sets the EncryptionKey field's value. -func (s *CreateServiceTemplateInput) SetEncryptionKey(v string) *CreateServiceTemplateInput { - s.EncryptionKey = &v +// SetLastModifiedAt sets the LastModifiedAt field's value. +func (s *EnvironmentTemplateSummary) SetLastModifiedAt(v time.Time) *EnvironmentTemplateSummary { + s.LastModifiedAt = &v return s } // SetName sets the Name field's value. -func (s *CreateServiceTemplateInput) SetName(v string) *CreateServiceTemplateInput { +func (s *EnvironmentTemplateSummary) SetName(v string) *EnvironmentTemplateSummary { s.Name = &v return s } -// SetPipelineProvisioning sets the PipelineProvisioning field's value. -func (s *CreateServiceTemplateInput) SetPipelineProvisioning(v string) *CreateServiceTemplateInput { - s.PipelineProvisioning = &v +// SetProvisioning sets the Provisioning field's value. +func (s *EnvironmentTemplateSummary) SetProvisioning(v string) *EnvironmentTemplateSummary { + s.Provisioning = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateServiceTemplateInput) SetTags(v []*Tag) *CreateServiceTemplateInput { - s.Tags = v +// SetRecommendedVersion sets the RecommendedVersion field's value. +func (s *EnvironmentTemplateSummary) SetRecommendedVersion(v string) *EnvironmentTemplateSummary { + s.RecommendedVersion = &v return s } -type CreateServiceTemplateOutput struct { +// The environment template version data. +type EnvironmentTemplateVersion struct { _ struct{} `type:"structure"` - // The service template detail data that's returned by AWS Proton. + // The Amazon Resource Name (ARN) of the version of an environment template. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` + + // The time when the version of an environment template was created. // - // ServiceTemplate is a required field - ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" type:"structure" required:"true"` + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + + // A description of the minor version of an environment template. + // + // Description is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by EnvironmentTemplateVersion's + // String and GoString methods. + Description *string `locationName:"description" type:"string" sensitive:"true"` + + // The time when the version of an environment template was last modified. + // + // LastModifiedAt is a required field + LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` + + // The latest major version that's associated with the version of an environment + // template. + // + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + + // The minor version of an environment template. + // + // MinorVersion is a required field + MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` + + // The recommended minor version of the environment template. + RecommendedMinorVersion *string `locationName:"recommendedMinorVersion" min:"1" type:"string"` + + // The schema of the version of an environment template. + // + // Schema is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by EnvironmentTemplateVersion's + // String and GoString methods. + Schema *string `locationName:"schema" min:"1" type:"string" sensitive:"true"` + + // The status of the version of an environment template. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"TemplateVersionStatus"` + + // The status message of the version of an environment template. + // + // StatusMessage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by EnvironmentTemplateVersion's + // String and GoString methods. + StatusMessage *string `locationName:"statusMessage" type:"string" sensitive:"true"` + + // The name of the version of an environment template. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -7057,7 +11612,7 @@ type CreateServiceTemplateOutput 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 CreateServiceTemplateOutput) String() string { +func (s EnvironmentTemplateVersion) String() string { return awsutil.Prettify(s) } @@ -7066,52 +11621,129 @@ func (s CreateServiceTemplateOutput) 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 CreateServiceTemplateOutput) GoString() string { +func (s EnvironmentTemplateVersion) GoString() string { return s.String() } -// SetServiceTemplate sets the ServiceTemplate field's value. -func (s *CreateServiceTemplateOutput) SetServiceTemplate(v *ServiceTemplate) *CreateServiceTemplateOutput { - s.ServiceTemplate = v +// SetArn sets the Arn field's value. +func (s *EnvironmentTemplateVersion) SetArn(v string) *EnvironmentTemplateVersion { + s.Arn = &v return s } -type CreateServiceTemplateVersionInput struct { +// SetCreatedAt sets the CreatedAt field's value. +func (s *EnvironmentTemplateVersion) SetCreatedAt(v time.Time) *EnvironmentTemplateVersion { + s.CreatedAt = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *EnvironmentTemplateVersion) SetDescription(v string) *EnvironmentTemplateVersion { + s.Description = &v + return s +} + +// SetLastModifiedAt sets the LastModifiedAt field's value. +func (s *EnvironmentTemplateVersion) SetLastModifiedAt(v time.Time) *EnvironmentTemplateVersion { + s.LastModifiedAt = &v + return s +} + +// SetMajorVersion sets the MajorVersion field's value. +func (s *EnvironmentTemplateVersion) SetMajorVersion(v string) *EnvironmentTemplateVersion { + s.MajorVersion = &v + return s +} + +// SetMinorVersion sets the MinorVersion field's value. +func (s *EnvironmentTemplateVersion) SetMinorVersion(v string) *EnvironmentTemplateVersion { + s.MinorVersion = &v + return s +} + +// SetRecommendedMinorVersion sets the RecommendedMinorVersion field's value. +func (s *EnvironmentTemplateVersion) SetRecommendedMinorVersion(v string) *EnvironmentTemplateVersion { + s.RecommendedMinorVersion = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *EnvironmentTemplateVersion) SetSchema(v string) *EnvironmentTemplateVersion { + s.Schema = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EnvironmentTemplateVersion) SetStatus(v string) *EnvironmentTemplateVersion { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *EnvironmentTemplateVersion) SetStatusMessage(v string) *EnvironmentTemplateVersion { + s.StatusMessage = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *EnvironmentTemplateVersion) SetTemplateName(v string) *EnvironmentTemplateVersion { + s.TemplateName = &v + return s +} + +// A summary of the version of an environment template detail data. +type EnvironmentTemplateVersionSummary struct { _ struct{} `type:"structure"` - // When included, if two identicial requests are made with the same client token, - // AWS Proton returns the service template version that the first request created. - ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` + // The Amazon Resource Name (ARN) of the version of an environment template. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // An array of compatible environment template objects for the new version of - // a service template. + // The time when the version of an environment template was created. // - // CompatibleEnvironmentTemplates is a required field - CompatibleEnvironmentTemplates []*CompatibleEnvironmentTemplateInput `locationName:"compatibleEnvironmentTemplates" min:"1" type:"list" required:"true"` + // CreatedAt is a required field + CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` - // A description of the new version of a service template. + // A description of the version of an environment template. // // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by CreateServiceTemplateVersionInput's + // replaced with "sensitive" in string returned by EnvironmentTemplateVersionSummary's // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // To create a new minor version of the service template, include a majorVersion. + // The time when the version of an environment template was last modified. // - // To create a new major and minor version of the service template, exclude - // majorVersion. - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` + // LastModifiedAt is a required field + LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - // An object that includes the template bundle S3 bucket path and name for the - // new version of a service template. + // The latest major version that's associated with the version of an environment + // template. + // + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + + // The version of an environment template. + // + // MinorVersion is a required field + MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` + + // The recommended minor version of the environment template. + RecommendedMinorVersion *string `locationName:"recommendedMinorVersion" min:"1" type:"string"` + + // The status of the version of an environment template. // - // Source is a required field - Source *TemplateVersionSourceInput `locationName:"source" type:"structure" required:"true"` + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"TemplateVersionStatus"` - // Create tags for a new version of a service template. - Tags []*Tag `locationName:"tags" type:"list"` + // The status message of the version of an environment template. + // + // StatusMessage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by EnvironmentTemplateVersionSummary's + // String and GoString methods. + StatusMessage *string `locationName:"statusMessage" type:"string" sensitive:"true"` - // The name of the service template. + // The name of the version of an environment template. // // TemplateName is a required field TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` @@ -7122,7 +11754,7 @@ type CreateServiceTemplateVersionInput 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 CreateServiceTemplateVersionInput) String() string { +func (s EnvironmentTemplateVersionSummary) String() string { return awsutil.Prettify(s) } @@ -7131,113 +11763,97 @@ func (s CreateServiceTemplateVersionInput) 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 CreateServiceTemplateVersionInput) GoString() string { +func (s EnvironmentTemplateVersionSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateServiceTemplateVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateServiceTemplateVersionInput"} - if s.CompatibleEnvironmentTemplates == nil { - invalidParams.Add(request.NewErrParamRequired("CompatibleEnvironmentTemplates")) - } - if s.CompatibleEnvironmentTemplates != nil && len(s.CompatibleEnvironmentTemplates) < 1 { - invalidParams.Add(request.NewErrParamMinLen("CompatibleEnvironmentTemplates", 1)) - } - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } - if s.Source == nil { - invalidParams.Add(request.NewErrParamRequired("Source")) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - if s.CompatibleEnvironmentTemplates != nil { - for i, v := range s.CompatibleEnvironmentTemplates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CompatibleEnvironmentTemplates", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Source != nil { - if err := s.Source.Validate(); err != nil { - invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) - } - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *CreateServiceTemplateVersionInput) SetClientToken(v string) *CreateServiceTemplateVersionInput { - s.ClientToken = &v +// SetArn sets the Arn field's value. +func (s *EnvironmentTemplateVersionSummary) SetArn(v string) *EnvironmentTemplateVersionSummary { + s.Arn = &v return s } -// SetCompatibleEnvironmentTemplates sets the CompatibleEnvironmentTemplates field's value. -func (s *CreateServiceTemplateVersionInput) SetCompatibleEnvironmentTemplates(v []*CompatibleEnvironmentTemplateInput) *CreateServiceTemplateVersionInput { - s.CompatibleEnvironmentTemplates = v +// SetCreatedAt sets the CreatedAt field's value. +func (s *EnvironmentTemplateVersionSummary) SetCreatedAt(v time.Time) *EnvironmentTemplateVersionSummary { + s.CreatedAt = &v return s } // SetDescription sets the Description field's value. -func (s *CreateServiceTemplateVersionInput) SetDescription(v string) *CreateServiceTemplateVersionInput { +func (s *EnvironmentTemplateVersionSummary) SetDescription(v string) *EnvironmentTemplateVersionSummary { s.Description = &v return s } +// SetLastModifiedAt sets the LastModifiedAt field's value. +func (s *EnvironmentTemplateVersionSummary) SetLastModifiedAt(v time.Time) *EnvironmentTemplateVersionSummary { + s.LastModifiedAt = &v + return s +} + // SetMajorVersion sets the MajorVersion field's value. -func (s *CreateServiceTemplateVersionInput) SetMajorVersion(v string) *CreateServiceTemplateVersionInput { +func (s *EnvironmentTemplateVersionSummary) SetMajorVersion(v string) *EnvironmentTemplateVersionSummary { s.MajorVersion = &v return s } -// SetSource sets the Source field's value. -func (s *CreateServiceTemplateVersionInput) SetSource(v *TemplateVersionSourceInput) *CreateServiceTemplateVersionInput { - s.Source = v +// SetMinorVersion sets the MinorVersion field's value. +func (s *EnvironmentTemplateVersionSummary) SetMinorVersion(v string) *EnvironmentTemplateVersionSummary { + s.MinorVersion = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateServiceTemplateVersionInput) SetTags(v []*Tag) *CreateServiceTemplateVersionInput { - s.Tags = v +// SetRecommendedMinorVersion sets the RecommendedMinorVersion field's value. +func (s *EnvironmentTemplateVersionSummary) SetRecommendedMinorVersion(v string) *EnvironmentTemplateVersionSummary { + s.RecommendedMinorVersion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *EnvironmentTemplateVersionSummary) SetStatus(v string) *EnvironmentTemplateVersionSummary { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *EnvironmentTemplateVersionSummary) SetStatusMessage(v string) *EnvironmentTemplateVersionSummary { + s.StatusMessage = &v return s } // SetTemplateName sets the TemplateName field's value. -func (s *CreateServiceTemplateVersionInput) SetTemplateName(v string) *CreateServiceTemplateVersionInput { +func (s *EnvironmentTemplateVersionSummary) SetTemplateName(v string) *EnvironmentTemplateVersionSummary { s.TemplateName = &v return s } -type CreateServiceTemplateVersionOutput struct { +type GetAccountSettingsInput struct { _ struct{} `type:"structure"` +} - // The service template version summary of detail data that's returned by AWS - // Proton. - // - // ServiceTemplateVersion is a required field - ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure" required:"true"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAccountSettingsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetAccountSettingsInput) GoString() string { + return s.String() +} + +type GetAccountSettingsOutput struct { + _ struct{} `type:"structure"` + + // The Proton pipeline service role detail data that's returned by Proton. + AccountSettings *AccountSettings `locationName:"accountSettings" type:"structure"` } // String returns the string representation. @@ -7245,7 +11861,7 @@ type CreateServiceTemplateVersionOutput 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 CreateServiceTemplateVersionOutput) String() string { +func (s GetAccountSettingsOutput) String() string { return awsutil.Prettify(s) } @@ -7254,20 +11870,20 @@ func (s CreateServiceTemplateVersionOutput) 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 CreateServiceTemplateVersionOutput) GoString() string { +func (s GetAccountSettingsOutput) GoString() string { return s.String() } -// SetServiceTemplateVersion sets the ServiceTemplateVersion field's value. -func (s *CreateServiceTemplateVersionOutput) SetServiceTemplateVersion(v *ServiceTemplateVersion) *CreateServiceTemplateVersionOutput { - s.ServiceTemplateVersion = v +// SetAccountSettings sets the AccountSettings field's value. +func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAccountSettingsOutput { + s.AccountSettings = v return s } -type DeleteEnvironmentAccountConnectionInput struct { +type GetEnvironmentAccountConnectionInput struct { _ struct{} `type:"structure"` - // The ID of the environment account connection to delete. + // The ID of the environment account connection. // // Id is a required field Id *string `locationName:"id" type:"string" required:"true"` @@ -7278,7 +11894,7 @@ type DeleteEnvironmentAccountConnectionInput 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 DeleteEnvironmentAccountConnectionInput) String() string { +func (s GetEnvironmentAccountConnectionInput) String() string { return awsutil.Prettify(s) } @@ -7287,13 +11903,13 @@ func (s DeleteEnvironmentAccountConnectionInput) 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 DeleteEnvironmentAccountConnectionInput) GoString() string { +func (s GetEnvironmentAccountConnectionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEnvironmentAccountConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentAccountConnectionInput"} +func (s *GetEnvironmentAccountConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentAccountConnectionInput"} if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -7305,16 +11921,18 @@ func (s *DeleteEnvironmentAccountConnectionInput) Validate() error { } // SetId sets the Id field's value. -func (s *DeleteEnvironmentAccountConnectionInput) SetId(v string) *DeleteEnvironmentAccountConnectionInput { +func (s *GetEnvironmentAccountConnectionInput) SetId(v string) *GetEnvironmentAccountConnectionInput { s.Id = &v return s } -type DeleteEnvironmentAccountConnectionOutput struct { +type GetEnvironmentAccountConnectionOutput struct { _ struct{} `type:"structure"` - // The environment account connection detail data that's returned by AWS Proton. - EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure"` + // The environment account connection detail data that's returned by Proton. + // + // EnvironmentAccountConnection is a required field + EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` } // String returns the string representation. @@ -7322,7 +11940,7 @@ type DeleteEnvironmentAccountConnectionOutput 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 DeleteEnvironmentAccountConnectionOutput) String() string { +func (s GetEnvironmentAccountConnectionOutput) String() string { return awsutil.Prettify(s) } @@ -7331,20 +11949,20 @@ func (s DeleteEnvironmentAccountConnectionOutput) 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 DeleteEnvironmentAccountConnectionOutput) GoString() string { +func (s GetEnvironmentAccountConnectionOutput) GoString() string { return s.String() } // SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. -func (s *DeleteEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *DeleteEnvironmentAccountConnectionOutput { +func (s *GetEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *GetEnvironmentAccountConnectionOutput { s.EnvironmentAccountConnection = v return s } -type DeleteEnvironmentInput struct { +type GetEnvironmentInput struct { _ struct{} `type:"structure"` - // The name of the environment to delete. + // The name of the environment that you want to get the detail data for. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -7355,7 +11973,7 @@ type DeleteEnvironmentInput 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 DeleteEnvironmentInput) String() string { +func (s GetEnvironmentInput) String() string { return awsutil.Prettify(s) } @@ -7364,13 +11982,13 @@ func (s DeleteEnvironmentInput) 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 DeleteEnvironmentInput) GoString() string { +func (s GetEnvironmentInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentInput"} +func (s *GetEnvironmentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -7385,16 +12003,18 @@ func (s *DeleteEnvironmentInput) Validate() error { } // SetName sets the Name field's value. -func (s *DeleteEnvironmentInput) SetName(v string) *DeleteEnvironmentInput { +func (s *GetEnvironmentInput) SetName(v string) *GetEnvironmentInput { s.Name = &v return s } -type DeleteEnvironmentOutput struct { +type GetEnvironmentOutput struct { _ struct{} `type:"structure"` - // The environment detail data that's returned by AWS Proton. - Environment *Environment `locationName:"environment" type:"structure"` + // The environment detail data that's returned by Proton. + // + // Environment is a required field + Environment *Environment `locationName:"environment" type:"structure" required:"true"` } // String returns the string representation. @@ -7402,7 +12022,7 @@ type DeleteEnvironmentOutput 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 DeleteEnvironmentOutput) String() string { +func (s GetEnvironmentOutput) String() string { return awsutil.Prettify(s) } @@ -7411,20 +12031,21 @@ func (s DeleteEnvironmentOutput) 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 DeleteEnvironmentOutput) GoString() string { +func (s GetEnvironmentOutput) GoString() string { return s.String() } // SetEnvironment sets the Environment field's value. -func (s *DeleteEnvironmentOutput) SetEnvironment(v *Environment) *DeleteEnvironmentOutput { +func (s *GetEnvironmentOutput) SetEnvironment(v *Environment) *GetEnvironmentOutput { s.Environment = v return s } -type DeleteEnvironmentTemplateInput struct { +type GetEnvironmentTemplateInput struct { _ struct{} `type:"structure"` - // The name of the environment template to delete. + // The name of the environment template that you want to get the detail data + // for. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` @@ -7435,7 +12056,7 @@ type DeleteEnvironmentTemplateInput 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 DeleteEnvironmentTemplateInput) String() string { +func (s GetEnvironmentTemplateInput) String() string { return awsutil.Prettify(s) } @@ -7444,13 +12065,13 @@ func (s DeleteEnvironmentTemplateInput) 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 DeleteEnvironmentTemplateInput) GoString() string { +func (s GetEnvironmentTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEnvironmentTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentTemplateInput"} +func (s *GetEnvironmentTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentTemplateInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } @@ -7465,16 +12086,18 @@ func (s *DeleteEnvironmentTemplateInput) Validate() error { } // SetName sets the Name field's value. -func (s *DeleteEnvironmentTemplateInput) SetName(v string) *DeleteEnvironmentTemplateInput { +func (s *GetEnvironmentTemplateInput) SetName(v string) *GetEnvironmentTemplateInput { s.Name = &v return s } -type DeleteEnvironmentTemplateOutput struct { +type GetEnvironmentTemplateOutput struct { _ struct{} `type:"structure"` - // The environment template detail data that's returned by AWS Proton. - EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure"` + // The environment template detail data that's returned by Proton. + // + // EnvironmentTemplate is a required field + EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure" required:"true"` } // String returns the string representation. @@ -7482,7 +12105,7 @@ type DeleteEnvironmentTemplateOutput 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 DeleteEnvironmentTemplateOutput) String() string { +func (s GetEnvironmentTemplateOutput) String() string { return awsutil.Prettify(s) } @@ -7491,25 +12114,25 @@ func (s DeleteEnvironmentTemplateOutput) 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 DeleteEnvironmentTemplateOutput) GoString() string { +func (s GetEnvironmentTemplateOutput) GoString() string { return s.String() } // SetEnvironmentTemplate sets the EnvironmentTemplate field's value. -func (s *DeleteEnvironmentTemplateOutput) SetEnvironmentTemplate(v *EnvironmentTemplate) *DeleteEnvironmentTemplateOutput { +func (s *GetEnvironmentTemplateOutput) SetEnvironmentTemplate(v *EnvironmentTemplate) *GetEnvironmentTemplateOutput { s.EnvironmentTemplate = v return s } -type DeleteEnvironmentTemplateVersionInput struct { +type GetEnvironmentTemplateVersionInput struct { _ struct{} `type:"structure"` - // The environment template major version to delete. + // To view environment template major version detail data, include major Version. // // MajorVersion is a required field MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - // The environment template minor version to delete. + // To view environment template minor version detail data, include minorVersion. // // MinorVersion is a required field MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` @@ -7525,7 +12148,7 @@ type DeleteEnvironmentTemplateVersionInput 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 DeleteEnvironmentTemplateVersionInput) String() string { +func (s GetEnvironmentTemplateVersionInput) String() string { return awsutil.Prettify(s) } @@ -7534,13 +12157,13 @@ func (s DeleteEnvironmentTemplateVersionInput) 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 DeleteEnvironmentTemplateVersionInput) GoString() string { +func (s GetEnvironmentTemplateVersionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEnvironmentTemplateVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEnvironmentTemplateVersionInput"} +func (s *GetEnvironmentTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentTemplateVersionInput"} if s.MajorVersion == nil { invalidParams.Add(request.NewErrParamRequired("MajorVersion")) } @@ -7567,28 +12190,30 @@ func (s *DeleteEnvironmentTemplateVersionInput) Validate() error { } // SetMajorVersion sets the MajorVersion field's value. -func (s *DeleteEnvironmentTemplateVersionInput) SetMajorVersion(v string) *DeleteEnvironmentTemplateVersionInput { +func (s *GetEnvironmentTemplateVersionInput) SetMajorVersion(v string) *GetEnvironmentTemplateVersionInput { s.MajorVersion = &v return s } // SetMinorVersion sets the MinorVersion field's value. -func (s *DeleteEnvironmentTemplateVersionInput) SetMinorVersion(v string) *DeleteEnvironmentTemplateVersionInput { +func (s *GetEnvironmentTemplateVersionInput) SetMinorVersion(v string) *GetEnvironmentTemplateVersionInput { s.MinorVersion = &v return s } // SetTemplateName sets the TemplateName field's value. -func (s *DeleteEnvironmentTemplateVersionInput) SetTemplateName(v string) *DeleteEnvironmentTemplateVersionInput { +func (s *GetEnvironmentTemplateVersionInput) SetTemplateName(v string) *GetEnvironmentTemplateVersionInput { s.TemplateName = &v return s } -type DeleteEnvironmentTemplateVersionOutput struct { +type GetEnvironmentTemplateVersionOutput struct { _ struct{} `type:"structure"` - // The environment template version detail data that's returned by AWS Proton. - EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure"` + // The environment template version detail data that's returned by Proton. + // + // EnvironmentTemplateVersion is a required field + EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure" required:"true"` } // String returns the string representation. @@ -7596,7 +12221,7 @@ type DeleteEnvironmentTemplateVersionOutput 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 DeleteEnvironmentTemplateVersionOutput) String() string { +func (s GetEnvironmentTemplateVersionOutput) String() string { return awsutil.Prettify(s) } @@ -7605,23 +12230,28 @@ func (s DeleteEnvironmentTemplateVersionOutput) 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 DeleteEnvironmentTemplateVersionOutput) GoString() string { +func (s GetEnvironmentTemplateVersionOutput) GoString() string { return s.String() } // SetEnvironmentTemplateVersion sets the EnvironmentTemplateVersion field's value. -func (s *DeleteEnvironmentTemplateVersionOutput) SetEnvironmentTemplateVersion(v *EnvironmentTemplateVersion) *DeleteEnvironmentTemplateVersionOutput { +func (s *GetEnvironmentTemplateVersionOutput) SetEnvironmentTemplateVersion(v *EnvironmentTemplateVersion) *GetEnvironmentTemplateVersionOutput { s.EnvironmentTemplateVersion = v return s } -type DeleteServiceInput struct { +type GetRepositoryInput struct { _ struct{} `type:"structure"` - // The name of the service to delete. + // The repository name, for example myrepos/myrepo. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` } // String returns the string representation. @@ -7629,7 +12259,7 @@ type DeleteServiceInput 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 DeleteServiceInput) String() string { +func (s GetRepositoryInput) String() string { return awsutil.Prettify(s) } @@ -7638,19 +12268,22 @@ func (s DeleteServiceInput) 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 DeleteServiceInput) GoString() string { +func (s GetRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteServiceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteServiceInput"} +func (s *GetRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } + if s.Provider == nil { + invalidParams.Add(request.NewErrParamRequired("Provider")) + } if invalidParams.Len() > 0 { return invalidParams @@ -7659,16 +12292,24 @@ func (s *DeleteServiceInput) Validate() error { } // SetName sets the Name field's value. -func (s *DeleteServiceInput) SetName(v string) *DeleteServiceInput { +func (s *GetRepositoryInput) SetName(v string) *GetRepositoryInput { s.Name = &v return s } -type DeleteServiceOutput struct { +// SetProvider sets the Provider field's value. +func (s *GetRepositoryInput) SetProvider(v string) *GetRepositoryInput { + s.Provider = &v + return s +} + +type GetRepositoryOutput struct { _ struct{} `type:"structure"` - // The service detail data that's returned by AWS Proton. - Service *Service `locationName:"service" type:"structure"` + // The repository detail data that's returned by Proton. + // + // Repository is a required field + Repository *Repository `locationName:"repository" type:"structure" required:"true"` } // String returns the string representation. @@ -7676,7 +12317,7 @@ type DeleteServiceOutput 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 DeleteServiceOutput) String() string { +func (s GetRepositoryOutput) String() string { return awsutil.Prettify(s) } @@ -7685,23 +12326,38 @@ func (s DeleteServiceOutput) 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 DeleteServiceOutput) GoString() string { +func (s GetRepositoryOutput) GoString() string { return s.String() } -// SetService sets the Service field's value. -func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { - s.Service = v +// SetRepository sets the Repository field's value. +func (s *GetRepositoryOutput) SetRepository(v *Repository) *GetRepositoryOutput { + s.Repository = v return s } -type DeleteServiceTemplateInput struct { +type GetRepositorySyncStatusInput struct { _ struct{} `type:"structure"` - // The name of the service template to delete. + // The repository branch. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` + + // The repository name. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // RepositoryProvider is a required field + RepositoryProvider *string `locationName:"repositoryProvider" type:"string" required:"true" enum:"RepositoryProvider"` + + // The repository sync type. + // + // SyncType is a required field + SyncType *string `locationName:"syncType" type:"string" required:"true" enum:"SyncType"` } // String returns the string representation. @@ -7709,7 +12365,7 @@ type DeleteServiceTemplateInput 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 DeleteServiceTemplateInput) String() string { +func (s GetRepositorySyncStatusInput) String() string { return awsutil.Prettify(s) } @@ -7718,18 +12374,30 @@ func (s DeleteServiceTemplateInput) 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 DeleteServiceTemplateInput) GoString() string { +func (s GetRepositorySyncStatusInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteServiceTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteServiceTemplateInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *GetRepositorySyncStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRepositorySyncStatusInput"} + if s.Branch == nil { + invalidParams.Add(request.NewErrParamRequired("Branch")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.Branch != nil && len(*s.Branch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.RepositoryProvider == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryProvider")) + } + if s.SyncType == nil { + invalidParams.Add(request.NewErrParamRequired("SyncType")) } if invalidParams.Len() > 0 { @@ -7738,17 +12406,35 @@ func (s *DeleteServiceTemplateInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *DeleteServiceTemplateInput) SetName(v string) *DeleteServiceTemplateInput { - s.Name = &v +// SetBranch sets the Branch field's value. +func (s *GetRepositorySyncStatusInput) SetBranch(v string) *GetRepositorySyncStatusInput { + s.Branch = &v return s } -type DeleteServiceTemplateOutput struct { +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositorySyncStatusInput) SetRepositoryName(v string) *GetRepositorySyncStatusInput { + s.RepositoryName = &v + return s +} + +// SetRepositoryProvider sets the RepositoryProvider field's value. +func (s *GetRepositorySyncStatusInput) SetRepositoryProvider(v string) *GetRepositorySyncStatusInput { + s.RepositoryProvider = &v + return s +} + +// SetSyncType sets the SyncType field's value. +func (s *GetRepositorySyncStatusInput) SetSyncType(v string) *GetRepositorySyncStatusInput { + s.SyncType = &v + return s +} + +type GetRepositorySyncStatusOutput struct { _ struct{} `type:"structure"` - // The service template detail data that's returned by AWS Proton. - ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" type:"structure"` + // The repository sync status detail data that's returned by Proton. + LatestSync *RepositorySyncAttempt `locationName:"latestSync" type:"structure"` } // String returns the string representation. @@ -7756,7 +12442,7 @@ type DeleteServiceTemplateOutput 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 DeleteServiceTemplateOutput) String() string { +func (s GetRepositorySyncStatusOutput) String() string { return awsutil.Prettify(s) } @@ -7765,33 +12451,23 @@ func (s DeleteServiceTemplateOutput) 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 DeleteServiceTemplateOutput) GoString() string { +func (s GetRepositorySyncStatusOutput) GoString() string { return s.String() } -// SetServiceTemplate sets the ServiceTemplate field's value. -func (s *DeleteServiceTemplateOutput) SetServiceTemplate(v *ServiceTemplate) *DeleteServiceTemplateOutput { - s.ServiceTemplate = v +// SetLatestSync sets the LatestSync field's value. +func (s *GetRepositorySyncStatusOutput) SetLatestSync(v *RepositorySyncAttempt) *GetRepositorySyncStatusOutput { + s.LatestSync = v return s } -type DeleteServiceTemplateVersionInput struct { +type GetServiceInput struct { _ struct{} `type:"structure"` - // The service template major version to delete. - // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - - // The service template minor version to delete. - // - // MinorVersion is a required field - MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` - - // The name of the service template. + // The name of the service that you want to get the detail data for. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -7799,7 +12475,7 @@ type DeleteServiceTemplateVersionInput 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 DeleteServiceTemplateVersionInput) String() string { +func (s GetServiceInput) String() string { return awsutil.Prettify(s) } @@ -7808,30 +12484,18 @@ func (s DeleteServiceTemplateVersionInput) 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 DeleteServiceTemplateVersionInput) GoString() string { +func (s GetServiceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteServiceTemplateVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteServiceTemplateVersionInput"} - if s.MajorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MajorVersion")) - } - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } - if s.MinorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MinorVersion")) - } - if s.MinorVersion != nil && len(*s.MinorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MinorVersion", 1)) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) +func (s *GetServiceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetServiceInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -7840,29 +12504,24 @@ func (s *DeleteServiceTemplateVersionInput) Validate() error { return nil } -// SetMajorVersion sets the MajorVersion field's value. -func (s *DeleteServiceTemplateVersionInput) SetMajorVersion(v string) *DeleteServiceTemplateVersionInput { - s.MajorVersion = &v - return s -} - -// SetMinorVersion sets the MinorVersion field's value. -func (s *DeleteServiceTemplateVersionInput) SetMinorVersion(v string) *DeleteServiceTemplateVersionInput { - s.MinorVersion = &v - return s -} - -// SetTemplateName sets the TemplateName field's value. -func (s *DeleteServiceTemplateVersionInput) SetTemplateName(v string) *DeleteServiceTemplateVersionInput { - s.TemplateName = &v +// SetName sets the Name field's value. +func (s *GetServiceInput) SetName(v string) *GetServiceInput { + s.Name = &v return s } -type DeleteServiceTemplateVersionOutput struct { +type GetServiceInstanceInput struct { _ struct{} `type:"structure"` - // The service template version detail data that's returned by AWS Proton. - ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure"` + // The name of a service instance that you want to get the detail data for. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The name of the service that the service instance belongs to. + // + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -7870,7 +12529,7 @@ type DeleteServiceTemplateVersionOutput 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 DeleteServiceTemplateVersionOutput) String() string { +func (s GetServiceInstanceInput) String() string { return awsutil.Prettify(s) } @@ -7879,102 +12538,51 @@ func (s DeleteServiceTemplateVersionOutput) 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 DeleteServiceTemplateVersionOutput) GoString() string { +func (s GetServiceInstanceInput) GoString() string { return s.String() } -// SetServiceTemplateVersion sets the ServiceTemplateVersion field's value. -func (s *DeleteServiceTemplateVersionOutput) SetServiceTemplateVersion(v *ServiceTemplateVersion) *DeleteServiceTemplateVersionOutput { - s.ServiceTemplateVersion = v - return s -} - -// The environment detail data. An AWS Proton environment is a set resources -// shared across an AWS Proton service. -type Environment struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the environment. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The time when the environment was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` - - // The environment deployment status. - // - // DeploymentStatus is a required field - DeploymentStatus *string `locationName:"deploymentStatus" type:"string" required:"true" enum:"DeploymentStatus"` - - // An environment deployment status message. - // - // DeploymentStatusMessage is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Environment's - // String and GoString methods. - DeploymentStatusMessage *string `locationName:"deploymentStatusMessage" type:"string" sensitive:"true"` - - // The description of the environment. - // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Environment's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` - - // The ID of the environment account connection that's used to provision infrastructure - // resources in an environment account. - EnvironmentAccountConnectionId *string `locationName:"environmentAccountConnectionId" type:"string"` - - // The ID of the environment account that the environment infrastructure resources - // are provisioned in. - EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string"` - - // The time when a deployment of the environment was last attempted. - // - // LastDeploymentAttemptedAt is a required field - LastDeploymentAttemptedAt *time.Time `locationName:"lastDeploymentAttemptedAt" type:"timestamp" required:"true"` - - // The time when the environment was last deployed successfully. - // - // LastDeploymentSucceededAt is a required field - LastDeploymentSucceededAt *time.Time `locationName:"lastDeploymentSucceededAt" type:"timestamp" required:"true"` - - // The name of the environment. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows - // AWS Proton to make calls to other services on your behalf. - ProtonServiceRoleArn *string `locationName:"protonServiceRoleArn" min:"1" type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetServiceInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetServiceInstanceInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) + } - // When included, indicates that the environment template is for customer provisioned - // and managed infrastructure. - Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The environment spec. - // - // Spec is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by Environment's - // String and GoString methods. - Spec *string `locationName:"spec" min:"1" type:"string" sensitive:"true"` +// SetName sets the Name field's value. +func (s *GetServiceInstanceInput) SetName(v string) *GetServiceInstanceInput { + s.Name = &v + return s +} - // The ID of the major version of the environment template. - // - // TemplateMajorVersion is a required field - TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` +// SetServiceName sets the ServiceName field's value. +func (s *GetServiceInstanceInput) SetServiceName(v string) *GetServiceInstanceInput { + s.ServiceName = &v + return s +} - // The ID of the minor version of the environment template. - // - // TemplateMinorVersion is a required field - TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` +type GetServiceInstanceOutput struct { + _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the environment template. + // The service instance detail data that's returned by Proton. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // ServiceInstance is a required field + ServiceInstance *ServiceInstance `locationName:"serviceInstance" type:"structure" required:"true"` } // String returns the string representation. @@ -7982,7 +12590,7 @@ type Environment 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 Environment) String() string { +func (s GetServiceInstanceOutput) String() string { return awsutil.Prettify(s) } @@ -7991,156 +12599,54 @@ func (s Environment) 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 Environment) GoString() string { +func (s GetServiceInstanceOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *Environment) SetArn(v string) *Environment { - s.Arn = &v - return s -} - -// SetCreatedAt sets the CreatedAt field's value. -func (s *Environment) SetCreatedAt(v time.Time) *Environment { - s.CreatedAt = &v - return s -} - -// SetDeploymentStatus sets the DeploymentStatus field's value. -func (s *Environment) SetDeploymentStatus(v string) *Environment { - s.DeploymentStatus = &v - return s -} - -// SetDeploymentStatusMessage sets the DeploymentStatusMessage field's value. -func (s *Environment) SetDeploymentStatusMessage(v string) *Environment { - s.DeploymentStatusMessage = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *Environment) SetDescription(v string) *Environment { - s.Description = &v - return s -} - -// SetEnvironmentAccountConnectionId sets the EnvironmentAccountConnectionId field's value. -func (s *Environment) SetEnvironmentAccountConnectionId(v string) *Environment { - s.EnvironmentAccountConnectionId = &v - return s -} - -// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. -func (s *Environment) SetEnvironmentAccountId(v string) *Environment { - s.EnvironmentAccountId = &v - return s -} - -// SetLastDeploymentAttemptedAt sets the LastDeploymentAttemptedAt field's value. -func (s *Environment) SetLastDeploymentAttemptedAt(v time.Time) *Environment { - s.LastDeploymentAttemptedAt = &v - return s -} - -// SetLastDeploymentSucceededAt sets the LastDeploymentSucceededAt field's value. -func (s *Environment) SetLastDeploymentSucceededAt(v time.Time) *Environment { - s.LastDeploymentSucceededAt = &v - return s -} - -// SetName sets the Name field's value. -func (s *Environment) SetName(v string) *Environment { - s.Name = &v - return s -} - -// SetProtonServiceRoleArn sets the ProtonServiceRoleArn field's value. -func (s *Environment) SetProtonServiceRoleArn(v string) *Environment { - s.ProtonServiceRoleArn = &v +// SetServiceInstance sets the ServiceInstance field's value. +func (s *GetServiceInstanceOutput) SetServiceInstance(v *ServiceInstance) *GetServiceInstanceOutput { + s.ServiceInstance = v return s } -// SetProvisioning sets the Provisioning field's value. -func (s *Environment) SetProvisioning(v string) *Environment { - s.Provisioning = &v - return s -} +type GetServiceOutput struct { + _ struct{} `type:"structure"` -// SetSpec sets the Spec field's value. -func (s *Environment) SetSpec(v string) *Environment { - s.Spec = &v - return s + // The service detail data that's returned by Proton. + Service *Service `locationName:"service" type:"structure"` } -// SetTemplateMajorVersion sets the TemplateMajorVersion field's value. -func (s *Environment) SetTemplateMajorVersion(v string) *Environment { - s.TemplateMajorVersion = &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 GetServiceOutput) String() string { + return awsutil.Prettify(s) } -// SetTemplateMinorVersion sets the TemplateMinorVersion field's value. -func (s *Environment) SetTemplateMinorVersion(v string) *Environment { - s.TemplateMinorVersion = &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 GetServiceOutput) GoString() string { + return s.String() } -// SetTemplateName sets the TemplateName field's value. -func (s *Environment) SetTemplateName(v string) *Environment { - s.TemplateName = &v +// SetService sets the Service field's value. +func (s *GetServiceOutput) SetService(v *Service) *GetServiceOutput { + s.Service = v return s } -// The environment account connection detail data. -type EnvironmentAccountConnection struct { +type GetServiceTemplateInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the environment account connection. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The environment account that's connected to the environment account connection. - // - // EnvironmentAccountId is a required field - EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string" required:"true"` - - // The name of the environment that's associated with the environment account - // connection. - // - // EnvironmentName is a required field - EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` - - // The ID of the environment account connection. - // - // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` - - // The time when the environment account connection was last modified. - // - // LastModifiedAt is a required field - LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - - // The ID of the management account that's connected to the environment account - // connection. - // - // ManagementAccountId is a required field - ManagementAccountId *string `locationName:"managementAccountId" type:"string" required:"true"` - - // The time when the environment account connection request was made. - // - // RequestedAt is a required field - RequestedAt *time.Time `locationName:"requestedAt" type:"timestamp" required:"true"` - - // The IAM service role that's associated with the environment account connection. - // - // RoleArn is a required field - RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` - - // The status of the environment account connection. + // The name of the service template that you want to get detail data for. // - // Status is a required field - Status *string `locationName:"status" type:"string" required:"true" enum:"EnvironmentAccountConnectionStatus"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -8148,7 +12654,7 @@ type EnvironmentAccountConnection 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 EnvironmentAccountConnection) String() string { +func (s GetServiceTemplateInput) String() string { return awsutil.Prettify(s) } @@ -8157,115 +12663,82 @@ func (s EnvironmentAccountConnection) 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 EnvironmentAccountConnection) GoString() string { +func (s GetServiceTemplateInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentAccountConnection) SetArn(v string) *EnvironmentAccountConnection { - s.Arn = &v - return s -} - -// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. -func (s *EnvironmentAccountConnection) SetEnvironmentAccountId(v string) *EnvironmentAccountConnection { - s.EnvironmentAccountId = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetServiceTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetServiceTemplateInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *EnvironmentAccountConnection) SetEnvironmentName(v string) *EnvironmentAccountConnection { - s.EnvironmentName = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetId sets the Id field's value. -func (s *EnvironmentAccountConnection) SetId(v string) *EnvironmentAccountConnection { - s.Id = &v +// SetName sets the Name field's value. +func (s *GetServiceTemplateInput) SetName(v string) *GetServiceTemplateInput { + s.Name = &v return s } -// SetLastModifiedAt sets the LastModifiedAt field's value. -func (s *EnvironmentAccountConnection) SetLastModifiedAt(v time.Time) *EnvironmentAccountConnection { - s.LastModifiedAt = &v - return s -} +type GetServiceTemplateOutput struct { + _ struct{} `type:"structure"` -// SetManagementAccountId sets the ManagementAccountId field's value. -func (s *EnvironmentAccountConnection) SetManagementAccountId(v string) *EnvironmentAccountConnection { - s.ManagementAccountId = &v - return s + // The service template detail data that's returned by Proton. + // + // ServiceTemplate is a required field + ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" type:"structure" required:"true"` } -// SetRequestedAt sets the RequestedAt field's value. -func (s *EnvironmentAccountConnection) SetRequestedAt(v time.Time) *EnvironmentAccountConnection { - s.RequestedAt = &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 GetServiceTemplateOutput) String() string { + return awsutil.Prettify(s) } -// SetRoleArn sets the RoleArn field's value. -func (s *EnvironmentAccountConnection) SetRoleArn(v string) *EnvironmentAccountConnection { - s.RoleArn = &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 GetServiceTemplateOutput) GoString() string { + return s.String() } -// SetStatus sets the Status field's value. -func (s *EnvironmentAccountConnection) SetStatus(v string) *EnvironmentAccountConnection { - s.Status = &v +// SetServiceTemplate sets the ServiceTemplate field's value. +func (s *GetServiceTemplateOutput) SetServiceTemplate(v *ServiceTemplate) *GetServiceTemplateOutput { + s.ServiceTemplate = v return s } -// A summary of the environment account connection detail data. -type EnvironmentAccountConnectionSummary struct { +type GetServiceTemplateVersionInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the environment account connection. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The ID of the environment account that's connected to the environment account - // connection. - // - // EnvironmentAccountId is a required field - EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string" required:"true"` - - // The name of the environment that's associated with the environment account - // connection. - // - // EnvironmentName is a required field - EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` - - // The ID of the environment account connection. - // - // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` - - // The time when the environment account connection was last modified. - // - // LastModifiedAt is a required field - LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - - // The ID of the management account that's connected to the environment account - // connection. - // - // ManagementAccountId is a required field - ManagementAccountId *string `locationName:"managementAccountId" type:"string" required:"true"` - - // The time when the environment account connection request was made. + // To view service template major version detail data, include major Version. // - // RequestedAt is a required field - RequestedAt *time.Time `locationName:"requestedAt" type:"timestamp" required:"true"` + // MajorVersion is a required field + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - // The IAM service role that's associated with the environment account connection. + // To view service template minor version detail data, include minorVersion. // - // RoleArn is a required field - RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` + // MinorVersion is a required field + MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` - // The status of the environment account connection. + // The name of the service template. // - // Status is a required field - Status *string `locationName:"status" type:"string" required:"true" enum:"EnvironmentAccountConnectionStatus"` + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -8273,7 +12746,7 @@ type EnvironmentAccountConnectionSummary 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 EnvironmentAccountConnectionSummary) String() string { +func (s GetServiceTemplateVersionInput) String() string { return awsutil.Prettify(s) } @@ -8282,142 +12755,200 @@ func (s EnvironmentAccountConnectionSummary) 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 EnvironmentAccountConnectionSummary) GoString() string { +func (s GetServiceTemplateVersionInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentAccountConnectionSummary) SetArn(v string) *EnvironmentAccountConnectionSummary { - s.Arn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetServiceTemplateVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetServiceTemplateVersionInput"} + if s.MajorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MajorVersion")) + } + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.MinorVersion == nil { + invalidParams.Add(request.NewErrParamRequired("MinorVersion")) + } + if s.MinorVersion != nil && len(*s.MinorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MinorVersion", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } -// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. -func (s *EnvironmentAccountConnectionSummary) SetEnvironmentAccountId(v string) *EnvironmentAccountConnectionSummary { - s.EnvironmentAccountId = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *EnvironmentAccountConnectionSummary) SetEnvironmentName(v string) *EnvironmentAccountConnectionSummary { - s.EnvironmentName = &v +// SetMajorVersion sets the MajorVersion field's value. +func (s *GetServiceTemplateVersionInput) SetMajorVersion(v string) *GetServiceTemplateVersionInput { + s.MajorVersion = &v return s } -// SetId sets the Id field's value. -func (s *EnvironmentAccountConnectionSummary) SetId(v string) *EnvironmentAccountConnectionSummary { - s.Id = &v +// SetMinorVersion sets the MinorVersion field's value. +func (s *GetServiceTemplateVersionInput) SetMinorVersion(v string) *GetServiceTemplateVersionInput { + s.MinorVersion = &v return s } -// SetLastModifiedAt sets the LastModifiedAt field's value. -func (s *EnvironmentAccountConnectionSummary) SetLastModifiedAt(v time.Time) *EnvironmentAccountConnectionSummary { - s.LastModifiedAt = &v +// SetTemplateName sets the TemplateName field's value. +func (s *GetServiceTemplateVersionInput) SetTemplateName(v string) *GetServiceTemplateVersionInput { + s.TemplateName = &v return s } -// SetManagementAccountId sets the ManagementAccountId field's value. -func (s *EnvironmentAccountConnectionSummary) SetManagementAccountId(v string) *EnvironmentAccountConnectionSummary { - s.ManagementAccountId = &v - return s +type GetServiceTemplateVersionOutput struct { + _ struct{} `type:"structure"` + + // The service template version detail data that's returned by Proton. + // + // ServiceTemplateVersion is a required field + ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure" required:"true"` } -// SetRequestedAt sets the RequestedAt field's value. -func (s *EnvironmentAccountConnectionSummary) SetRequestedAt(v time.Time) *EnvironmentAccountConnectionSummary { - s.RequestedAt = &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 GetServiceTemplateVersionOutput) String() string { + return awsutil.Prettify(s) } -// SetRoleArn sets the RoleArn field's value. -func (s *EnvironmentAccountConnectionSummary) SetRoleArn(v string) *EnvironmentAccountConnectionSummary { - s.RoleArn = &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 GetServiceTemplateVersionOutput) GoString() string { + return s.String() } -// SetStatus sets the Status field's value. -func (s *EnvironmentAccountConnectionSummary) SetStatus(v string) *EnvironmentAccountConnectionSummary { - s.Status = &v +// SetServiceTemplateVersion sets the ServiceTemplateVersion field's value. +func (s *GetServiceTemplateVersionOutput) SetServiceTemplateVersion(v *ServiceTemplateVersion) *GetServiceTemplateVersionOutput { + s.ServiceTemplateVersion = v return s } -// A summary of the environment detail data. -type EnvironmentSummary struct { +type GetTemplateSyncConfigInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the environment. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The time when the environment was created. + // The template name. // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` - // The environment deployment status. + // The template type. // - // DeploymentStatus is a required field - DeploymentStatus *string `locationName:"deploymentStatus" type:"string" required:"true" enum:"DeploymentStatus"` + // TemplateType is a required field + TemplateType *string `locationName:"templateType" type:"string" required:"true" enum:"TemplateType"` +} - // An environment deployment status message. - // - // DeploymentStatusMessage is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentSummary's - // String and GoString methods. - DeploymentStatusMessage *string `locationName:"deploymentStatusMessage" 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 GetTemplateSyncConfigInput) String() string { + return awsutil.Prettify(s) +} - // The description of the environment. - // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentSummary's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetTemplateSyncConfigInput) GoString() string { + return s.String() +} - // The ID of the environment account connection that the environment is associated - // with. - EnvironmentAccountConnectionId *string `locationName:"environmentAccountConnectionId" type:"string"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTemplateSyncConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTemplateSyncConfigInput"} + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.TemplateType == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateType")) + } - // The ID of the environment account that the environment infrastructure resources - // are provisioned in. - EnvironmentAccountId *string `locationName:"environmentAccountId" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The time when a deployment of the environment was last attempted. - // - // LastDeploymentAttemptedAt is a required field - LastDeploymentAttemptedAt *time.Time `locationName:"lastDeploymentAttemptedAt" type:"timestamp" required:"true"` +// SetTemplateName sets the TemplateName field's value. +func (s *GetTemplateSyncConfigInput) SetTemplateName(v string) *GetTemplateSyncConfigInput { + s.TemplateName = &v + return s +} - // The time when the environment was last deployed successfully. - // - // LastDeploymentSucceededAt is a required field - LastDeploymentSucceededAt *time.Time `locationName:"lastDeploymentSucceededAt" type:"timestamp" required:"true"` +// SetTemplateType sets the TemplateType field's value. +func (s *GetTemplateSyncConfigInput) SetTemplateType(v string) *GetTemplateSyncConfigInput { + s.TemplateType = &v + return s +} - // The name of the environment. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` +type GetTemplateSyncConfigOutput struct { + _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows - // AWS Proton to make calls to other services on your behalf. - ProtonServiceRoleArn *string `locationName:"protonServiceRoleArn" min:"1" type:"string"` + // The template sync configuration detail data that's returned by Proton. + TemplateSyncConfig *TemplateSyncConfig `locationName:"templateSyncConfig" type:"structure"` +} - // When included, indicates that the environment template is for customer provisioned - // and managed infrastructure. - Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetTemplateSyncConfigOutput) String() string { + return awsutil.Prettify(s) +} - // The ID of the major version of the environment template. - // - // TemplateMajorVersion is a required field - TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetTemplateSyncConfigOutput) GoString() string { + return s.String() +} - // The ID of the minor version of the environment template. - // - // TemplateMinorVersion is a required field - TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` +// SetTemplateSyncConfig sets the TemplateSyncConfig field's value. +func (s *GetTemplateSyncConfigOutput) SetTemplateSyncConfig(v *TemplateSyncConfig) *GetTemplateSyncConfigOutput { + s.TemplateSyncConfig = v + return s +} - // The name of the environment template. +type GetTemplateSyncStatusInput struct { + _ struct{} `type:"structure"` + + // The template name. // // TemplateName is a required field TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + + // The template type. + // + // TemplateType is a required field + TemplateType *string `locationName:"templateType" type:"string" required:"true" enum:"TemplateType"` + + // The template version. + // + // TemplateVersion is a required field + TemplateVersion *string `locationName:"templateVersion" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -8425,7 +12956,7 @@ type EnvironmentSummary 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 EnvironmentSummary) String() string { +func (s GetTemplateSyncStatusInput) String() string { return awsutil.Prettify(s) } @@ -8434,147 +12965,191 @@ func (s EnvironmentSummary) 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 EnvironmentSummary) GoString() string { +func (s GetTemplateSyncStatusInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentSummary) SetArn(v string) *EnvironmentSummary { - s.Arn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTemplateSyncStatusInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTemplateSyncStatusInput"} + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.TemplateType == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateType")) + } + if s.TemplateVersion == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateVersion")) + } + if s.TemplateVersion != nil && len(*s.TemplateVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateVersion", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetCreatedAt sets the CreatedAt field's value. -func (s *EnvironmentSummary) SetCreatedAt(v time.Time) *EnvironmentSummary { - s.CreatedAt = &v +// SetTemplateName sets the TemplateName field's value. +func (s *GetTemplateSyncStatusInput) SetTemplateName(v string) *GetTemplateSyncStatusInput { + s.TemplateName = &v return s } -// SetDeploymentStatus sets the DeploymentStatus field's value. -func (s *EnvironmentSummary) SetDeploymentStatus(v string) *EnvironmentSummary { - s.DeploymentStatus = &v +// SetTemplateType sets the TemplateType field's value. +func (s *GetTemplateSyncStatusInput) SetTemplateType(v string) *GetTemplateSyncStatusInput { + s.TemplateType = &v return s } -// SetDeploymentStatusMessage sets the DeploymentStatusMessage field's value. -func (s *EnvironmentSummary) SetDeploymentStatusMessage(v string) *EnvironmentSummary { - s.DeploymentStatusMessage = &v +// SetTemplateVersion sets the TemplateVersion field's value. +func (s *GetTemplateSyncStatusInput) SetTemplateVersion(v string) *GetTemplateSyncStatusInput { + s.TemplateVersion = &v return s } -// SetDescription sets the Description field's value. -func (s *EnvironmentSummary) SetDescription(v string) *EnvironmentSummary { - s.Description = &v - return s +type GetTemplateSyncStatusOutput struct { + _ struct{} `type:"structure"` + + // The template sync desired state that's returned by Proton. + DesiredState *Revision `locationName:"desiredState" type:"structure"` + + // The details of the last successful sync that's returned by Proton. + LatestSuccessfulSync *ResourceSyncAttempt `locationName:"latestSuccessfulSync" type:"structure"` + + // The details of the last sync that's returned by Proton. + LatestSync *ResourceSyncAttempt `locationName:"latestSync" type:"structure"` } -// SetEnvironmentAccountConnectionId sets the EnvironmentAccountConnectionId field's value. -func (s *EnvironmentSummary) SetEnvironmentAccountConnectionId(v string) *EnvironmentSummary { - s.EnvironmentAccountConnectionId = &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 GetTemplateSyncStatusOutput) String() string { + return awsutil.Prettify(s) } -// SetEnvironmentAccountId sets the EnvironmentAccountId field's value. -func (s *EnvironmentSummary) SetEnvironmentAccountId(v string) *EnvironmentSummary { - s.EnvironmentAccountId = &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 GetTemplateSyncStatusOutput) GoString() string { + return s.String() } -// SetLastDeploymentAttemptedAt sets the LastDeploymentAttemptedAt field's value. -func (s *EnvironmentSummary) SetLastDeploymentAttemptedAt(v time.Time) *EnvironmentSummary { - s.LastDeploymentAttemptedAt = &v +// SetDesiredState sets the DesiredState field's value. +func (s *GetTemplateSyncStatusOutput) SetDesiredState(v *Revision) *GetTemplateSyncStatusOutput { + s.DesiredState = v return s } -// SetLastDeploymentSucceededAt sets the LastDeploymentSucceededAt field's value. -func (s *EnvironmentSummary) SetLastDeploymentSucceededAt(v time.Time) *EnvironmentSummary { - s.LastDeploymentSucceededAt = &v +// SetLatestSuccessfulSync sets the LatestSuccessfulSync field's value. +func (s *GetTemplateSyncStatusOutput) SetLatestSuccessfulSync(v *ResourceSyncAttempt) *GetTemplateSyncStatusOutput { + s.LatestSuccessfulSync = v return s } -// SetName sets the Name field's value. -func (s *EnvironmentSummary) SetName(v string) *EnvironmentSummary { - s.Name = &v +// SetLatestSync sets the LatestSync field's value. +func (s *GetTemplateSyncStatusOutput) SetLatestSync(v *ResourceSyncAttempt) *GetTemplateSyncStatusOutput { + s.LatestSync = v return s } -// SetProtonServiceRoleArn sets the ProtonServiceRoleArn field's value. -func (s *EnvironmentSummary) SetProtonServiceRoleArn(v string) *EnvironmentSummary { - s.ProtonServiceRoleArn = &v - return s +// The request failed to register with the service. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Message_ is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by InternalServerException's + // String and GoString methods. + Message_ *string `locationName:"message" type:"string" sensitive:"true"` } -// SetProvisioning sets the Provisioning field's value. -func (s *EnvironmentSummary) SetProvisioning(v string) *EnvironmentSummary { - s.Provisioning = &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 InternalServerException) String() string { + return awsutil.Prettify(s) } -// SetTemplateMajorVersion sets the TemplateMajorVersion field's value. -func (s *EnvironmentSummary) SetTemplateMajorVersion(v string) *EnvironmentSummary { - s.TemplateMajorVersion = &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 InternalServerException) GoString() string { + return s.String() } -// SetTemplateMinorVersion sets the TemplateMinorVersion field's value. -func (s *EnvironmentSummary) SetTemplateMinorVersion(v string) *EnvironmentSummary { - s.TemplateMinorVersion = &v - return s +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } } -// SetTemplateName sets the TemplateName field's value. -func (s *EnvironmentSummary) SetTemplateName(v string) *EnvironmentSummary { - s.TemplateName = &v - return s +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" } -// The environment template data. -type EnvironmentTemplate struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The Amazon Resource Name (ARN) of the environment template. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} - // The time when the environment template was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A description of the environment template. - // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplate's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The name of the environment template as displayed in the developer interface. - // - // DisplayName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplate's - // String and GoString methods. - DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} - // The customer provided encryption key for the environment template. - EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` +type ListEnvironmentAccountConnectionsInput struct { + _ struct{} `type:"structure"` - // The time when the environment template was last modified. - // - // LastModifiedAt is a required field - LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` + // The environment name that's associated with each listed environment account + // connection. + EnvironmentName *string `locationName:"environmentName" min:"1" type:"string"` - // The name of the environment template. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // The maximum number of environment account connections to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - // When included, indicates that the environment template is for customer provisioned - // and managed infrastructure. - Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` + // A token to indicate the location of the next environment account connection + // in the array of environment account connections, after the list of environment + // account connections that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` - // The ID of the recommended version of the environment template. - RecommendedVersion *string `locationName:"recommendedVersion" min:"1" type:"string"` + // The type of account making the ListEnvironmentAccountConnections request. + // + // RequestedBy is a required field + RequestedBy *string `locationName:"requestedBy" type:"string" required:"true" enum:"EnvironmentAccountConnectionRequesterAccountType"` + + // The status details for each listed environment account connection. + Statuses []*string `locationName:"statuses" type:"list"` } // String returns the string representation. @@ -8582,7 +13157,7 @@ type EnvironmentTemplate 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 EnvironmentTemplate) String() string { +func (s ListEnvironmentAccountConnectionsInput) String() string { return awsutil.Prettify(s) } @@ -8591,77 +13166,116 @@ func (s EnvironmentTemplate) 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 EnvironmentTemplate) GoString() string { +func (s ListEnvironmentAccountConnectionsInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentTemplate) SetArn(v string) *EnvironmentTemplate { - s.Arn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnvironmentAccountConnectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentAccountConnectionsInput"} + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.RequestedBy == nil { + invalidParams.Add(request.NewErrParamRequired("RequestedBy")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ListEnvironmentAccountConnectionsInput) SetEnvironmentName(v string) *ListEnvironmentAccountConnectionsInput { + s.EnvironmentName = &v return s } -// SetCreatedAt sets the CreatedAt field's value. -func (s *EnvironmentTemplate) SetCreatedAt(v time.Time) *EnvironmentTemplate { - s.CreatedAt = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListEnvironmentAccountConnectionsInput) SetMaxResults(v int64) *ListEnvironmentAccountConnectionsInput { + s.MaxResults = &v return s } -// SetDescription sets the Description field's value. -func (s *EnvironmentTemplate) SetDescription(v string) *EnvironmentTemplate { - s.Description = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentAccountConnectionsInput) SetNextToken(v string) *ListEnvironmentAccountConnectionsInput { + s.NextToken = &v return s } -// SetDisplayName sets the DisplayName field's value. -func (s *EnvironmentTemplate) SetDisplayName(v string) *EnvironmentTemplate { - s.DisplayName = &v +// SetRequestedBy sets the RequestedBy field's value. +func (s *ListEnvironmentAccountConnectionsInput) SetRequestedBy(v string) *ListEnvironmentAccountConnectionsInput { + s.RequestedBy = &v + return s +} + +// SetStatuses sets the Statuses field's value. +func (s *ListEnvironmentAccountConnectionsInput) SetStatuses(v []*string) *ListEnvironmentAccountConnectionsInput { + s.Statuses = v return s } -// SetEncryptionKey sets the EncryptionKey field's value. -func (s *EnvironmentTemplate) SetEncryptionKey(v string) *EnvironmentTemplate { - s.EncryptionKey = &v - return s +type ListEnvironmentAccountConnectionsOutput struct { + _ struct{} `type:"structure"` + + // An array of environment account connections with details that's returned + // by Proton. + // + // EnvironmentAccountConnections is a required field + EnvironmentAccountConnections []*EnvironmentAccountConnectionSummary `locationName:"environmentAccountConnections" type:"list" required:"true"` + + // A token to indicate the location of the next environment account connection + // in the array of environment account connections, after the current requested + // list of environment account connections. + NextToken *string `locationName:"nextToken" type:"string"` } -// SetLastModifiedAt sets the LastModifiedAt field's value. -func (s *EnvironmentTemplate) SetLastModifiedAt(v time.Time) *EnvironmentTemplate { - s.LastModifiedAt = &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 ListEnvironmentAccountConnectionsOutput) String() string { + return awsutil.Prettify(s) } -// SetName sets the Name field's value. -func (s *EnvironmentTemplate) SetName(v string) *EnvironmentTemplate { - s.Name = &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 ListEnvironmentAccountConnectionsOutput) GoString() string { + return s.String() } -// SetProvisioning sets the Provisioning field's value. -func (s *EnvironmentTemplate) SetProvisioning(v string) *EnvironmentTemplate { - s.Provisioning = &v +// SetEnvironmentAccountConnections sets the EnvironmentAccountConnections field's value. +func (s *ListEnvironmentAccountConnectionsOutput) SetEnvironmentAccountConnections(v []*EnvironmentAccountConnectionSummary) *ListEnvironmentAccountConnectionsOutput { + s.EnvironmentAccountConnections = v return s } -// SetRecommendedVersion sets the RecommendedVersion field's value. -func (s *EnvironmentTemplate) SetRecommendedVersion(v string) *EnvironmentTemplate { - s.RecommendedVersion = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentAccountConnectionsOutput) SetNextToken(v string) *ListEnvironmentAccountConnectionsOutput { + s.NextToken = &v return s } -// A search filter for environment templates. -type EnvironmentTemplateFilter struct { +type ListEnvironmentOutputsInput struct { _ struct{} `type:"structure"` - // Include majorVersion to filter search for a major version. + // The environment name. // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` - // Include templateName to filter search for a template name. - // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // A token to indicate the location of the next environment output in the array + // of environment outputs, after the list of environment outputs that was previously + // requested. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -8669,7 +13283,7 @@ type EnvironmentTemplateFilter 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 EnvironmentTemplateFilter) String() string { +func (s ListEnvironmentOutputsInput) String() string { return awsutil.Prettify(s) } @@ -8678,24 +13292,18 @@ func (s EnvironmentTemplateFilter) 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 EnvironmentTemplateFilter) GoString() string { +func (s ListEnvironmentOutputsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *EnvironmentTemplateFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EnvironmentTemplateFilter"} - if s.MajorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MajorVersion")) - } - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) +func (s *ListEnvironmentOutputsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentOutputsInput"} + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) } if invalidParams.Len() > 0 { @@ -8704,62 +13312,29 @@ func (s *EnvironmentTemplateFilter) Validate() error { return nil } -// SetMajorVersion sets the MajorVersion field's value. -func (s *EnvironmentTemplateFilter) SetMajorVersion(v string) *EnvironmentTemplateFilter { - s.MajorVersion = &v +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ListEnvironmentOutputsInput) SetEnvironmentName(v string) *ListEnvironmentOutputsInput { + s.EnvironmentName = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *EnvironmentTemplateFilter) SetTemplateName(v string) *EnvironmentTemplateFilter { - s.TemplateName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentOutputsInput) SetNextToken(v string) *ListEnvironmentOutputsInput { + s.NextToken = &v return s } -// The environment template data. -type EnvironmentTemplateSummary struct { +type ListEnvironmentOutputsOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the environment template. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The time when the environment template was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` - - // A description of the environment template. - // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateSummary's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` - - // The name of the environment template as displayed in the developer interface. - // - // DisplayName is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateSummary's - // String and GoString methods. - DisplayName *string `locationName:"displayName" min:"1" type:"string" sensitive:"true"` - - // The time when the environment template was last modified. - // - // LastModifiedAt is a required field - LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` + // A token to indicate the location of the next environment output in the array + // of environment outputs, after the current requested list of environment outputs. + NextToken *string `locationName:"nextToken" type:"string"` - // The name of the environment template. + // An array of environment outputs with detail data. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` - - // When included, indicates that the environment template is for customer provisioned - // and managed infrastructure. - Provisioning *string `locationName:"provisioning" type:"string" enum:"Provisioning"` - - // The ID of the recommended version of the environment template. - RecommendedVersion *string `locationName:"recommendedVersion" min:"1" type:"string"` + // Outputs is a required field + Outputs []*Output_ `locationName:"outputs" type:"list" required:"true"` } // String returns the string representation. @@ -8767,7 +13342,7 @@ type EnvironmentTemplateSummary 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 EnvironmentTemplateSummary) String() string { +func (s ListEnvironmentOutputsOutput) String() string { return awsutil.Prettify(s) } @@ -8776,121 +13351,94 @@ func (s EnvironmentTemplateSummary) 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 EnvironmentTemplateSummary) GoString() string { +func (s ListEnvironmentOutputsOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentTemplateSummary) SetArn(v string) *EnvironmentTemplateSummary { - s.Arn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentOutputsOutput) SetNextToken(v string) *ListEnvironmentOutputsOutput { + s.NextToken = &v return s } -// SetCreatedAt sets the CreatedAt field's value. -func (s *EnvironmentTemplateSummary) SetCreatedAt(v time.Time) *EnvironmentTemplateSummary { - s.CreatedAt = &v +// SetOutputs sets the Outputs field's value. +func (s *ListEnvironmentOutputsOutput) SetOutputs(v []*Output_) *ListEnvironmentOutputsOutput { + s.Outputs = v return s } -// SetDescription sets the Description field's value. -func (s *EnvironmentTemplateSummary) SetDescription(v string) *EnvironmentTemplateSummary { - s.Description = &v - return s -} +type ListEnvironmentProvisionedResourcesInput struct { + _ struct{} `type:"structure"` -// SetDisplayName sets the DisplayName field's value. -func (s *EnvironmentTemplateSummary) SetDisplayName(v string) *EnvironmentTemplateSummary { - s.DisplayName = &v - return s + // The environment name. + // + // EnvironmentName is a required field + EnvironmentName *string `locationName:"environmentName" min:"1" type:"string" required:"true"` + + // A token to indicate the location of the next environment provisioned resource + // in the array of environment provisioned resources, after the list of environment + // provisioned resources that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` } -// SetLastModifiedAt sets the LastModifiedAt field's value. -func (s *EnvironmentTemplateSummary) SetLastModifiedAt(v time.Time) *EnvironmentTemplateSummary { - s.LastModifiedAt = &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 ListEnvironmentProvisionedResourcesInput) String() string { + return awsutil.Prettify(s) } -// SetName sets the Name field's value. -func (s *EnvironmentTemplateSummary) SetName(v string) *EnvironmentTemplateSummary { - s.Name = &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 ListEnvironmentProvisionedResourcesInput) GoString() string { + return s.String() } -// SetProvisioning sets the Provisioning field's value. -func (s *EnvironmentTemplateSummary) SetProvisioning(v string) *EnvironmentTemplateSummary { - s.Provisioning = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnvironmentProvisionedResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentProvisionedResourcesInput"} + if s.EnvironmentName == nil { + invalidParams.Add(request.NewErrParamRequired("EnvironmentName")) + } + if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetRecommendedVersion sets the RecommendedVersion field's value. -func (s *EnvironmentTemplateSummary) SetRecommendedVersion(v string) *EnvironmentTemplateSummary { - s.RecommendedVersion = &v +// SetEnvironmentName sets the EnvironmentName field's value. +func (s *ListEnvironmentProvisionedResourcesInput) SetEnvironmentName(v string) *ListEnvironmentProvisionedResourcesInput { + s.EnvironmentName = &v return s } -// The environment template version data. -type EnvironmentTemplateVersion struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the version of an environment template. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The time when the version of an environment template was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` - - // A description of the minor version of an environment template. - // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateVersion's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` - - // The time when the version of an environment template was last modified. - // - // LastModifiedAt is a required field - LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - - // The ID of the latest major version that's associated with the version of - // an environment template. - // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - - // The ID of the minor version of an environment template. - // - // MinorVersion is a required field - MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` - - // The ID of the recommended minor version of the environment template. - RecommendedMinorVersion *string `locationName:"recommendedMinorVersion" min:"1" type:"string"` - - // The schema of the version of an environment template. - // - // Schema is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateVersion's - // String and GoString methods. - Schema *string `locationName:"schema" min:"1" type:"string" sensitive:"true"` - - // The status of the version of an environment template. - // - // Status is a required field - Status *string `locationName:"status" type:"string" required:"true" enum:"TemplateVersionStatus"` - - // The status message of the version of an environment template. - // - // StatusMessage is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateVersion's - // String and GoString methods. - StatusMessage *string `locationName:"statusMessage" type:"string" sensitive:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentProvisionedResourcesInput) SetNextToken(v string) *ListEnvironmentProvisionedResourcesInput { + s.NextToken = &v + return s +} - // The name of the version of an environment template. +type ListEnvironmentProvisionedResourcesOutput struct { + _ struct{} `type:"structure"` + + // A token to indicate the location of the next environment provisioned resource + // in the array of provisioned resources, after the current requested list of + // environment provisioned resources. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of environment provisioned resources. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // ProvisionedResources is a required field + ProvisionedResources []*ProvisionedResource `locationName:"provisionedResources" type:"list" required:"true"` } // String returns the string representation. @@ -8898,7 +13446,7 @@ type EnvironmentTemplateVersion 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 EnvironmentTemplateVersion) String() string { +func (s ListEnvironmentProvisionedResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -8907,132 +13455,165 @@ func (s EnvironmentTemplateVersion) 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 EnvironmentTemplateVersion) GoString() string { +func (s ListEnvironmentProvisionedResourcesOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentTemplateVersion) SetArn(v string) *EnvironmentTemplateVersion { - s.Arn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentProvisionedResourcesOutput) SetNextToken(v string) *ListEnvironmentProvisionedResourcesOutput { + s.NextToken = &v return s } -// SetCreatedAt sets the CreatedAt field's value. -func (s *EnvironmentTemplateVersion) SetCreatedAt(v time.Time) *EnvironmentTemplateVersion { - s.CreatedAt = &v +// SetProvisionedResources sets the ProvisionedResources field's value. +func (s *ListEnvironmentProvisionedResourcesOutput) SetProvisionedResources(v []*ProvisionedResource) *ListEnvironmentProvisionedResourcesOutput { + s.ProvisionedResources = v return s } -// SetDescription sets the Description field's value. -func (s *EnvironmentTemplateVersion) SetDescription(v string) *EnvironmentTemplateVersion { - s.Description = &v - return s -} +type ListEnvironmentTemplateVersionsInput struct { + _ struct{} `type:"structure"` -// SetLastModifiedAt sets the LastModifiedAt field's value. -func (s *EnvironmentTemplateVersion) SetLastModifiedAt(v time.Time) *EnvironmentTemplateVersion { - s.LastModifiedAt = &v - return s + // To view a list of minor of versions under a major version of an environment + // template, include major Version. + // + // To view a list of major versions of an environment template, exclude major + // Version. + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` + + // The maximum number of major or minor versions of an environment template + // to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // A token to indicate the location of the next major or minor version in the + // array of major or minor versions of an environment template, after the list + // of major or minor versions that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the environment template. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` } -// SetMajorVersion sets the MajorVersion field's value. -func (s *EnvironmentTemplateVersion) SetMajorVersion(v string) *EnvironmentTemplateVersion { - s.MajorVersion = &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 ListEnvironmentTemplateVersionsInput) String() string { + return awsutil.Prettify(s) } -// SetMinorVersion sets the MinorVersion field's value. -func (s *EnvironmentTemplateVersion) SetMinorVersion(v string) *EnvironmentTemplateVersion { - s.MinorVersion = &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 ListEnvironmentTemplateVersionsInput) GoString() string { + return s.String() } -// SetRecommendedMinorVersion sets the RecommendedMinorVersion field's value. -func (s *EnvironmentTemplateVersion) SetRecommendedMinorVersion(v string) *EnvironmentTemplateVersion { - s.RecommendedMinorVersion = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnvironmentTemplateVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentTemplateVersionsInput"} + if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSchema sets the Schema field's value. -func (s *EnvironmentTemplateVersion) SetSchema(v string) *EnvironmentTemplateVersion { - s.Schema = &v +// SetMajorVersion sets the MajorVersion field's value. +func (s *ListEnvironmentTemplateVersionsInput) SetMajorVersion(v string) *ListEnvironmentTemplateVersionsInput { + s.MajorVersion = &v return s } -// SetStatus sets the Status field's value. -func (s *EnvironmentTemplateVersion) SetStatus(v string) *EnvironmentTemplateVersion { - s.Status = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListEnvironmentTemplateVersionsInput) SetMaxResults(v int64) *ListEnvironmentTemplateVersionsInput { + s.MaxResults = &v return s } -// SetStatusMessage sets the StatusMessage field's value. -func (s *EnvironmentTemplateVersion) SetStatusMessage(v string) *EnvironmentTemplateVersion { - s.StatusMessage = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentTemplateVersionsInput) SetNextToken(v string) *ListEnvironmentTemplateVersionsInput { + s.NextToken = &v return s } // SetTemplateName sets the TemplateName field's value. -func (s *EnvironmentTemplateVersion) SetTemplateName(v string) *EnvironmentTemplateVersion { +func (s *ListEnvironmentTemplateVersionsInput) SetTemplateName(v string) *ListEnvironmentTemplateVersionsInput { s.TemplateName = &v return s } -// A summary of the version of an environment template detail data. -type EnvironmentTemplateVersionSummary struct { +type ListEnvironmentTemplateVersionsOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the version of an environment template. - // - // Arn is a required field - Arn *string `locationName:"arn" type:"string" required:"true"` - - // The time when the version of an environment template was created. - // - // CreatedAt is a required field - CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` + // A token to indicate the location of the next major or minor version in the + // array of major or minor versions of an environment template, after the list + // of major or minor versions that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` - // A description of the version of an environment template. + // An array of major or minor versions of an environment template detail data. // - // Description is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateVersionSummary's - // String and GoString methods. - Description *string `locationName:"description" type:"string" sensitive:"true"` + // TemplateVersions is a required field + TemplateVersions []*EnvironmentTemplateVersionSummary `locationName:"templateVersions" type:"list" required:"true"` +} - // The time when the version of an environment template was last modified. - // - // LastModifiedAt is a required field - LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" 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 ListEnvironmentTemplateVersionsOutput) String() string { + return awsutil.Prettify(s) +} - // The ID of the latest major version that's associated with the version of - // an environment template. - // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListEnvironmentTemplateVersionsOutput) GoString() string { + return s.String() +} - // The ID of the version of an environment template. - // - // MinorVersion is a required field - MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentTemplateVersionsOutput) SetNextToken(v string) *ListEnvironmentTemplateVersionsOutput { + s.NextToken = &v + return s +} - // The ID of the recommended minor version of the environment template. - RecommendedMinorVersion *string `locationName:"recommendedMinorVersion" min:"1" type:"string"` +// SetTemplateVersions sets the TemplateVersions field's value. +func (s *ListEnvironmentTemplateVersionsOutput) SetTemplateVersions(v []*EnvironmentTemplateVersionSummary) *ListEnvironmentTemplateVersionsOutput { + s.TemplateVersions = v + return s +} - // The status of the version of an environment template. - // - // Status is a required field - Status *string `locationName:"status" type:"string" required:"true" enum:"TemplateVersionStatus"` +type ListEnvironmentTemplatesInput struct { + _ struct{} `type:"structure"` - // The status message of the version of an environment template. - // - // StatusMessage is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by EnvironmentTemplateVersionSummary's - // String and GoString methods. - StatusMessage *string `locationName:"statusMessage" type:"string" sensitive:"true"` + // The maximum number of environment templates to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - // The name of the version of an environment template. - // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // A token to indicate the location of the next environment template in the + // array of environment templates, after the list of environment templates that + // was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9040,7 +13621,7 @@ type EnvironmentTemplateVersionSummary 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 EnvironmentTemplateVersionSummary) String() string { +func (s ListEnvironmentTemplatesInput) String() string { return awsutil.Prettify(s) } @@ -9049,72 +13630,91 @@ func (s EnvironmentTemplateVersionSummary) 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 EnvironmentTemplateVersionSummary) GoString() string { +func (s ListEnvironmentTemplatesInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *EnvironmentTemplateVersionSummary) SetArn(v string) *EnvironmentTemplateVersionSummary { - s.Arn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnvironmentTemplatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentTemplatesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -// SetCreatedAt sets the CreatedAt field's value. -func (s *EnvironmentTemplateVersionSummary) SetCreatedAt(v time.Time) *EnvironmentTemplateVersionSummary { - s.CreatedAt = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDescription sets the Description field's value. -func (s *EnvironmentTemplateVersionSummary) SetDescription(v string) *EnvironmentTemplateVersionSummary { - s.Description = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListEnvironmentTemplatesInput) SetMaxResults(v int64) *ListEnvironmentTemplatesInput { + s.MaxResults = &v return s } -// SetLastModifiedAt sets the LastModifiedAt field's value. -func (s *EnvironmentTemplateVersionSummary) SetLastModifiedAt(v time.Time) *EnvironmentTemplateVersionSummary { - s.LastModifiedAt = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentTemplatesInput) SetNextToken(v string) *ListEnvironmentTemplatesInput { + s.NextToken = &v return s } -// SetMajorVersion sets the MajorVersion field's value. -func (s *EnvironmentTemplateVersionSummary) SetMajorVersion(v string) *EnvironmentTemplateVersionSummary { - s.MajorVersion = &v - return s -} +type ListEnvironmentTemplatesOutput struct { + _ struct{} `type:"structure"` -// SetMinorVersion sets the MinorVersion field's value. -func (s *EnvironmentTemplateVersionSummary) SetMinorVersion(v string) *EnvironmentTemplateVersionSummary { - s.MinorVersion = &v - return s + // A token to indicate the location of the next environment template in the + // array of environment templates, after the current requested list of environment + // templates. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of environment templates with detail data. + // + // Templates is a required field + Templates []*EnvironmentTemplateSummary `locationName:"templates" type:"list" required:"true"` } -// SetRecommendedMinorVersion sets the RecommendedMinorVersion field's value. -func (s *EnvironmentTemplateVersionSummary) SetRecommendedMinorVersion(v string) *EnvironmentTemplateVersionSummary { - s.RecommendedMinorVersion = &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 ListEnvironmentTemplatesOutput) String() string { + return awsutil.Prettify(s) } -// SetStatus sets the Status field's value. -func (s *EnvironmentTemplateVersionSummary) SetStatus(v string) *EnvironmentTemplateVersionSummary { - s.Status = &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 ListEnvironmentTemplatesOutput) GoString() string { + return s.String() } -// SetStatusMessage sets the StatusMessage field's value. -func (s *EnvironmentTemplateVersionSummary) SetStatusMessage(v string) *EnvironmentTemplateVersionSummary { - s.StatusMessage = &v +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentTemplatesOutput) SetNextToken(v string) *ListEnvironmentTemplatesOutput { + s.NextToken = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *EnvironmentTemplateVersionSummary) SetTemplateName(v string) *EnvironmentTemplateVersionSummary { - s.TemplateName = &v +// SetTemplates sets the Templates field's value. +func (s *ListEnvironmentTemplatesOutput) SetTemplates(v []*EnvironmentTemplateSummary) *ListEnvironmentTemplatesOutput { + s.Templates = v return s } -type GetAccountSettingsInput struct { +type ListEnvironmentsInput struct { _ struct{} `type:"structure"` + + // An array of the versions of the environment template. + EnvironmentTemplates []*EnvironmentTemplateFilter `locationName:"environmentTemplates" type:"list"` + + // The maximum number of environments to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // A token to indicate the location of the next environment in the array of + // environments, after the list of environments that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9122,7 +13722,7 @@ type GetAccountSettingsInput 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 GetAccountSettingsInput) String() string { +func (s ListEnvironmentsInput) String() string { return awsutil.Prettify(s) } @@ -9131,15 +13731,62 @@ func (s GetAccountSettingsInput) 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 GetAccountSettingsInput) GoString() string { +func (s ListEnvironmentsInput) GoString() string { return s.String() } -type GetAccountSettingsOutput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListEnvironmentsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.EnvironmentTemplates != nil { + for i, v := range s.EnvironmentTemplates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EnvironmentTemplates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnvironmentTemplates sets the EnvironmentTemplates field's value. +func (s *ListEnvironmentsInput) SetEnvironmentTemplates(v []*EnvironmentTemplateFilter) *ListEnvironmentsInput { + s.EnvironmentTemplates = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListEnvironmentsInput) SetMaxResults(v int64) *ListEnvironmentsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentsInput) SetNextToken(v string) *ListEnvironmentsInput { + s.NextToken = &v + return s +} + +type ListEnvironmentsOutput struct { _ struct{} `type:"structure"` - // The AWS Proton pipeline service role detail data that's returned by AWS Proton. - AccountSettings *AccountSettings `locationName:"accountSettings" type:"structure"` + // An array of environment detail data summaries. + // + // Environments is a required field + Environments []*EnvironmentSummary `locationName:"environments" type:"list" required:"true"` + + // A token to indicate the location of the next environment in the array of + // environments, after the current requested list of environments. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9147,7 +13794,7 @@ type GetAccountSettingsOutput 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 GetAccountSettingsOutput) String() string { +func (s ListEnvironmentsOutput) String() string { return awsutil.Prettify(s) } @@ -9156,23 +13803,31 @@ func (s GetAccountSettingsOutput) 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 GetAccountSettingsOutput) GoString() string { +func (s ListEnvironmentsOutput) GoString() string { return s.String() } -// SetAccountSettings sets the AccountSettings field's value. -func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAccountSettingsOutput { - s.AccountSettings = v +// SetEnvironments sets the Environments field's value. +func (s *ListEnvironmentsOutput) SetEnvironments(v []*EnvironmentSummary) *ListEnvironmentsOutput { + s.Environments = v return s } -type GetEnvironmentAccountConnectionInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListEnvironmentsOutput) SetNextToken(v string) *ListEnvironmentsOutput { + s.NextToken = &v + return s +} + +type ListRepositoriesInput struct { _ struct{} `type:"structure"` - // The ID of the environment account connection. - // - // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` + // The maximum number of repositories to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // A token to indicate the location of the next repository in the array of repositories, + // after the list of repositories previously requested. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9180,7 +13835,7 @@ type GetEnvironmentAccountConnectionInput 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 GetEnvironmentAccountConnectionInput) String() string { +func (s ListRepositoriesInput) String() string { return awsutil.Prettify(s) } @@ -9189,15 +13844,15 @@ func (s GetEnvironmentAccountConnectionInput) 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 GetEnvironmentAccountConnectionInput) GoString() string { +func (s ListRepositoriesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetEnvironmentAccountConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentAccountConnectionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *ListRepositoriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -9206,19 +13861,29 @@ func (s *GetEnvironmentAccountConnectionInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *GetEnvironmentAccountConnectionInput) SetId(v string) *GetEnvironmentAccountConnectionInput { - s.Id = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListRepositoriesInput) SetMaxResults(v int64) *ListRepositoriesInput { + s.MaxResults = &v return s } -type GetEnvironmentAccountConnectionOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput { + s.NextToken = &v + return s +} + +type ListRepositoriesOutput struct { _ struct{} `type:"structure"` - // The environment account connection detail data that's returned by AWS Proton. + // A token to indicate the location of the next repository in the array of repositories, + // after the current requested list of repositories. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of repositories. // - // EnvironmentAccountConnection is a required field - EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` + // Repositories is a required field + Repositories []*RepositorySummary `locationName:"repositories" type:"list" required:"true"` } // String returns the string representation. @@ -9226,7 +13891,7 @@ type GetEnvironmentAccountConnectionOutput 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 GetEnvironmentAccountConnectionOutput) String() string { +func (s ListRepositoriesOutput) String() string { return awsutil.Prettify(s) } @@ -9235,23 +13900,44 @@ func (s GetEnvironmentAccountConnectionOutput) 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 GetEnvironmentAccountConnectionOutput) GoString() string { +func (s ListRepositoriesOutput) GoString() string { return s.String() } -// SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. -func (s *GetEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *GetEnvironmentAccountConnectionOutput { - s.EnvironmentAccountConnection = v +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput { + s.NextToken = &v return s } -type GetEnvironmentInput struct { +// SetRepositories sets the Repositories field's value. +func (s *ListRepositoriesOutput) SetRepositories(v []*RepositorySummary) *ListRepositoriesOutput { + s.Repositories = v + return s +} + +type ListRepositorySyncDefinitionsInput struct { _ struct{} `type:"structure"` - // The name of the environment that you want to get the detail data for. + // A token to indicate the location of the next repository sync definition in + // the array of repository sync definitions, after the list of repository sync + // definitions previously requested. + NextToken *string `locationName:"nextToken" type:"string"` + + // The repository name. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // RepositoryProvider is a required field + RepositoryProvider *string `locationName:"repositoryProvider" type:"string" required:"true" enum:"RepositoryProvider"` + + // The sync type. The only supported value is TEMPLATE_SYNC. + // + // SyncType is a required field + SyncType *string `locationName:"syncType" type:"string" required:"true" enum:"SyncType"` } // String returns the string representation. @@ -9259,7 +13945,7 @@ type GetEnvironmentInput 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 GetEnvironmentInput) String() string { +func (s ListRepositorySyncDefinitionsInput) String() string { return awsutil.Prettify(s) } @@ -9268,18 +13954,24 @@ func (s GetEnvironmentInput) 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 GetEnvironmentInput) GoString() string { +func (s ListRepositorySyncDefinitionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetEnvironmentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *ListRepositorySyncDefinitionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRepositorySyncDefinitionsInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.RepositoryProvider == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryProvider")) + } + if s.SyncType == nil { + invalidParams.Add(request.NewErrParamRequired("SyncType")) } if invalidParams.Len() > 0 { @@ -9288,19 +13980,42 @@ func (s *GetEnvironmentInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *GetEnvironmentInput) SetName(v string) *GetEnvironmentInput { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListRepositorySyncDefinitionsInput) SetNextToken(v string) *ListRepositorySyncDefinitionsInput { + s.NextToken = &v return s } -type GetEnvironmentOutput struct { +// SetRepositoryName sets the RepositoryName field's value. +func (s *ListRepositorySyncDefinitionsInput) SetRepositoryName(v string) *ListRepositorySyncDefinitionsInput { + s.RepositoryName = &v + return s +} + +// SetRepositoryProvider sets the RepositoryProvider field's value. +func (s *ListRepositorySyncDefinitionsInput) SetRepositoryProvider(v string) *ListRepositorySyncDefinitionsInput { + s.RepositoryProvider = &v + return s +} + +// SetSyncType sets the SyncType field's value. +func (s *ListRepositorySyncDefinitionsInput) SetSyncType(v string) *ListRepositorySyncDefinitionsInput { + s.SyncType = &v + return s +} + +type ListRepositorySyncDefinitionsOutput struct { _ struct{} `type:"structure"` - // The environment detail data that's returned by AWS Proton. + // A token to indicate the location of the next repository sync definition in + // the array of repository sync definitions, after the current requested list + // of repository sync definitions. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of repository sync definitions. // - // Environment is a required field - Environment *Environment `locationName:"environment" type:"structure" required:"true"` + // SyncDefinitions is a required field + SyncDefinitions []*RepositorySyncDefinition `locationName:"syncDefinitions" type:"list" required:"true"` } // String returns the string representation. @@ -9308,7 +14023,7 @@ type GetEnvironmentOutput 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 GetEnvironmentOutput) String() string { +func (s ListRepositorySyncDefinitionsOutput) String() string { return awsutil.Prettify(s) } @@ -9317,24 +14032,38 @@ func (s GetEnvironmentOutput) 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 GetEnvironmentOutput) GoString() string { +func (s ListRepositorySyncDefinitionsOutput) GoString() string { return s.String() } -// SetEnvironment sets the Environment field's value. -func (s *GetEnvironmentOutput) SetEnvironment(v *Environment) *GetEnvironmentOutput { - s.Environment = v +// SetNextToken sets the NextToken field's value. +func (s *ListRepositorySyncDefinitionsOutput) SetNextToken(v string) *ListRepositorySyncDefinitionsOutput { + s.NextToken = &v return s } -type GetEnvironmentTemplateInput struct { +// SetSyncDefinitions sets the SyncDefinitions field's value. +func (s *ListRepositorySyncDefinitionsOutput) SetSyncDefinitions(v []*RepositorySyncDefinition) *ListRepositorySyncDefinitionsOutput { + s.SyncDefinitions = v + return s +} + +type ListServiceInstanceOutputsInput struct { _ struct{} `type:"structure"` - // The name of the environment template that you want to get the detail data - // for. + // A token to indicate the location of the next output in the array of outputs, + // after the list of outputs that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` + + // The service instance name. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // ServiceInstanceName is a required field + ServiceInstanceName *string `locationName:"serviceInstanceName" min:"1" type:"string" required:"true"` + + // The service name. + // + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9342,7 +14071,7 @@ type GetEnvironmentTemplateInput 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 GetEnvironmentTemplateInput) String() string { +func (s ListServiceInstanceOutputsInput) String() string { return awsutil.Prettify(s) } @@ -9351,18 +14080,24 @@ func (s GetEnvironmentTemplateInput) 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 GetEnvironmentTemplateInput) GoString() string { +func (s ListServiceInstanceOutputsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetEnvironmentTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentTemplateInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *ListServiceInstanceOutputsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceInstanceOutputsInput"} + if s.ServiceInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceInstanceName")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.ServiceInstanceName != nil && len(*s.ServiceInstanceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceInstanceName", 1)) + } + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) } if invalidParams.Len() > 0 { @@ -9371,19 +14106,35 @@ func (s *GetEnvironmentTemplateInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *GetEnvironmentTemplateInput) SetName(v string) *GetEnvironmentTemplateInput { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceInstanceOutputsInput) SetNextToken(v string) *ListServiceInstanceOutputsInput { + s.NextToken = &v return s } -type GetEnvironmentTemplateOutput struct { +// SetServiceInstanceName sets the ServiceInstanceName field's value. +func (s *ListServiceInstanceOutputsInput) SetServiceInstanceName(v string) *ListServiceInstanceOutputsInput { + s.ServiceInstanceName = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ListServiceInstanceOutputsInput) SetServiceName(v string) *ListServiceInstanceOutputsInput { + s.ServiceName = &v + return s +} + +type ListServiceInstanceOutputsOutput struct { _ struct{} `type:"structure"` - // The environment template detail data that's returned by AWS Proton. - // - // EnvironmentTemplate is a required field - EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure" required:"true"` + // A token to indicate the location of the next output in the array of outputs, + // after the current requested list of outputs. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of service instance infrastructure as code outputs. + // + // Outputs is a required field + Outputs []*Output_ `locationName:"outputs" type:"list" required:"true"` } // String returns the string representation. @@ -9391,7 +14142,7 @@ type GetEnvironmentTemplateOutput 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 GetEnvironmentTemplateOutput) String() string { +func (s ListServiceInstanceOutputsOutput) String() string { return awsutil.Prettify(s) } @@ -9400,33 +14151,39 @@ func (s GetEnvironmentTemplateOutput) 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 GetEnvironmentTemplateOutput) GoString() string { +func (s ListServiceInstanceOutputsOutput) GoString() string { return s.String() } -// SetEnvironmentTemplate sets the EnvironmentTemplate field's value. -func (s *GetEnvironmentTemplateOutput) SetEnvironmentTemplate(v *EnvironmentTemplate) *GetEnvironmentTemplateOutput { - s.EnvironmentTemplate = v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceInstanceOutputsOutput) SetNextToken(v string) *ListServiceInstanceOutputsOutput { + s.NextToken = &v return s } -type GetEnvironmentTemplateVersionInput struct { +// SetOutputs sets the Outputs field's value. +func (s *ListServiceInstanceOutputsOutput) SetOutputs(v []*Output_) *ListServiceInstanceOutputsOutput { + s.Outputs = v + return s +} + +type ListServiceInstanceProvisionedResourcesInput struct { _ struct{} `type:"structure"` - // To view environment template major version detail data, include majorVersion. - // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + // A token to indicate the location of the next provisioned resource in the + // array of provisioned resources, after the list of provisioned resources that + // was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` - // To view environment template minor version detail data, include minorVersion. + // The service instance name. // - // MinorVersion is a required field - MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` + // ServiceInstanceName is a required field + ServiceInstanceName *string `locationName:"serviceInstanceName" min:"1" type:"string" required:"true"` - // The name of the environment template. + // The service name. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9434,7 +14191,7 @@ type GetEnvironmentTemplateVersionInput 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 GetEnvironmentTemplateVersionInput) String() string { +func (s ListServiceInstanceProvisionedResourcesInput) String() string { return awsutil.Prettify(s) } @@ -9443,30 +14200,24 @@ func (s GetEnvironmentTemplateVersionInput) 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 GetEnvironmentTemplateVersionInput) GoString() string { +func (s ListServiceInstanceProvisionedResourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetEnvironmentTemplateVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEnvironmentTemplateVersionInput"} - if s.MajorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MajorVersion")) - } - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } - if s.MinorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MinorVersion")) +func (s *ListServiceInstanceProvisionedResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceInstanceProvisionedResourcesInput"} + if s.ServiceInstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceInstanceName")) } - if s.MinorVersion != nil && len(*s.MinorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MinorVersion", 1)) + if s.ServiceInstanceName != nil && len(*s.ServiceInstanceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceInstanceName", 1)) } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) } if invalidParams.Len() > 0 { @@ -9475,31 +14226,36 @@ func (s *GetEnvironmentTemplateVersionInput) Validate() error { return nil } -// SetMajorVersion sets the MajorVersion field's value. -func (s *GetEnvironmentTemplateVersionInput) SetMajorVersion(v string) *GetEnvironmentTemplateVersionInput { - s.MajorVersion = &v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceInstanceProvisionedResourcesInput) SetNextToken(v string) *ListServiceInstanceProvisionedResourcesInput { + s.NextToken = &v return s } -// SetMinorVersion sets the MinorVersion field's value. -func (s *GetEnvironmentTemplateVersionInput) SetMinorVersion(v string) *GetEnvironmentTemplateVersionInput { - s.MinorVersion = &v +// SetServiceInstanceName sets the ServiceInstanceName field's value. +func (s *ListServiceInstanceProvisionedResourcesInput) SetServiceInstanceName(v string) *ListServiceInstanceProvisionedResourcesInput { + s.ServiceInstanceName = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *GetEnvironmentTemplateVersionInput) SetTemplateName(v string) *GetEnvironmentTemplateVersionInput { - s.TemplateName = &v +// SetServiceName sets the ServiceName field's value. +func (s *ListServiceInstanceProvisionedResourcesInput) SetServiceName(v string) *ListServiceInstanceProvisionedResourcesInput { + s.ServiceName = &v return s } -type GetEnvironmentTemplateVersionOutput struct { +type ListServiceInstanceProvisionedResourcesOutput struct { _ struct{} `type:"structure"` - // The environment template version detail data that's returned by AWS Proton. + // A token to indicate the location of the next provisioned resource in the + // array of provisioned resources, after the current requested list of provisioned + // resources. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of provisioned resources for a service instance. // - // EnvironmentTemplateVersion is a required field - EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure" required:"true"` + // ProvisionedResources is a required field + ProvisionedResources []*ProvisionedResource `locationName:"provisionedResources" type:"list" required:"true"` } // String returns the string representation. @@ -9507,7 +14263,7 @@ type GetEnvironmentTemplateVersionOutput 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 GetEnvironmentTemplateVersionOutput) String() string { +func (s ListServiceInstanceProvisionedResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -9516,23 +14272,34 @@ func (s GetEnvironmentTemplateVersionOutput) 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 GetEnvironmentTemplateVersionOutput) GoString() string { +func (s ListServiceInstanceProvisionedResourcesOutput) GoString() string { return s.String() } -// SetEnvironmentTemplateVersion sets the EnvironmentTemplateVersion field's value. -func (s *GetEnvironmentTemplateVersionOutput) SetEnvironmentTemplateVersion(v *EnvironmentTemplateVersion) *GetEnvironmentTemplateVersionOutput { - s.EnvironmentTemplateVersion = v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceInstanceProvisionedResourcesOutput) SetNextToken(v string) *ListServiceInstanceProvisionedResourcesOutput { + s.NextToken = &v return s } -type GetServiceInput struct { +// SetProvisionedResources sets the ProvisionedResources field's value. +func (s *ListServiceInstanceProvisionedResourcesOutput) SetProvisionedResources(v []*ProvisionedResource) *ListServiceInstanceProvisionedResourcesOutput { + s.ProvisionedResources = v + return s +} + +type ListServiceInstancesInput struct { _ struct{} `type:"structure"` - // The name of the service that you want to get the detail data for. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // The maximum number of service instances to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // A token to indicate the location of the next service in the array of service + // instances, after the list of service instances that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the service that the service instance belongs to. + ServiceName *string `locationName:"serviceName" min:"1" type:"string"` } // String returns the string representation. @@ -9540,7 +14307,7 @@ type GetServiceInput 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 GetServiceInput) String() string { +func (s ListServiceInstancesInput) String() string { return awsutil.Prettify(s) } @@ -9549,18 +14316,18 @@ func (s GetServiceInput) 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 GetServiceInput) GoString() string { +func (s ListServiceInstancesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetServiceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetServiceInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *ListServiceInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceInstancesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) } if invalidParams.Len() > 0 { @@ -9569,24 +14336,35 @@ func (s *GetServiceInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *GetServiceInput) SetName(v string) *GetServiceInput { - s.Name = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListServiceInstancesInput) SetMaxResults(v int64) *ListServiceInstancesInput { + s.MaxResults = &v return s } -type GetServiceInstanceInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListServiceInstancesInput) SetNextToken(v string) *ListServiceInstancesInput { + s.NextToken = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ListServiceInstancesInput) SetServiceName(v string) *ListServiceInstancesInput { + s.ServiceName = &v + return s +} + +type ListServiceInstancesOutput struct { _ struct{} `type:"structure"` - // The name of a service instance that you want to get the detail data for. - // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // A token to indicate the location of the next service instance in the array + // of service instances, after the current requested list of service instances. + NextToken *string `locationName:"nextToken" type:"string"` - // The name of the service that the service instance belongs to. + // An array of service instances with summaries of detail data. // - // ServiceName is a required field - ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` + // ServiceInstances is a required field + ServiceInstances []*ServiceInstanceSummary `locationName:"serviceInstances" type:"list" required:"true"` } // String returns the string representation. @@ -9594,7 +14372,7 @@ type GetServiceInstanceInput 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 GetServiceInstanceInput) String() string { +func (s ListServiceInstancesOutput) String() string { return awsutil.Prettify(s) } @@ -9603,51 +14381,33 @@ func (s GetServiceInstanceInput) 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 GetServiceInstanceInput) GoString() string { +func (s ListServiceInstancesOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetServiceInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetServiceInstanceInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.ServiceName == nil { - invalidParams.Add(request.NewErrParamRequired("ServiceName")) - } - if s.ServiceName != nil && len(*s.ServiceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetName sets the Name field's value. -func (s *GetServiceInstanceInput) SetName(v string) *GetServiceInstanceInput { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceInstancesOutput) SetNextToken(v string) *ListServiceInstancesOutput { + s.NextToken = &v return s } -// SetServiceName sets the ServiceName field's value. -func (s *GetServiceInstanceInput) SetServiceName(v string) *GetServiceInstanceInput { - s.ServiceName = &v +// SetServiceInstances sets the ServiceInstances field's value. +func (s *ListServiceInstancesOutput) SetServiceInstances(v []*ServiceInstanceSummary) *ListServiceInstancesOutput { + s.ServiceInstances = v return s } -type GetServiceInstanceOutput struct { +type ListServicePipelineOutputsInput struct { _ struct{} `type:"structure"` - // The service instance detail data that's returned by AWS Proton. + // A token to indicate the location of the next output in the array of outputs, + // after the list of outputs that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` + + // The service name. // - // ServiceInstance is a required field - ServiceInstance *ServiceInstance `locationName:"serviceInstance" type:"structure" required:"true"` + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9655,7 +14415,7 @@ type GetServiceInstanceOutput 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 GetServiceInstanceOutput) String() string { +func (s ListServicePipelineOutputsInput) String() string { return awsutil.Prettify(s) } @@ -9664,21 +14424,49 @@ func (s GetServiceInstanceOutput) 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 GetServiceInstanceOutput) GoString() string { +func (s ListServicePipelineOutputsInput) GoString() string { return s.String() } -// SetServiceInstance sets the ServiceInstance field's value. -func (s *GetServiceInstanceOutput) SetServiceInstance(v *ServiceInstance) *GetServiceInstanceOutput { - s.ServiceInstance = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServicePipelineOutputsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServicePipelineOutputsInput"} + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServicePipelineOutputsInput) SetNextToken(v string) *ListServicePipelineOutputsInput { + s.NextToken = &v return s } -type GetServiceOutput struct { +// SetServiceName sets the ServiceName field's value. +func (s *ListServicePipelineOutputsInput) SetServiceName(v string) *ListServicePipelineOutputsInput { + s.ServiceName = &v + return s +} + +type ListServicePipelineOutputsOutput struct { _ struct{} `type:"structure"` - // The service detail data that's returned by AWS Proton. - Service *Service `locationName:"service" type:"structure"` + // A token to indicate the location of the next output in the array of outputs, + // after the current requested list of outputs. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of outputs. + // + // Outputs is a required field + Outputs []*Output_ `locationName:"outputs" type:"list" required:"true"` } // String returns the string representation. @@ -9686,7 +14474,7 @@ type GetServiceOutput 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 GetServiceOutput) String() string { +func (s ListServicePipelineOutputsOutput) String() string { return awsutil.Prettify(s) } @@ -9695,23 +14483,34 @@ func (s GetServiceOutput) 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 GetServiceOutput) GoString() string { +func (s ListServicePipelineOutputsOutput) GoString() string { return s.String() } -// SetService sets the Service field's value. -func (s *GetServiceOutput) SetService(v *Service) *GetServiceOutput { - s.Service = v +// SetNextToken sets the NextToken field's value. +func (s *ListServicePipelineOutputsOutput) SetNextToken(v string) *ListServicePipelineOutputsOutput { + s.NextToken = &v return s } -type GetServiceTemplateInput struct { +// SetOutputs sets the Outputs field's value. +func (s *ListServicePipelineOutputsOutput) SetOutputs(v []*Output_) *ListServicePipelineOutputsOutput { + s.Outputs = v + return s +} + +type ListServicePipelineProvisionedResourcesInput struct { _ struct{} `type:"structure"` - // The name of the service template that you want to get detail data for. + // A token to indicate the location of the next provisioned resource in the + // array of provisioned resources, after the list of provisioned resources that + // was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` + + // The service name. // - // Name is a required field - Name *string `locationName:"name" min:"1" type:"string" required:"true"` + // ServiceName is a required field + ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9719,7 +14518,7 @@ type GetServiceTemplateInput 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 GetServiceTemplateInput) String() string { +func (s ListServicePipelineProvisionedResourcesInput) String() string { return awsutil.Prettify(s) } @@ -9728,18 +14527,18 @@ func (s GetServiceTemplateInput) 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 GetServiceTemplateInput) GoString() string { +func (s ListServicePipelineProvisionedResourcesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetServiceTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetServiceTemplateInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *ListServicePipelineProvisionedResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServicePipelineProvisionedResourcesInput"} + if s.ServiceName == nil { + invalidParams.Add(request.NewErrParamRequired("ServiceName")) + } + if s.ServiceName != nil && len(*s.ServiceName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) } if invalidParams.Len() > 0 { @@ -9748,19 +14547,30 @@ func (s *GetServiceTemplateInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *GetServiceTemplateInput) SetName(v string) *GetServiceTemplateInput { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListServicePipelineProvisionedResourcesInput) SetNextToken(v string) *ListServicePipelineProvisionedResourcesInput { + s.NextToken = &v return s } -type GetServiceTemplateOutput struct { +// SetServiceName sets the ServiceName field's value. +func (s *ListServicePipelineProvisionedResourcesInput) SetServiceName(v string) *ListServicePipelineProvisionedResourcesInput { + s.ServiceName = &v + return s +} + +type ListServicePipelineProvisionedResourcesOutput struct { _ struct{} `type:"structure"` - // The service template detail data that's returned by AWS Proton. + // A token to indicate the location of the next provisioned resource in the + // array of provisioned resources, after the current requested list of provisioned + // resources. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of provisioned resources for a service and pipeline. // - // ServiceTemplate is a required field - ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" type:"structure" required:"true"` + // ProvisionedResources is a required field + ProvisionedResources []*ProvisionedResource `locationName:"provisionedResources" type:"list" required:"true"` } // String returns the string representation. @@ -9768,7 +14578,7 @@ type GetServiceTemplateOutput 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 GetServiceTemplateOutput) String() string { +func (s ListServicePipelineProvisionedResourcesOutput) String() string { return awsutil.Prettify(s) } @@ -9777,28 +14587,38 @@ func (s GetServiceTemplateOutput) 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 GetServiceTemplateOutput) GoString() string { +func (s ListServicePipelineProvisionedResourcesOutput) GoString() string { return s.String() } -// SetServiceTemplate sets the ServiceTemplate field's value. -func (s *GetServiceTemplateOutput) SetServiceTemplate(v *ServiceTemplate) *GetServiceTemplateOutput { - s.ServiceTemplate = v +// SetNextToken sets the NextToken field's value. +func (s *ListServicePipelineProvisionedResourcesOutput) SetNextToken(v string) *ListServicePipelineProvisionedResourcesOutput { + s.NextToken = &v return s } -type GetServiceTemplateVersionInput struct { +// SetProvisionedResources sets the ProvisionedResources field's value. +func (s *ListServicePipelineProvisionedResourcesOutput) SetProvisionedResources(v []*ProvisionedResource) *ListServicePipelineProvisionedResourcesOutput { + s.ProvisionedResources = v + return s +} + +type ListServiceTemplateVersionsInput struct { _ struct{} `type:"structure"` - // To view service template major version detail data, include majorVersion. + // To view a list of minor of versions under a major version of a service template, + // include major Version. // - // MajorVersion is a required field - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` + // To view a list of major versions of a service template, exclude major Version. + MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` - // To view service template minor version detail data, include minorVersion. - // - // MinorVersion is a required field - MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` + // The maximum number of major or minor versions of a service template to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // A token to indicate the location of the next major or minor version in the + // array of major or minor versions of a service template, after the list of + // major or minor versions that was previously requested. + NextToken *string `locationName:"nextToken" type:"string"` // The name of the service template. // @@ -9811,7 +14631,7 @@ type GetServiceTemplateVersionInput 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 GetServiceTemplateVersionInput) String() string { +func (s ListServiceTemplateVersionsInput) String() string { return awsutil.Prettify(s) } @@ -9820,24 +14640,18 @@ func (s GetServiceTemplateVersionInput) 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 GetServiceTemplateVersionInput) GoString() string { +func (s ListServiceTemplateVersionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetServiceTemplateVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetServiceTemplateVersionInput"} - if s.MajorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MajorVersion")) - } +func (s *ListServiceTemplateVersionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceTemplateVersionsInput"} if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) } - if s.MinorVersion == nil { - invalidParams.Add(request.NewErrParamRequired("MinorVersion")) - } - if s.MinorVersion != nil && len(*s.MinorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MinorVersion", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if s.TemplateName == nil { invalidParams.Add(request.NewErrParamRequired("TemplateName")) @@ -9853,30 +14667,41 @@ func (s *GetServiceTemplateVersionInput) Validate() error { } // SetMajorVersion sets the MajorVersion field's value. -func (s *GetServiceTemplateVersionInput) SetMajorVersion(v string) *GetServiceTemplateVersionInput { +func (s *ListServiceTemplateVersionsInput) SetMajorVersion(v string) *ListServiceTemplateVersionsInput { s.MajorVersion = &v return s } -// SetMinorVersion sets the MinorVersion field's value. -func (s *GetServiceTemplateVersionInput) SetMinorVersion(v string) *GetServiceTemplateVersionInput { - s.MinorVersion = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListServiceTemplateVersionsInput) SetMaxResults(v int64) *ListServiceTemplateVersionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListServiceTemplateVersionsInput) SetNextToken(v string) *ListServiceTemplateVersionsInput { + s.NextToken = &v return s } // SetTemplateName sets the TemplateName field's value. -func (s *GetServiceTemplateVersionInput) SetTemplateName(v string) *GetServiceTemplateVersionInput { +func (s *ListServiceTemplateVersionsInput) SetTemplateName(v string) *ListServiceTemplateVersionsInput { s.TemplateName = &v return s } -type GetServiceTemplateVersionOutput struct { +type ListServiceTemplateVersionsOutput struct { _ struct{} `type:"structure"` - // The service template version detail data that's returned by AWS Proton. + // A token to indicate the location of the next major or minor version in the + // array of major or minor versions of a service template, after the current + // requested list of service major or minor versions. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of major or minor versions of a service template with detail data. // - // ServiceTemplateVersion is a required field - ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure" required:"true"` + // TemplateVersions is a required field + TemplateVersions []*ServiceTemplateVersionSummary `locationName:"templateVersions" type:"list" required:"true"` } // String returns the string representation. @@ -9884,7 +14709,7 @@ type GetServiceTemplateVersionOutput 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 GetServiceTemplateVersionOutput) String() string { +func (s ListServiceTemplateVersionsOutput) String() string { return awsutil.Prettify(s) } @@ -9893,25 +14718,31 @@ func (s GetServiceTemplateVersionOutput) 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 GetServiceTemplateVersionOutput) GoString() string { +func (s ListServiceTemplateVersionsOutput) GoString() string { return s.String() } -// SetServiceTemplateVersion sets the ServiceTemplateVersion field's value. -func (s *GetServiceTemplateVersionOutput) SetServiceTemplateVersion(v *ServiceTemplateVersion) *GetServiceTemplateVersionOutput { - s.ServiceTemplateVersion = v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceTemplateVersionsOutput) SetNextToken(v string) *ListServiceTemplateVersionsOutput { + s.NextToken = &v return s } -// The request failed to register with the service. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetTemplateVersions sets the TemplateVersions field's value. +func (s *ListServiceTemplateVersionsOutput) SetTemplateVersions(v []*ServiceTemplateVersionSummary) *ListServiceTemplateVersionsOutput { + s.TemplateVersions = v + return s +} - // Message_ is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by InternalServerException's - // String and GoString methods. - Message_ *string `locationName:"message" type:"string" sensitive:"true"` +type ListServiceTemplatesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of service templates to list. + MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + + // A token to indicate the location of the next service template in the array + // of service templates, after the list of service templates previously requested. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9919,7 +14750,7 @@ type InternalServerException 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 InternalServerException) String() string { +func (s ListServiceTemplatesInput) String() string { return awsutil.Prettify(s) } @@ -9928,70 +14759,87 @@ func (s InternalServerException) 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 InternalServerException) GoString() string { +func (s ListServiceTemplatesInput) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListServiceTemplatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServiceTemplatesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil } -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" +// SetMaxResults sets the MaxResults field's value. +func (s *ListServiceTemplatesInput) SetMaxResults(v int64) *ListServiceTemplatesInput { + s.MaxResults = &v + return s } -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetNextToken sets the NextToken field's value. +func (s *ListServiceTemplatesInput) SetNextToken(v string) *ListServiceTemplatesInput { + s.NextToken = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil +type ListServiceTemplatesOutput struct { + _ struct{} `type:"structure"` + + // A token to indicate the location of the next service template in the array + // of service templates, after the current requested list of service templates. + NextToken *string `locationName:"nextToken" type:"string"` + + // An array of service templates with detail data. + // + // Templates is a required field + Templates []*ServiceTemplateSummary `locationName:"templates" type:"list" required:"true"` } -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListServiceTemplatesOutput) String() string { + return awsutil.Prettify(s) } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListServiceTemplatesOutput) GoString() string { + return s.String() } -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListServiceTemplatesOutput) SetNextToken(v string) *ListServiceTemplatesOutput { + s.NextToken = &v + return s } -type ListEnvironmentAccountConnectionsInput struct { - _ struct{} `type:"structure"` +// SetTemplates sets the Templates field's value. +func (s *ListServiceTemplatesOutput) SetTemplates(v []*ServiceTemplateSummary) *ListServiceTemplatesOutput { + s.Templates = v + return s +} - // The environment name that's associated with each listed environment account - // connection. - EnvironmentName *string `locationName:"environmentName" min:"1" type:"string"` +type ListServicesInput struct { + _ struct{} `type:"structure"` - // The maximum number of environment account connections to list. + // The maximum number of services to list. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - // A token to indicate the location of the next environment account connection - // in the array of environment account connections, after the list of environment - // account connections that was previously requested. + // A token to indicate the location of the next service in the array of services, + // after the list of services that was previously requested. NextToken *string `locationName:"nextToken" type:"string"` - - // The type of account making the ListEnvironmentAccountConnections request. - // - // RequestedBy is a required field - RequestedBy *string `locationName:"requestedBy" type:"string" required:"true" enum:"EnvironmentAccountConnectionRequesterAccountType"` - - // The status details for each listed environment account connection. - Statuses []*string `locationName:"statuses" type:"list"` } // String returns the string representation. @@ -9999,7 +14847,7 @@ type ListEnvironmentAccountConnectionsInput 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 ListEnvironmentAccountConnectionsInput) String() string { +func (s ListServicesInput) String() string { return awsutil.Prettify(s) } @@ -10008,22 +14856,16 @@ func (s ListEnvironmentAccountConnectionsInput) 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 ListEnvironmentAccountConnectionsInput) GoString() string { +func (s ListServicesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListEnvironmentAccountConnectionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentAccountConnectionsInput"} - if s.EnvironmentName != nil && len(*s.EnvironmentName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EnvironmentName", 1)) - } +func (s *ListServicesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListServicesInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.RequestedBy == nil { - invalidParams.Add(request.NewErrParamRequired("RequestedBy")) - } if invalidParams.Len() > 0 { return invalidParams @@ -10031,49 +14873,29 @@ func (s *ListEnvironmentAccountConnectionsInput) Validate() error { return nil } -// SetEnvironmentName sets the EnvironmentName field's value. -func (s *ListEnvironmentAccountConnectionsInput) SetEnvironmentName(v string) *ListEnvironmentAccountConnectionsInput { - s.EnvironmentName = &v - return s -} - // SetMaxResults sets the MaxResults field's value. -func (s *ListEnvironmentAccountConnectionsInput) SetMaxResults(v int64) *ListEnvironmentAccountConnectionsInput { +func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { s.MaxResults = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentAccountConnectionsInput) SetNextToken(v string) *ListEnvironmentAccountConnectionsInput { - s.NextToken = &v - return s -} - -// SetRequestedBy sets the RequestedBy field's value. -func (s *ListEnvironmentAccountConnectionsInput) SetRequestedBy(v string) *ListEnvironmentAccountConnectionsInput { - s.RequestedBy = &v - return s -} - -// SetStatuses sets the Statuses field's value. -func (s *ListEnvironmentAccountConnectionsInput) SetStatuses(v []*string) *ListEnvironmentAccountConnectionsInput { - s.Statuses = v +// SetNextToken sets the NextToken field's value. +func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { + s.NextToken = &v return s } -type ListEnvironmentAccountConnectionsOutput struct { +type ListServicesOutput struct { _ struct{} `type:"structure"` - // An array of environment account connections with details that's returned - // by AWS Proton. - // - // EnvironmentAccountConnections is a required field - EnvironmentAccountConnections []*EnvironmentAccountConnectionSummary `locationName:"environmentAccountConnections" type:"list" required:"true"` - - // A token to indicate the location of the next environment account connection - // in the array of environment account connections, after the current requested - // list of environment account connections. + // A token to indicate the location of the next service in the array of services, + // after the current requested list of services. NextToken *string `locationName:"nextToken" type:"string"` + + // An array of services with summaries of detail data. + // + // Services is a required field + Services []*ServiceSummary `locationName:"services" type:"list" required:"true"` } // String returns the string representation. @@ -10081,7 +14903,7 @@ type ListEnvironmentAccountConnectionsOutput 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 ListEnvironmentAccountConnectionsOutput) String() string { +func (s ListServicesOutput) String() string { return awsutil.Prettify(s) } @@ -10090,44 +14912,36 @@ func (s ListEnvironmentAccountConnectionsOutput) 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 ListEnvironmentAccountConnectionsOutput) GoString() string { +func (s ListServicesOutput) GoString() string { return s.String() } -// SetEnvironmentAccountConnections sets the EnvironmentAccountConnections field's value. -func (s *ListEnvironmentAccountConnectionsOutput) SetEnvironmentAccountConnections(v []*EnvironmentAccountConnectionSummary) *ListEnvironmentAccountConnectionsOutput { - s.EnvironmentAccountConnections = v +// SetNextToken sets the NextToken field's value. +func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentAccountConnectionsOutput) SetNextToken(v string) *ListEnvironmentAccountConnectionsOutput { - s.NextToken = &v +// SetServices sets the Services field's value. +func (s *ListServicesOutput) SetServices(v []*ServiceSummary) *ListServicesOutput { + s.Services = v return s } -type ListEnvironmentTemplateVersionsInput struct { +type ListTagsForResourceInput struct { _ struct{} `type:"structure"` - // To view a list of minor of versions under a major version of an environment - // template, include majorVersion. - // - // To view a list of major versions of an environment template, exclude majorVersion. - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` - - // The maximum number of major or minor versions of an environment template - // to list. + // The maximum number of tags to list. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - // A token to indicate the location of the next major or minor version in the - // array of major or minor versions of an environment template, after the list - // of major or minor versions that was previously requested. + // A token to indicate the location of the next resource tag in the array of + // resource tags, after the list of resource tags that was previously requested. NextToken *string `locationName:"nextToken" type:"string"` - // The name of the environment template. + // The Amazon Resource Name (ARN) of the resource for the listed tags. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -10135,7 +14949,7 @@ type ListEnvironmentTemplateVersionsInput 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 ListEnvironmentTemplateVersionsInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -10144,24 +14958,21 @@ func (s ListEnvironmentTemplateVersionsInput) 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 ListEnvironmentTemplateVersionsInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListEnvironmentTemplateVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentTemplateVersionsInput"} - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { @@ -10170,42 +14981,35 @@ func (s *ListEnvironmentTemplateVersionsInput) Validate() error { return nil } -// SetMajorVersion sets the MajorVersion field's value. -func (s *ListEnvironmentTemplateVersionsInput) SetMajorVersion(v string) *ListEnvironmentTemplateVersionsInput { - s.MajorVersion = &v - return s -} - // SetMaxResults sets the MaxResults field's value. -func (s *ListEnvironmentTemplateVersionsInput) SetMaxResults(v int64) *ListEnvironmentTemplateVersionsInput { +func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentTemplateVersionsInput) SetNextToken(v string) *ListEnvironmentTemplateVersionsInput { +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { s.NextToken = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *ListEnvironmentTemplateVersionsInput) SetTemplateName(v string) *ListEnvironmentTemplateVersionsInput { - s.TemplateName = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v return s } -type ListEnvironmentTemplateVersionsOutput struct { +type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` - // A token to indicate the location of the next major or minor version in the - // array of major or minor versions of an environment template, after the list - // of major or minor versions that was previously requested. + // A token to indicate the location of the next resource tag in the array of + // resource tags, after the current requested list of resource tags. NextToken *string `locationName:"nextToken" type:"string"` - // An array of major or minor versions of an environment template detail data. + // An array of resource tags with detail data. // - // TemplateVersions is a required field - TemplateVersions []*EnvironmentTemplateVersionSummary `locationName:"templateVersions" type:"list" required:"true"` + // Tags is a required field + Tags []*Tag `locationName:"tags" type:"list" required:"true"` } // String returns the string representation. @@ -10213,7 +15017,7 @@ type ListEnvironmentTemplateVersionsOutput 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 ListEnvironmentTemplateVersionsOutput) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } @@ -10222,32 +15026,47 @@ func (s ListEnvironmentTemplateVersionsOutput) 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 ListEnvironmentTemplateVersionsOutput) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentTemplateVersionsOutput) SetNextToken(v string) *ListEnvironmentTemplateVersionsOutput { +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { s.NextToken = &v return s } -// SetTemplateVersions sets the TemplateVersions field's value. -func (s *ListEnvironmentTemplateVersionsOutput) SetTemplateVersions(v []*EnvironmentTemplateVersionSummary) *ListEnvironmentTemplateVersionsOutput { - s.TemplateVersions = v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v return s } -type ListEnvironmentTemplatesInput struct { +type NotifyResourceDeploymentStatusChangeInput struct { _ struct{} `type:"structure"` - // The maximum number of environment templates to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + // The deployment ID for your provisioned resource. + DeploymentId *string `locationName:"deploymentId" type:"string"` - // A token to indicate the location of the next environment template in the - // array of environment templates, after the list of environment templates that - // was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // The provisioned resource state change detail data that's returned by Proton. + Outputs []*Output_ `locationName:"outputs" type:"list"` + + // The provisioned resource Amazon Resource Name (ARN). + // + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // The status of your provisioned resource. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ResourceDeploymentStatus"` + + // The deployment status message for your provisioned resource. + // + // StatusMessage is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by NotifyResourceDeploymentStatusChangeInput's + // String and GoString methods. + StatusMessage *string `locationName:"statusMessage" type:"string" sensitive:"true"` } // String returns the string representation. @@ -10255,7 +15074,7 @@ type ListEnvironmentTemplatesInput 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 ListEnvironmentTemplatesInput) String() string { +func (s NotifyResourceDeploymentStatusChangeInput) String() string { return awsutil.Prettify(s) } @@ -10264,15 +15083,31 @@ func (s ListEnvironmentTemplatesInput) 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 ListEnvironmentTemplatesInput) GoString() string { +func (s NotifyResourceDeploymentStatusChangeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListEnvironmentTemplatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentTemplatesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *NotifyResourceDeploymentStatusChangeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotifyResourceDeploymentStatusChangeInput"} + 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.Status == nil { + invalidParams.Add(request.NewErrParamRequired("Status")) + } + if s.Outputs != nil { + for i, v := range s.Outputs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -10281,30 +15116,38 @@ func (s *ListEnvironmentTemplatesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListEnvironmentTemplatesInput) SetMaxResults(v int64) *ListEnvironmentTemplatesInput { - s.MaxResults = &v +// SetDeploymentId sets the DeploymentId field's value. +func (s *NotifyResourceDeploymentStatusChangeInput) SetDeploymentId(v string) *NotifyResourceDeploymentStatusChangeInput { + s.DeploymentId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentTemplatesInput) SetNextToken(v string) *ListEnvironmentTemplatesInput { - s.NextToken = &v +// SetOutputs sets the Outputs field's value. +func (s *NotifyResourceDeploymentStatusChangeInput) SetOutputs(v []*Output_) *NotifyResourceDeploymentStatusChangeInput { + s.Outputs = v return s } -type ListEnvironmentTemplatesOutput struct { - _ struct{} `type:"structure"` +// SetResourceArn sets the ResourceArn field's value. +func (s *NotifyResourceDeploymentStatusChangeInput) SetResourceArn(v string) *NotifyResourceDeploymentStatusChangeInput { + s.ResourceArn = &v + return s +} - // A token to indicate the location of the next environment template in the - // array of environment templates, after the current requested list of environment - // templates. - NextToken *string `locationName:"nextToken" type:"string"` +// SetStatus sets the Status field's value. +func (s *NotifyResourceDeploymentStatusChangeInput) SetStatus(v string) *NotifyResourceDeploymentStatusChangeInput { + s.Status = &v + return s +} - // An array of environment templates with detail data. - // - // Templates is a required field - Templates []*EnvironmentTemplateSummary `locationName:"templates" type:"list" required:"true"` +// SetStatusMessage sets the StatusMessage field's value. +func (s *NotifyResourceDeploymentStatusChangeInput) SetStatusMessage(v string) *NotifyResourceDeploymentStatusChangeInput { + s.StatusMessage = &v + return s +} + +type NotifyResourceDeploymentStatusChangeOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -10312,7 +15155,7 @@ type ListEnvironmentTemplatesOutput 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 ListEnvironmentTemplatesOutput) String() string { +func (s NotifyResourceDeploymentStatusChangeOutput) String() string { return awsutil.Prettify(s) } @@ -10321,34 +15164,19 @@ func (s ListEnvironmentTemplatesOutput) 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 ListEnvironmentTemplatesOutput) GoString() string { +func (s NotifyResourceDeploymentStatusChangeOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentTemplatesOutput) SetNextToken(v string) *ListEnvironmentTemplatesOutput { - s.NextToken = &v - return s -} - -// SetTemplates sets the Templates field's value. -func (s *ListEnvironmentTemplatesOutput) SetTemplates(v []*EnvironmentTemplateSummary) *ListEnvironmentTemplatesOutput { - s.Templates = v - return s -} - -type ListEnvironmentsInput struct { - _ struct{} `type:"structure"` - - // An array of the versions of the environment template. - EnvironmentTemplates []*EnvironmentTemplateFilter `locationName:"environmentTemplates" type:"list"` +// An infrastructure as code defined resource output. +type Output_ struct { + _ struct{} `type:"structure" sensitive:"true"` - // The maximum number of environments to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + // The output key. + Key *string `locationName:"key" min:"1" type:"string"` - // A token to indicate the location of the next environment in the array of - // environments, after the list of environments that was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // The output value. + ValueString *string `locationName:"valueString" min:"1" type:"string"` } // String returns the string representation. @@ -10356,7 +15184,7 @@ type ListEnvironmentsInput 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 ListEnvironmentsInput) String() string { +func (s Output_) String() string { return awsutil.Prettify(s) } @@ -10365,25 +15193,18 @@ func (s ListEnvironmentsInput) 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 ListEnvironmentsInput) GoString() string { +func (s Output_) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListEnvironmentsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListEnvironmentsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *Output_) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Output_"} + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } - if s.EnvironmentTemplates != nil { - for i, v := range s.EnvironmentTemplates { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EnvironmentTemplates", i), err.(request.ErrInvalidParams)) - } - } + if s.ValueString != nil && len(*s.ValueString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ValueString", 1)) } if invalidParams.Len() > 0 { @@ -10392,35 +15213,35 @@ func (s *ListEnvironmentsInput) Validate() error { return nil } -// SetEnvironmentTemplates sets the EnvironmentTemplates field's value. -func (s *ListEnvironmentsInput) SetEnvironmentTemplates(v []*EnvironmentTemplateFilter) *ListEnvironmentsInput { - s.EnvironmentTemplates = v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListEnvironmentsInput) SetMaxResults(v int64) *ListEnvironmentsInput { - s.MaxResults = &v +// SetKey sets the Key field's value. +func (s *Output_) SetKey(v string) *Output_ { + s.Key = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentsInput) SetNextToken(v string) *ListEnvironmentsInput { - s.NextToken = &v +// SetValueString sets the ValueString field's value. +func (s *Output_) SetValueString(v string) *Output_ { + s.ValueString = &v return s } -type ListEnvironmentsOutput struct { +// Detail data for a provisioned resource. +type ProvisionedResource struct { _ struct{} `type:"structure"` - // An array of environment detail data summaries. - // - // Environments is a required field - Environments []*EnvironmentSummary `locationName:"environments" type:"list" required:"true"` + // The provisioned resource identifier. + Identifier *string `locationName:"identifier" min:"1" type:"string"` - // A token to indicate the location of the next environment in the array of - // environments, after the current requested list of environments. - NextToken *string `locationName:"nextToken" type:"string"` + // The provisioned resource name. + Name *string `locationName:"name" min:"1" type:"string"` + + // The resource provisioning engine. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + ProvisioningEngine *string `locationName:"provisioningEngine" type:"string" enum:"ProvisionedResourceEngine"` } // String returns the string representation. @@ -10428,7 +15249,7 @@ type ListEnvironmentsOutput 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 ListEnvironmentsOutput) String() string { +func (s ProvisionedResource) String() string { return awsutil.Prettify(s) } @@ -10437,34 +15258,35 @@ func (s ListEnvironmentsOutput) 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 ListEnvironmentsOutput) GoString() string { +func (s ProvisionedResource) GoString() string { return s.String() } -// SetEnvironments sets the Environments field's value. -func (s *ListEnvironmentsOutput) SetEnvironments(v []*EnvironmentSummary) *ListEnvironmentsOutput { - s.Environments = v +// SetIdentifier sets the Identifier field's value. +func (s *ProvisionedResource) SetIdentifier(v string) *ProvisionedResource { + s.Identifier = &v + return s +} + +// SetName sets the Name field's value. +func (s *ProvisionedResource) SetName(v string) *ProvisionedResource { + s.Name = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListEnvironmentsOutput) SetNextToken(v string) *ListEnvironmentsOutput { - s.NextToken = &v +// SetProvisioningEngine sets the ProvisioningEngine field's value. +func (s *ProvisionedResource) SetProvisioningEngine(v string) *ProvisionedResource { + s.ProvisioningEngine = &v return s } -type ListServiceInstancesInput struct { +type RejectEnvironmentAccountConnectionInput struct { _ struct{} `type:"structure"` - // The maximum number of service instances to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` - - // A token to indicate the location of the next service in the array of service - // instances, after the list of service instances that was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` - - // The name of the service that the service instance belongs to. - ServiceName *string `locationName:"serviceName" min:"1" type:"string"` + // The ID of the environment account connection to reject. + // + // Id is a required field + Id *string `locationName:"id" type:"string" required:"true"` } // String returns the string representation. @@ -10472,7 +15294,7 @@ type ListServiceInstancesInput 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 ListServiceInstancesInput) String() string { +func (s RejectEnvironmentAccountConnectionInput) String() string { return awsutil.Prettify(s) } @@ -10481,18 +15303,15 @@ func (s ListServiceInstancesInput) 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 ListServiceInstancesInput) GoString() string { +func (s RejectEnvironmentAccountConnectionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListServiceInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListServiceInstancesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.ServiceName != nil && len(*s.ServiceName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ServiceName", 1)) +func (s *RejectEnvironmentAccountConnectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RejectEnvironmentAccountConnectionInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } if invalidParams.Len() > 0 { @@ -10501,35 +15320,19 @@ func (s *ListServiceInstancesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListServiceInstancesInput) SetMaxResults(v int64) *ListServiceInstancesInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListServiceInstancesInput) SetNextToken(v string) *ListServiceInstancesInput { - s.NextToken = &v - return s -} - -// SetServiceName sets the ServiceName field's value. -func (s *ListServiceInstancesInput) SetServiceName(v string) *ListServiceInstancesInput { - s.ServiceName = &v +// SetId sets the Id field's value. +func (s *RejectEnvironmentAccountConnectionInput) SetId(v string) *RejectEnvironmentAccountConnectionInput { + s.Id = &v return s } -type ListServiceInstancesOutput struct { +type RejectEnvironmentAccountConnectionOutput struct { _ struct{} `type:"structure"` - // A token to indicate the location of the next service instance in the array - // of service instances, after the current requested list of service instances. - NextToken *string `locationName:"nextToken" type:"string"` - - // An array of service instances with summaries of detail data. + // The environment connection account detail data that's returned by Proton. // - // ServiceInstances is a required field - ServiceInstances []*ServiceInstanceSummary `locationName:"serviceInstances" type:"list" required:"true"` + // EnvironmentAccountConnection is a required field + EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` } // String returns the string representation. @@ -10537,7 +15340,7 @@ type ListServiceInstancesOutput 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 ListServiceInstancesOutput) String() string { +func (s RejectEnvironmentAccountConnectionOutput) String() string { return awsutil.Prettify(s) } @@ -10546,43 +15349,43 @@ func (s ListServiceInstancesOutput) 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 ListServiceInstancesOutput) GoString() string { +func (s RejectEnvironmentAccountConnectionOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListServiceInstancesOutput) SetNextToken(v string) *ListServiceInstancesOutput { - s.NextToken = &v - return s -} - -// SetServiceInstances sets the ServiceInstances field's value. -func (s *ListServiceInstancesOutput) SetServiceInstances(v []*ServiceInstanceSummary) *ListServiceInstancesOutput { - s.ServiceInstances = v +// SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. +func (s *RejectEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *RejectEnvironmentAccountConnectionOutput { + s.EnvironmentAccountConnection = v return s } -type ListServiceTemplateVersionsInput struct { +// Detail date for a repository that has been registered with Proton. +type Repository struct { _ struct{} `type:"structure"` - // To view a list of minor of versions under a major version of a service template, - // include majorVersion. + // The repository Amazon Resource Name (ARN). // - // To view a list of major versions of a service template, exclude majorVersion. - MajorVersion *string `locationName:"majorVersion" min:"1" type:"string"` + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // The maximum number of major or minor versions of a service template to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + // The repository Amazon Web Services CodeStar connection that connects Proton + // to your repository. + // + // ConnectionArn is a required field + ConnectionArn *string `locationName:"connectionArn" min:"1" type:"string" required:"true"` - // A token to indicate the location of the next major or minor version in the - // array of major or minor versions of a service template, after the list of - // major or minor versions that was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // Your customer Amazon Web Services KMS encryption key. + EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"` - // The name of the service template. + // The repository name. // - // TemplateName is a required field - TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` } // String returns the string representation. @@ -10590,7 +15393,7 @@ type ListServiceTemplateVersionsInput 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 ListServiceTemplateVersionsInput) String() string { +func (s Repository) String() string { return awsutil.Prettify(s) } @@ -10599,68 +15402,68 @@ func (s ListServiceTemplateVersionsInput) 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 ListServiceTemplateVersionsInput) GoString() string { +func (s Repository) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListServiceTemplateVersionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListServiceTemplateVersionsInput"} - if s.MajorVersion != nil && len(*s.MajorVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MajorVersion", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.TemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("TemplateName")) - } - if s.TemplateName != nil && len(*s.TemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetArn sets the Arn field's value. +func (s *Repository) SetArn(v string) *Repository { + s.Arn = &v + return s } -// SetMajorVersion sets the MajorVersion field's value. -func (s *ListServiceTemplateVersionsInput) SetMajorVersion(v string) *ListServiceTemplateVersionsInput { - s.MajorVersion = &v +// SetConnectionArn sets the ConnectionArn field's value. +func (s *Repository) SetConnectionArn(v string) *Repository { + s.ConnectionArn = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListServiceTemplateVersionsInput) SetMaxResults(v int64) *ListServiceTemplateVersionsInput { - s.MaxResults = &v +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *Repository) SetEncryptionKey(v string) *Repository { + s.EncryptionKey = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListServiceTemplateVersionsInput) SetNextToken(v string) *ListServiceTemplateVersionsInput { - s.NextToken = &v +// SetName sets the Name field's value. +func (s *Repository) SetName(v string) *Repository { + s.Name = &v return s } -// SetTemplateName sets the TemplateName field's value. -func (s *ListServiceTemplateVersionsInput) SetTemplateName(v string) *ListServiceTemplateVersionsInput { - s.TemplateName = &v +// SetProvider sets the Provider field's value. +func (s *Repository) SetProvider(v string) *Repository { + s.Provider = &v return s } -type ListServiceTemplateVersionsOutput struct { +// Detail data for a repository branch. +// +// Provisioning by pull request is currently in feature preview and is only +// usable with Terraform based Proton Templates. To learn more about Amazon +// Web Services Feature Preview terms (https://aws.amazon.com/service-terms), +// see section 2 on Beta and Previews. +type RepositoryBranch struct { _ struct{} `type:"structure"` - // A token to indicate the location of the next major or minor version in the - // array of major or minor versions of a service template, after the list of - // major or minor versions that was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // The Amazon Resource Name (ARN) of the repository branch. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // An array of major or minor versions of a service template with detail data. + // The repository branch. // - // TemplateVersions is a required field - TemplateVersions []*ServiceTemplateVersionSummary `locationName:"templateVersions" type:"list" required:"true"` + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` + + // The repository name. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` } // String returns the string representation. @@ -10668,7 +15471,7 @@ type ListServiceTemplateVersionsOutput 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 ListServiceTemplateVersionsOutput) String() string { +func (s RepositoryBranch) String() string { return awsutil.Prettify(s) } @@ -10677,31 +15480,57 @@ func (s ListServiceTemplateVersionsOutput) 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 ListServiceTemplateVersionsOutput) GoString() string { +func (s RepositoryBranch) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListServiceTemplateVersionsOutput) SetNextToken(v string) *ListServiceTemplateVersionsOutput { - s.NextToken = &v +// SetArn sets the Arn field's value. +func (s *RepositoryBranch) SetArn(v string) *RepositoryBranch { + s.Arn = &v return s } -// SetTemplateVersions sets the TemplateVersions field's value. -func (s *ListServiceTemplateVersionsOutput) SetTemplateVersions(v []*ServiceTemplateVersionSummary) *ListServiceTemplateVersionsOutput { - s.TemplateVersions = v +// SetBranch sets the Branch field's value. +func (s *RepositoryBranch) SetBranch(v string) *RepositoryBranch { + s.Branch = &v return s } -type ListServiceTemplatesInput struct { +// SetName sets the Name field's value. +func (s *RepositoryBranch) SetName(v string) *RepositoryBranch { + s.Name = &v + return s +} + +// SetProvider sets the Provider field's value. +func (s *RepositoryBranch) SetProvider(v string) *RepositoryBranch { + s.Provider = &v + return s +} + +// Detail input data for a repository branch. +// +// Provisioning by pull request is currently in feature preview and is only +// usable with Terraform based Proton Templates. To learn more about Amazon +// Web Services Feature Preview terms (https://aws.amazon.com/service-terms), +// see section 2 on Beta and Previews. +type RepositoryBranchInput_ struct { _ struct{} `type:"structure"` - // The maximum number of service templates to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + // The repository branch. + // + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` - // A token to indicate the location of the next service template in the array - // of service templates, after the list of service templates previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // The repository name. + // + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` } // String returns the string representation. @@ -10709,7 +15538,7 @@ type ListServiceTemplatesInput 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 ListServiceTemplatesInput) String() string { +func (s RepositoryBranchInput_) String() string { return awsutil.Prettify(s) } @@ -10718,15 +15547,27 @@ func (s ListServiceTemplatesInput) 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 ListServiceTemplatesInput) GoString() string { +func (s RepositoryBranchInput_) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListServiceTemplatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListServiceTemplatesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *RepositoryBranchInput_) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RepositoryBranchInput_"} + if s.Branch == nil { + invalidParams.Add(request.NewErrParamRequired("Branch")) + } + if s.Branch != nil && len(*s.Branch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Provider == nil { + invalidParams.Add(request.NewErrParamRequired("Provider")) } if invalidParams.Len() > 0 { @@ -10735,29 +15576,42 @@ func (s *ListServiceTemplatesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListServiceTemplatesInput) SetMaxResults(v int64) *ListServiceTemplatesInput { - s.MaxResults = &v +// SetBranch sets the Branch field's value. +func (s *RepositoryBranchInput_) SetBranch(v string) *RepositoryBranchInput_ { + s.Branch = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListServiceTemplatesInput) SetNextToken(v string) *ListServiceTemplatesInput { - s.NextToken = &v +// SetName sets the Name field's value. +func (s *RepositoryBranchInput_) SetName(v string) *RepositoryBranchInput_ { + s.Name = &v return s } -type ListServiceTemplatesOutput struct { +// SetProvider sets the Provider field's value. +func (s *RepositoryBranchInput_) SetProvider(v string) *RepositoryBranchInput_ { + s.Provider = &v + return s +} + +// A summary of detail data for a registered repository. +type RepositorySummary struct { _ struct{} `type:"structure"` - // A token to indicate the location of the next service template in the array - // of service templates, after the current requested list of service templates. - NextToken *string `locationName:"nextToken" type:"string"` + // The Amazon Resource Name (ARN) for a repository. + // + // Arn is a required field + Arn *string `locationName:"arn" type:"string" required:"true"` - // An array of service templates with detail data. + // The repository name. // - // Templates is a required field - Templates []*ServiceTemplateSummary `locationName:"templates" type:"list" required:"true"` + // Name is a required field + Name *string `locationName:"name" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // Provider is a required field + Provider *string `locationName:"provider" type:"string" required:"true" enum:"RepositoryProvider"` } // String returns the string representation. @@ -10765,7 +15619,7 @@ type ListServiceTemplatesOutput 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 ListServiceTemplatesOutput) String() string { +func (s RepositorySummary) String() string { return awsutil.Prettify(s) } @@ -10774,31 +15628,46 @@ func (s ListServiceTemplatesOutput) 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 ListServiceTemplatesOutput) GoString() string { +func (s RepositorySummary) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListServiceTemplatesOutput) SetNextToken(v string) *ListServiceTemplatesOutput { - s.NextToken = &v +// SetArn sets the Arn field's value. +func (s *RepositorySummary) SetArn(v string) *RepositorySummary { + s.Arn = &v return s } -// SetTemplates sets the Templates field's value. -func (s *ListServiceTemplatesOutput) SetTemplates(v []*ServiceTemplateSummary) *ListServiceTemplatesOutput { - s.Templates = v +// SetName sets the Name field's value. +func (s *RepositorySummary) SetName(v string) *RepositorySummary { + s.Name = &v return s } -type ListServicesInput struct { +// SetProvider sets the Provider field's value. +func (s *RepositorySummary) SetProvider(v string) *RepositorySummary { + s.Provider = &v + return s +} + +// Detail data for a repository sync attempt activated by a push to a repository. +type RepositorySyncAttempt struct { _ struct{} `type:"structure"` - // The maximum number of services to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + // Detail data for sync attempt events. + // + // Events is a required field + Events []*RepositorySyncEvent `locationName:"events" type:"list" required:"true"` - // A token to indicate the location of the next service in the array of services, - // after the list of services that was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // The time when the sync attempt started. + // + // StartedAt is a required field + StartedAt *time.Time `locationName:"startedAt" type:"timestamp" required:"true"` + + // The sync attempt status. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"RepositorySyncStatus"` } // String returns the string representation. @@ -10806,7 +15675,7 @@ type ListServicesInput 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 ListServicesInput) String() string { +func (s RepositorySyncAttempt) String() string { return awsutil.Prettify(s) } @@ -10815,46 +15684,51 @@ func (s ListServicesInput) 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 ListServicesInput) GoString() string { +func (s RepositorySyncAttempt) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListServicesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListServicesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetEvents sets the Events field's value. +func (s *RepositorySyncAttempt) SetEvents(v []*RepositorySyncEvent) *RepositorySyncAttempt { + s.Events = v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { - s.MaxResults = &v +// SetStartedAt sets the StartedAt field's value. +func (s *RepositorySyncAttempt) SetStartedAt(v time.Time) *RepositorySyncAttempt { + s.StartedAt = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { - s.NextToken = &v +// SetStatus sets the Status field's value. +func (s *RepositorySyncAttempt) SetStatus(v string) *RepositorySyncAttempt { + s.Status = &v return s } -type ListServicesOutput struct { +// The repository sync definition. +type RepositorySyncDefinition struct { _ struct{} `type:"structure"` - // A token to indicate the location of the next service in the array of services, - // after the current requested list of services. - NextToken *string `locationName:"nextToken" type:"string"` + // The repository branch. + // + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` - // An array of services with summaries of detail data. + // The directory in the repository. // - // Services is a required field - Services []*ServiceSummary `locationName:"services" type:"list" required:"true"` + // Directory is a required field + Directory *string `locationName:"directory" type:"string" required:"true"` + + // The resource that is synced from. + // + // Parent is a required field + Parent *string `locationName:"parent" type:"string" required:"true"` + + // The resource that is synced to. + // + // Target is a required field + Target *string `locationName:"target" type:"string" required:"true"` } // String returns the string representation. @@ -10862,7 +15736,7 @@ type ListServicesOutput 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 ListServicesOutput) String() string { +func (s RepositorySyncDefinition) String() string { return awsutil.Prettify(s) } @@ -10871,36 +15745,55 @@ func (s ListServicesOutput) 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 ListServicesOutput) GoString() string { +func (s RepositorySyncDefinition) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { - s.NextToken = &v +// SetBranch sets the Branch field's value. +func (s *RepositorySyncDefinition) SetBranch(v string) *RepositorySyncDefinition { + s.Branch = &v return s } -// SetServices sets the Services field's value. -func (s *ListServicesOutput) SetServices(v []*ServiceSummary) *ListServicesOutput { - s.Services = v +// SetDirectory sets the Directory field's value. +func (s *RepositorySyncDefinition) SetDirectory(v string) *RepositorySyncDefinition { + s.Directory = &v return s } -type ListTagsForResourceInput struct { +// SetParent sets the Parent field's value. +func (s *RepositorySyncDefinition) SetParent(v string) *RepositorySyncDefinition { + s.Parent = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *RepositorySyncDefinition) SetTarget(v string) *RepositorySyncDefinition { + s.Target = &v + return s +} + +// Repository sync event detail data for a sync attempt. +type RepositorySyncEvent struct { _ struct{} `type:"structure"` - // The maximum number of tags to list. - MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` + // Event detail for a repository sync attempt. + // + // Event is a required field + Event *string `locationName:"event" type:"string" required:"true"` - // A token to indicate the location of the next resource tag in the array of - // resource tags, after the list of resource tags that was previously requested. - NextToken *string `locationName:"nextToken" type:"string"` + // The external ID of the sync event. + ExternalId *string `locationName:"externalId" type:"string"` - // The Amazon Resource Name (ARN) of the resource for the listed tags. + // The time that the sync event occurred. // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` + // Time is a required field + Time *time.Time `locationName:"time" type:"timestamp" required:"true"` + + // The type of event. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` } // String returns the string representation. @@ -10908,7 +15801,7 @@ type ListTagsForResourceInput 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 ListTagsForResourceInput) String() string { +func (s RepositorySyncEvent) String() string { return awsutil.Prettify(s) } @@ -10917,58 +15810,43 @@ func (s ListTagsForResourceInput) 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 ListTagsForResourceInput) GoString() string { +func (s RepositorySyncEvent) 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.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - 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 +// SetEvent sets the Event field's value. +func (s *RepositorySyncEvent) SetEvent(v string) *RepositorySyncEvent { + s.Event = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput { - s.MaxResults = &v +// SetExternalId sets the ExternalId field's value. +func (s *RepositorySyncEvent) SetExternalId(v string) *RepositorySyncEvent { + s.ExternalId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { - s.NextToken = &v +// SetTime sets the Time field's value. +func (s *RepositorySyncEvent) SetTime(v time.Time) *RepositorySyncEvent { + s.Time = &v return s } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v +// SetType sets the Type field's value. +func (s *RepositorySyncEvent) SetType(v string) *RepositorySyncEvent { + s.Type = &v return s } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A token to indicate the location of the next resource tag in the array of - // resource tags, after the current requested list of resource tags. - NextToken *string `locationName:"nextToken" type:"string"` +// The requested resource wasn't found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // An array of resource tags with detail data. - // - // Tags is a required field - Tags []*Tag `locationName:"tags" type:"list" required:"true"` + // Message_ is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ResourceNotFoundException's + // String and GoString methods. + Message_ *string `locationName:"message" type:"string" sensitive:"true"` } // String returns the string representation. @@ -10976,7 +15854,7 @@ type ListTagsForResourceOutput 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 ListTagsForResourceOutput) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } @@ -10985,29 +15863,81 @@ func (s ListTagsForResourceOutput) 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 ListTagsForResourceOutput) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { - s.NextToken = &v - return s +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v - return s +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" } -type RejectEnvironmentAccountConnectionInput struct { +// 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", s.Code(), s.Message()) +} + +// 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 +} + +// Detail data for a resource sync attempt activated by a push to a repository. +type ResourceSyncAttempt struct { _ struct{} `type:"structure"` - // The ID of the environment account connection to reject. + // An array of events with detail data. // - // Id is a required field - Id *string `locationName:"id" type:"string" required:"true"` + // Events is a required field + Events []*ResourceSyncEvent `locationName:"events" type:"list" required:"true"` + + // Detail data for the initial repository commit, path and push. + // + // InitialRevision is a required field + InitialRevision *Revision `locationName:"initialRevision" type:"structure" required:"true"` + + // The time when the sync attempt started. + // + // StartedAt is a required field + StartedAt *time.Time `locationName:"startedAt" type:"timestamp" required:"true"` + + // The status of the sync attempt. + // + // Status is a required field + Status *string `locationName:"status" type:"string" required:"true" enum:"ResourceSyncStatus"` + + // The resource that is synced to. + // + // Target is a required field + Target *string `locationName:"target" type:"string" required:"true"` + + // Detail data for the target revision. + // + // TargetRevision is a required field + TargetRevision *Revision `locationName:"targetRevision" type:"structure" required:"true"` } // String returns the string representation. @@ -11015,7 +15945,7 @@ type RejectEnvironmentAccountConnectionInput 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 RejectEnvironmentAccountConnectionInput) String() string { +func (s ResourceSyncAttempt) String() string { return awsutil.Prettify(s) } @@ -11024,36 +15954,67 @@ func (s RejectEnvironmentAccountConnectionInput) 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 RejectEnvironmentAccountConnectionInput) GoString() string { +func (s ResourceSyncAttempt) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RejectEnvironmentAccountConnectionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RejectEnvironmentAccountConnectionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } +// SetEvents sets the Events field's value. +func (s *ResourceSyncAttempt) SetEvents(v []*ResourceSyncEvent) *ResourceSyncAttempt { + s.Events = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetInitialRevision sets the InitialRevision field's value. +func (s *ResourceSyncAttempt) SetInitialRevision(v *Revision) *ResourceSyncAttempt { + s.InitialRevision = v + return s } -// SetId sets the Id field's value. -func (s *RejectEnvironmentAccountConnectionInput) SetId(v string) *RejectEnvironmentAccountConnectionInput { - s.Id = &v +// SetStartedAt sets the StartedAt field's value. +func (s *ResourceSyncAttempt) SetStartedAt(v time.Time) *ResourceSyncAttempt { + s.StartedAt = &v return s } -type RejectEnvironmentAccountConnectionOutput struct { +// SetStatus sets the Status field's value. +func (s *ResourceSyncAttempt) SetStatus(v string) *ResourceSyncAttempt { + s.Status = &v + return s +} + +// SetTarget sets the Target field's value. +func (s *ResourceSyncAttempt) SetTarget(v string) *ResourceSyncAttempt { + s.Target = &v + return s +} + +// SetTargetRevision sets the TargetRevision field's value. +func (s *ResourceSyncAttempt) SetTargetRevision(v *Revision) *ResourceSyncAttempt { + s.TargetRevision = v + return s +} + +// Detail data for a resource sync event. +type ResourceSyncEvent struct { _ struct{} `type:"structure"` - // The environment connection account detail data that's returned by AWS Proton. + // A resource sync event. // - // EnvironmentAccountConnection is a required field - EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` + // Event is a required field + Event *string `locationName:"event" type:"string" required:"true"` + + // The external ID for the event. + ExternalId *string `locationName:"externalId" type:"string"` + + // The time when the event occurred. + // + // Time is a required field + Time *time.Time `locationName:"time" type:"timestamp" required:"true"` + + // The type of event. + // + // Type is a required field + Type *string `locationName:"type" type:"string" required:"true"` } // String returns the string representation. @@ -11061,7 +16022,7 @@ type RejectEnvironmentAccountConnectionOutput 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 RejectEnvironmentAccountConnectionOutput) String() string { +func (s ResourceSyncEvent) String() string { return awsutil.Prettify(s) } @@ -11070,25 +16031,63 @@ func (s RejectEnvironmentAccountConnectionOutput) 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 RejectEnvironmentAccountConnectionOutput) GoString() string { +func (s ResourceSyncEvent) GoString() string { return s.String() } -// SetEnvironmentAccountConnection sets the EnvironmentAccountConnection field's value. -func (s *RejectEnvironmentAccountConnectionOutput) SetEnvironmentAccountConnection(v *EnvironmentAccountConnection) *RejectEnvironmentAccountConnectionOutput { - s.EnvironmentAccountConnection = v +// SetEvent sets the Event field's value. +func (s *ResourceSyncEvent) SetEvent(v string) *ResourceSyncEvent { + s.Event = &v return s } -// The requested resource wasn't found. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetExternalId sets the ExternalId field's value. +func (s *ResourceSyncEvent) SetExternalId(v string) *ResourceSyncEvent { + s.ExternalId = &v + return s +} - // Message_ is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ResourceNotFoundException's - // String and GoString methods. - Message_ *string `locationName:"message" type:"string" sensitive:"true"` +// SetTime sets the Time field's value. +func (s *ResourceSyncEvent) SetTime(v time.Time) *ResourceSyncEvent { + s.Time = &v + return s +} + +// SetType sets the Type field's value. +func (s *ResourceSyncEvent) SetType(v string) *ResourceSyncEvent { + s.Type = &v + return s +} + +// Revision detail data for a commit and push that activates a sync attempt +type Revision struct { + _ struct{} `type:"structure"` + + // The repository branch. + // + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` + + // The repository directory changed by a commit and push that activated the + // sync attempt. + // + // Directory is a required field + Directory *string `locationName:"directory" type:"string" required:"true"` + + // The repository name. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // RepositoryProvider is a required field + RepositoryProvider *string `locationName:"repositoryProvider" type:"string" required:"true" enum:"RepositoryProvider"` + + // The secure hash algorithm (SHA) hash for the revision. + // + // Sha is a required field + Sha *string `locationName:"sha" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -11096,55 +16095,47 @@ type ResourceNotFoundException 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 ResourceNotFoundException) String() string { +func (s Revision) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API 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" +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Revision) GoString() string { + return s.String() } -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetBranch sets the Branch field's value. +func (s *Revision) SetBranch(v string) *Revision { + s.Branch = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil +// SetDirectory sets the Directory field's value. +func (s *Revision) SetDirectory(v string) *Revision { + s.Directory = &v + return s } -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetRepositoryName sets the RepositoryName field's value. +func (s *Revision) SetRepositoryName(v string) *Revision { + s.RepositoryName = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetRepositoryProvider sets the RepositoryProvider field's value. +func (s *Revision) SetRepositoryProvider(v string) *Revision { + s.RepositoryProvider = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetSha sets the Sha field's value. +func (s *Revision) SetSha(v string) *Revision { + s.Sha = &v + return s } // Template bundle S3 bucket data. @@ -11224,7 +16215,7 @@ type Service struct { Arn *string `locationName:"arn" type:"string" required:"true"` // The name of the code repository branch that holds the code that's deployed - // in AWS Proton. + // in Proton. BranchName *string `locationName:"branchName" min:"1" type:"string"` // The time when the service was created. @@ -11254,11 +16245,11 @@ type Service struct { // The Amazon Resource Name (ARN) of the repository connection. For more information, // see Set up a repository connection (https://docs.aws.amazon.com/proton/latest/adminguide/setting-up-for-service.html#setting-up-vcontrol) - // in the AWS Proton Administrator Guide and Setting up with AWS Proton (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) - // in the AWS Proton User Guide. + // in the Proton Administrator Guide and Setting up with Proton (https://docs.aws.amazon.com/proton/latest/userguide/proton-setup.html#setup-repo-connection) + // in the Proton User Guide. RepositoryConnectionArn *string `locationName:"repositoryConnectionArn" min:"1" type:"string"` - // The ID of the code repository. + // The ID of the source code repository. RepositoryId *string `locationName:"repositoryId" min:"1" type:"string"` // The formatted specification that defines the service. @@ -11442,14 +16433,14 @@ type ServiceInstance struct { // String and GoString methods. Spec *string `locationName:"spec" min:"1" type:"string" sensitive:"true"` - // The ID of the major version of the service template that was used to create - // the service instance. + // The major version of the service template that was used to create the service + // instance. // // TemplateMajorVersion is a required field TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` - // The ID of the minor version of the service template that was used to create - // the service instance. + // The minor version of the service template that was used to create the service + // instance. // // TemplateMinorVersion is a required field TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` @@ -11607,12 +16598,12 @@ type ServiceInstanceSummary struct { // ServiceName is a required field ServiceName *string `locationName:"serviceName" min:"1" type:"string" required:"true"` - // The ID of the major version of a service template. + // The service instance template major version. // // TemplateMajorVersion is a required field TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` - // The ID of the minor version of a service template. + // The service instance template minor version. // // TemplateMinorVersion is a required field TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` @@ -11756,14 +16747,14 @@ type ServicePipeline struct { // String and GoString methods. Spec *string `locationName:"spec" min:"1" type:"string" sensitive:"true"` - // The ID of the major version of the service template that was used to create - // the service pipeline. + // The major version of the service template that was used to create the service + // pipeline. // // TemplateMajorVersion is a required field TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string" required:"true"` - // The ID of the minor version of the service template that was used to create - // the service pipeline. + // The minor version of the service template that was used to create the service + // pipeline. // // TemplateMinorVersion is a required field TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string" required:"true"` @@ -11852,8 +16843,8 @@ func (s *ServicePipeline) SetTemplateName(v string) *ServicePipeline { return s } -// A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) -// in the AWS Proton Administrator Guide. +// A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) +// in the Proton Administrator Guide. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -12081,7 +17072,7 @@ type ServiceTemplate struct { // template. Otherwise, a service pipeline isn't included in the service template. PipelineProvisioning *string `locationName:"pipelineProvisioning" type:"string" enum:"Provisioning"` - // The ID of the recommended version of the service template. + // The recommended version of the service template. RecommendedVersion *string `locationName:"recommendedVersion" min:"1" type:"string"` } @@ -12199,7 +17190,7 @@ type ServiceTemplateSummary struct { // template, otherwise a service pipeline isn't included in the service template. PipelineProvisioning *string `locationName:"pipelineProvisioning" type:"string" enum:"Provisioning"` - // The ID of the recommended version of the service template. + // The recommended version of the service template. RecommendedVersion *string `locationName:"recommendedVersion" min:"1" type:"string"` } @@ -12301,18 +17292,18 @@ type ServiceTemplateVersion struct { // LastModifiedAt is a required field LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - // The ID of the latest major version that's associated with the version of - // a service template. + // The latest major version that's associated with the version of a service + // template. // // MajorVersion is a required field MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - // The ID of the minor version of a service template. + // The minor version of a service template. // // MinorVersion is a required field MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` - // The ID of the recommended minor version of the service template. + // The recommended minor version of the service template. RecommendedMinorVersion *string `locationName:"recommendedMinorVersion" min:"1" type:"string"` // The schema of the version of a service template. @@ -12456,18 +17447,18 @@ type ServiceTemplateVersionSummary struct { // LastModifiedAt is a required field LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` - // The ID of the latest major version that's associated with the version of - // a service template. + // The latest major version that's associated with the version of a service + // template. // // MajorVersion is a required field MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` - // The ID of the minor version of a service template. + // The minor version of a service template. // // MinorVersion is a required field MinorVersion *string `locationName:"minorVersion" min:"1" type:"string" required:"true"` - // The ID of the recommended minor version of the service template. + // The recommended minor version of the service template. RecommendedMinorVersion *string `locationName:"recommendedMinorVersion" min:"1" type:"string"` // The service template minor version status. @@ -12726,6 +17717,93 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The detail data for a template sync configuration. +type TemplateSyncConfig struct { + _ struct{} `type:"structure"` + + // The repository branch. + // + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` + + // The name of the repository, for example myrepos/myrepo. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // RepositoryProvider is a required field + RepositoryProvider *string `locationName:"repositoryProvider" type:"string" required:"true" enum:"RepositoryProvider"` + + // A subdirectory path to your template bundle version. + Subdirectory *string `locationName:"subdirectory" min:"1" type:"string"` + + // The template name. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + + // The template type. + // + // TemplateType is a required field + TemplateType *string `locationName:"templateType" type:"string" required:"true" enum:"TemplateType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TemplateSyncConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TemplateSyncConfig) GoString() string { + return s.String() +} + +// SetBranch sets the Branch field's value. +func (s *TemplateSyncConfig) SetBranch(v string) *TemplateSyncConfig { + s.Branch = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *TemplateSyncConfig) SetRepositoryName(v string) *TemplateSyncConfig { + s.RepositoryName = &v + return s +} + +// SetRepositoryProvider sets the RepositoryProvider field's value. +func (s *TemplateSyncConfig) SetRepositoryProvider(v string) *TemplateSyncConfig { + s.RepositoryProvider = &v + return s +} + +// SetSubdirectory sets the Subdirectory field's value. +func (s *TemplateSyncConfig) SetSubdirectory(v string) *TemplateSyncConfig { + s.Subdirectory = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *TemplateSyncConfig) SetTemplateName(v string) *TemplateSyncConfig { + s.TemplateName = &v + return s +} + +// SetTemplateType sets the TemplateType field's value. +func (s *TemplateSyncConfig) SetTemplateType(v string) *TemplateSyncConfig { + s.TemplateType = &v + return s +} + // Template version source data. type TemplateVersionSourceInput struct { _ struct{} `type:"structure"` @@ -12931,8 +18009,21 @@ func (s UntagResourceOutput) GoString() string { type UpdateAccountSettingsInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the AWS Proton pipeline service role. - PipelineServiceRoleArn *string `locationName:"pipelineServiceRoleArn" min:"1" type:"string"` + // The repository that you provide with pull request provisioning. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + PipelineProvisioningRepository *RepositoryBranchInput_ `locationName:"pipelineProvisioningRepository" type:"structure"` + + // The Amazon Resource Name (ARN) of the Proton pipeline service role. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + PipelineServiceRoleArn *string `locationName:"pipelineServiceRoleArn" type:"string"` } // String returns the string representation. @@ -12956,8 +18047,10 @@ func (s UpdateAccountSettingsInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateAccountSettingsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateAccountSettingsInput"} - if s.PipelineServiceRoleArn != nil && len(*s.PipelineServiceRoleArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PipelineServiceRoleArn", 1)) + if s.PipelineProvisioningRepository != nil { + if err := s.PipelineProvisioningRepository.Validate(); err != nil { + invalidParams.AddNested("PipelineProvisioningRepository", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -12966,6 +18059,12 @@ func (s *UpdateAccountSettingsInput) Validate() error { return nil } +// SetPipelineProvisioningRepository sets the PipelineProvisioningRepository field's value. +func (s *UpdateAccountSettingsInput) SetPipelineProvisioningRepository(v *RepositoryBranchInput_) *UpdateAccountSettingsInput { + s.PipelineProvisioningRepository = v + return s +} + // SetPipelineServiceRoleArn sets the PipelineServiceRoleArn field's value. func (s *UpdateAccountSettingsInput) SetPipelineServiceRoleArn(v string) *UpdateAccountSettingsInput { s.PipelineServiceRoleArn = &v @@ -12975,7 +18074,8 @@ func (s *UpdateAccountSettingsInput) SetPipelineServiceRoleArn(v string) *Update type UpdateAccountSettingsOutput struct { _ struct{} `type:"structure"` - // The AWS Proton pipeline service role detail data that's returned by AWS Proton. + // The Proton pipeline service role repository detail data that's returned by + // Proton. // // AccountSettings is a required field AccountSettings *AccountSettings `locationName:"accountSettings" type:"structure" required:"true"` @@ -13072,7 +18172,7 @@ func (s *UpdateEnvironmentAccountConnectionInput) SetRoleArn(v string) *UpdateEn type UpdateEnvironmentAccountConnectionOutput struct { _ struct{} `type:"structure"` - // The environment account connection detail data that's returned by AWS Proton. + // The environment account connection detail data that's returned by Proton. // // EnvironmentAccountConnection is a required field EnvironmentAccountConnection *EnvironmentAccountConnection `locationName:"environmentAccountConnection" type:"structure" required:"true"` @@ -13155,10 +18255,18 @@ type UpdateEnvironmentInput struct { // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` - // The Amazon Resource Name (ARN) of the AWS Proton service role that allows - // AWS Proton to make API calls to other services your behalf. + // The Amazon Resource Name (ARN) of the Proton service role that allows Proton + // to make API calls to other services your behalf. ProtonServiceRoleArn *string `locationName:"protonServiceRoleArn" min:"1" type:"string"` + // The repository that you provide with pull request provisioning. + // + // Provisioning by pull request is currently in feature preview and is only + // usable with Terraform based Proton Templates. To learn more about Amazon + // Web Services Feature Preview terms (https://aws.amazon.com/service-terms), + // see section 2 on Beta and Previews. + ProvisioningRepository *RepositoryBranchInput_ `locationName:"provisioningRepository" type:"structure"` + // The formatted specification that defines the update. // // Spec is a sensitive parameter and its value will be @@ -13166,10 +18274,10 @@ type UpdateEnvironmentInput struct { // String and GoString methods. Spec *string `locationName:"spec" min:"1" type:"string" sensitive:"true"` - // The ID of the major version of the environment to update. + // The major version of the environment to update. TemplateMajorVersion *string `locationName:"templateMajorVersion" min:"1" type:"string"` - // The ID of the minor version of the environment to update. + // The minor version of the environment to update. TemplateMinorVersion *string `locationName:"templateMinorVersion" min:"1" type:"string"` } @@ -13215,6 +18323,11 @@ func (s *UpdateEnvironmentInput) Validate() error { if s.TemplateMinorVersion != nil && len(*s.TemplateMinorVersion) < 1 { invalidParams.Add(request.NewErrParamMinLen("TemplateMinorVersion", 1)) } + if s.ProvisioningRepository != nil { + if err := s.ProvisioningRepository.Validate(); err != nil { + invalidParams.AddNested("ProvisioningRepository", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -13252,6 +18365,12 @@ func (s *UpdateEnvironmentInput) SetProtonServiceRoleArn(v string) *UpdateEnviro return s } +// SetProvisioningRepository sets the ProvisioningRepository field's value. +func (s *UpdateEnvironmentInput) SetProvisioningRepository(v *RepositoryBranchInput_) *UpdateEnvironmentInput { + s.ProvisioningRepository = v + return s +} + // SetSpec sets the Spec field's value. func (s *UpdateEnvironmentInput) SetSpec(v string) *UpdateEnvironmentInput { s.Spec = &v @@ -13273,7 +18392,7 @@ func (s *UpdateEnvironmentInput) SetTemplateMinorVersion(v string) *UpdateEnviro type UpdateEnvironmentOutput struct { _ struct{} `type:"structure"` - // The environment detail data that's returned by AWS Proton. + // The environment detail data that's returned by Proton. // // Environment is a required field Environment *Environment `locationName:"environment" type:"structure" required:"true"` @@ -13385,7 +18504,7 @@ func (s *UpdateEnvironmentTemplateInput) SetName(v string) *UpdateEnvironmentTem type UpdateEnvironmentTemplateOutput struct { _ struct{} `type:"structure"` - // The environment template detail data that's returned by AWS Proton. + // The environment template detail data that's returned by Proton. // // EnvironmentTemplate is a required field EnvironmentTemplate *EnvironmentTemplate `locationName:"environmentTemplate" type:"structure" required:"true"` @@ -13425,7 +18544,7 @@ type UpdateEnvironmentTemplateVersionInput struct { // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // To update a major version of an environment template, include majorVersion. + // To update a major version of an environment template, include major Version. // // MajorVersion is a required field MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` @@ -13523,7 +18642,7 @@ func (s *UpdateEnvironmentTemplateVersionInput) SetTemplateName(v string) *Updat type UpdateEnvironmentTemplateVersionOutput struct { _ struct{} `type:"structure"` - // The environment template version detail data that's returned by AWS Proton. + // The environment template version detail data that's returned by Proton. // // EnvironmentTemplateVersion is a required field EnvironmentTemplateVersion *EnvironmentTemplateVersion `locationName:"environmentTemplateVersion" type:"structure" required:"true"` @@ -13571,8 +18690,8 @@ type UpdateServiceInput struct { // Lists the service instances to add and the existing service instances to // remain. Omit the existing service instances to delete from the list. Don't // include edits to the existing service instances or pipeline. For more information, - // see Edit a service in the AWS Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-update.html) - // or the AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-update.html). + // see Edit a service in the Proton Administrator Guide (https://docs.aws.amazon.com/proton/latest/adminguide/ag-svc-update.html) + // or the Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/ug-svc-update.html). // // Spec is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by UpdateServiceInput's @@ -13786,7 +18905,7 @@ func (s *UpdateServiceInstanceInput) SetTemplateMinorVersion(v string) *UpdateSe type UpdateServiceInstanceOutput struct { _ struct{} `type:"structure"` - // The service instance summary data returned by AWS Proton. + // The service instance summary data returned by Proton. // // ServiceInstance is a required field ServiceInstance *ServiceInstance `locationName:"serviceInstance" type:"structure" required:"true"` @@ -13819,7 +18938,7 @@ func (s *UpdateServiceInstanceOutput) SetServiceInstance(v *ServiceInstance) *Up type UpdateServiceOutput struct { _ struct{} `type:"structure"` - // The service detail data that's returned by AWS Proton. + // The service detail data that's returned by Proton. // // Service is a required field Service *Service `locationName:"service" type:"structure" required:"true"` @@ -13990,7 +19109,7 @@ func (s *UpdateServicePipelineInput) SetTemplateMinorVersion(v string) *UpdateSe type UpdateServicePipelineOutput struct { _ struct{} `type:"structure"` - // The pipeline details returned by AWS Proton. + // The pipeline details returned by Proton. // // Pipeline is a required field Pipeline *ServicePipeline `locationName:"pipeline" type:"structure" required:"true"` @@ -14102,7 +19221,7 @@ func (s *UpdateServiceTemplateInput) SetName(v string) *UpdateServiceTemplateInp type UpdateServiceTemplateOutput struct { _ struct{} `type:"structure"` - // The service template detail data that's returned by AWS Proton. + // The service template detail data that's returned by Proton. // // ServiceTemplate is a required field ServiceTemplate *ServiceTemplate `locationName:"serviceTemplate" type:"structure" required:"true"` @@ -14146,7 +19265,7 @@ type UpdateServiceTemplateVersionInput struct { // String and GoString methods. Description *string `locationName:"description" type:"string" sensitive:"true"` - // To update a major version of a service template, include majorVersion. + // To update a major version of a service template, include major Version. // // MajorVersion is a required field MajorVersion *string `locationName:"majorVersion" min:"1" type:"string" required:"true"` @@ -14263,7 +19382,7 @@ func (s *UpdateServiceTemplateVersionInput) SetTemplateName(v string) *UpdateSer type UpdateServiceTemplateVersionOutput struct { _ struct{} `type:"structure"` - // The service template version detail data that's returned by AWS Proton. + // The service template version detail data that's returned by Proton. // // ServiceTemplateVersion is a required field ServiceTemplateVersion *ServiceTemplateVersion `locationName:"serviceTemplateVersion" type:"structure" required:"true"` @@ -14293,6 +19412,161 @@ func (s *UpdateServiceTemplateVersionOutput) SetServiceTemplateVersion(v *Servic return s } +type UpdateTemplateSyncConfigInput struct { + _ struct{} `type:"structure"` + + // The repository branch. + // + // Branch is a required field + Branch *string `locationName:"branch" min:"1" type:"string" required:"true"` + + // The name of the repository, for example myrepos/myrepo. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The repository provider. + // + // RepositoryProvider is a required field + RepositoryProvider *string `locationName:"repositoryProvider" type:"string" required:"true" enum:"RepositoryProvider"` + + // A subdirectory path to your template bundle version. When included, limits + // the template bundle search to this repository directory. + Subdirectory *string `locationName:"subdirectory" min:"1" type:"string"` + + // The synced template name. + // + // TemplateName is a required field + TemplateName *string `locationName:"templateName" min:"1" type:"string" required:"true"` + + // The synced template type. + // + // TemplateType is a required field + TemplateType *string `locationName:"templateType" type:"string" required:"true" enum:"TemplateType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateTemplateSyncConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateTemplateSyncConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateTemplateSyncConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateTemplateSyncConfigInput"} + if s.Branch == nil { + invalidParams.Add(request.NewErrParamRequired("Branch")) + } + if s.Branch != nil && len(*s.Branch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Branch", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.RepositoryProvider == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryProvider")) + } + if s.Subdirectory != nil && len(*s.Subdirectory) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subdirectory", 1)) + } + if s.TemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateName")) + } + if s.TemplateName != nil && len(*s.TemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TemplateName", 1)) + } + if s.TemplateType == nil { + invalidParams.Add(request.NewErrParamRequired("TemplateType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranch sets the Branch field's value. +func (s *UpdateTemplateSyncConfigInput) SetBranch(v string) *UpdateTemplateSyncConfigInput { + s.Branch = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *UpdateTemplateSyncConfigInput) SetRepositoryName(v string) *UpdateTemplateSyncConfigInput { + s.RepositoryName = &v + return s +} + +// SetRepositoryProvider sets the RepositoryProvider field's value. +func (s *UpdateTemplateSyncConfigInput) SetRepositoryProvider(v string) *UpdateTemplateSyncConfigInput { + s.RepositoryProvider = &v + return s +} + +// SetSubdirectory sets the Subdirectory field's value. +func (s *UpdateTemplateSyncConfigInput) SetSubdirectory(v string) *UpdateTemplateSyncConfigInput { + s.Subdirectory = &v + return s +} + +// SetTemplateName sets the TemplateName field's value. +func (s *UpdateTemplateSyncConfigInput) SetTemplateName(v string) *UpdateTemplateSyncConfigInput { + s.TemplateName = &v + return s +} + +// SetTemplateType sets the TemplateType field's value. +func (s *UpdateTemplateSyncConfigInput) SetTemplateType(v string) *UpdateTemplateSyncConfigInput { + s.TemplateType = &v + return s +} + +type UpdateTemplateSyncConfigOutput struct { + _ struct{} `type:"structure"` + + // The template sync configuration detail data that's returned by Proton. + TemplateSyncConfig *TemplateSyncConfig `locationName:"templateSyncConfig" 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 UpdateTemplateSyncConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateTemplateSyncConfigOutput) GoString() string { + return s.String() +} + +// SetTemplateSyncConfig sets the TemplateSyncConfig field's value. +func (s *UpdateTemplateSyncConfigOutput) SetTemplateSyncConfig(v *TemplateSyncConfig) *UpdateTemplateSyncConfigOutput { + s.TemplateSyncConfig = v + return s +} + // The input is invalid or an out-of-range value was supplied for the input // parameter. type ValidationException struct { @@ -14461,6 +19735,23 @@ func EnvironmentAccountConnectionStatus_Values() []string { } } +// List of provisioning engines +const ( + // ProvisionedResourceEngineCloudformation is a ProvisionedResourceEngine enum value + ProvisionedResourceEngineCloudformation = "CLOUDFORMATION" + + // ProvisionedResourceEngineTerraform is a ProvisionedResourceEngine enum value + ProvisionedResourceEngineTerraform = "TERRAFORM" +) + +// ProvisionedResourceEngine_Values returns all elements of the ProvisionedResourceEngine enum +func ProvisionedResourceEngine_Values() []string { + return []string{ + ProvisionedResourceEngineCloudformation, + ProvisionedResourceEngineTerraform, + } +} + const ( // ProvisioningCustomerManaged is a Provisioning enum value ProvisioningCustomerManaged = "CUSTOMER_MANAGED" @@ -14473,6 +19764,99 @@ func Provisioning_Values() []string { } } +const ( + // RepositoryProviderGithub is a RepositoryProvider enum value + RepositoryProviderGithub = "GITHUB" + + // RepositoryProviderGithubEnterprise is a RepositoryProvider enum value + RepositoryProviderGithubEnterprise = "GITHUB_ENTERPRISE" + + // RepositoryProviderBitbucket is a RepositoryProvider enum value + RepositoryProviderBitbucket = "BITBUCKET" +) + +// RepositoryProvider_Values returns all elements of the RepositoryProvider enum +func RepositoryProvider_Values() []string { + return []string{ + RepositoryProviderGithub, + RepositoryProviderGithubEnterprise, + RepositoryProviderBitbucket, + } +} + +const ( + // RepositorySyncStatusInitiated is a RepositorySyncStatus enum value + RepositorySyncStatusInitiated = "INITIATED" + + // RepositorySyncStatusInProgress is a RepositorySyncStatus enum value + RepositorySyncStatusInProgress = "IN_PROGRESS" + + // RepositorySyncStatusSucceeded is a RepositorySyncStatus enum value + RepositorySyncStatusSucceeded = "SUCCEEDED" + + // RepositorySyncStatusFailed is a RepositorySyncStatus enum value + RepositorySyncStatusFailed = "FAILED" + + // RepositorySyncStatusQueued is a RepositorySyncStatus enum value + RepositorySyncStatusQueued = "QUEUED" +) + +// RepositorySyncStatus_Values returns all elements of the RepositorySyncStatus enum +func RepositorySyncStatus_Values() []string { + return []string{ + RepositorySyncStatusInitiated, + RepositorySyncStatusInProgress, + RepositorySyncStatusSucceeded, + RepositorySyncStatusFailed, + RepositorySyncStatusQueued, + } +} + +// The state that a PR-based deployment can be updated to. +const ( + // ResourceDeploymentStatusInProgress is a ResourceDeploymentStatus enum value + ResourceDeploymentStatusInProgress = "IN_PROGRESS" + + // ResourceDeploymentStatusFailed is a ResourceDeploymentStatus enum value + ResourceDeploymentStatusFailed = "FAILED" + + // ResourceDeploymentStatusSucceeded is a ResourceDeploymentStatus enum value + ResourceDeploymentStatusSucceeded = "SUCCEEDED" +) + +// ResourceDeploymentStatus_Values returns all elements of the ResourceDeploymentStatus enum +func ResourceDeploymentStatus_Values() []string { + return []string{ + ResourceDeploymentStatusInProgress, + ResourceDeploymentStatusFailed, + ResourceDeploymentStatusSucceeded, + } +} + +const ( + // ResourceSyncStatusInitiated is a ResourceSyncStatus enum value + ResourceSyncStatusInitiated = "INITIATED" + + // ResourceSyncStatusInProgress is a ResourceSyncStatus enum value + ResourceSyncStatusInProgress = "IN_PROGRESS" + + // ResourceSyncStatusSucceeded is a ResourceSyncStatus enum value + ResourceSyncStatusSucceeded = "SUCCEEDED" + + // ResourceSyncStatusFailed is a ResourceSyncStatus enum value + ResourceSyncStatusFailed = "FAILED" +) + +// ResourceSyncStatus_Values returns all elements of the ResourceSyncStatus enum +func ResourceSyncStatus_Values() []string { + return []string{ + ResourceSyncStatusInitiated, + ResourceSyncStatusInProgress, + ResourceSyncStatusSucceeded, + ResourceSyncStatusFailed, + } +} + const ( // ServiceStatusCreateInProgress is a ServiceStatus enum value ServiceStatusCreateInProgress = "CREATE_IN_PROGRESS" @@ -14537,6 +19921,34 @@ func ServiceStatus_Values() []string { } } +const ( + // SyncTypeTemplateSync is a SyncType enum value + SyncTypeTemplateSync = "TEMPLATE_SYNC" +) + +// SyncType_Values returns all elements of the SyncType enum +func SyncType_Values() []string { + return []string{ + SyncTypeTemplateSync, + } +} + +const ( + // TemplateTypeEnvironment is a TemplateType enum value + TemplateTypeEnvironment = "ENVIRONMENT" + + // TemplateTypeService is a TemplateType enum value + TemplateTypeService = "SERVICE" +) + +// TemplateType_Values returns all elements of the TemplateType enum +func TemplateType_Values() []string { + return []string{ + TemplateTypeEnvironment, + TemplateTypeService, + } +} + const ( // TemplateVersionStatusRegistrationInProgress is a TemplateVersionStatus enum value TemplateVersionStatusRegistrationInProgress = "REGISTRATION_IN_PROGRESS" diff --git a/service/proton/doc.go b/service/proton/doc.go index f7c6ac03c9..20bd300e95 100644 --- a/service/proton/doc.go +++ b/service/proton/doc.go @@ -3,36 +3,37 @@ // Package proton provides the client and types for making API // requests to AWS Proton. // -// This is the AWS Proton Service API Reference. It provides descriptions, syntax +// This is the Proton Service API Reference. It provides descriptions, syntax // and usage examples for each of the actions (https://docs.aws.amazon.com/proton/latest/APIReference/API_Operations.html) // and data types (https://docs.aws.amazon.com/proton/latest/APIReference/API_Types.html) -// for the AWS Proton service. +// for the Proton service. // // The documentation for each action shows the Query API request parameters // and the XML response. // -// Alternatively, you can use the AWS CLI to access an API. For more information, -// see the AWS Command Line Interface User Guide (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html). +// Alternatively, you can use the Amazon Web Services CLI to access an API. +// For more information, see the Amazon Web Services Command Line Interface +// User Guide (https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html). // -// The AWS Proton service is a two-pronged automation framework. Administrators +// The Proton service is a two-pronged automation framework. Administrators // create service templates to provide standardized infrastructure and deployment // tooling for serverless and container based applications. Developers, in turn, // select from the available service templates to automate their application // or service deployments. // -// Because administrators define the infrastructure and tooling that AWS Proton +// Because administrators define the infrastructure and tooling that Proton // deploys and manages, they need permissions to use all of the listed API operations. // -// When developers select a specific infrastructure and tooling set, AWS Proton +// When developers select a specific infrastructure and tooling set, Proton // deploys their applications. To monitor their applications that are running -// on AWS Proton, developers need permissions to the service create, list, update +// on Proton, developers need permissions to the service create, list, update // and delete API operations and the service instance list and update API operations. // -// To learn more about AWS Proton administration, see the AWS Proton Administrator -// Guide (https://docs.aws.amazon.com/proton/latest/adminguide/Welcome.html). +// To learn more about Proton administration, see the Proton Administrator Guide +// (https://docs.aws.amazon.com/proton/latest/adminguide/Welcome.html). // // To learn more about deploying serverless and containerized applications on -// AWS Proton, see the AWS Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/Welcome.html). +// Proton, see the Proton User Guide (https://docs.aws.amazon.com/proton/latest/userguide/Welcome.html). // // Ensuring Idempotency // @@ -58,13 +59,13 @@ // Idempotent create APIs with a client token // // The API actions in this list support idempotency with the use of a client -// token. The corresponding AWS CLI commands also support idempotency using -// a client token. A client token is a unique, case-sensitive string of up to -// 64 ASCII characters. To make an idempotent API request using one of these -// actions, specify a client token in the request. We recommend that you don't -// reuse the same client token for other API requests. If you don’t provide -// a client token for these APIs, a default client token is automatically provided -// by SDKs. +// token. The corresponding Amazon Web Services CLI commands also support idempotency +// using a client token. A client token is a unique, case-sensitive string of +// up to 64 ASCII characters. To make an idempotent API request using one of +// these actions, specify a client token in the request. We recommend that you +// don't reuse the same client token for other API requests. If you don’t +// provide a client token for these APIs, a default client token is automatically +// provided by SDKs. // // Given a request action that has succeeded: // diff --git a/service/proton/errors.go b/service/proton/errors.go index dafc35bf87..d81178ee35 100644 --- a/service/proton/errors.go +++ b/service/proton/errors.go @@ -35,8 +35,8 @@ const ( // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // - // A quota was exceeded. For more information, see AWS Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) - // in the AWS Proton Administrator Guide. + // A quota was exceeded. For more information, see Proton Quotas (https://docs.aws.amazon.com/proton/latest/adminguide/ag-limits.html) + // in the Proton Administrator Guide. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code diff --git a/service/proton/protoniface/interface.go b/service/proton/protoniface/interface.go index 7bdf218901..2605a5a366 100644 --- a/service/proton/protoniface/interface.go +++ b/service/proton/protoniface/interface.go @@ -92,6 +92,10 @@ type ProtonAPI interface { CreateEnvironmentTemplateVersionWithContext(aws.Context, *proton.CreateEnvironmentTemplateVersionInput, ...request.Option) (*proton.CreateEnvironmentTemplateVersionOutput, error) CreateEnvironmentTemplateVersionRequest(*proton.CreateEnvironmentTemplateVersionInput) (*request.Request, *proton.CreateEnvironmentTemplateVersionOutput) + CreateRepository(*proton.CreateRepositoryInput) (*proton.CreateRepositoryOutput, error) + CreateRepositoryWithContext(aws.Context, *proton.CreateRepositoryInput, ...request.Option) (*proton.CreateRepositoryOutput, error) + CreateRepositoryRequest(*proton.CreateRepositoryInput) (*request.Request, *proton.CreateRepositoryOutput) + CreateService(*proton.CreateServiceInput) (*proton.CreateServiceOutput, error) CreateServiceWithContext(aws.Context, *proton.CreateServiceInput, ...request.Option) (*proton.CreateServiceOutput, error) CreateServiceRequest(*proton.CreateServiceInput) (*request.Request, *proton.CreateServiceOutput) @@ -104,6 +108,10 @@ type ProtonAPI interface { CreateServiceTemplateVersionWithContext(aws.Context, *proton.CreateServiceTemplateVersionInput, ...request.Option) (*proton.CreateServiceTemplateVersionOutput, error) CreateServiceTemplateVersionRequest(*proton.CreateServiceTemplateVersionInput) (*request.Request, *proton.CreateServiceTemplateVersionOutput) + CreateTemplateSyncConfig(*proton.CreateTemplateSyncConfigInput) (*proton.CreateTemplateSyncConfigOutput, error) + CreateTemplateSyncConfigWithContext(aws.Context, *proton.CreateTemplateSyncConfigInput, ...request.Option) (*proton.CreateTemplateSyncConfigOutput, error) + CreateTemplateSyncConfigRequest(*proton.CreateTemplateSyncConfigInput) (*request.Request, *proton.CreateTemplateSyncConfigOutput) + DeleteEnvironment(*proton.DeleteEnvironmentInput) (*proton.DeleteEnvironmentOutput, error) DeleteEnvironmentWithContext(aws.Context, *proton.DeleteEnvironmentInput, ...request.Option) (*proton.DeleteEnvironmentOutput, error) DeleteEnvironmentRequest(*proton.DeleteEnvironmentInput) (*request.Request, *proton.DeleteEnvironmentOutput) @@ -120,6 +128,10 @@ type ProtonAPI interface { DeleteEnvironmentTemplateVersionWithContext(aws.Context, *proton.DeleteEnvironmentTemplateVersionInput, ...request.Option) (*proton.DeleteEnvironmentTemplateVersionOutput, error) DeleteEnvironmentTemplateVersionRequest(*proton.DeleteEnvironmentTemplateVersionInput) (*request.Request, *proton.DeleteEnvironmentTemplateVersionOutput) + DeleteRepository(*proton.DeleteRepositoryInput) (*proton.DeleteRepositoryOutput, error) + DeleteRepositoryWithContext(aws.Context, *proton.DeleteRepositoryInput, ...request.Option) (*proton.DeleteRepositoryOutput, error) + DeleteRepositoryRequest(*proton.DeleteRepositoryInput) (*request.Request, *proton.DeleteRepositoryOutput) + DeleteService(*proton.DeleteServiceInput) (*proton.DeleteServiceOutput, error) DeleteServiceWithContext(aws.Context, *proton.DeleteServiceInput, ...request.Option) (*proton.DeleteServiceOutput, error) DeleteServiceRequest(*proton.DeleteServiceInput) (*request.Request, *proton.DeleteServiceOutput) @@ -132,6 +144,10 @@ type ProtonAPI interface { DeleteServiceTemplateVersionWithContext(aws.Context, *proton.DeleteServiceTemplateVersionInput, ...request.Option) (*proton.DeleteServiceTemplateVersionOutput, error) DeleteServiceTemplateVersionRequest(*proton.DeleteServiceTemplateVersionInput) (*request.Request, *proton.DeleteServiceTemplateVersionOutput) + DeleteTemplateSyncConfig(*proton.DeleteTemplateSyncConfigInput) (*proton.DeleteTemplateSyncConfigOutput, error) + DeleteTemplateSyncConfigWithContext(aws.Context, *proton.DeleteTemplateSyncConfigInput, ...request.Option) (*proton.DeleteTemplateSyncConfigOutput, error) + DeleteTemplateSyncConfigRequest(*proton.DeleteTemplateSyncConfigInput) (*request.Request, *proton.DeleteTemplateSyncConfigOutput) + GetAccountSettings(*proton.GetAccountSettingsInput) (*proton.GetAccountSettingsOutput, error) GetAccountSettingsWithContext(aws.Context, *proton.GetAccountSettingsInput, ...request.Option) (*proton.GetAccountSettingsOutput, error) GetAccountSettingsRequest(*proton.GetAccountSettingsInput) (*request.Request, *proton.GetAccountSettingsOutput) @@ -152,6 +168,14 @@ type ProtonAPI interface { GetEnvironmentTemplateVersionWithContext(aws.Context, *proton.GetEnvironmentTemplateVersionInput, ...request.Option) (*proton.GetEnvironmentTemplateVersionOutput, error) GetEnvironmentTemplateVersionRequest(*proton.GetEnvironmentTemplateVersionInput) (*request.Request, *proton.GetEnvironmentTemplateVersionOutput) + GetRepository(*proton.GetRepositoryInput) (*proton.GetRepositoryOutput, error) + GetRepositoryWithContext(aws.Context, *proton.GetRepositoryInput, ...request.Option) (*proton.GetRepositoryOutput, error) + GetRepositoryRequest(*proton.GetRepositoryInput) (*request.Request, *proton.GetRepositoryOutput) + + GetRepositorySyncStatus(*proton.GetRepositorySyncStatusInput) (*proton.GetRepositorySyncStatusOutput, error) + GetRepositorySyncStatusWithContext(aws.Context, *proton.GetRepositorySyncStatusInput, ...request.Option) (*proton.GetRepositorySyncStatusOutput, error) + GetRepositorySyncStatusRequest(*proton.GetRepositorySyncStatusInput) (*request.Request, *proton.GetRepositorySyncStatusOutput) + GetService(*proton.GetServiceInput) (*proton.GetServiceOutput, error) GetServiceWithContext(aws.Context, *proton.GetServiceInput, ...request.Option) (*proton.GetServiceOutput, error) GetServiceRequest(*proton.GetServiceInput) (*request.Request, *proton.GetServiceOutput) @@ -168,6 +192,14 @@ type ProtonAPI interface { GetServiceTemplateVersionWithContext(aws.Context, *proton.GetServiceTemplateVersionInput, ...request.Option) (*proton.GetServiceTemplateVersionOutput, error) GetServiceTemplateVersionRequest(*proton.GetServiceTemplateVersionInput) (*request.Request, *proton.GetServiceTemplateVersionOutput) + GetTemplateSyncConfig(*proton.GetTemplateSyncConfigInput) (*proton.GetTemplateSyncConfigOutput, error) + GetTemplateSyncConfigWithContext(aws.Context, *proton.GetTemplateSyncConfigInput, ...request.Option) (*proton.GetTemplateSyncConfigOutput, error) + GetTemplateSyncConfigRequest(*proton.GetTemplateSyncConfigInput) (*request.Request, *proton.GetTemplateSyncConfigOutput) + + GetTemplateSyncStatus(*proton.GetTemplateSyncStatusInput) (*proton.GetTemplateSyncStatusOutput, error) + GetTemplateSyncStatusWithContext(aws.Context, *proton.GetTemplateSyncStatusInput, ...request.Option) (*proton.GetTemplateSyncStatusOutput, error) + GetTemplateSyncStatusRequest(*proton.GetTemplateSyncStatusInput) (*request.Request, *proton.GetTemplateSyncStatusOutput) + ListEnvironmentAccountConnections(*proton.ListEnvironmentAccountConnectionsInput) (*proton.ListEnvironmentAccountConnectionsOutput, error) ListEnvironmentAccountConnectionsWithContext(aws.Context, *proton.ListEnvironmentAccountConnectionsInput, ...request.Option) (*proton.ListEnvironmentAccountConnectionsOutput, error) ListEnvironmentAccountConnectionsRequest(*proton.ListEnvironmentAccountConnectionsInput) (*request.Request, *proton.ListEnvironmentAccountConnectionsOutput) @@ -175,6 +207,20 @@ type ProtonAPI interface { ListEnvironmentAccountConnectionsPages(*proton.ListEnvironmentAccountConnectionsInput, func(*proton.ListEnvironmentAccountConnectionsOutput, bool) bool) error ListEnvironmentAccountConnectionsPagesWithContext(aws.Context, *proton.ListEnvironmentAccountConnectionsInput, func(*proton.ListEnvironmentAccountConnectionsOutput, bool) bool, ...request.Option) error + ListEnvironmentOutputs(*proton.ListEnvironmentOutputsInput) (*proton.ListEnvironmentOutputsOutput, error) + ListEnvironmentOutputsWithContext(aws.Context, *proton.ListEnvironmentOutputsInput, ...request.Option) (*proton.ListEnvironmentOutputsOutput, error) + ListEnvironmentOutputsRequest(*proton.ListEnvironmentOutputsInput) (*request.Request, *proton.ListEnvironmentOutputsOutput) + + ListEnvironmentOutputsPages(*proton.ListEnvironmentOutputsInput, func(*proton.ListEnvironmentOutputsOutput, bool) bool) error + ListEnvironmentOutputsPagesWithContext(aws.Context, *proton.ListEnvironmentOutputsInput, func(*proton.ListEnvironmentOutputsOutput, bool) bool, ...request.Option) error + + ListEnvironmentProvisionedResources(*proton.ListEnvironmentProvisionedResourcesInput) (*proton.ListEnvironmentProvisionedResourcesOutput, error) + ListEnvironmentProvisionedResourcesWithContext(aws.Context, *proton.ListEnvironmentProvisionedResourcesInput, ...request.Option) (*proton.ListEnvironmentProvisionedResourcesOutput, error) + ListEnvironmentProvisionedResourcesRequest(*proton.ListEnvironmentProvisionedResourcesInput) (*request.Request, *proton.ListEnvironmentProvisionedResourcesOutput) + + ListEnvironmentProvisionedResourcesPages(*proton.ListEnvironmentProvisionedResourcesInput, func(*proton.ListEnvironmentProvisionedResourcesOutput, bool) bool) error + ListEnvironmentProvisionedResourcesPagesWithContext(aws.Context, *proton.ListEnvironmentProvisionedResourcesInput, func(*proton.ListEnvironmentProvisionedResourcesOutput, bool) bool, ...request.Option) error + ListEnvironmentTemplateVersions(*proton.ListEnvironmentTemplateVersionsInput) (*proton.ListEnvironmentTemplateVersionsOutput, error) ListEnvironmentTemplateVersionsWithContext(aws.Context, *proton.ListEnvironmentTemplateVersionsInput, ...request.Option) (*proton.ListEnvironmentTemplateVersionsOutput, error) ListEnvironmentTemplateVersionsRequest(*proton.ListEnvironmentTemplateVersionsInput) (*request.Request, *proton.ListEnvironmentTemplateVersionsOutput) @@ -196,6 +242,34 @@ type ProtonAPI interface { ListEnvironmentsPages(*proton.ListEnvironmentsInput, func(*proton.ListEnvironmentsOutput, bool) bool) error ListEnvironmentsPagesWithContext(aws.Context, *proton.ListEnvironmentsInput, func(*proton.ListEnvironmentsOutput, bool) bool, ...request.Option) error + ListRepositories(*proton.ListRepositoriesInput) (*proton.ListRepositoriesOutput, error) + ListRepositoriesWithContext(aws.Context, *proton.ListRepositoriesInput, ...request.Option) (*proton.ListRepositoriesOutput, error) + ListRepositoriesRequest(*proton.ListRepositoriesInput) (*request.Request, *proton.ListRepositoriesOutput) + + ListRepositoriesPages(*proton.ListRepositoriesInput, func(*proton.ListRepositoriesOutput, bool) bool) error + ListRepositoriesPagesWithContext(aws.Context, *proton.ListRepositoriesInput, func(*proton.ListRepositoriesOutput, bool) bool, ...request.Option) error + + ListRepositorySyncDefinitions(*proton.ListRepositorySyncDefinitionsInput) (*proton.ListRepositorySyncDefinitionsOutput, error) + ListRepositorySyncDefinitionsWithContext(aws.Context, *proton.ListRepositorySyncDefinitionsInput, ...request.Option) (*proton.ListRepositorySyncDefinitionsOutput, error) + ListRepositorySyncDefinitionsRequest(*proton.ListRepositorySyncDefinitionsInput) (*request.Request, *proton.ListRepositorySyncDefinitionsOutput) + + ListRepositorySyncDefinitionsPages(*proton.ListRepositorySyncDefinitionsInput, func(*proton.ListRepositorySyncDefinitionsOutput, bool) bool) error + ListRepositorySyncDefinitionsPagesWithContext(aws.Context, *proton.ListRepositorySyncDefinitionsInput, func(*proton.ListRepositorySyncDefinitionsOutput, bool) bool, ...request.Option) error + + ListServiceInstanceOutputs(*proton.ListServiceInstanceOutputsInput) (*proton.ListServiceInstanceOutputsOutput, error) + ListServiceInstanceOutputsWithContext(aws.Context, *proton.ListServiceInstanceOutputsInput, ...request.Option) (*proton.ListServiceInstanceOutputsOutput, error) + ListServiceInstanceOutputsRequest(*proton.ListServiceInstanceOutputsInput) (*request.Request, *proton.ListServiceInstanceOutputsOutput) + + ListServiceInstanceOutputsPages(*proton.ListServiceInstanceOutputsInput, func(*proton.ListServiceInstanceOutputsOutput, bool) bool) error + ListServiceInstanceOutputsPagesWithContext(aws.Context, *proton.ListServiceInstanceOutputsInput, func(*proton.ListServiceInstanceOutputsOutput, bool) bool, ...request.Option) error + + ListServiceInstanceProvisionedResources(*proton.ListServiceInstanceProvisionedResourcesInput) (*proton.ListServiceInstanceProvisionedResourcesOutput, error) + ListServiceInstanceProvisionedResourcesWithContext(aws.Context, *proton.ListServiceInstanceProvisionedResourcesInput, ...request.Option) (*proton.ListServiceInstanceProvisionedResourcesOutput, error) + ListServiceInstanceProvisionedResourcesRequest(*proton.ListServiceInstanceProvisionedResourcesInput) (*request.Request, *proton.ListServiceInstanceProvisionedResourcesOutput) + + ListServiceInstanceProvisionedResourcesPages(*proton.ListServiceInstanceProvisionedResourcesInput, func(*proton.ListServiceInstanceProvisionedResourcesOutput, bool) bool) error + ListServiceInstanceProvisionedResourcesPagesWithContext(aws.Context, *proton.ListServiceInstanceProvisionedResourcesInput, func(*proton.ListServiceInstanceProvisionedResourcesOutput, bool) bool, ...request.Option) error + ListServiceInstances(*proton.ListServiceInstancesInput) (*proton.ListServiceInstancesOutput, error) ListServiceInstancesWithContext(aws.Context, *proton.ListServiceInstancesInput, ...request.Option) (*proton.ListServiceInstancesOutput, error) ListServiceInstancesRequest(*proton.ListServiceInstancesInput) (*request.Request, *proton.ListServiceInstancesOutput) @@ -203,6 +277,20 @@ type ProtonAPI interface { ListServiceInstancesPages(*proton.ListServiceInstancesInput, func(*proton.ListServiceInstancesOutput, bool) bool) error ListServiceInstancesPagesWithContext(aws.Context, *proton.ListServiceInstancesInput, func(*proton.ListServiceInstancesOutput, bool) bool, ...request.Option) error + ListServicePipelineOutputs(*proton.ListServicePipelineOutputsInput) (*proton.ListServicePipelineOutputsOutput, error) + ListServicePipelineOutputsWithContext(aws.Context, *proton.ListServicePipelineOutputsInput, ...request.Option) (*proton.ListServicePipelineOutputsOutput, error) + ListServicePipelineOutputsRequest(*proton.ListServicePipelineOutputsInput) (*request.Request, *proton.ListServicePipelineOutputsOutput) + + ListServicePipelineOutputsPages(*proton.ListServicePipelineOutputsInput, func(*proton.ListServicePipelineOutputsOutput, bool) bool) error + ListServicePipelineOutputsPagesWithContext(aws.Context, *proton.ListServicePipelineOutputsInput, func(*proton.ListServicePipelineOutputsOutput, bool) bool, ...request.Option) error + + ListServicePipelineProvisionedResources(*proton.ListServicePipelineProvisionedResourcesInput) (*proton.ListServicePipelineProvisionedResourcesOutput, error) + ListServicePipelineProvisionedResourcesWithContext(aws.Context, *proton.ListServicePipelineProvisionedResourcesInput, ...request.Option) (*proton.ListServicePipelineProvisionedResourcesOutput, error) + ListServicePipelineProvisionedResourcesRequest(*proton.ListServicePipelineProvisionedResourcesInput) (*request.Request, *proton.ListServicePipelineProvisionedResourcesOutput) + + ListServicePipelineProvisionedResourcesPages(*proton.ListServicePipelineProvisionedResourcesInput, func(*proton.ListServicePipelineProvisionedResourcesOutput, bool) bool) error + ListServicePipelineProvisionedResourcesPagesWithContext(aws.Context, *proton.ListServicePipelineProvisionedResourcesInput, func(*proton.ListServicePipelineProvisionedResourcesOutput, bool) bool, ...request.Option) error + ListServiceTemplateVersions(*proton.ListServiceTemplateVersionsInput) (*proton.ListServiceTemplateVersionsOutput, error) ListServiceTemplateVersionsWithContext(aws.Context, *proton.ListServiceTemplateVersionsInput, ...request.Option) (*proton.ListServiceTemplateVersionsOutput, error) ListServiceTemplateVersionsRequest(*proton.ListServiceTemplateVersionsInput) (*request.Request, *proton.ListServiceTemplateVersionsOutput) @@ -231,6 +319,10 @@ type ProtonAPI interface { ListTagsForResourcePages(*proton.ListTagsForResourceInput, func(*proton.ListTagsForResourceOutput, bool) bool) error ListTagsForResourcePagesWithContext(aws.Context, *proton.ListTagsForResourceInput, func(*proton.ListTagsForResourceOutput, bool) bool, ...request.Option) error + NotifyResourceDeploymentStatusChange(*proton.NotifyResourceDeploymentStatusChangeInput) (*proton.NotifyResourceDeploymentStatusChangeOutput, error) + NotifyResourceDeploymentStatusChangeWithContext(aws.Context, *proton.NotifyResourceDeploymentStatusChangeInput, ...request.Option) (*proton.NotifyResourceDeploymentStatusChangeOutput, error) + NotifyResourceDeploymentStatusChangeRequest(*proton.NotifyResourceDeploymentStatusChangeInput) (*request.Request, *proton.NotifyResourceDeploymentStatusChangeOutput) + RejectEnvironmentAccountConnection(*proton.RejectEnvironmentAccountConnectionInput) (*proton.RejectEnvironmentAccountConnectionOutput, error) RejectEnvironmentAccountConnectionWithContext(aws.Context, *proton.RejectEnvironmentAccountConnectionInput, ...request.Option) (*proton.RejectEnvironmentAccountConnectionOutput, error) RejectEnvironmentAccountConnectionRequest(*proton.RejectEnvironmentAccountConnectionInput) (*request.Request, *proton.RejectEnvironmentAccountConnectionOutput) @@ -283,6 +375,10 @@ type ProtonAPI interface { UpdateServiceTemplateVersionWithContext(aws.Context, *proton.UpdateServiceTemplateVersionInput, ...request.Option) (*proton.UpdateServiceTemplateVersionOutput, error) UpdateServiceTemplateVersionRequest(*proton.UpdateServiceTemplateVersionInput) (*request.Request, *proton.UpdateServiceTemplateVersionOutput) + UpdateTemplateSyncConfig(*proton.UpdateTemplateSyncConfigInput) (*proton.UpdateTemplateSyncConfigOutput, error) + UpdateTemplateSyncConfigWithContext(aws.Context, *proton.UpdateTemplateSyncConfigInput, ...request.Option) (*proton.UpdateTemplateSyncConfigOutput, error) + UpdateTemplateSyncConfigRequest(*proton.UpdateTemplateSyncConfigInput) (*request.Request, *proton.UpdateTemplateSyncConfigOutput) + WaitUntilEnvironmentDeployed(*proton.GetEnvironmentInput) error WaitUntilEnvironmentDeployedWithContext(aws.Context, *proton.GetEnvironmentInput, ...request.WaiterOption) error diff --git a/service/timestreamquery/api.go b/service/timestreamquery/api.go index 310d00418b..314d62d935 100644 --- a/service/timestreamquery/api.go +++ b/service/timestreamquery/api.go @@ -13,6 +13,7 @@ import ( "github.com/aws/aws-sdk-go/aws/crr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opCancelQuery = "CancelQuery" @@ -82,11 +83,12 @@ func (c *TimestreamQuery) CancelQueryRequest(input *CancelQueryInput) (req *requ // CancelQuery API operation for Amazon Timestream Query. // -// Cancels a query that has been issued. Cancellation is guaranteed only if -// the query has not completed execution before the cancellation request was -// issued. Because cancellation is an idempotent operation, subsequent cancellation +// Cancels a query that has been issued. Cancellation is provided only if the +// query has not completed running before the cancellation request was issued. +// Because cancellation is an idempotent operation, subsequent cancellation // requests will return a CancellationMessage, indicating that the query has -// already been canceled. +// already been canceled. See code sample (https://docs.aws.amazon.com/Timestream/latest/developerguide/code-samples.cancel-query.html) +// for details. // // 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 @@ -110,7 +112,7 @@ func (c *TimestreamQuery) CancelQueryRequest(input *CancelQueryInput) (req *requ // Invalid or malformed request. // // * InvalidEndpointException -// The requested endpoint was invalid. +// The requested endpoint was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/CancelQuery func (c *TimestreamQuery) CancelQuery(input *CancelQueryInput) (*CancelQueryOutput, error) { @@ -134,6 +136,249 @@ func (c *TimestreamQuery) CancelQueryWithContext(ctx aws.Context, input *CancelQ return out, req.Send() } +const opCreateScheduledQuery = "CreateScheduledQuery" + +// CreateScheduledQueryRequest generates a "aws/request.Request" representing the +// client's request for the CreateScheduledQuery 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 CreateScheduledQuery for more information on using the CreateScheduledQuery +// 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 CreateScheduledQueryRequest method. +// req, resp := client.CreateScheduledQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/CreateScheduledQuery +func (c *TimestreamQuery) CreateScheduledQueryRequest(input *CreateScheduledQueryInput) (req *request.Request, output *CreateScheduledQueryOutput) { + op := &request.Operation{ + Name: opCreateScheduledQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &CreateScheduledQueryInput{} + } + + output = &CreateScheduledQueryOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// CreateScheduledQuery API operation for Amazon Timestream Query. +// +// Create a scheduled query that will be run on your behalf at the configured +// schedule. Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn +// parameter to run the query. You can use the NotificationConfiguration parameter +// to configure notification for your scheduled query operations. +// +// 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 Timestream Query's +// API operation CreateScheduledQuery for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * ConflictException +// Unable to poll results for a cancelled query. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * ServiceQuotaExceededException +// You have exceeded the service quota. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/CreateScheduledQuery +func (c *TimestreamQuery) CreateScheduledQuery(input *CreateScheduledQueryInput) (*CreateScheduledQueryOutput, error) { + req, out := c.CreateScheduledQueryRequest(input) + return out, req.Send() +} + +// CreateScheduledQueryWithContext is the same as CreateScheduledQuery with the addition of +// the ability to pass a context and additional request options. +// +// See CreateScheduledQuery 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 *TimestreamQuery) CreateScheduledQueryWithContext(ctx aws.Context, input *CreateScheduledQueryInput, opts ...request.Option) (*CreateScheduledQueryOutput, error) { + req, out := c.CreateScheduledQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteScheduledQuery = "DeleteScheduledQuery" + +// DeleteScheduledQueryRequest generates a "aws/request.Request" representing the +// client's request for the DeleteScheduledQuery 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 DeleteScheduledQuery for more information on using the DeleteScheduledQuery +// 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 DeleteScheduledQueryRequest method. +// req, resp := client.DeleteScheduledQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DeleteScheduledQuery +func (c *TimestreamQuery) DeleteScheduledQueryRequest(input *DeleteScheduledQueryInput) (req *request.Request, output *DeleteScheduledQueryOutput) { + op := &request.Operation{ + Name: opDeleteScheduledQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &DeleteScheduledQueryInput{} + } + + output = &DeleteScheduledQueryOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// DeleteScheduledQuery API operation for Amazon Timestream Query. +// +// Deletes a given scheduled query. This is an irreversible operation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Timestream Query's +// API operation DeleteScheduledQuery for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * ResourceNotFoundException +// The requested resource could not be found. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DeleteScheduledQuery +func (c *TimestreamQuery) DeleteScheduledQuery(input *DeleteScheduledQueryInput) (*DeleteScheduledQueryOutput, error) { + req, out := c.DeleteScheduledQueryRequest(input) + return out, req.Send() +} + +// DeleteScheduledQueryWithContext is the same as DeleteScheduledQuery with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteScheduledQuery 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 *TimestreamQuery) DeleteScheduledQueryWithContext(ctx aws.Context, input *DeleteScheduledQueryInput, opts ...request.Option) (*DeleteScheduledQueryOutput, error) { + req, out := c.DeleteScheduledQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeEndpoints = "DescribeEndpoints" // DescribeEndpointsRequest generates a "aws/request.Request" representing the @@ -181,17 +426,20 @@ func (c *TimestreamQuery) DescribeEndpointsRequest(input *DescribeEndpointsInput // DescribeEndpoints returns a list of available endpoints to make Timestream // API calls against. This API is available through both Write and Query. // -// Because Timestream’s SDKs are designed to transparently work with the service’s +// Because the Timestream SDKs are designed to transparently work with the service’s // architecture, including the management and mapping of the service endpoints, // it is not recommended that you use this API unless: // +// * You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream +// (https://docs.aws.amazon.com/Timestream/latest/developerguide/VPCEndpoints) +// // * Your application uses a programming language that does not yet have // SDK support // // * You require better control over the client-side implementation // -// For detailed information on how to use DescribeEndpoints, see The Endpoint -// Discovery Pattern and REST APIs (https://docs.aws.amazon.com/timestream/latest/developerguide/Using-API.endpoint-discovery.html). +// For detailed information on how and when to use and implement DescribeEndpoints, +// see The Endpoint Discovery Pattern (https://docs.aws.amazon.com/Timestream/latest/developerguide/Using.API.html#Using-API.endpoint-discovery). // // 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 @@ -305,50 +553,44 @@ func (d *discovererDescribeEndpoints) Handler(r *request.Request) { } } -const opQuery = "Query" +const opDescribeScheduledQuery = "DescribeScheduledQuery" -// QueryRequest generates a "aws/request.Request" representing the -// client's request for the Query operation. The "output" return +// DescribeScheduledQueryRequest generates a "aws/request.Request" representing the +// client's request for the DescribeScheduledQuery 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 Query for more information on using the Query +// See DescribeScheduledQuery for more information on using the DescribeScheduledQuery // 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 QueryRequest method. -// req, resp := client.QueryRequest(params) +// // Example sending a request using the DescribeScheduledQueryRequest method. +// req, resp := client.DescribeScheduledQueryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/Query -func (c *TimestreamQuery) QueryRequest(input *QueryInput) (req *request.Request, output *QueryOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeScheduledQuery +func (c *TimestreamQuery) DescribeScheduledQueryRequest(input *DescribeScheduledQueryInput) (req *request.Request, output *DescribeScheduledQueryOutput) { op := &request.Operation{ - Name: opQuery, + Name: opDescribeScheduledQuery, HTTPMethod: "POST", HTTPPath: "/", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxRows", - TruncationToken: "", - }, } if input == nil { - input = &QueryInput{} + input = &DescribeScheduledQueryInput{} } - output = &QueryOutput{} + output = &DescribeScheduledQueryOutput{} req = c.newRequest(op, input, output) // if custom endpoint for the request is set to a non empty string, // we skip the endpoint discovery workflow. @@ -376,34 +618,27 @@ func (c *TimestreamQuery) QueryRequest(input *QueryInput) (req *request.Request, return } -// Query API operation for Amazon Timestream Query. +// DescribeScheduledQuery API operation for Amazon Timestream Query. // -// Query is a synchronous operation that enables you to execute a query. Query -// will timeout after 60 seconds. You must update the default timeout in the -// SDK to support a timeout of 60 seconds. The result set will be truncated -// to 1MB. Service quotas apply. For more information, see Quotas in the Timestream -// Developer Guide. +// Provides detailed information about a scheduled query. // // 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 Timestream Query's -// API operation Query for usage and error information. +// API operation DescribeScheduledQuery for usage and error information. // // Returned Error Types: // * AccessDeniedException // You are not authorized to perform this action. // -// * ConflictException -// Unable to poll results for a cancelled query. -// // * InternalServerException // Timestream was unable to fully process this request because of an internal // server error. // -// * QueryExecutionException -// Timestream was unable to run the query successfully. +// * ResourceNotFoundException +// The requested resource could not be found. // // * ThrottlingException // The request was denied due to request throttling. @@ -412,88 +647,3666 @@ func (c *TimestreamQuery) QueryRequest(input *QueryInput) (req *request.Request, // Invalid or malformed request. // // * InvalidEndpointException -// The requested endpoint was invalid. +// The requested endpoint was not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/Query -func (c *TimestreamQuery) Query(input *QueryInput) (*QueryOutput, error) { - req, out := c.QueryRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/DescribeScheduledQuery +func (c *TimestreamQuery) DescribeScheduledQuery(input *DescribeScheduledQueryInput) (*DescribeScheduledQueryOutput, error) { + req, out := c.DescribeScheduledQueryRequest(input) return out, req.Send() } -// QueryWithContext is the same as Query with the addition of +// DescribeScheduledQueryWithContext is the same as DescribeScheduledQuery with the addition of // the ability to pass a context and additional request options. // -// See Query for details on how to use this API operation. +// See DescribeScheduledQuery 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 *TimestreamQuery) QueryWithContext(ctx aws.Context, input *QueryInput, opts ...request.Option) (*QueryOutput, error) { - req, out := c.QueryRequest(input) +func (c *TimestreamQuery) DescribeScheduledQueryWithContext(ctx aws.Context, input *DescribeScheduledQueryInput, opts ...request.Option) (*DescribeScheduledQueryOutput, error) { + req, out := c.DescribeScheduledQueryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// QueryPages iterates over the pages of a Query operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opExecuteScheduledQuery = "ExecuteScheduledQuery" + +// ExecuteScheduledQueryRequest generates a "aws/request.Request" representing the +// client's request for the ExecuteScheduledQuery operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See Query method for more information on how to use this operation. +// 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. // -// Note: This operation can generate multiple requests to a service. +// See ExecuteScheduledQuery for more information on using the ExecuteScheduledQuery +// API call, and error handling. // -// // Example iterating over at most 3 pages of a Query operation. -// pageNum := 0 -// err := client.QueryPages(params, -// func(page *timestreamquery.QueryOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// 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. // -func (c *TimestreamQuery) QueryPages(input *QueryInput, fn func(*QueryOutput, bool) bool) error { - return c.QueryPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// QueryPagesWithContext same as QueryPages 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 *TimestreamQuery) QueryPagesWithContext(ctx aws.Context, input *QueryInput, fn func(*QueryOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ +// // Example sending a request using the ExecuteScheduledQueryRequest method. +// req, resp := client.ExecuteScheduledQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ExecuteScheduledQuery +func (c *TimestreamQuery) ExecuteScheduledQueryRequest(input *ExecuteScheduledQueryInput) (req *request.Request, output *ExecuteScheduledQueryOutput) { + op := &request.Operation{ + Name: opExecuteScheduledQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ExecuteScheduledQueryInput{} + } + + output = &ExecuteScheduledQueryOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// ExecuteScheduledQuery API operation for Amazon Timestream Query. +// +// You can use this API to run a scheduled query manually. +// +// 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 Timestream Query's +// API operation ExecuteScheduledQuery for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * ResourceNotFoundException +// The requested resource could not be found. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ExecuteScheduledQuery +func (c *TimestreamQuery) ExecuteScheduledQuery(input *ExecuteScheduledQueryInput) (*ExecuteScheduledQueryOutput, error) { + req, out := c.ExecuteScheduledQueryRequest(input) + return out, req.Send() +} + +// ExecuteScheduledQueryWithContext is the same as ExecuteScheduledQuery with the addition of +// the ability to pass a context and additional request options. +// +// See ExecuteScheduledQuery 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 *TimestreamQuery) ExecuteScheduledQueryWithContext(ctx aws.Context, input *ExecuteScheduledQueryInput, opts ...request.Option) (*ExecuteScheduledQueryOutput, error) { + req, out := c.ExecuteScheduledQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListScheduledQueries = "ListScheduledQueries" + +// ListScheduledQueriesRequest generates a "aws/request.Request" representing the +// client's request for the ListScheduledQueries 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 ListScheduledQueries for more information on using the ListScheduledQueries +// 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 ListScheduledQueriesRequest method. +// req, resp := client.ListScheduledQueriesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ListScheduledQueries +func (c *TimestreamQuery) ListScheduledQueriesRequest(input *ListScheduledQueriesInput) (req *request.Request, output *ListScheduledQueriesOutput) { + op := &request.Operation{ + Name: opListScheduledQueries, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListScheduledQueriesInput{} + } + + output = &ListScheduledQueriesOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// ListScheduledQueries API operation for Amazon Timestream Query. +// +// Gets a list of all scheduled queries in the caller's Amazon account and Region. +// ListScheduledQueries is eventually consistent. +// +// 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 Timestream Query's +// API operation ListScheduledQueries for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ListScheduledQueries +func (c *TimestreamQuery) ListScheduledQueries(input *ListScheduledQueriesInput) (*ListScheduledQueriesOutput, error) { + req, out := c.ListScheduledQueriesRequest(input) + return out, req.Send() +} + +// ListScheduledQueriesWithContext is the same as ListScheduledQueries with the addition of +// the ability to pass a context and additional request options. +// +// See ListScheduledQueries 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 *TimestreamQuery) ListScheduledQueriesWithContext(ctx aws.Context, input *ListScheduledQueriesInput, opts ...request.Option) (*ListScheduledQueriesOutput, error) { + req, out := c.ListScheduledQueriesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListScheduledQueriesPages iterates over the pages of a ListScheduledQueries operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListScheduledQueries 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 ListScheduledQueries operation. +// pageNum := 0 +// err := client.ListScheduledQueriesPages(params, +// func(page *timestreamquery.ListScheduledQueriesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *TimestreamQuery) ListScheduledQueriesPages(input *ListScheduledQueriesInput, fn func(*ListScheduledQueriesOutput, bool) bool) error { + return c.ListScheduledQueriesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListScheduledQueriesPagesWithContext same as ListScheduledQueriesPages 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 *TimestreamQuery) ListScheduledQueriesPagesWithContext(ctx aws.Context, input *ListScheduledQueriesInput, fn func(*ListScheduledQueriesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *QueryInput + var inCpy *ListScheduledQueriesInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.QueryRequest(inCpy) + req, _ := c.ListScheduledQueriesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } - for p.Next() { - if !fn(p.Page().(*QueryOutput), !p.HasNextPage()) { - break - } + for p.Next() { + if !fn(p.Page().(*ListScheduledQueriesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ListTagsForResource +func (c *TimestreamQuery) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// ListTagsForResource API operation for Amazon Timestream Query. +// +// List all tags on a Timestream query resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Timestream Query's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The requested resource could not be found. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/ListTagsForResource +func (c *TimestreamQuery) 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 *TimestreamQuery) 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() +} + +// ListTagsForResourcePages iterates over the pages of a ListTagsForResource operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTagsForResource 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 ListTagsForResource operation. +// pageNum := 0 +// err := client.ListTagsForResourcePages(params, +// func(page *timestreamquery.ListTagsForResourceOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *TimestreamQuery) ListTagsForResourcePages(input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool) error { + return c.ListTagsForResourcePagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTagsForResourcePagesWithContext same as ListTagsForResourcePages 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 *TimestreamQuery) ListTagsForResourcePagesWithContext(ctx aws.Context, input *ListTagsForResourceInput, fn func(*ListTagsForResourceOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTagsForResourceInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTagsForResourceRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListTagsForResourceOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPrepareQuery = "PrepareQuery" + +// PrepareQueryRequest generates a "aws/request.Request" representing the +// client's request for the PrepareQuery 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 PrepareQuery for more information on using the PrepareQuery +// 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 PrepareQueryRequest method. +// req, resp := client.PrepareQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/PrepareQuery +func (c *TimestreamQuery) PrepareQueryRequest(input *PrepareQueryInput) (req *request.Request, output *PrepareQueryOutput) { + op := &request.Operation{ + Name: opPrepareQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &PrepareQueryInput{} + } + + output = &PrepareQueryOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// PrepareQuery API operation for Amazon Timestream Query. +// +// A synchronous operation that allows you to submit a query with parameters +// to be stored by Timestream for later running. Timestream only supports using +// this operation with the PrepareQueryRequest$ValidateOnly set to true. +// +// 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 Timestream Query's +// API operation PrepareQuery for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/PrepareQuery +func (c *TimestreamQuery) PrepareQuery(input *PrepareQueryInput) (*PrepareQueryOutput, error) { + req, out := c.PrepareQueryRequest(input) + return out, req.Send() +} + +// PrepareQueryWithContext is the same as PrepareQuery with the addition of +// the ability to pass a context and additional request options. +// +// See PrepareQuery 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 *TimestreamQuery) PrepareQueryWithContext(ctx aws.Context, input *PrepareQueryInput, opts ...request.Option) (*PrepareQueryOutput, error) { + req, out := c.PrepareQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opQuery = "Query" + +// QueryRequest generates a "aws/request.Request" representing the +// client's request for the Query 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 Query for more information on using the Query +// 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 QueryRequest method. +// req, resp := client.QueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/Query +func (c *TimestreamQuery) QueryRequest(input *QueryInput) (req *request.Request, output *QueryOutput) { + op := &request.Operation{ + Name: opQuery, + HTTPMethod: "POST", + HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxRows", + TruncationToken: "", + }, + } + + if input == nil { + input = &QueryInput{} + } + + output = &QueryOutput{} + req = c.newRequest(op, input, output) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// Query API operation for Amazon Timestream Query. +// +// Query is a synchronous operation that enables you to run a query against +// your Amazon Timestream data. Query will time out after 60 seconds. You must +// update the default timeout in the SDK to support a timeout of 60 seconds. +// See the code sample (https://docs.aws.amazon.com/Timestream/latest/developerguide/code-samples.run-query.html) +// for details. +// +// Your query request will fail in the following cases: +// +// * If you submit a Query request with the same client token outside of +// the 5-minute idempotency window. +// +// * If you submit a Query request with the same client token, but change +// other parameters, within the 5-minute idempotency window. +// +// * If the size of the row (including the query metadata) exceeds 1 MB, +// then the query will fail with the following error message: Query aborted +// as max page response size has been exceeded by the output result row +// +// * If the IAM principal of the query initiator and the result reader are +// not the same and/or the query initiator and the result reader do not have +// the same query string in the query requests, the query will fail with +// an Invalid pagination token error. +// +// 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 Timestream Query's +// API operation Query for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * ConflictException +// Unable to poll results for a cancelled query. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * QueryExecutionException +// Timestream was unable to run the query successfully. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/Query +func (c *TimestreamQuery) Query(input *QueryInput) (*QueryOutput, error) { + req, out := c.QueryRequest(input) + return out, req.Send() +} + +// QueryWithContext is the same as Query with the addition of +// the ability to pass a context and additional request options. +// +// See Query 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 *TimestreamQuery) QueryWithContext(ctx aws.Context, input *QueryInput, opts ...request.Option) (*QueryOutput, error) { + req, out := c.QueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// QueryPages iterates over the pages of a Query operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See Query 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 Query operation. +// pageNum := 0 +// err := client.QueryPages(params, +// func(page *timestreamquery.QueryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *TimestreamQuery) QueryPages(input *QueryInput, fn func(*QueryOutput, bool) bool) error { + return c.QueryPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// QueryPagesWithContext same as QueryPages 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 *TimestreamQuery) QueryPagesWithContext(ctx aws.Context, input *QueryInput, fn func(*QueryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *QueryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.QueryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*QueryOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +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/timestream-query-2018-11-01/TagResource +func (c *TimestreamQuery) 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) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// TagResource API operation for Amazon Timestream Query. +// +// Associate a set of tags with a Timestream resource. You can then activate +// these user-defined tags so that they appear on the Billing and Cost Management +// console for cost allocation tracking. +// +// 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 Timestream Query's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The requested resource could not be found. +// +// * ServiceQuotaExceededException +// You have exceeded the service quota. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/TagResource +func (c *TimestreamQuery) 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 *TimestreamQuery) 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/timestream-query-2018-11-01/UntagResource +func (c *TimestreamQuery) 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) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// UntagResource API operation for Amazon Timestream Query. +// +// Removes the association of tags from a Timestream query resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Timestream Query's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// Invalid or malformed request. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ResourceNotFoundException +// The requested resource could not be found. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UntagResource +func (c *TimestreamQuery) 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 *TimestreamQuery) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateScheduledQuery = "UpdateScheduledQuery" + +// UpdateScheduledQueryRequest generates a "aws/request.Request" representing the +// client's request for the UpdateScheduledQuery 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 UpdateScheduledQuery for more information on using the UpdateScheduledQuery +// 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 UpdateScheduledQueryRequest method. +// req, resp := client.UpdateScheduledQueryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateScheduledQuery +func (c *TimestreamQuery) UpdateScheduledQueryRequest(input *UpdateScheduledQueryInput) (req *request.Request, output *UpdateScheduledQueryOutput) { + op := &request.Operation{ + Name: opUpdateScheduledQuery, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateScheduledQueryInput{} + } + + output = &UpdateScheduledQueryOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + // if custom endpoint for the request is set to a non empty string, + // we skip the endpoint discovery workflow. + if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { + de := discovererDescribeEndpoints{ + Required: true, + EndpointCache: c.endpointCache, + Params: map[string]*string{ + "op": aws.String(req.Operation.Name), + }, + Client: c, + } + + for k, v := range de.Params { + if v == nil { + delete(de.Params, k) + } + } + + req.Handlers.Build.PushFrontNamed(request.NamedHandler{ + Name: "crr.endpointdiscovery", + Fn: de.Handler, + }) + } + return +} + +// UpdateScheduledQuery API operation for Amazon Timestream Query. +// +// Update a scheduled query. +// +// 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 Timestream Query's +// API operation UpdateScheduledQuery for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// You are not authorized to perform this action. +// +// * InternalServerException +// Timestream was unable to fully process this request because of an internal +// server error. +// +// * ResourceNotFoundException +// The requested resource could not be found. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// * ValidationException +// Invalid or malformed request. +// +// * InvalidEndpointException +// The requested endpoint was not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01/UpdateScheduledQuery +func (c *TimestreamQuery) UpdateScheduledQuery(input *UpdateScheduledQueryInput) (*UpdateScheduledQueryOutput, error) { + req, out := c.UpdateScheduledQueryRequest(input) + return out, req.Send() +} + +// UpdateScheduledQueryWithContext is the same as UpdateScheduledQuery with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateScheduledQuery 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 *TimestreamQuery) UpdateScheduledQueryWithContext(ctx aws.Context, input *UpdateScheduledQueryInput, opts ...request.Option) (*UpdateScheduledQueryOutput, error) { + req, out := c.UpdateScheduledQueryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You are not authorized to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CancelQueryInput struct { + _ struct{} `type:"structure"` + + // The ID of the query that needs to be cancelled. QueryID is returned as part + // of the query result. + // + // QueryId is a required field + QueryId *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 CancelQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelQueryInput"} + if s.QueryId == nil { + invalidParams.Add(request.NewErrParamRequired("QueryId")) + } + if s.QueryId != nil && len(*s.QueryId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQueryId sets the QueryId field's value. +func (s *CancelQueryInput) SetQueryId(v string) *CancelQueryInput { + s.QueryId = &v + return s +} + +type CancelQueryOutput struct { + _ struct{} `type:"structure"` + + // A CancellationMessage is returned when a CancelQuery request for the query + // specified by QueryId has already been issued. + CancellationMessage *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 CancelQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CancelQueryOutput) GoString() string { + return s.String() +} + +// SetCancellationMessage sets the CancellationMessage field's value. +func (s *CancelQueryOutput) SetCancellationMessage(v string) *CancelQueryOutput { + s.CancellationMessage = &v + return s +} + +// Contains the metadata for query results such as the column names, data types, +// and other attributes. +type ColumnInfo struct { + _ struct{} `type:"structure"` + + // The name of the result set column. The name of the result set is available + // for columns of all data types except for arrays. + Name *string `type:"string"` + + // The data type of the result set column. The data type can be a scalar or + // complex. Scalar data types are integers, strings, doubles, Booleans, and + // others. Complex data types are types such as arrays, rows, and others. + // + // Type is a required field + Type *Type `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ColumnInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ColumnInfo) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ColumnInfo) SetName(v string) *ColumnInfo { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *ColumnInfo) SetType(v *Type) *ColumnInfo { + s.Type = v + return s +} + +// Unable to poll results for a cancelled query. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateScheduledQueryInput struct { + _ struct{} `type:"structure"` + + // Using a ClientToken makes the call to CreateScheduledQuery idempotent, in + // other words, making the same request repeatedly will produce the same result. + // Making multiple identical CreateScheduledQuery requests has the same effect + // as making a single request. + // + // * If CreateScheduledQuery is called without a ClientToken, the Query SDK + // generates a ClientToken on your behalf. + // + // * After 8 hours, any request with the same ClientToken is treated as a + // new request. + // + // ClientToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateScheduledQueryInput's + // String and GoString methods. + ClientToken *string `min:"32" type:"string" idempotencyToken:"true" sensitive:"true"` + + // Configuration for error reporting. Error reports will be generated when a + // problem is encountered when writing the query results. + // + // ErrorReportConfiguration is a required field + ErrorReportConfiguration *ErrorReportConfiguration `type:"structure" required:"true"` + + // The Amazon KMS key used to encrypt the scheduled query resource, at-rest. + // If the Amazon KMS key is not specified, the scheduled query resource will + // be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, + // use the key ID, key ARN, alias name, or alias ARN. When using an alias name, + // prefix the name with alias/ + // + // If ErrorReportConfiguration uses SSE_KMS as encryption type, the same KmsKeyId + // is used to encrypt the error report at rest. + KmsKeyId *string `min:"1" type:"string"` + + // Name of the scheduled query. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Notification configuration for the scheduled query. A notification is sent + // by Timestream when a query run finishes, when the state is updated or when + // you delete it. + // + // NotificationConfiguration is a required field + NotificationConfiguration *NotificationConfiguration `type:"structure" required:"true"` + + // The query string to run. Parameter names can be specified in the query string + // @ character followed by an identifier. The named Parameter @scheduled_runtime + // is reserved and can be used in the query to get the time at which the query + // is scheduled to run. + // + // The timestamp calculated according to the ScheduleConfiguration parameter, + // will be the value of @scheduled_runtime paramater for each query run. For + // example, consider an instance of a scheduled query executing on 2021-12-01 + // 00:00:00. For this instance, the @scheduled_runtime parameter is initialized + // to the timestamp 2021-12-01 00:00:00 when invoking the query. + // + // QueryString is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateScheduledQueryInput's + // String and GoString methods. + // + // QueryString is a required field + QueryString *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The schedule configuration for the query. + // + // ScheduleConfiguration is a required field + ScheduleConfiguration *ScheduleConfiguration `type:"structure" required:"true"` + + // The ARN for the IAM role that Timestream will assume when running the scheduled + // query. + // + // ScheduledQueryExecutionRoleArn is a required field + ScheduledQueryExecutionRoleArn *string `min:"1" type:"string" required:"true"` + + // A list of key-value pairs to label the scheduled query. + Tags []*Tag `type:"list"` + + // Configuration used for writing the result of a query. + TargetConfiguration *TargetConfiguration `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 CreateScheduledQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateScheduledQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateScheduledQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateScheduledQueryInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 32 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 32)) + } + if s.ErrorReportConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ErrorReportConfiguration")) + } + if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.NotificationConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("NotificationConfiguration")) + } + if s.QueryString == nil { + invalidParams.Add(request.NewErrParamRequired("QueryString")) + } + if s.QueryString != nil && len(*s.QueryString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) + } + if s.ScheduleConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduleConfiguration")) + } + if s.ScheduledQueryExecutionRoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduledQueryExecutionRoleArn")) + } + if s.ScheduledQueryExecutionRoleArn != nil && len(*s.ScheduledQueryExecutionRoleArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduledQueryExecutionRoleArn", 1)) + } + if s.ErrorReportConfiguration != nil { + if err := s.ErrorReportConfiguration.Validate(); err != nil { + invalidParams.AddNested("ErrorReportConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.NotificationConfiguration != nil { + if err := s.NotificationConfiguration.Validate(); err != nil { + invalidParams.AddNested("NotificationConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.ScheduleConfiguration != nil { + if err := s.ScheduleConfiguration.Validate(); err != nil { + invalidParams.AddNested("ScheduleConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + if s.TargetConfiguration != nil { + if err := s.TargetConfiguration.Validate(); err != nil { + invalidParams.AddNested("TargetConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateScheduledQueryInput) SetClientToken(v string) *CreateScheduledQueryInput { + s.ClientToken = &v + return s +} + +// SetErrorReportConfiguration sets the ErrorReportConfiguration field's value. +func (s *CreateScheduledQueryInput) SetErrorReportConfiguration(v *ErrorReportConfiguration) *CreateScheduledQueryInput { + s.ErrorReportConfiguration = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *CreateScheduledQueryInput) SetKmsKeyId(v string) *CreateScheduledQueryInput { + s.KmsKeyId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateScheduledQueryInput) SetName(v string) *CreateScheduledQueryInput { + s.Name = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *CreateScheduledQueryInput) SetNotificationConfiguration(v *NotificationConfiguration) *CreateScheduledQueryInput { + s.NotificationConfiguration = v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *CreateScheduledQueryInput) SetQueryString(v string) *CreateScheduledQueryInput { + s.QueryString = &v + return s +} + +// SetScheduleConfiguration sets the ScheduleConfiguration field's value. +func (s *CreateScheduledQueryInput) SetScheduleConfiguration(v *ScheduleConfiguration) *CreateScheduledQueryInput { + s.ScheduleConfiguration = v + return s +} + +// SetScheduledQueryExecutionRoleArn sets the ScheduledQueryExecutionRoleArn field's value. +func (s *CreateScheduledQueryInput) SetScheduledQueryExecutionRoleArn(v string) *CreateScheduledQueryInput { + s.ScheduledQueryExecutionRoleArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateScheduledQueryInput) SetTags(v []*Tag) *CreateScheduledQueryInput { + s.Tags = v + return s +} + +// SetTargetConfiguration sets the TargetConfiguration field's value. +func (s *CreateScheduledQueryInput) SetTargetConfiguration(v *TargetConfiguration) *CreateScheduledQueryInput { + s.TargetConfiguration = v + return s +} + +type CreateScheduledQueryOutput struct { + _ struct{} `type:"structure"` + + // ARN for the created scheduled query. + // + // Arn is a required field + Arn *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 CreateScheduledQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateScheduledQueryOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateScheduledQueryOutput) SetArn(v string) *CreateScheduledQueryOutput { + s.Arn = &v + return s +} + +// Datum represents a single data point in a query result. +type Datum struct { + _ struct{} `type:"structure"` + + // Indicates if the data point is an array. + ArrayValue []*Datum `type:"list"` + + // Indicates if the data point is null. + NullValue *bool `type:"boolean"` + + // Indicates if the data point is a row. + RowValue *Row `type:"structure"` + + // Indicates if the data point is a scalar value such as integer, string, double, + // or Boolean. + ScalarValue *string `type:"string"` + + // Indicates if the data point is a timeseries data type. + TimeSeriesValue []*TimeSeriesDataPoint `type:"list"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Datum) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Datum) GoString() string { + return s.String() +} + +// SetArrayValue sets the ArrayValue field's value. +func (s *Datum) SetArrayValue(v []*Datum) *Datum { + s.ArrayValue = v + return s +} + +// SetNullValue sets the NullValue field's value. +func (s *Datum) SetNullValue(v bool) *Datum { + s.NullValue = &v + return s +} + +// SetRowValue sets the RowValue field's value. +func (s *Datum) SetRowValue(v *Row) *Datum { + s.RowValue = v + return s +} + +// SetScalarValue sets the ScalarValue field's value. +func (s *Datum) SetScalarValue(v string) *Datum { + s.ScalarValue = &v + return s +} + +// SetTimeSeriesValue sets the TimeSeriesValue field's value. +func (s *Datum) SetTimeSeriesValue(v []*TimeSeriesDataPoint) *Datum { + s.TimeSeriesValue = v + return s +} + +type DeleteScheduledQueryInput struct { + _ struct{} `type:"structure"` + + // The ARN of the scheduled query. + // + // ScheduledQueryArn is a required field + ScheduledQueryArn *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 DeleteScheduledQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteScheduledQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteScheduledQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteScheduledQueryInput"} + if s.ScheduledQueryArn == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduledQueryArn")) + } + if s.ScheduledQueryArn != nil && len(*s.ScheduledQueryArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduledQueryArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScheduledQueryArn sets the ScheduledQueryArn field's value. +func (s *DeleteScheduledQueryInput) SetScheduledQueryArn(v string) *DeleteScheduledQueryInput { + s.ScheduledQueryArn = &v + return s +} + +type DeleteScheduledQueryOutput 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 DeleteScheduledQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteScheduledQueryOutput) GoString() string { + return s.String() +} + +type DescribeEndpointsInput 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 DescribeEndpointsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeEndpointsInput) GoString() string { + return s.String() +} + +type DescribeEndpointsOutput struct { + _ struct{} `type:"structure"` + + // An Endpoints object is returned when a DescribeEndpoints request is made. + // + // Endpoints is a required field + Endpoints []*Endpoint `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 DescribeEndpointsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeEndpointsOutput) GoString() string { + return s.String() +} + +// SetEndpoints sets the Endpoints field's value. +func (s *DescribeEndpointsOutput) SetEndpoints(v []*Endpoint) *DescribeEndpointsOutput { + s.Endpoints = v + return s +} + +type DescribeScheduledQueryInput struct { + _ struct{} `type:"structure"` + + // The ARN of the scheduled query. + // + // ScheduledQueryArn is a required field + ScheduledQueryArn *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 DescribeScheduledQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeScheduledQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeScheduledQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeScheduledQueryInput"} + if s.ScheduledQueryArn == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduledQueryArn")) + } + if s.ScheduledQueryArn != nil && len(*s.ScheduledQueryArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduledQueryArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScheduledQueryArn sets the ScheduledQueryArn field's value. +func (s *DescribeScheduledQueryInput) SetScheduledQueryArn(v string) *DescribeScheduledQueryInput { + s.ScheduledQueryArn = &v + return s +} + +type DescribeScheduledQueryOutput struct { + _ struct{} `type:"structure"` + + // The scheduled query. + // + // ScheduledQuery is a required field + ScheduledQuery *ScheduledQueryDescription `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeScheduledQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DescribeScheduledQueryOutput) GoString() string { + return s.String() +} + +// SetScheduledQuery sets the ScheduledQuery field's value. +func (s *DescribeScheduledQueryOutput) SetScheduledQuery(v *ScheduledQueryDescription) *DescribeScheduledQueryOutput { + s.ScheduledQuery = v + return s +} + +// This type is used to map column(s) from the query result to a dimension in +// the destination table. +type DimensionMapping struct { + _ struct{} `type:"structure"` + + // Type for the dimension. + // + // DimensionValueType is a required field + DimensionValueType *string `type:"string" required:"true" enum:"DimensionValueType"` + + // Column name from query result. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DimensionMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DimensionMapping) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DimensionMapping) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DimensionMapping"} + if s.DimensionValueType == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionValueType")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDimensionValueType sets the DimensionValueType field's value. +func (s *DimensionMapping) SetDimensionValueType(v string) *DimensionMapping { + s.DimensionValueType = &v + return s +} + +// SetName sets the Name field's value. +func (s *DimensionMapping) SetName(v string) *DimensionMapping { + s.Name = &v + return s +} + +// Represents an available endpoint against which to make API calls against, +// as well as the TTL for that endpoint. +type Endpoint struct { + _ struct{} `type:"structure"` + + // An endpoint address. + // + // Address is a required field + Address *string `type:"string" required:"true"` + + // The TTL for the endpoint, in minutes. + // + // CachePeriodInMinutes is a required field + CachePeriodInMinutes *int64 `type:"long" 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 Endpoint) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Endpoint) GoString() string { + return s.String() +} + +// SetAddress sets the Address field's value. +func (s *Endpoint) SetAddress(v string) *Endpoint { + s.Address = &v + return s +} + +// SetCachePeriodInMinutes sets the CachePeriodInMinutes field's value. +func (s *Endpoint) SetCachePeriodInMinutes(v int64) *Endpoint { + s.CachePeriodInMinutes = &v + return s +} + +// Configuration required for error reporting. +type ErrorReportConfiguration struct { + _ struct{} `type:"structure"` + + // The S3 configuration for the error reports. + // + // S3Configuration is a required field + S3Configuration *S3Configuration `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ErrorReportConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ErrorReportConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ErrorReportConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ErrorReportConfiguration"} + if s.S3Configuration == nil { + invalidParams.Add(request.NewErrParamRequired("S3Configuration")) + } + if s.S3Configuration != nil { + if err := s.S3Configuration.Validate(); err != nil { + invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *ErrorReportConfiguration) SetS3Configuration(v *S3Configuration) *ErrorReportConfiguration { + s.S3Configuration = v + return s +} + +// This contains the location of the error report for a single scheduled query +// call. +type ErrorReportLocation struct { + _ struct{} `type:"structure"` + + // The S3 location where error reports are written. + S3ReportLocation *S3ReportLocation `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 ErrorReportLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ErrorReportLocation) GoString() string { + return s.String() +} + +// SetS3ReportLocation sets the S3ReportLocation field's value. +func (s *ErrorReportLocation) SetS3ReportLocation(v *S3ReportLocation) *ErrorReportLocation { + s.S3ReportLocation = v + return s +} + +type ExecuteScheduledQueryInput struct { + _ struct{} `type:"structure"` + + // Not used. + // + // ClientToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ExecuteScheduledQueryInput's + // String and GoString methods. + ClientToken *string `min:"32" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The timestamp in UTC. Query will be run as if it was invoked at this timestamp. + // + // InvocationTime is a required field + InvocationTime *time.Time `type:"timestamp" required:"true"` + + // ARN of the scheduled query. + // + // ScheduledQueryArn is a required field + ScheduledQueryArn *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 ExecuteScheduledQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExecuteScheduledQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ExecuteScheduledQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ExecuteScheduledQueryInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 32 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 32)) + } + if s.InvocationTime == nil { + invalidParams.Add(request.NewErrParamRequired("InvocationTime")) + } + if s.ScheduledQueryArn == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduledQueryArn")) + } + if s.ScheduledQueryArn != nil && len(*s.ScheduledQueryArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduledQueryArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *ExecuteScheduledQueryInput) SetClientToken(v string) *ExecuteScheduledQueryInput { + s.ClientToken = &v + return s +} + +// SetInvocationTime sets the InvocationTime field's value. +func (s *ExecuteScheduledQueryInput) SetInvocationTime(v time.Time) *ExecuteScheduledQueryInput { + s.InvocationTime = &v + return s +} + +// SetScheduledQueryArn sets the ScheduledQueryArn field's value. +func (s *ExecuteScheduledQueryInput) SetScheduledQueryArn(v string) *ExecuteScheduledQueryInput { + s.ScheduledQueryArn = &v + return s +} + +type ExecuteScheduledQueryOutput 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 ExecuteScheduledQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExecuteScheduledQueryOutput) GoString() string { + return s.String() +} + +// Statistics for a single scheduled query run. +type ExecutionStats struct { + _ struct{} `type:"structure"` + + // Bytes metered for a single scheduled query run. + BytesMetered *int64 `type:"long"` + + // Data writes metered for records ingested in a single scheduled query run. + DataWrites *int64 `type:"long"` + + // Total time, measured in milliseconds, that was needed for the scheduled query + // run to complete. + ExecutionTimeInMillis *int64 `type:"long"` + + // Number of rows present in the output from running a query before ingestion + // to destination data source. + QueryResultRows *int64 `type:"long"` + + // The number of records ingested for a single scheduled query run. + RecordsIngested *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 ExecutionStats) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ExecutionStats) GoString() string { + return s.String() +} + +// SetBytesMetered sets the BytesMetered field's value. +func (s *ExecutionStats) SetBytesMetered(v int64) *ExecutionStats { + s.BytesMetered = &v + return s +} + +// SetDataWrites sets the DataWrites field's value. +func (s *ExecutionStats) SetDataWrites(v int64) *ExecutionStats { + s.DataWrites = &v + return s +} + +// SetExecutionTimeInMillis sets the ExecutionTimeInMillis field's value. +func (s *ExecutionStats) SetExecutionTimeInMillis(v int64) *ExecutionStats { + s.ExecutionTimeInMillis = &v + return s +} + +// SetQueryResultRows sets the QueryResultRows field's value. +func (s *ExecutionStats) SetQueryResultRows(v int64) *ExecutionStats { + s.QueryResultRows = &v + return s +} + +// SetRecordsIngested sets the RecordsIngested field's value. +func (s *ExecutionStats) SetRecordsIngested(v int64) *ExecutionStats { + s.RecordsIngested = &v + return s +} + +// Timestream was unable to fully process this request because of an internal +// server error. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The requested endpoint was not valid. +type InvalidEndpointException 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 InvalidEndpointException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s InvalidEndpointException) GoString() string { + return s.String() +} + +func newErrorInvalidEndpointException(v protocol.ResponseMetadata) error { + return &InvalidEndpointException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidEndpointException) Code() string { + return "InvalidEndpointException" +} + +// Message returns the exception's message. +func (s *InvalidEndpointException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidEndpointException) OrigErr() error { + return nil +} + +func (s *InvalidEndpointException) 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 *InvalidEndpointException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InvalidEndpointException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListScheduledQueriesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of items to return in the output. If the total number + // of items available is more than the value specified, a NextToken is provided + // in the output. To resume pagination, provide the NextToken value as the argument + // to the subsequent call to ListScheduledQueriesRequest. + MaxResults *int64 `min:"1" type:"integer"` + + // A pagination token to resume pagination. + NextToken *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 ListScheduledQueriesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListScheduledQueriesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListScheduledQueriesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListScheduledQueriesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListScheduledQueriesInput) SetMaxResults(v int64) *ListScheduledQueriesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListScheduledQueriesInput) SetNextToken(v string) *ListScheduledQueriesInput { + s.NextToken = &v + return s +} + +type ListScheduledQueriesOutput struct { + _ struct{} `type:"structure"` + + // A token to specify where to start paginating. This is the NextToken from + // a previously truncated response. + NextToken *string `type:"string"` + + // A list of scheduled queries. + // + // ScheduledQueries is a required field + ScheduledQueries []*ScheduledQuery `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 ListScheduledQueriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListScheduledQueriesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListScheduledQueriesOutput) SetNextToken(v string) *ListScheduledQueriesOutput { + s.NextToken = &v + return s +} + +// SetScheduledQueries sets the ScheduledQueries field's value. +func (s *ListScheduledQueriesOutput) SetScheduledQueries(v []*ScheduledQuery) *ListScheduledQueriesOutput { + s.ScheduledQueries = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The maximum number of tags to return. + MaxResults *int64 `min:"1" type:"integer"` + + // A pagination token to resume pagination. + NextToken *string `type:"string"` + + // The Timestream resource with tags to be listed. This value is an Amazon Resource + // Name (ARN). + // + // 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + 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 +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTagsForResourceInput) SetMaxResults(v int64) *ListTagsForResourceInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { + s.NextToken = &v + return s +} + +// 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 pagination token to resume pagination with a subsequent call to ListTagsForResourceResponse. + NextToken *string `type:"string"` + + // The tags currently associated with the Timestream resource. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s 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() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// MixedMeasureMappings are mappings that can be used to ingest data into a +// mixture of narrow and multi measures in the derived table. +type MixedMeasureMapping struct { + _ struct{} `type:"structure"` + + // Refers to the value of measure_name in a result row. This field is required + // if MeasureNameColumn is provided. + MeasureName *string `type:"string"` + + // Type of the value that is to be read from sourceColumn. If the mapping is + // for MULTI, use MeasureValueType.MULTI. + // + // MeasureValueType is a required field + MeasureValueType *string `type:"string" required:"true" enum:"MeasureValueType"` + + // Required when measureValueType is MULTI. Attribute mappings for MULTI value + // measures. + MultiMeasureAttributeMappings []*MultiMeasureAttributeMapping `min:"1" type:"list"` + + // This field refers to the source column from which measure-value is to be + // read for result materialization. + SourceColumn *string `type:"string"` + + // Target measure name to be used. If not provided, the target measure name + // by default would be measure-name if provided, or sourceColumn otherwise. + TargetMeasureName *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 MixedMeasureMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MixedMeasureMapping) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MixedMeasureMapping) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MixedMeasureMapping"} + if s.MeasureValueType == nil { + invalidParams.Add(request.NewErrParamRequired("MeasureValueType")) + } + if s.MultiMeasureAttributeMappings != nil && len(s.MultiMeasureAttributeMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MultiMeasureAttributeMappings", 1)) + } + if s.MultiMeasureAttributeMappings != nil { + for i, v := range s.MultiMeasureAttributeMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MultiMeasureAttributeMappings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeasureName sets the MeasureName field's value. +func (s *MixedMeasureMapping) SetMeasureName(v string) *MixedMeasureMapping { + s.MeasureName = &v + return s +} + +// SetMeasureValueType sets the MeasureValueType field's value. +func (s *MixedMeasureMapping) SetMeasureValueType(v string) *MixedMeasureMapping { + s.MeasureValueType = &v + return s +} + +// SetMultiMeasureAttributeMappings sets the MultiMeasureAttributeMappings field's value. +func (s *MixedMeasureMapping) SetMultiMeasureAttributeMappings(v []*MultiMeasureAttributeMapping) *MixedMeasureMapping { + s.MultiMeasureAttributeMappings = v + return s +} + +// SetSourceColumn sets the SourceColumn field's value. +func (s *MixedMeasureMapping) SetSourceColumn(v string) *MixedMeasureMapping { + s.SourceColumn = &v + return s +} + +// SetTargetMeasureName sets the TargetMeasureName field's value. +func (s *MixedMeasureMapping) SetTargetMeasureName(v string) *MixedMeasureMapping { + s.TargetMeasureName = &v + return s +} + +// Attribute mapping for MULTI value measures. +type MultiMeasureAttributeMapping struct { + _ struct{} `type:"structure"` + + // Type of the attribute to be read from the source column. + // + // MeasureValueType is a required field + MeasureValueType *string `type:"string" required:"true" enum:"ScalarMeasureValueType"` + + // Source column from where the attribute value is to be read. + // + // SourceColumn is a required field + SourceColumn *string `type:"string" required:"true"` + + // Custom name to be used for attribute name in derived table. If not provided, + // source column name would be used. + TargetMultiMeasureAttributeName *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 MultiMeasureAttributeMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MultiMeasureAttributeMapping) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MultiMeasureAttributeMapping) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MultiMeasureAttributeMapping"} + if s.MeasureValueType == nil { + invalidParams.Add(request.NewErrParamRequired("MeasureValueType")) + } + if s.SourceColumn == nil { + invalidParams.Add(request.NewErrParamRequired("SourceColumn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeasureValueType sets the MeasureValueType field's value. +func (s *MultiMeasureAttributeMapping) SetMeasureValueType(v string) *MultiMeasureAttributeMapping { + s.MeasureValueType = &v + return s +} + +// SetSourceColumn sets the SourceColumn field's value. +func (s *MultiMeasureAttributeMapping) SetSourceColumn(v string) *MultiMeasureAttributeMapping { + s.SourceColumn = &v + return s +} + +// SetTargetMultiMeasureAttributeName sets the TargetMultiMeasureAttributeName field's value. +func (s *MultiMeasureAttributeMapping) SetTargetMultiMeasureAttributeName(v string) *MultiMeasureAttributeMapping { + s.TargetMultiMeasureAttributeName = &v + return s +} + +// Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. +// MultiMeasureMappings can be used to ingest data as multi measures in the +// derived table. +type MultiMeasureMappings struct { + _ struct{} `type:"structure"` + + // Required. Attribute mappings to be used for mapping query results to ingest + // data for multi-measure attributes. + // + // MultiMeasureAttributeMappings is a required field + MultiMeasureAttributeMappings []*MultiMeasureAttributeMapping `min:"1" type:"list" required:"true"` + + // The name of the target multi-measure name in the derived table. This input + // is required when measureNameColumn is not provided. If MeasureNameColumn + // is provided, then value from that column will be used as multi-measure name. + TargetMultiMeasureName *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 MultiMeasureMappings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MultiMeasureMappings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MultiMeasureMappings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MultiMeasureMappings"} + if s.MultiMeasureAttributeMappings == nil { + invalidParams.Add(request.NewErrParamRequired("MultiMeasureAttributeMappings")) + } + if s.MultiMeasureAttributeMappings != nil && len(s.MultiMeasureAttributeMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MultiMeasureAttributeMappings", 1)) + } + if s.MultiMeasureAttributeMappings != nil { + for i, v := range s.MultiMeasureAttributeMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MultiMeasureAttributeMappings", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMultiMeasureAttributeMappings sets the MultiMeasureAttributeMappings field's value. +func (s *MultiMeasureMappings) SetMultiMeasureAttributeMappings(v []*MultiMeasureAttributeMapping) *MultiMeasureMappings { + s.MultiMeasureAttributeMappings = v + return s +} + +// SetTargetMultiMeasureName sets the TargetMultiMeasureName field's value. +func (s *MultiMeasureMappings) SetTargetMultiMeasureName(v string) *MultiMeasureMappings { + s.TargetMultiMeasureName = &v + return s +} + +// Notification configuration for a scheduled query. A notification is sent +// by Timestream when a scheduled query is created, its state is updated or +// when it is deleted. +type NotificationConfiguration struct { + _ struct{} `type:"structure"` + + // Details on SNS configuration. + // + // SnsConfiguration is a required field + SnsConfiguration *SnsConfiguration `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NotificationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s NotificationConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NotificationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotificationConfiguration"} + if s.SnsConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("SnsConfiguration")) + } + if s.SnsConfiguration != nil { + if err := s.SnsConfiguration.Validate(); err != nil { + invalidParams.AddNested("SnsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSnsConfiguration sets the SnsConfiguration field's value. +func (s *NotificationConfiguration) SetSnsConfiguration(v *SnsConfiguration) *NotificationConfiguration { + s.SnsConfiguration = v + return s +} + +// Mapping for named parameters. +type ParameterMapping struct { + _ struct{} `type:"structure"` + + // Parameter name. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // Contains the data type of a column in a query result set. The data type can + // be scalar or complex. The supported scalar data types are integers, Boolean, + // string, double, timestamp, date, time, and intervals. The supported complex + // data types are arrays, rows, and timeseries. + // + // Type is a required field + Type *Type `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ParameterMapping) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ParameterMapping) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ParameterMapping) SetName(v string) *ParameterMapping { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *ParameterMapping) SetType(v *Type) *ParameterMapping { + s.Type = v + return s +} + +type PrepareQueryInput struct { + _ struct{} `type:"structure"` + + // The Timestream query string that you want to use as a prepared statement. + // Parameter names can be specified in the query string @ character followed + // by an identifier. + // + // QueryString is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PrepareQueryInput's + // String and GoString methods. + // + // QueryString is a required field + QueryString *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // By setting this value to true, Timestream will only validate that the query + // string is a valid Timestream query, and not store the prepared query for + // later use. + ValidateOnly *bool `type:"boolean"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PrepareQueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PrepareQueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PrepareQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PrepareQueryInput"} + if s.QueryString == nil { + invalidParams.Add(request.NewErrParamRequired("QueryString")) + } + if s.QueryString != nil && len(*s.QueryString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetQueryString sets the QueryString field's value. +func (s *PrepareQueryInput) SetQueryString(v string) *PrepareQueryInput { + s.QueryString = &v + return s +} + +// SetValidateOnly sets the ValidateOnly field's value. +func (s *PrepareQueryInput) SetValidateOnly(v bool) *PrepareQueryInput { + s.ValidateOnly = &v + return s +} + +type PrepareQueryOutput struct { + _ struct{} `type:"structure"` + + // A list of SELECT clause columns of the submitted query string. + // + // Columns is a required field + Columns []*SelectColumn `type:"list" required:"true"` + + // A list of parameters used in the submitted query string. + // + // Parameters is a required field + Parameters []*ParameterMapping `type:"list" required:"true"` + + // The query string that you want prepare. + // + // QueryString is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by PrepareQueryOutput's + // String and GoString methods. + // + // QueryString is a required field + QueryString *string `min:"1" type:"string" required:"true" 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 PrepareQueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s PrepareQueryOutput) GoString() string { + return s.String() +} + +// SetColumns sets the Columns field's value. +func (s *PrepareQueryOutput) SetColumns(v []*SelectColumn) *PrepareQueryOutput { + s.Columns = v + return s +} + +// SetParameters sets the Parameters field's value. +func (s *PrepareQueryOutput) SetParameters(v []*ParameterMapping) *PrepareQueryOutput { + s.Parameters = v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *PrepareQueryOutput) SetQueryString(v string) *PrepareQueryOutput { + s.QueryString = &v + return s +} + +// Timestream was unable to run the query successfully. +type QueryExecutionException 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 QueryExecutionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueryExecutionException) GoString() string { + return s.String() +} + +func newErrorQueryExecutionException(v protocol.ResponseMetadata) error { + return &QueryExecutionException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *QueryExecutionException) Code() string { + return "QueryExecutionException" +} + +// Message returns the exception's message. +func (s *QueryExecutionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *QueryExecutionException) OrigErr() error { + return nil +} + +func (s *QueryExecutionException) 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 *QueryExecutionException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *QueryExecutionException) RequestID() string { + return s.RespMetadata.RequestID +} + +type QueryInput struct { + _ struct{} `type:"structure"` + + // Unique, case-sensitive string of up to 64 ASCII characters specified when + // a Query request is made. Providing a ClientToken makes the call to Query + // idempotent. This means that running the same query repeatedly will produce + // the same result. In other words, making multiple identical Query requests + // has the same effect as making a single request. When using ClientToken in + // a query, note the following: + // + // * If the Query API is instantiated without a ClientToken, the Query SDK + // generates a ClientToken on your behalf. + // + // * If the Query invocation only contains the ClientToken but does not include + // a NextToken, that invocation of Query is assumed to be a new query run. + // + // * If the invocation contains NextToken, that particular invocation is + // assumed to be a subsequent invocation of a prior call to the Query API, + // and a result set is returned. + // + // * After 4 hours, any request with the same ClientToken is treated as a + // new request. + // + // ClientToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by QueryInput's + // String and GoString methods. + ClientToken *string `min:"32" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The total number of rows to be returned in the Query output. The initial + // run of Query with a MaxRows value specified will return the result set of + // the query in two cases: + // + // * The size of the result is less than 1MB. + // + // * The number of rows in the result set is less than the value of maxRows. + // + // Otherwise, the initial invocation of Query only returns a NextToken, which + // can then be used in subsequent calls to fetch the result set. To resume pagination, + // provide the NextToken value in the subsequent command. + // + // If the row size is large (e.g. a row has many columns), Timestream may return + // fewer rows to keep the response size from exceeding the 1 MB limit. If MaxRows + // is not provided, Timestream will send the necessary number of rows to meet + // the 1 MB limit. + MaxRows *int64 `min:"1" type:"integer"` + + // A pagination token used to return a set of results. When the Query API is + // invoked using NextToken, that particular invocation is assumed to be a subsequent + // invocation of a prior call to Query, and a result set is returned. However, + // if the Query invocation only contains the ClientToken, that invocation of + // Query is assumed to be a new query run. + // + // Note the following when using NextToken in a query: + // + // * A pagination token can be used for up to five Query invocations, OR + // for a duration of up to 1 hour – whichever comes first. + // + // * Using the same NextToken will return the same set of records. To keep + // paginating through the result set, you must to use the most recent nextToken. + // + // * Suppose a Query invocation returns two NextToken values, TokenA and + // TokenB. If TokenB is used in a subsequent Query invocation, then TokenA + // is invalidated and cannot be reused. + // + // * To request a previous result set from a query after pagination has begun, + // you must re-invoke the Query API. + // + // * The latest NextToken should be used to paginate until null is returned, + // at which point a new NextToken should be used. + // + // * If the IAM principal of the query initiator and the result reader are + // not the same and/or the query initiator and the result reader do not have + // the same query string in the query requests, the query will fail with + // an Invalid pagination token error. + NextToken *string `min:"1" type:"string"` + + // The query to be run by Timestream. + // + // QueryString is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by QueryInput's + // String and GoString methods. + // + // QueryString is a required field + QueryString *string `min:"1" type:"string" required:"true" 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 QueryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *QueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "QueryInput"} + if s.ClientToken != nil && len(*s.ClientToken) < 32 { + invalidParams.Add(request.NewErrParamMinLen("ClientToken", 32)) + } + if s.MaxRows != nil && *s.MaxRows < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxRows", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.QueryString == nil { + invalidParams.Add(request.NewErrParamRequired("QueryString")) + } + if s.QueryString != nil && len(*s.QueryString) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueryString", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *QueryInput) SetClientToken(v string) *QueryInput { + s.ClientToken = &v + return s +} + +// SetMaxRows sets the MaxRows field's value. +func (s *QueryInput) SetMaxRows(v int64) *QueryInput { + s.MaxRows = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *QueryInput) SetNextToken(v string) *QueryInput { + s.NextToken = &v + return s +} + +// SetQueryString sets the QueryString field's value. +func (s *QueryInput) SetQueryString(v string) *QueryInput { + s.QueryString = &v + return s +} + +type QueryOutput struct { + _ struct{} `type:"structure"` + + // The column data types of the returned result set. + // + // ColumnInfo is a required field + ColumnInfo []*ColumnInfo `type:"list" required:"true"` + + // A pagination token that can be used again on a Query call to get the next + // set of results. + NextToken *string `min:"1" type:"string"` + + // A unique ID for the given query. + // + // QueryId is a required field + QueryId *string `min:"1" type:"string" required:"true"` + + // Information about the status of the query, including progress and bytes scanned. + QueryStatus *QueryStatus `type:"structure"` + + // The result set rows returned by the query. + // + // Rows is a required field + Rows []*Row `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 QueryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueryOutput) GoString() string { + return s.String() +} + +// SetColumnInfo sets the ColumnInfo field's value. +func (s *QueryOutput) SetColumnInfo(v []*ColumnInfo) *QueryOutput { + s.ColumnInfo = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *QueryOutput) SetNextToken(v string) *QueryOutput { + s.NextToken = &v + return s +} + +// SetQueryId sets the QueryId field's value. +func (s *QueryOutput) SetQueryId(v string) *QueryOutput { + s.QueryId = &v + return s +} + +// SetQueryStatus sets the QueryStatus field's value. +func (s *QueryOutput) SetQueryStatus(v *QueryStatus) *QueryOutput { + s.QueryStatus = v + return s +} + +// SetRows sets the Rows field's value. +func (s *QueryOutput) SetRows(v []*Row) *QueryOutput { + s.Rows = v + return s +} + +// Information about the status of the query, including progress and bytes scanned. +type QueryStatus struct { + _ struct{} `type:"structure"` + + // The amount of data scanned by the query in bytes that you will be charged + // for. This is a cumulative sum and represents the total amount of data that + // you will be charged for since the query was started. The charge is applied + // only once and is either applied when the query completes running or when + // the query is cancelled. + CumulativeBytesMetered *int64 `type:"long"` + + // The amount of data scanned by the query in bytes. This is a cumulative sum + // and represents the total amount of bytes scanned since the query was started. + CumulativeBytesScanned *int64 `type:"long"` + + // The progress of the query, expressed as a percentage. + ProgressPercentage *float64 `type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueryStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s QueryStatus) GoString() string { + return s.String() +} + +// SetCumulativeBytesMetered sets the CumulativeBytesMetered field's value. +func (s *QueryStatus) SetCumulativeBytesMetered(v int64) *QueryStatus { + s.CumulativeBytesMetered = &v + return s +} + +// SetCumulativeBytesScanned sets the CumulativeBytesScanned field's value. +func (s *QueryStatus) SetCumulativeBytesScanned(v int64) *QueryStatus { + s.CumulativeBytesScanned = &v + return s +} + +// SetProgressPercentage sets the ProgressPercentage field's value. +func (s *QueryStatus) SetProgressPercentage(v float64) *QueryStatus { + s.ProgressPercentage = &v + return s +} + +// The requested resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // The ARN of the scheduled query. + ScheduledQueryArn *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 single row in the query results. +type Row struct { + _ struct{} `type:"structure"` + + // List of data points in a single row of the result set. + // + // Data is a required field + Data []*Datum `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 Row) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s Row) GoString() string { + return s.String() +} + +// SetData sets the Data field's value. +func (s *Row) SetData(v []*Datum) *Row { + s.Data = v + return s +} + +// Details on S3 location for error reports that result from running a query. +type S3Configuration struct { + _ struct{} `type:"structure"` + + // Name of the S3 bucket under which error reports will be created. + // + // BucketName is a required field + BucketName *string `min:"3" type:"string" required:"true"` + + // Encryption at rest options for the error reports. If no encryption option + // is specified, Timestream will choose SSE_S3 as default. + EncryptionOption *string `type:"string" enum:"S3EncryptionOption"` + + // Prefix for the error report key. Timestream by default adds the following + // prefix to the error report path. + ObjectKeyPrefix *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 S3Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s S3Configuration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Configuration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Configuration"} + if s.BucketName == nil { + invalidParams.Add(request.NewErrParamRequired("BucketName")) + } + if s.BucketName != nil && len(*s.BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("BucketName", 3)) + } + if s.ObjectKeyPrefix != nil && len(*s.ObjectKeyPrefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ObjectKeyPrefix", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} - return p.Err() +// SetBucketName sets the BucketName field's value. +func (s *S3Configuration) SetBucketName(v string) *S3Configuration { + s.BucketName = &v + return s } -// You are not authorized to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetEncryptionOption sets the EncryptionOption field's value. +func (s *S3Configuration) SetEncryptionOption(v string) *S3Configuration { + s.EncryptionOption = &v + return s +} - Message_ *string `locationName:"Message" type:"string"` +// SetObjectKeyPrefix sets the ObjectKeyPrefix field's value. +func (s *S3Configuration) SetObjectKeyPrefix(v string) *S3Configuration { + s.ObjectKeyPrefix = &v + return s +} + +// S3 report location for the scheduled query run. +type S3ReportLocation struct { + _ struct{} `type:"structure"` + + // S3 bucket name. + BucketName *string `min:"3" type:"string"` + + // S3 key. + ObjectKey *string `type:"string"` } // String returns the string representation. @@ -501,7 +4314,7 @@ type AccessDeniedException 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 AccessDeniedException) String() string { +func (s S3ReportLocation) String() string { return awsutil.Prettify(s) } @@ -510,56 +4323,381 @@ func (s AccessDeniedException) 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 AccessDeniedException) GoString() string { +func (s S3ReportLocation) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, +// SetBucketName sets the BucketName field's value. +func (s *S3ReportLocation) SetBucketName(v string) *S3ReportLocation { + s.BucketName = &v + return s +} + +// SetObjectKey sets the ObjectKey field's value. +func (s *S3ReportLocation) SetObjectKey(v string) *S3ReportLocation { + s.ObjectKey = &v + return s +} + +// Configuration of the schedule of the query. +type ScheduleConfiguration struct { + _ struct{} `type:"structure"` + + // An expression that denotes when to trigger the scheduled query run. This + // can be a cron expression or a rate expression. + // + // ScheduleExpression is a required field + ScheduleExpression *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 ScheduleConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScheduleConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ScheduleConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ScheduleConfiguration"} + if s.ScheduleExpression == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduleExpression")) + } + if s.ScheduleExpression != nil && len(*s.ScheduleExpression) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduleExpression", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil +} + +// SetScheduleExpression sets the ScheduleExpression field's value. +func (s *ScheduleConfiguration) SetScheduleExpression(v string) *ScheduleConfiguration { + s.ScheduleExpression = &v + return s +} + +// Scheduled Query +type ScheduledQuery struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name. + // + // Arn is a required field + Arn *string `min:"1" type:"string" required:"true"` + + // The creation time of the scheduled query. + CreationTime *time.Time `type:"timestamp"` + + // Configuration for scheduled query error reporting. + ErrorReportConfiguration *ErrorReportConfiguration `type:"structure"` + + // Status of the last scheduled query run. + LastRunStatus *string `type:"string" enum:"ScheduledQueryRunStatus"` + + // The name of the scheduled query. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The next time the scheduled query is to be run. + NextInvocationTime *time.Time `type:"timestamp"` + + // The last time the scheduled query was run. + PreviousInvocationTime *time.Time `type:"timestamp"` + + // State of scheduled query. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ScheduledQueryState"` + + // Target data source where final scheduled query result will be written. + TargetDestination *TargetDestination `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 ScheduledQuery) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScheduledQuery) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ScheduledQuery) SetArn(v string) *ScheduledQuery { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ScheduledQuery) SetCreationTime(v time.Time) *ScheduledQuery { + s.CreationTime = &v + return s +} + +// SetErrorReportConfiguration sets the ErrorReportConfiguration field's value. +func (s *ScheduledQuery) SetErrorReportConfiguration(v *ErrorReportConfiguration) *ScheduledQuery { + s.ErrorReportConfiguration = v + return s +} + +// SetLastRunStatus sets the LastRunStatus field's value. +func (s *ScheduledQuery) SetLastRunStatus(v string) *ScheduledQuery { + s.LastRunStatus = &v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduledQuery) SetName(v string) *ScheduledQuery { + s.Name = &v + return s +} + +// SetNextInvocationTime sets the NextInvocationTime field's value. +func (s *ScheduledQuery) SetNextInvocationTime(v time.Time) *ScheduledQuery { + s.NextInvocationTime = &v + return s +} + +// SetPreviousInvocationTime sets the PreviousInvocationTime field's value. +func (s *ScheduledQuery) SetPreviousInvocationTime(v time.Time) *ScheduledQuery { + s.PreviousInvocationTime = &v + return s +} + +// SetState sets the State field's value. +func (s *ScheduledQuery) SetState(v string) *ScheduledQuery { + s.State = &v + return s +} + +// SetTargetDestination sets the TargetDestination field's value. +func (s *ScheduledQuery) SetTargetDestination(v *TargetDestination) *ScheduledQuery { + s.TargetDestination = v + return s +} + +// Structure that describes scheduled query. +type ScheduledQueryDescription struct { + _ struct{} `type:"structure"` + + // Scheduled query ARN. + // + // Arn is a required field + Arn *string `min:"1" type:"string" required:"true"` + + // Creation time of the scheduled query. + CreationTime *time.Time `type:"timestamp"` + + // Error-reporting configuration for the scheduled query. + ErrorReportConfiguration *ErrorReportConfiguration `type:"structure"` + + // A customer provided KMS key used to encrypt the scheduled query resource. + KmsKeyId *string `min:"1" type:"string"` + + // Runtime summary for the last scheduled query run. + LastRunSummary *ScheduledQueryRunSummary `type:"structure"` + + // Name of the scheduled query. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The next time the scheduled query is scheduled to run. + NextInvocationTime *time.Time `type:"timestamp"` + + // Notification configuration. + // + // NotificationConfiguration is a required field + NotificationConfiguration *NotificationConfiguration `type:"structure" required:"true"` + + // Last time the query was run. + PreviousInvocationTime *time.Time `type:"timestamp"` + + // The query to be run. + // + // QueryString is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by ScheduledQueryDescription's + // String and GoString methods. + // + // QueryString is a required field + QueryString *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // Runtime summary for the last five failed scheduled query runs. + RecentlyFailedRuns []*ScheduledQueryRunSummary `type:"list"` + + // Schedule configuration. + // + // ScheduleConfiguration is a required field + ScheduleConfiguration *ScheduleConfiguration `type:"structure" required:"true"` + + // IAM role that Timestream uses to run the schedule query. + ScheduledQueryExecutionRoleArn *string `min:"1" type:"string"` + + // State of the scheduled query. + // + // State is a required field + State *string `type:"string" required:"true" enum:"ScheduledQueryState"` + + // Scheduled query target store configuration. + TargetConfiguration *TargetConfiguration `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 ScheduledQueryDescription) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ScheduledQueryDescription) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ScheduledQueryDescription) SetArn(v string) *ScheduledQueryDescription { + s.Arn = &v + return s +} + +// SetCreationTime sets the CreationTime field's value. +func (s *ScheduledQueryDescription) SetCreationTime(v time.Time) *ScheduledQueryDescription { + s.CreationTime = &v + return s +} + +// SetErrorReportConfiguration sets the ErrorReportConfiguration field's value. +func (s *ScheduledQueryDescription) SetErrorReportConfiguration(v *ErrorReportConfiguration) *ScheduledQueryDescription { + s.ErrorReportConfiguration = v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *ScheduledQueryDescription) SetKmsKeyId(v string) *ScheduledQueryDescription { + s.KmsKeyId = &v + return s +} + +// SetLastRunSummary sets the LastRunSummary field's value. +func (s *ScheduledQueryDescription) SetLastRunSummary(v *ScheduledQueryRunSummary) *ScheduledQueryDescription { + s.LastRunSummary = v + return s +} + +// SetName sets the Name field's value. +func (s *ScheduledQueryDescription) SetName(v string) *ScheduledQueryDescription { + s.Name = &v + return s +} + +// SetNextInvocationTime sets the NextInvocationTime field's value. +func (s *ScheduledQueryDescription) SetNextInvocationTime(v time.Time) *ScheduledQueryDescription { + s.NextInvocationTime = &v + return s +} + +// SetNotificationConfiguration sets the NotificationConfiguration field's value. +func (s *ScheduledQueryDescription) SetNotificationConfiguration(v *NotificationConfiguration) *ScheduledQueryDescription { + s.NotificationConfiguration = v + return s } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +// SetPreviousInvocationTime sets the PreviousInvocationTime field's value. +func (s *ScheduledQueryDescription) SetPreviousInvocationTime(v time.Time) *ScheduledQueryDescription { + s.PreviousInvocationTime = &v + return s } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetQueryString sets the QueryString field's value. +func (s *ScheduledQueryDescription) SetQueryString(v string) *ScheduledQueryDescription { + s.QueryString = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil +// SetRecentlyFailedRuns sets the RecentlyFailedRuns field's value. +func (s *ScheduledQueryDescription) SetRecentlyFailedRuns(v []*ScheduledQueryRunSummary) *ScheduledQueryDescription { + s.RecentlyFailedRuns = v + return s } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetScheduleConfiguration sets the ScheduleConfiguration field's value. +func (s *ScheduledQueryDescription) SetScheduleConfiguration(v *ScheduleConfiguration) *ScheduledQueryDescription { + s.ScheduleConfiguration = v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetScheduledQueryExecutionRoleArn sets the ScheduledQueryExecutionRoleArn field's value. +func (s *ScheduledQueryDescription) SetScheduledQueryExecutionRoleArn(v string) *ScheduledQueryDescription { + s.ScheduledQueryExecutionRoleArn = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// SetState sets the State field's value. +func (s *ScheduledQueryDescription) SetState(v string) *ScheduledQueryDescription { + s.State = &v + return s } -type CancelQueryInput struct { +// SetTargetConfiguration sets the TargetConfiguration field's value. +func (s *ScheduledQueryDescription) SetTargetConfiguration(v *TargetConfiguration) *ScheduledQueryDescription { + s.TargetConfiguration = v + return s +} + +// Run summary for the scheduled query +type ScheduledQueryRunSummary struct { _ struct{} `type:"structure"` - // The id of the query that needs to be cancelled. QueryID is returned as part - // of QueryResult. - // - // QueryId is a required field - QueryId *string `min:"1" type:"string" required:"true"` + // S3 location for error report. + ErrorReportLocation *ErrorReportLocation `type:"structure"` + + // Runtime statistics for a scheduled run. + ExecutionStats *ExecutionStats `type:"structure"` + + // Error message for the scheduled query in case of failure. You might have + // to look at the error report to get more detailed error reasons. + FailureReason *string `type:"string"` + + // InvocationTime for this run. This is the time at which the query is scheduled + // to run. Parameter @scheduled_runtime can be used in the query to get the + // value. + InvocationTime *time.Time `type:"timestamp"` + + // The status of a scheduled query run. + RunStatus *string `type:"string" enum:"ScheduledQueryRunStatus"` + + // The actual time when the query was run. + TriggerTime *time.Time `type:"timestamp"` } // String returns the string representation. @@ -567,7 +4705,7 @@ type CancelQueryInput 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 CancelQueryInput) String() string { +func (s ScheduledQueryRunSummary) String() string { return awsutil.Prettify(s) } @@ -576,79 +4714,67 @@ func (s CancelQueryInput) 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 CancelQueryInput) GoString() string { +func (s ScheduledQueryRunSummary) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CancelQueryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CancelQueryInput"} - if s.QueryId == nil { - invalidParams.Add(request.NewErrParamRequired("QueryId")) - } - if s.QueryId != nil && len(*s.QueryId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("QueryId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetErrorReportLocation sets the ErrorReportLocation field's value. +func (s *ScheduledQueryRunSummary) SetErrorReportLocation(v *ErrorReportLocation) *ScheduledQueryRunSummary { + s.ErrorReportLocation = v + return s } -// SetQueryId sets the QueryId field's value. -func (s *CancelQueryInput) SetQueryId(v string) *CancelQueryInput { - s.QueryId = &v +// SetExecutionStats sets the ExecutionStats field's value. +func (s *ScheduledQueryRunSummary) SetExecutionStats(v *ExecutionStats) *ScheduledQueryRunSummary { + s.ExecutionStats = v return s } -type CancelQueryOutput struct { - _ struct{} `type:"structure"` - - // A CancellationMessage is returned when a CancelQuery request for the query - // specified by QueryId has already been issued. - CancellationMessage *string `type:"string"` +// SetFailureReason sets the FailureReason field's value. +func (s *ScheduledQueryRunSummary) SetFailureReason(v string) *ScheduledQueryRunSummary { + s.FailureReason = &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 CancelQueryOutput) String() string { - return awsutil.Prettify(s) +// SetInvocationTime sets the InvocationTime field's value. +func (s *ScheduledQueryRunSummary) SetInvocationTime(v time.Time) *ScheduledQueryRunSummary { + s.InvocationTime = &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 CancelQueryOutput) GoString() string { - return s.String() +// SetRunStatus sets the RunStatus field's value. +func (s *ScheduledQueryRunSummary) SetRunStatus(v string) *ScheduledQueryRunSummary { + s.RunStatus = &v + return s } -// SetCancellationMessage sets the CancellationMessage field's value. -func (s *CancelQueryOutput) SetCancellationMessage(v string) *CancelQueryOutput { - s.CancellationMessage = &v +// SetTriggerTime sets the TriggerTime field's value. +func (s *ScheduledQueryRunSummary) SetTriggerTime(v time.Time) *ScheduledQueryRunSummary { + s.TriggerTime = &v return s } -// Contains the meta data for query results such as the column names, data types, -// and other attributes. -type ColumnInfo struct { +// Details of the column that is returned by the query. +type SelectColumn struct { _ struct{} `type:"structure"` - // The name of the result set column. The name of the result set is available - // for columns of all data types except for arrays. + // True, if the column name was aliased by the query. False otherwise. + Aliased *bool `type:"boolean"` + + // Database that has this column. + DatabaseName *string `type:"string"` + + // Name of the column. Name *string `type:"string"` - // The data type of the result set column. The data type can be a scalar or - // complex. Scalar data types are integers, strings, doubles, booleans, and - // others. Complex data types are types such as arrays, rows, and others. - // - // Type is a required field - Type *Type `type:"structure" required:"true"` + // Table within the database that has this column. + TableName *string `type:"string"` + + // Contains the data type of a column in a query result set. The data type can + // be scalar or complex. The supported scalar data types are integers, Boolean, + // string, double, timestamp, date, time, and intervals. The supported complex + // data types are arrays, rows, and timeseries. + Type *Type `type:"structure"` } // String returns the string representation. @@ -656,7 +4782,7 @@ type ColumnInfo 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 ColumnInfo) String() string { +func (s SelectColumn) String() string { return awsutil.Prettify(s) } @@ -665,24 +4791,42 @@ func (s ColumnInfo) 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 ColumnInfo) GoString() string { +func (s SelectColumn) GoString() string { return s.String() } +// SetAliased sets the Aliased field's value. +func (s *SelectColumn) SetAliased(v bool) *SelectColumn { + s.Aliased = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *SelectColumn) SetDatabaseName(v string) *SelectColumn { + s.DatabaseName = &v + return s +} + // SetName sets the Name field's value. -func (s *ColumnInfo) SetName(v string) *ColumnInfo { +func (s *SelectColumn) SetName(v string) *SelectColumn { s.Name = &v return s } +// SetTableName sets the TableName field's value. +func (s *SelectColumn) SetTableName(v string) *SelectColumn { + s.TableName = &v + return s +} + // SetType sets the Type field's value. -func (s *ColumnInfo) SetType(v *Type) *ColumnInfo { +func (s *SelectColumn) SetType(v *Type) *SelectColumn { s.Type = v return s } -// Unable to poll results for a cancelled query. -type ConflictException struct { +// You have exceeded the service quota. +type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -694,7 +4838,7 @@ type ConflictException 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 ConflictException) String() string { +func (s ServiceQuotaExceededException) String() string { return awsutil.Prettify(s) } @@ -703,23 +4847,23 @@ func (s ConflictException) 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 ConflictException) GoString() string { +func (s ServiceQuotaExceededException) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" } // Message returns the exception's message. -func (s *ConflictException) Message() string { +func (s *ServiceQuotaExceededException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -727,43 +4871,33 @@ func (s *ConflictException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { +func (s *ServiceQuotaExceededException) OrigErr() error { return nil } -func (s *ConflictException) Error() string { +func (s *ServiceQuotaExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { +func (s *ServiceQuotaExceededException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { +func (s *ServiceQuotaExceededException) RequestID() string { return s.RespMetadata.RequestID } -// Datum represents a single data point in a query result. -type Datum struct { +// Details on SNS that are required to send the notification. +type SnsConfiguration struct { _ struct{} `type:"structure"` - // Indicates if the data point is an array. - ArrayValue []*Datum `type:"list"` - - // Indicates if the data point is null. - NullValue *bool `type:"boolean"` - - // Indicates if the data point is a row. - RowValue *Row `type:"structure"` - - // Indicates if the data point is a scalar value such as integer, string, double, - // or boolean. - ScalarValue *string `type:"string"` - - // Indicates if the data point is of timeseries data type. - TimeSeriesValue []*TimeSeriesDataPoint `type:"list"` + // SNS topic ARN that the scheduled query status notifications will be sent + // to. + // + // TopicArn is a required field + TopicArn *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -771,7 +4905,7 @@ type Datum 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 Datum) String() string { +func (s SnsConfiguration) String() string { return awsutil.Prettify(s) } @@ -780,42 +4914,48 @@ func (s Datum) 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 Datum) GoString() string { +func (s SnsConfiguration) GoString() string { return s.String() } -// SetArrayValue sets the ArrayValue field's value. -func (s *Datum) SetArrayValue(v []*Datum) *Datum { - s.ArrayValue = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *SnsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SnsConfiguration"} + if s.TopicArn == nil { + invalidParams.Add(request.NewErrParamRequired("TopicArn")) + } + if s.TopicArn != nil && len(*s.TopicArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TopicArn", 1)) + } -// SetNullValue sets the NullValue field's value. -func (s *Datum) SetNullValue(v bool) *Datum { - s.NullValue = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetRowValue sets the RowValue field's value. -func (s *Datum) SetRowValue(v *Row) *Datum { - s.RowValue = v +// SetTopicArn sets the TopicArn field's value. +func (s *SnsConfiguration) SetTopicArn(v string) *SnsConfiguration { + s.TopicArn = &v return s } -// SetScalarValue sets the ScalarValue field's value. -func (s *Datum) SetScalarValue(v string) *Datum { - s.ScalarValue = &v - return s -} +// A tag is a label that you assign to a Timestream database and/or table. Each +// tag consists of a key and an optional value, both of which you define. Tags +// enable you to categorize databases and/or tables, for example, by purpose, +// owner, or environment. +type Tag struct { + _ struct{} `type:"structure"` -// SetTimeSeriesValue sets the TimeSeriesValue field's value. -func (s *Datum) SetTimeSeriesValue(v []*TimeSeriesDataPoint) *Datum { - s.TimeSeriesValue = v - return s -} + // The key of the tag. Tag keys are case sensitive. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` -type DescribeEndpointsInput struct { - _ struct{} `type:"structure"` + // The value of the tag. Tag values are case sensitive and can be null. + // + // Value is a required field + Value *string `type:"string" required:"true"` } // String returns the string representation. @@ -823,7 +4963,7 @@ type DescribeEndpointsInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsInput) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } @@ -832,17 +4972,54 @@ func (s DescribeEndpointsInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsInput) GoString() string { +func (s Tag) GoString() string { return s.String() } -type DescribeEndpointsOutput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v + return s +} + +type TagResourceInput struct { _ struct{} `type:"structure"` - // An Endpoints object is returned when a DescribeEndpoints request is made. + // Identifies the Timestream resource to which tags should be added. This value + // is an Amazon Resource Name (ARN). // - // Endpoints is a required field - Endpoints []*Endpoint `type:"list" required:"true"` + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // The tags to be assigned to the Timestream resource. + // + // Tags is a required field + Tags []*Tag `type:"list" required:"true"` } // String returns the string representation. @@ -850,7 +5027,7 @@ type DescribeEndpointsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsOutput) String() string { +func (s TagResourceInput) String() string { return awsutil.Prettify(s) } @@ -859,30 +5036,53 @@ func (s DescribeEndpointsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s DescribeEndpointsOutput) GoString() string { +func (s TagResourceInput) GoString() string { return s.String() } -// SetEndpoints sets the Endpoints field's value. -func (s *DescribeEndpointsOutput) SetEndpoints(v []*Endpoint) *DescribeEndpointsOutput { - s.Endpoints = v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Represents an available endpoint against which to make API calls agaisnt, -// as well as the TTL for that endpoint. -type Endpoint struct { - _ struct{} `type:"structure"` +// SetResourceARN sets the ResourceARN field's value. +func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { + s.ResourceARN = &v + return s +} - // An endpoint address. - // - // Address is a required field - Address *string `type:"string" required:"true"` +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v + return s +} - // The TTL for the endpoint, in minutes. - // - // CachePeriodInMinutes is a required field - CachePeriodInMinutes *int64 `type:"long" required:"true"` +type TagResourceOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -890,38 +5090,27 @@ type Endpoint 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 Endpoint) String() string { +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 Endpoint) GoString() string { - return s.String() -} - -// SetAddress sets the Address field's value. -func (s *Endpoint) SetAddress(v string) *Endpoint { - s.Address = &v - return s -} - -// SetCachePeriodInMinutes sets the CachePeriodInMinutes field's value. -func (s *Endpoint) SetCachePeriodInMinutes(v int64) *Endpoint { - s.CachePeriodInMinutes = &v - return s +// 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() } -// Timestream was unable to fully process this request because of an internal -// server error. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Configuration used for writing the output of a query. +type TargetConfiguration struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // Configuration needed to write data into the Timestream database and table. + // + // TimestreamConfiguration is a required field + TimestreamConfiguration *TimestreamConfiguration `type:"structure" required:"true"` } // String returns the string representation. @@ -929,7 +5118,7 @@ type InternalServerException 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 InternalServerException) String() string { +func (s TargetConfiguration) String() string { return awsutil.Prettify(s) } @@ -938,54 +5127,41 @@ func (s InternalServerException) 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 InternalServerException) GoString() string { +func (s TargetConfiguration) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *TargetConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TargetConfiguration"} + if s.TimestreamConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("TimestreamConfiguration")) } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.TimestreamConfiguration != nil { + if err := s.TimestreamConfiguration.Validate(); err != nil { + invalidParams.AddNested("TimestreamConfiguration", err.(request.ErrInvalidParams)) + } } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetTimestreamConfiguration sets the TimestreamConfiguration field's value. +func (s *TargetConfiguration) SetTimestreamConfiguration(v *TimestreamConfiguration) *TargetConfiguration { + s.TimestreamConfiguration = v + return s } -// The requested endpoint was invalid. -type InvalidEndpointException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Destination details to write data for a target data source. Current supported +// data source is Timestream. +type TargetDestination struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"Message" type:"string"` + // Query result destination details for Timestream data source. + TimestreamDestination *TimestreamDestination `type:"structure"` } // String returns the string representation. @@ -993,7 +5169,7 @@ type InvalidEndpointException 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 InvalidEndpointException) String() string { +func (s TargetDestination) String() string { return awsutil.Prettify(s) } @@ -1002,50 +5178,18 @@ func (s InvalidEndpointException) 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 InvalidEndpointException) GoString() string { +func (s TargetDestination) GoString() string { return s.String() } -func newErrorInvalidEndpointException(v protocol.ResponseMetadata) error { - return &InvalidEndpointException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidEndpointException) Code() string { - return "InvalidEndpointException" -} - -// Message returns the exception's message. -func (s *InvalidEndpointException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidEndpointException) OrigErr() error { - return nil -} - -func (s *InvalidEndpointException) 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 *InvalidEndpointException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InvalidEndpointException) RequestID() string { - return s.RespMetadata.RequestID +// SetTimestreamDestination sets the TimestreamDestination field's value. +func (s *TargetDestination) SetTimestreamDestination(v *TimestreamDestination) *TargetDestination { + s.TimestreamDestination = v + return s } -// Timestream was unable to run the query successfully. -type QueryExecutionException struct { +// The request was denied due to request throttling. +type ThrottlingException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -1057,7 +5201,7 @@ type QueryExecutionException 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 QueryExecutionException) String() string { +func (s ThrottlingException) String() string { return awsutil.Prettify(s) } @@ -1066,23 +5210,23 @@ func (s QueryExecutionException) 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 QueryExecutionException) GoString() string { +func (s ThrottlingException) GoString() string { return s.String() } -func newErrorQueryExecutionException(v protocol.ResponseMetadata) error { - return &QueryExecutionException{ +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *QueryExecutionException) Code() string { - return "QueryExecutionException" +func (s *ThrottlingException) Code() string { + return "ThrottlingException" } // Message returns the exception's message. -func (s *QueryExecutionException) Message() string { +func (s *ThrottlingException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -1090,65 +5234,41 @@ func (s *QueryExecutionException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *QueryExecutionException) OrigErr() error { +func (s *ThrottlingException) OrigErr() error { return nil } -func (s *QueryExecutionException) Error() string { +func (s *ThrottlingException) 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 *QueryExecutionException) StatusCode() int { +func (s *ThrottlingException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *QueryExecutionException) RequestID() string { +func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } -type QueryInput struct { +// The timeseries data type represents the values of a measure over time. A +// time series is an array of rows of timestamps and measure values, with rows +// sorted in ascending order of time. A TimeSeriesDataPoint is a single data +// point in the time series. It represents a tuple of (time, measure value) +// in a time series. +type TimeSeriesDataPoint struct { _ struct{} `type:"structure"` - // Unique, case-sensitive string of up to 64 ASCII characters that you specify - // when you make a Query request. Providing a ClientToken makes the call to - // Query idempotent, meaning that multiple identical calls have the same effect - // as one single call. - // - // Your query request will fail in the following cases: - // - // * If you submit a request with the same client token outside the 5-minute - // idepotency window. - // - // * If you submit a request with the same client token but a change in other - // parameters within the 5-minute idempotency window. - // - // After 4 hours, any request with the same client token is treated as a new - // request. + // The timestamp when the measure value was collected. // - // ClientToken is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by QueryInput's - // String and GoString methods. - ClientToken *string `min:"32" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The total number of rows to return in the output. If the total number of - // rows available is more than the value specified, a NextToken is provided - // in the command's output. To resume pagination, provide the NextToken value - // in the starting-token argument of a subsequent command. - MaxRows *int64 `min:"1" type:"integer"` - - // A pagination token passed to get a set of results. - NextToken *string `type:"string"` + // Time is a required field + Time *string `type:"string" required:"true"` - // The query to be executed by Timestream. - // - // QueryString is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by QueryInput's - // String and GoString methods. + // The measure value for the data point. // - // QueryString is a required field - QueryString *string `type:"string" required:"true" sensitive:"true"` + // Value is a required field + Value *Datum `type:"structure" required:"true"` } // String returns the string representation. @@ -1156,7 +5276,7 @@ type QueryInput 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 QueryInput) String() string { +func (s TimeSeriesDataPoint) String() string { return awsutil.Prettify(s) } @@ -1165,77 +5285,59 @@ func (s QueryInput) 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 QueryInput) GoString() string { +func (s TimeSeriesDataPoint) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *QueryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "QueryInput"} - if s.ClientToken != nil && len(*s.ClientToken) < 32 { - invalidParams.Add(request.NewErrParamMinLen("ClientToken", 32)) - } - if s.MaxRows != nil && *s.MaxRows < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxRows", 1)) - } - if s.QueryString == nil { - invalidParams.Add(request.NewErrParamRequired("QueryString")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetClientToken sets the ClientToken field's value. -func (s *QueryInput) SetClientToken(v string) *QueryInput { - s.ClientToken = &v - return s -} - -// SetMaxRows sets the MaxRows field's value. -func (s *QueryInput) SetMaxRows(v int64) *QueryInput { - s.MaxRows = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *QueryInput) SetNextToken(v string) *QueryInput { - s.NextToken = &v +// SetTime sets the Time field's value. +func (s *TimeSeriesDataPoint) SetTime(v string) *TimeSeriesDataPoint { + s.Time = &v return s } -// SetQueryString sets the QueryString field's value. -func (s *QueryInput) SetQueryString(v string) *QueryInput { - s.QueryString = &v +// SetValue sets the Value field's value. +func (s *TimeSeriesDataPoint) SetValue(v *Datum) *TimeSeriesDataPoint { + s.Value = v return s } -type QueryOutput struct { +// Configuration to write data into Timestream database and table. This configuration +// allows the user to map the query result select columns into the destination +// table columns. +type TimestreamConfiguration struct { _ struct{} `type:"structure"` - // The column data types of the returned result set. + // Name of Timestream database to which the query result will be written. // - // ColumnInfo is a required field - ColumnInfo []*ColumnInfo `type:"list" required:"true"` - - // A pagination token that can be used again on a Query call to get the next - // set of results. - NextToken *string `type:"string"` + // DatabaseName is a required field + DatabaseName *string `type:"string" required:"true"` - // A unique ID for the given query. + // This is to allow mapping column(s) from the query result to the dimension + // in the destination table. // - // QueryId is a required field - QueryId *string `min:"1" type:"string" required:"true"` + // DimensionMappings is a required field + DimensionMappings []*DimensionMapping `type:"list" required:"true"` - // Information about the status of the query, including progress and bytes scannned. - QueryStatus *QueryStatus `type:"structure"` + // Name of the measure column. + MeasureNameColumn *string `type:"string"` - // The result set rows returned by the query. + // Specifies how to map measures to multi-measure records. + MixedMeasureMappings []*MixedMeasureMapping `min:"1" type:"list"` + + // Multi-measure mappings. + MultiMeasureMappings *MultiMeasureMappings `type:"structure"` + + // Name of Timestream table that the query result will be written to. The table + // should be within the same database that is provided in Timestream configuration. // - // Rows is a required field - Rows []*Row `type:"list" required:"true"` + // TableName is a required field + TableName *string `type:"string" required:"true"` + + // Column from query result that should be used as the time column in destination + // table. Column type for this should be TIMESTAMP. + // + // TimeColumn is a required field + TimeColumn *string `type:"string" required:"true"` } // String returns the string representation. @@ -1243,7 +5345,7 @@ type QueryOutput 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 QueryOutput) String() string { +func (s TimestreamConfiguration) String() string { return awsutil.Prettify(s) } @@ -1252,57 +5354,111 @@ func (s QueryOutput) 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 QueryOutput) GoString() string { +func (s TimestreamConfiguration) GoString() string { return s.String() } -// SetColumnInfo sets the ColumnInfo field's value. -func (s *QueryOutput) SetColumnInfo(v []*ColumnInfo) *QueryOutput { - s.ColumnInfo = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimestreamConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimestreamConfiguration"} + if s.DatabaseName == nil { + invalidParams.Add(request.NewErrParamRequired("DatabaseName")) + } + if s.DimensionMappings == nil { + invalidParams.Add(request.NewErrParamRequired("DimensionMappings")) + } + if s.MixedMeasureMappings != nil && len(s.MixedMeasureMappings) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MixedMeasureMappings", 1)) + } + if s.TableName == nil { + invalidParams.Add(request.NewErrParamRequired("TableName")) + } + if s.TimeColumn == nil { + invalidParams.Add(request.NewErrParamRequired("TimeColumn")) + } + if s.DimensionMappings != nil { + for i, v := range s.DimensionMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DimensionMappings", i), err.(request.ErrInvalidParams)) + } + } + } + if s.MixedMeasureMappings != nil { + for i, v := range s.MixedMeasureMappings { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MixedMeasureMappings", i), err.(request.ErrInvalidParams)) + } + } + } + if s.MultiMeasureMappings != nil { + if err := s.MultiMeasureMappings.Validate(); err != nil { + invalidParams.AddNested("MultiMeasureMappings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *TimestreamConfiguration) SetDatabaseName(v string) *TimestreamConfiguration { + s.DatabaseName = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *QueryOutput) SetNextToken(v string) *QueryOutput { - s.NextToken = &v +// SetDimensionMappings sets the DimensionMappings field's value. +func (s *TimestreamConfiguration) SetDimensionMappings(v []*DimensionMapping) *TimestreamConfiguration { + s.DimensionMappings = v return s } -// SetQueryId sets the QueryId field's value. -func (s *QueryOutput) SetQueryId(v string) *QueryOutput { - s.QueryId = &v +// SetMeasureNameColumn sets the MeasureNameColumn field's value. +func (s *TimestreamConfiguration) SetMeasureNameColumn(v string) *TimestreamConfiguration { + s.MeasureNameColumn = &v return s } -// SetQueryStatus sets the QueryStatus field's value. -func (s *QueryOutput) SetQueryStatus(v *QueryStatus) *QueryOutput { - s.QueryStatus = v +// SetMixedMeasureMappings sets the MixedMeasureMappings field's value. +func (s *TimestreamConfiguration) SetMixedMeasureMappings(v []*MixedMeasureMapping) *TimestreamConfiguration { + s.MixedMeasureMappings = v return s } -// SetRows sets the Rows field's value. -func (s *QueryOutput) SetRows(v []*Row) *QueryOutput { - s.Rows = v +// SetMultiMeasureMappings sets the MultiMeasureMappings field's value. +func (s *TimestreamConfiguration) SetMultiMeasureMappings(v *MultiMeasureMappings) *TimestreamConfiguration { + s.MultiMeasureMappings = v + return s +} + +// SetTableName sets the TableName field's value. +func (s *TimestreamConfiguration) SetTableName(v string) *TimestreamConfiguration { + s.TableName = &v + return s +} + +// SetTimeColumn sets the TimeColumn field's value. +func (s *TimestreamConfiguration) SetTimeColumn(v string) *TimestreamConfiguration { + s.TimeColumn = &v return s } -// Information about the status of the query, including progress and bytes scannned. -type QueryStatus struct { +// Destination for scheduled query. +type TimestreamDestination struct { _ struct{} `type:"structure"` - // The amount of data scanned by the query in bytes that you will be charged - // for. This is a cumulative sum and represents the total amount of data that - // you will be charged for since the query was started. The charge is applied - // only once and is either applied when the query completes execution or when - // the query is cancelled. - CumulativeBytesMetered *int64 `type:"long"` - - // The amount of data scanned by the query in bytes. This is a cumulative sum - // and represents the total amount of bytes scanned since the query was started. - CumulativeBytesScanned *int64 `type:"long"` + // Timestream database name. + DatabaseName *string `type:"string"` - // The progress of the query, expressed as a percentage. - ProgressPercentage *float64 `type:"double"` + // Timestream table name. + TableName *string `type:"string"` } // String returns the string representation. @@ -1310,7 +5466,7 @@ type QueryStatus 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 QueryStatus) String() string { +func (s TimestreamDestination) String() string { return awsutil.Prettify(s) } @@ -1319,36 +5475,41 @@ func (s QueryStatus) 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 QueryStatus) GoString() string { +func (s TimestreamDestination) GoString() string { return s.String() } -// SetCumulativeBytesMetered sets the CumulativeBytesMetered field's value. -func (s *QueryStatus) SetCumulativeBytesMetered(v int64) *QueryStatus { - s.CumulativeBytesMetered = &v - return s -} - -// SetCumulativeBytesScanned sets the CumulativeBytesScanned field's value. -func (s *QueryStatus) SetCumulativeBytesScanned(v int64) *QueryStatus { - s.CumulativeBytesScanned = &v +// SetDatabaseName sets the DatabaseName field's value. +func (s *TimestreamDestination) SetDatabaseName(v string) *TimestreamDestination { + s.DatabaseName = &v return s } -// SetProgressPercentage sets the ProgressPercentage field's value. -func (s *QueryStatus) SetProgressPercentage(v float64) *QueryStatus { - s.ProgressPercentage = &v +// SetTableName sets the TableName field's value. +func (s *TimestreamDestination) SetTableName(v string) *TimestreamDestination { + s.TableName = &v return s } -// Represents a single row in the query results. -type Row struct { +// Contains the data type of a column in a query result set. The data type can +// be scalar or complex. The supported scalar data types are integers, Boolean, +// string, double, timestamp, date, time, and intervals. The supported complex +// data types are arrays, rows, and timeseries. +type Type struct { _ struct{} `type:"structure"` - // List of data points in a single row of the result set. - // - // Data is a required field - Data []*Datum `type:"list" required:"true"` + // Indicates if the column is an array. + ArrayColumnInfo *ColumnInfo `type:"structure"` + + // Indicates if the column is a row. + RowColumnInfo []*ColumnInfo `type:"list"` + + // Indicates if the column is of type string, integer, Boolean, double, timestamp, + // date, time. + ScalarType *string `type:"string" enum:"ScalarType"` + + // Indicates if the column is a timeseries data type. + TimeSeriesMeasureValueColumnInfo *ColumnInfo `type:"structure"` } // String returns the string representation. @@ -1356,7 +5517,7 @@ type Row 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 Row) String() string { +func (s Type) String() string { return awsutil.Prettify(s) } @@ -1365,22 +5526,48 @@ func (s Row) 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 Row) GoString() string { +func (s Type) GoString() string { return s.String() } -// SetData sets the Data field's value. -func (s *Row) SetData(v []*Datum) *Row { - s.Data = v +// SetArrayColumnInfo sets the ArrayColumnInfo field's value. +func (s *Type) SetArrayColumnInfo(v *ColumnInfo) *Type { + s.ArrayColumnInfo = v return s } -// The request was denied due to request throttling. -type ThrottlingException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetRowColumnInfo sets the RowColumnInfo field's value. +func (s *Type) SetRowColumnInfo(v []*ColumnInfo) *Type { + s.RowColumnInfo = v + return s +} - Message_ *string `locationName:"Message" type:"string"` +// SetScalarType sets the ScalarType field's value. +func (s *Type) SetScalarType(v string) *Type { + s.ScalarType = &v + return s +} + +// SetTimeSeriesMeasureValueColumnInfo sets the TimeSeriesMeasureValueColumnInfo field's value. +func (s *Type) SetTimeSeriesMeasureValueColumnInfo(v *ColumnInfo) *Type { + s.TimeSeriesMeasureValueColumnInfo = v + return s +} + +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Timestream resource that the tags will be removed from. This value is + // an Amazon Resource Name (ARN). + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true"` + + // A list of tags keys. Existing tags of the resource whose keys are members + // of this list will be removed from the Timestream resource. + // + // TagKeys is a required field + TagKeys []*string `type:"list" required:"true"` } // String returns the string representation. @@ -1388,7 +5575,7 @@ type ThrottlingException 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 ThrottlingException) String() string { +func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } @@ -1397,64 +5584,75 @@ func (s ThrottlingException) 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 ThrottlingException) GoString() string { +func (s UntagResourceInput) GoString() string { return s.String() } -func newErrorThrottlingException(v protocol.ResponseMetadata) error { - return &ThrottlingException{ - RespMetadata: v, +// 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")) } -} -// Code returns the exception type name. -func (s *ThrottlingException) Code() string { - return "ThrottlingException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *ThrottlingException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetResourceARN sets the ResourceARN field's value. +func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { + s.ResourceARN = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottlingException) OrigErr() error { - return nil +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s } -func (s *ThrottlingException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +type UntagResourceOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottlingException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API 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) } -// RequestID returns the service's response RequestID for request. -func (s *ThrottlingException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API 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() } -// The timeseries datatype represents the values of a measure over time. A time -// series is an array of rows of timestamps and measure values, with rows sorted -// in ascending order of time. A TimeSeriesDataPoint is a single data point -// in the timeseries. It represents a tuple of (time, measure value) in a timeseries. -type TimeSeriesDataPoint struct { +type UpdateScheduledQueryInput struct { _ struct{} `type:"structure"` - // The timestamp when the measure value was collected. + // ARN of the scheuled query. // - // Time is a required field - Time *string `type:"string" required:"true"` + // ScheduledQueryArn is a required field + ScheduledQueryArn *string `min:"1" type:"string" required:"true"` - // The measure value for the data point. + // State of the scheduled query. // - // Value is a required field - Value *Datum `type:"structure" required:"true"` + // State is a required field + State *string `type:"string" required:"true" enum:"ScheduledQueryState"` } // String returns the string representation. @@ -1462,7 +5660,7 @@ type TimeSeriesDataPoint 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 TimeSeriesDataPoint) String() string { +func (s UpdateScheduledQueryInput) String() string { return awsutil.Prettify(s) } @@ -1471,41 +5669,43 @@ func (s TimeSeriesDataPoint) 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 TimeSeriesDataPoint) GoString() string { +func (s UpdateScheduledQueryInput) GoString() string { return s.String() } -// SetTime sets the Time field's value. -func (s *TimeSeriesDataPoint) SetTime(v string) *TimeSeriesDataPoint { - s.Time = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateScheduledQueryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateScheduledQueryInput"} + if s.ScheduledQueryArn == nil { + invalidParams.Add(request.NewErrParamRequired("ScheduledQueryArn")) + } + if s.ScheduledQueryArn != nil && len(*s.ScheduledQueryArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ScheduledQueryArn", 1)) + } + if s.State == nil { + invalidParams.Add(request.NewErrParamRequired("State")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetScheduledQueryArn sets the ScheduledQueryArn field's value. +func (s *UpdateScheduledQueryInput) SetScheduledQueryArn(v string) *UpdateScheduledQueryInput { + s.ScheduledQueryArn = &v return s } -// SetValue sets the Value field's value. -func (s *TimeSeriesDataPoint) SetValue(v *Datum) *TimeSeriesDataPoint { - s.Value = v +// SetState sets the State field's value. +func (s *UpdateScheduledQueryInput) SetState(v string) *UpdateScheduledQueryInput { + s.State = &v return s } -// Contains the data type of a column in a query result set. The data type can -// be scalar or complex. The supported scalar data types are integers, boolean, -// string, double, timestamp, date, time, and intervals. The supported complex -// data types are arrays, rows, and timeseries. -type Type struct { +type UpdateScheduledQueryOutput struct { _ struct{} `type:"structure"` - - // Indicates if the column is an array. - ArrayColumnInfo *ColumnInfo `type:"structure"` - - // Indicates if the column is a row. - RowColumnInfo []*ColumnInfo `type:"list"` - - // Indicates if the column is of type string, integer, boolean, double, timestamp, - // date, time. - ScalarType *string `type:"string" enum:"ScalarType"` - - // Indicates if the column is a timeseries data type. - TimeSeriesMeasureValueColumnInfo *ColumnInfo `type:"structure"` } // String returns the string representation. @@ -1513,7 +5713,7 @@ type Type 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 Type) String() string { +func (s UpdateScheduledQueryOutput) String() string { return awsutil.Prettify(s) } @@ -1522,34 +5722,10 @@ func (s Type) 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 Type) GoString() string { +func (s UpdateScheduledQueryOutput) GoString() string { return s.String() } -// SetArrayColumnInfo sets the ArrayColumnInfo field's value. -func (s *Type) SetArrayColumnInfo(v *ColumnInfo) *Type { - s.ArrayColumnInfo = v - return s -} - -// SetRowColumnInfo sets the RowColumnInfo field's value. -func (s *Type) SetRowColumnInfo(v []*ColumnInfo) *Type { - s.RowColumnInfo = v - return s -} - -// SetScalarType sets the ScalarType field's value. -func (s *Type) SetScalarType(v string) *Type { - s.ScalarType = &v - return s -} - -// SetTimeSeriesMeasureValueColumnInfo sets the TimeSeriesMeasureValueColumnInfo field's value. -func (s *Type) SetTimeSeriesMeasureValueColumnInfo(v *ColumnInfo) *Type { - s.TimeSeriesMeasureValueColumnInfo = v - return s -} - // Invalid or malformed request. type ValidationException struct { _ struct{} `type:"structure"` @@ -1614,6 +5790,86 @@ func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } +const ( + // DimensionValueTypeVarchar is a DimensionValueType enum value + DimensionValueTypeVarchar = "VARCHAR" +) + +// DimensionValueType_Values returns all elements of the DimensionValueType enum +func DimensionValueType_Values() []string { + return []string{ + DimensionValueTypeVarchar, + } +} + +const ( + // MeasureValueTypeBigint is a MeasureValueType enum value + MeasureValueTypeBigint = "BIGINT" + + // MeasureValueTypeBoolean is a MeasureValueType enum value + MeasureValueTypeBoolean = "BOOLEAN" + + // MeasureValueTypeDouble is a MeasureValueType enum value + MeasureValueTypeDouble = "DOUBLE" + + // MeasureValueTypeVarchar is a MeasureValueType enum value + MeasureValueTypeVarchar = "VARCHAR" + + // MeasureValueTypeMulti is a MeasureValueType enum value + MeasureValueTypeMulti = "MULTI" +) + +// MeasureValueType_Values returns all elements of the MeasureValueType enum +func MeasureValueType_Values() []string { + return []string{ + MeasureValueTypeBigint, + MeasureValueTypeBoolean, + MeasureValueTypeDouble, + MeasureValueTypeVarchar, + MeasureValueTypeMulti, + } +} + +const ( + // S3EncryptionOptionSseS3 is a S3EncryptionOption enum value + S3EncryptionOptionSseS3 = "SSE_S3" + + // S3EncryptionOptionSseKms is a S3EncryptionOption enum value + S3EncryptionOptionSseKms = "SSE_KMS" +) + +// S3EncryptionOption_Values returns all elements of the S3EncryptionOption enum +func S3EncryptionOption_Values() []string { + return []string{ + S3EncryptionOptionSseS3, + S3EncryptionOptionSseKms, + } +} + +const ( + // ScalarMeasureValueTypeBigint is a ScalarMeasureValueType enum value + ScalarMeasureValueTypeBigint = "BIGINT" + + // ScalarMeasureValueTypeBoolean is a ScalarMeasureValueType enum value + ScalarMeasureValueTypeBoolean = "BOOLEAN" + + // ScalarMeasureValueTypeDouble is a ScalarMeasureValueType enum value + ScalarMeasureValueTypeDouble = "DOUBLE" + + // ScalarMeasureValueTypeVarchar is a ScalarMeasureValueType enum value + ScalarMeasureValueTypeVarchar = "VARCHAR" +) + +// ScalarMeasureValueType_Values returns all elements of the ScalarMeasureValueType enum +func ScalarMeasureValueType_Values() []string { + return []string{ + ScalarMeasureValueTypeBigint, + ScalarMeasureValueTypeBoolean, + ScalarMeasureValueTypeDouble, + ScalarMeasureValueTypeVarchar, + } +} + const ( // ScalarTypeVarchar is a ScalarType enum value ScalarTypeVarchar = "VARCHAR" @@ -1665,3 +5921,43 @@ func ScalarType_Values() []string { ScalarTypeInteger, } } + +const ( + // ScheduledQueryRunStatusAutoTriggerSuccess is a ScheduledQueryRunStatus enum value + ScheduledQueryRunStatusAutoTriggerSuccess = "AUTO_TRIGGER_SUCCESS" + + // ScheduledQueryRunStatusAutoTriggerFailure is a ScheduledQueryRunStatus enum value + ScheduledQueryRunStatusAutoTriggerFailure = "AUTO_TRIGGER_FAILURE" + + // ScheduledQueryRunStatusManualTriggerSuccess is a ScheduledQueryRunStatus enum value + ScheduledQueryRunStatusManualTriggerSuccess = "MANUAL_TRIGGER_SUCCESS" + + // ScheduledQueryRunStatusManualTriggerFailure is a ScheduledQueryRunStatus enum value + ScheduledQueryRunStatusManualTriggerFailure = "MANUAL_TRIGGER_FAILURE" +) + +// ScheduledQueryRunStatus_Values returns all elements of the ScheduledQueryRunStatus enum +func ScheduledQueryRunStatus_Values() []string { + return []string{ + ScheduledQueryRunStatusAutoTriggerSuccess, + ScheduledQueryRunStatusAutoTriggerFailure, + ScheduledQueryRunStatusManualTriggerSuccess, + ScheduledQueryRunStatusManualTriggerFailure, + } +} + +const ( + // ScheduledQueryStateEnabled is a ScheduledQueryState enum value + ScheduledQueryStateEnabled = "ENABLED" + + // ScheduledQueryStateDisabled is a ScheduledQueryState enum value + ScheduledQueryStateDisabled = "DISABLED" +) + +// ScheduledQueryState_Values returns all elements of the ScheduledQueryState enum +func ScheduledQueryState_Values() []string { + return []string{ + ScheduledQueryStateEnabled, + ScheduledQueryStateDisabled, + } +} diff --git a/service/timestreamquery/doc.go b/service/timestreamquery/doc.go index 37cb9548c6..2aa3507885 100644 --- a/service/timestreamquery/doc.go +++ b/service/timestreamquery/doc.go @@ -3,6 +3,8 @@ // Package timestreamquery provides the client and types for making API // requests to Amazon Timestream Query. // +// Amazon Timestream Query +// // See https://docs.aws.amazon.com/goto/WebAPI/timestream-query-2018-11-01 for more information on this service. // // See timestreamquery package documentation for more information. diff --git a/service/timestreamquery/errors.go b/service/timestreamquery/errors.go index f197eeb0f0..6e977907c7 100644 --- a/service/timestreamquery/errors.go +++ b/service/timestreamquery/errors.go @@ -30,7 +30,7 @@ const ( // ErrCodeInvalidEndpointException for service response error code // "InvalidEndpointException". // - // The requested endpoint was invalid. + // The requested endpoint was not valid. ErrCodeInvalidEndpointException = "InvalidEndpointException" // ErrCodeQueryExecutionException for service response error code @@ -39,6 +39,18 @@ const ( // Timestream was unable to run the query successfully. ErrCodeQueryExecutionException = "QueryExecutionException" + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The requested resource could not be found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // You have exceeded the service quota. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + // ErrCodeThrottlingException for service response error code // "ThrottlingException". // @@ -53,11 +65,13 @@ const ( ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "AccessDeniedException": newErrorAccessDeniedException, - "ConflictException": newErrorConflictException, - "InternalServerException": newErrorInternalServerException, - "InvalidEndpointException": newErrorInvalidEndpointException, - "QueryExecutionException": newErrorQueryExecutionException, - "ThrottlingException": newErrorThrottlingException, - "ValidationException": newErrorValidationException, + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "InvalidEndpointException": newErrorInvalidEndpointException, + "QueryExecutionException": newErrorQueryExecutionException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, } diff --git a/service/timestreamquery/timestreamqueryiface/interface.go b/service/timestreamquery/timestreamqueryiface/interface.go index c01f51adb3..8af7fd893e 100644 --- a/service/timestreamquery/timestreamqueryiface/interface.go +++ b/service/timestreamquery/timestreamqueryiface/interface.go @@ -64,16 +64,62 @@ type TimestreamQueryAPI interface { CancelQueryWithContext(aws.Context, *timestreamquery.CancelQueryInput, ...request.Option) (*timestreamquery.CancelQueryOutput, error) CancelQueryRequest(*timestreamquery.CancelQueryInput) (*request.Request, *timestreamquery.CancelQueryOutput) + CreateScheduledQuery(*timestreamquery.CreateScheduledQueryInput) (*timestreamquery.CreateScheduledQueryOutput, error) + CreateScheduledQueryWithContext(aws.Context, *timestreamquery.CreateScheduledQueryInput, ...request.Option) (*timestreamquery.CreateScheduledQueryOutput, error) + CreateScheduledQueryRequest(*timestreamquery.CreateScheduledQueryInput) (*request.Request, *timestreamquery.CreateScheduledQueryOutput) + + DeleteScheduledQuery(*timestreamquery.DeleteScheduledQueryInput) (*timestreamquery.DeleteScheduledQueryOutput, error) + DeleteScheduledQueryWithContext(aws.Context, *timestreamquery.DeleteScheduledQueryInput, ...request.Option) (*timestreamquery.DeleteScheduledQueryOutput, error) + DeleteScheduledQueryRequest(*timestreamquery.DeleteScheduledQueryInput) (*request.Request, *timestreamquery.DeleteScheduledQueryOutput) + DescribeEndpoints(*timestreamquery.DescribeEndpointsInput) (*timestreamquery.DescribeEndpointsOutput, error) DescribeEndpointsWithContext(aws.Context, *timestreamquery.DescribeEndpointsInput, ...request.Option) (*timestreamquery.DescribeEndpointsOutput, error) DescribeEndpointsRequest(*timestreamquery.DescribeEndpointsInput) (*request.Request, *timestreamquery.DescribeEndpointsOutput) + DescribeScheduledQuery(*timestreamquery.DescribeScheduledQueryInput) (*timestreamquery.DescribeScheduledQueryOutput, error) + DescribeScheduledQueryWithContext(aws.Context, *timestreamquery.DescribeScheduledQueryInput, ...request.Option) (*timestreamquery.DescribeScheduledQueryOutput, error) + DescribeScheduledQueryRequest(*timestreamquery.DescribeScheduledQueryInput) (*request.Request, *timestreamquery.DescribeScheduledQueryOutput) + + ExecuteScheduledQuery(*timestreamquery.ExecuteScheduledQueryInput) (*timestreamquery.ExecuteScheduledQueryOutput, error) + ExecuteScheduledQueryWithContext(aws.Context, *timestreamquery.ExecuteScheduledQueryInput, ...request.Option) (*timestreamquery.ExecuteScheduledQueryOutput, error) + ExecuteScheduledQueryRequest(*timestreamquery.ExecuteScheduledQueryInput) (*request.Request, *timestreamquery.ExecuteScheduledQueryOutput) + + ListScheduledQueries(*timestreamquery.ListScheduledQueriesInput) (*timestreamquery.ListScheduledQueriesOutput, error) + ListScheduledQueriesWithContext(aws.Context, *timestreamquery.ListScheduledQueriesInput, ...request.Option) (*timestreamquery.ListScheduledQueriesOutput, error) + ListScheduledQueriesRequest(*timestreamquery.ListScheduledQueriesInput) (*request.Request, *timestreamquery.ListScheduledQueriesOutput) + + ListScheduledQueriesPages(*timestreamquery.ListScheduledQueriesInput, func(*timestreamquery.ListScheduledQueriesOutput, bool) bool) error + ListScheduledQueriesPagesWithContext(aws.Context, *timestreamquery.ListScheduledQueriesInput, func(*timestreamquery.ListScheduledQueriesOutput, bool) bool, ...request.Option) error + + ListTagsForResource(*timestreamquery.ListTagsForResourceInput) (*timestreamquery.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *timestreamquery.ListTagsForResourceInput, ...request.Option) (*timestreamquery.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*timestreamquery.ListTagsForResourceInput) (*request.Request, *timestreamquery.ListTagsForResourceOutput) + + ListTagsForResourcePages(*timestreamquery.ListTagsForResourceInput, func(*timestreamquery.ListTagsForResourceOutput, bool) bool) error + ListTagsForResourcePagesWithContext(aws.Context, *timestreamquery.ListTagsForResourceInput, func(*timestreamquery.ListTagsForResourceOutput, bool) bool, ...request.Option) error + + PrepareQuery(*timestreamquery.PrepareQueryInput) (*timestreamquery.PrepareQueryOutput, error) + PrepareQueryWithContext(aws.Context, *timestreamquery.PrepareQueryInput, ...request.Option) (*timestreamquery.PrepareQueryOutput, error) + PrepareQueryRequest(*timestreamquery.PrepareQueryInput) (*request.Request, *timestreamquery.PrepareQueryOutput) + Query(*timestreamquery.QueryInput) (*timestreamquery.QueryOutput, error) QueryWithContext(aws.Context, *timestreamquery.QueryInput, ...request.Option) (*timestreamquery.QueryOutput, error) QueryRequest(*timestreamquery.QueryInput) (*request.Request, *timestreamquery.QueryOutput) QueryPages(*timestreamquery.QueryInput, func(*timestreamquery.QueryOutput, bool) bool) error QueryPagesWithContext(aws.Context, *timestreamquery.QueryInput, func(*timestreamquery.QueryOutput, bool) bool, ...request.Option) error + + TagResource(*timestreamquery.TagResourceInput) (*timestreamquery.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *timestreamquery.TagResourceInput, ...request.Option) (*timestreamquery.TagResourceOutput, error) + TagResourceRequest(*timestreamquery.TagResourceInput) (*request.Request, *timestreamquery.TagResourceOutput) + + UntagResource(*timestreamquery.UntagResourceInput) (*timestreamquery.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *timestreamquery.UntagResourceInput, ...request.Option) (*timestreamquery.UntagResourceOutput, error) + UntagResourceRequest(*timestreamquery.UntagResourceInput) (*request.Request, *timestreamquery.UntagResourceOutput) + + UpdateScheduledQuery(*timestreamquery.UpdateScheduledQueryInput) (*timestreamquery.UpdateScheduledQueryOutput, error) + UpdateScheduledQueryWithContext(aws.Context, *timestreamquery.UpdateScheduledQueryInput, ...request.Option) (*timestreamquery.UpdateScheduledQueryOutput, error) + UpdateScheduledQueryRequest(*timestreamquery.UpdateScheduledQueryInput) (*request.Request, *timestreamquery.UpdateScheduledQueryOutput) } var _ TimestreamQueryAPI = (*timestreamquery.TimestreamQuery)(nil) diff --git a/service/timestreamwrite/api.go b/service/timestreamwrite/api.go index 511ae0bf06..33a493bc4f 100644 --- a/service/timestreamwrite/api.go +++ b/service/timestreamwrite/api.go @@ -85,10 +85,10 @@ func (c *TimestreamWrite) CreateDatabaseRequest(input *CreateDatabaseInput) (req // // Creates a new Timestream database. If the KMS key is not specified, the database // will be encrypted with a Timestream managed KMS key located in your account. -// Refer to AWS managed KMS keys (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) -// for more info. Service quotas apply. For more information, see Access Management -// (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// Refer to Amazon Web Services managed KMS keys (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) +// for more info. Service quotas apply (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html). +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-db.html) +// for details. // // 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 @@ -122,6 +122,9 @@ func (c *TimestreamWrite) CreateDatabaseRequest(input *CreateDatabaseInput) (req // Timestream was unable to fully process this request because of an internal // server error. // +// * InvalidEndpointException +// The requested endpoint was invalid. +// // See also, https://docs.aws.amazon.com/goto/WebAPI/timestream-write-2018-11-01/CreateDatabase func (c *TimestreamWrite) CreateDatabase(input *CreateDatabaseInput) (*CreateDatabaseOutput, error) { req, out := c.CreateDatabaseRequest(input) @@ -212,13 +215,13 @@ func (c *TimestreamWrite) CreateTableRequest(input *CreateTableInput) (req *requ // CreateTable API operation for Amazon Timestream Write. // // The CreateTable operation adds a new table to an existing database in your -// account. In an AWS account, table names must be at least unique within each -// Region if they are in the same database. You may have identical table names -// in the same Region if the tables are in seperate databases. While creating -// the table, you must specify the table name, database name, and the retention -// properties. Service quotas apply. For more information, see Access Management -// (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// account. In an Amazon Web Services account, table names must be at least +// unique within each Region if they are in the same database. You may have +// identical table names in the same Region if the tables are in separate databases. +// While creating the table, you must specify the table name, database name, +// and the retention properties. Service quotas apply (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html). +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.create-table.html) +// for details. // // 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 @@ -249,6 +252,9 @@ func (c *TimestreamWrite) CreateTableRequest(input *CreateTableInput) (req *requ // Too many requests were made by a user exceeding service quotas. The request // was throttled. // +// * InvalidEndpointException +// The requested endpoint was invalid. +// // * InternalServerException // Timestream was unable to fully process this request because of an internal // server error. @@ -355,6 +361,9 @@ func (c *TimestreamWrite) DeleteDatabaseRequest(input *DeleteDatabaseInput) (req // Due to the nature of distributed retries, the operation can return either // success or a ResourceNotFoundException. Clients should consider them equivalent. // +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-db.html) +// for details. +// // 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. @@ -481,6 +490,9 @@ func (c *TimestreamWrite) DeleteTableRequest(input *DeleteTableInput) (req *requ // Due to the nature of distributed retries, the operation can return either // success or a ResourceNotFoundException. Clients should consider them equivalent. // +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.delete-table.html) +// for details. +// // 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. @@ -601,9 +613,9 @@ func (c *TimestreamWrite) DescribeDatabaseRequest(input *DescribeDatabaseInput) // // Returns information about the database, including the database name, time // that the database was created, and the total number of tables found within -// the database. Service quotas apply. For more information, see Access Management -// (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// the database. Service quotas apply (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html). +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-db.html) +// for details. // // 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 @@ -703,17 +715,20 @@ func (c *TimestreamWrite) DescribeEndpointsRequest(input *DescribeEndpointsInput // DescribeEndpoints returns a list of available endpoints to make Timestream // API calls against. This API is available through both Write and Query. // -// Because Timestream’s SDKs are designed to transparently work with the service’s +// Because the Timestream SDKs are designed to transparently work with the service’s // architecture, including the management and mapping of the service endpoints, // it is not recommended that you use this API unless: // +// * You are using VPC endpoints (Amazon Web Services PrivateLink) with Timestream +// (https://docs.aws.amazon.com/timestream/latest/developerguide/VPCEndpoints) +// // * Your application uses a programming language that does not yet have // SDK support // // * You require better control over the client-side implementation // -// For detailed information on how to use DescribeEndpoints, see The Endpoint -// Discovery Pattern and REST APIs (https://docs.aws.amazon.com/timestream/latest/developerguide/Using-API.endpoint-discovery.html). +// For detailed information on how and when to use and implement DescribeEndpoints, +// see The Endpoint Discovery Pattern (https://docs.aws.amazon.com/timestream/latest/developerguide/Using.API.html#Using-API.endpoint-discovery). // // 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 @@ -897,8 +912,9 @@ func (c *TimestreamWrite) DescribeTableRequest(input *DescribeTableInput) (req * // // Returns information about the table, including the table name, database name, // retention duration of the memory store and the magnetic store. Service quotas -// apply. For more information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// apply (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html). +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.describe-table.html) +// for details. // // 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 @@ -1024,9 +1040,9 @@ func (c *TimestreamWrite) ListDatabasesRequest(input *ListDatabasesInput) (req * // ListDatabases API operation for Amazon Timestream Write. // -// Returns a list of your Timestream databases. Service quotas apply. For more -// information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// Returns a list of your Timestream databases. Service quotas apply (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html). +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-db.html) +// for details. // // 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 @@ -1201,7 +1217,8 @@ func (c *TimestreamWrite) ListTablesRequest(input *ListTablesInput) (req *reques // ListTables API operation for Amazon Timestream Write. // // A list of tables, along with the name, status and retention properties of -// each table. +// each table. See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.list-table.html) +// for details. // // 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 @@ -1727,6 +1744,9 @@ func (c *TimestreamWrite) UpdateDatabaseRequest(input *UpdateDatabaseInput) (req // to be used (KmsKeyId). If there are any concurrent UpdateDatabase requests, // first writer wins. // +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-db.html) +// for details. +// // 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. @@ -1856,8 +1876,8 @@ func (c *TimestreamWrite) UpdateTableRequest(input *UpdateTableInput) (req *requ // of data 22 hours after this change was made. Timestream does not retrieve // data from the magnetic store to populate the memory store. // -// Service quotas apply. For more information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.update-table.html) +// for details. // // 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 @@ -1949,7 +1969,6 @@ func (c *TimestreamWrite) WriteRecordsRequest(input *WriteRecordsInput) (req *re output = &WriteRecordsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) // if custom endpoint for the request is set to a non empty string, // we skip the endpoint discovery workflow. if req.Config.Endpoint == nil || *req.Config.Endpoint == "" { @@ -1988,9 +2007,36 @@ func (c *TimestreamWrite) WriteRecordsRequest(input *WriteRecordsInput) (req *re // a batch of data into Timestream, the query results might not reflect the // results of a recently completed write operation. The results may also include // some stale data. If you repeat the query request after a short time, the -// results should return the latest data. Service quotas apply. For more information, -// see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) -// in the Timestream Developer Guide. +// results should return the latest data. Service quotas apply (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html). +// +// See code sample (https://docs.aws.amazon.com/timestream/latest/developerguide/code-samples.write.html) +// for details. +// +// Upserts +// +// You can use the Version parameter in a WriteRecords request to update data +// points. Timestream tracks a version number with each record. Version defaults +// to 1 when not specified for the record in the request. Timestream will update +// an existing record’s measure value along with its Version upon receiving +// a write request with a higher Version number for that record. Upon receiving +// an update request where the measure value is the same as that of the existing +// record, Timestream still updates Version, if it is greater than the existing +// value of Version. You can update a data point as many times as desired, as +// long as the value of Version continuously increases. +// +// For example, suppose you write a new record without indicating Version in +// the request. Timestream will store this record, and set Version to 1. Now, +// suppose you try to update this record with a WriteRecords request of the +// same record with a different measure value but, like before, do not provide +// Version. In this case, Timestream will reject this update with a RejectedRecordsException +// since the updated record’s version is not greater than the existing value +// of Version. However, if you were to resend the update request with Version +// set to 2, Timestream would then succeed in updating the record’s value, +// and the Version would be set to 2. Next, suppose you sent a WriteRecords +// request with this same record and an identical measure value, but with Version +// set to 3. In this case, Timestream would only update Version to 3. Any further +// updates would need to send a version number greater than 3, or the update +// requests would receive a RejectedRecordsException. // // 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 @@ -2022,7 +2068,13 @@ func (c *TimestreamWrite) WriteRecordsRequest(input *WriteRecordsInput) (req *re // WriteRecords would throw this exception in the following cases: // // * Records with duplicate data where there are multiple records with the -// same dimensions, timestamps, and measure names but different measure values. +// same dimensions, timestamps, and measure names but: Measure values are +// different Version is not present in the request or the value of version +// in the new record is equal to or lower than the existing value In this +// case, if Timestream rejects data, the ExistingVersion field in the RejectedRecords +// response will indicate the current record’s version. To force an update, +// you can resend the request with a version for the record set to a value +// greater than the ExistingVersion. // // * Records with timestamps that lie outside the retention duration of the // memory store @@ -2030,7 +2082,7 @@ func (c *TimestreamWrite) WriteRecordsRequest(input *WriteRecordsInput) (req *re // * Records with dimensions or measures that exceed the Timestream defined // limits. // -// For more information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) +// For more information, see Quotas (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) // in the Timestream Developer Guide. // // * InvalidEndpointException @@ -2193,11 +2245,11 @@ type CreateDatabaseInput struct { // The name of the Timestream database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` // The KMS key for the database. If the KMS key is not specified, the database // will be encrypted with a Timestream managed KMS key located in your account. - // Refer to AWS managed KMS keys (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) + // Refer to Amazon Web Services managed KMS keys (https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk) // for more info. KmsKeyId *string `min:"1" type:"string"` @@ -2229,9 +2281,6 @@ func (s *CreateDatabaseInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 { invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1)) } @@ -2307,7 +2356,10 @@ type CreateTableInput struct { // The name of the Timestream database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` + + // Contains properties to set on the table when enabling magnetic store writes. + MagneticStoreWriteProperties *MagneticStoreWriteProperties `type:"structure"` // The duration for which your time series data must be stored in the memory // store and the magnetic store. @@ -2316,7 +2368,7 @@ type CreateTableInput struct { // The name of the Timestream table. // // TableName is a required field - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` // A list of key-value pairs to label the table. Tags []*Tag `type:"list"` @@ -2346,14 +2398,13 @@ func (s *CreateTableInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + if s.MagneticStoreWriteProperties != nil { + if err := s.MagneticStoreWriteProperties.Validate(); err != nil { + invalidParams.AddNested("MagneticStoreWriteProperties", err.(request.ErrInvalidParams)) + } } if s.RetentionProperties != nil { if err := s.RetentionProperties.Validate(); err != nil { @@ -2383,6 +2434,12 @@ func (s *CreateTableInput) SetDatabaseName(v string) *CreateTableInput { return s } +// SetMagneticStoreWriteProperties sets the MagneticStoreWriteProperties field's value. +func (s *CreateTableInput) SetMagneticStoreWriteProperties(v *MagneticStoreWriteProperties) *CreateTableInput { + s.MagneticStoreWriteProperties = v + return s +} + // SetRetentionProperties sets the RetentionProperties field's value. func (s *CreateTableInput) SetRetentionProperties(v *RetentionProperties) *CreateTableInput { s.RetentionProperties = v @@ -2445,7 +2502,7 @@ type Database struct { CreationTime *time.Time `type:"timestamp"` // The name of the Timestream database. - DatabaseName *string `min:"3" type:"string"` + DatabaseName *string `type:"string"` // The identifier of the KMS key used to encrypt the data stored in the database. KmsKeyId *string `min:"1" type:"string"` @@ -2517,7 +2574,7 @@ type DeleteDatabaseInput struct { // The name of the Timestream database to be deleted. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` } // String returns the string representation. @@ -2544,9 +2601,6 @@ func (s *DeleteDatabaseInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if invalidParams.Len() > 0 { return invalidParams @@ -2588,12 +2642,12 @@ type DeleteTableInput struct { // The name of the database where the Timestream database is to be deleted. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` // The name of the Timestream table to be deleted. // // TableName is a required field - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` } // String returns the string representation. @@ -2620,15 +2674,9 @@ func (s *DeleteTableInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } if invalidParams.Len() > 0 { return invalidParams @@ -2676,7 +2724,7 @@ type DescribeDatabaseInput struct { // The name of the Timestream database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` } // String returns the string representation. @@ -2703,9 +2751,6 @@ func (s *DescribeDatabaseInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if invalidParams.Len() > 0 { return invalidParams @@ -2811,12 +2856,12 @@ type DescribeTableInput struct { // The name of the Timestream database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` // The name of the Timestream table. // // TableName is a required field - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` } // String returns the string representation. @@ -2843,15 +2888,9 @@ func (s *DescribeTableInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } if invalidParams.Len() > 0 { return invalidParams @@ -2923,7 +2962,7 @@ type Dimension struct { // The value of the dimension. // // Value is a required field - Value *string `min:"1" type:"string" required:"true"` + Value *string `type:"string" required:"true"` } // String returns the string representation. @@ -2956,9 +2995,6 @@ func (s *Dimension) Validate() error { if s.Value == nil { invalidParams.Add(request.NewErrParamRequired("Value")) } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -3260,7 +3296,7 @@ type ListTablesInput struct { _ struct{} `type:"structure"` // The name of the Timestream database. - DatabaseName *string `min:"3" type:"string"` + DatabaseName *string `type:"string"` // The total number of items to return in the output. If the total number of // items available is more than the value specified, a NextToken is provided @@ -3294,9 +3330,6 @@ func (s ListTablesInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *ListTablesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTablesInput"} - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -3447,6 +3480,207 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput return s } +// The location to write error reports for records rejected, asynchronously, +// during magnetic store writes. +type MagneticStoreRejectedDataLocation struct { + _ struct{} `type:"structure"` + + // Configuration of an S3 location to write error reports for records rejected, + // asynchronously, during magnetic store writes. + S3Configuration *S3Configuration `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 MagneticStoreRejectedDataLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MagneticStoreRejectedDataLocation) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MagneticStoreRejectedDataLocation) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MagneticStoreRejectedDataLocation"} + if s.S3Configuration != nil { + if err := s.S3Configuration.Validate(); err != nil { + invalidParams.AddNested("S3Configuration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetS3Configuration sets the S3Configuration field's value. +func (s *MagneticStoreRejectedDataLocation) SetS3Configuration(v *S3Configuration) *MagneticStoreRejectedDataLocation { + s.S3Configuration = v + return s +} + +// The set of properties on a table for configuring magnetic store writes. +type MagneticStoreWriteProperties struct { + _ struct{} `type:"structure"` + + // A flag to enable magnetic store writes. + // + // EnableMagneticStoreWrites is a required field + EnableMagneticStoreWrites *bool `type:"boolean" required:"true"` + + // The location to write error reports for records rejected asynchronously during + // magnetic store writes. + MagneticStoreRejectedDataLocation *MagneticStoreRejectedDataLocation `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 MagneticStoreWriteProperties) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MagneticStoreWriteProperties) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MagneticStoreWriteProperties) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MagneticStoreWriteProperties"} + if s.EnableMagneticStoreWrites == nil { + invalidParams.Add(request.NewErrParamRequired("EnableMagneticStoreWrites")) + } + if s.MagneticStoreRejectedDataLocation != nil { + if err := s.MagneticStoreRejectedDataLocation.Validate(); err != nil { + invalidParams.AddNested("MagneticStoreRejectedDataLocation", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEnableMagneticStoreWrites sets the EnableMagneticStoreWrites field's value. +func (s *MagneticStoreWriteProperties) SetEnableMagneticStoreWrites(v bool) *MagneticStoreWriteProperties { + s.EnableMagneticStoreWrites = &v + return s +} + +// SetMagneticStoreRejectedDataLocation sets the MagneticStoreRejectedDataLocation field's value. +func (s *MagneticStoreWriteProperties) SetMagneticStoreRejectedDataLocation(v *MagneticStoreRejectedDataLocation) *MagneticStoreWriteProperties { + s.MagneticStoreRejectedDataLocation = v + return s +} + +// MeasureValue represents the data attribute of the time series. For example, +// the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures. +// MeasureValue has both name and value. +// +// MeasureValue is only allowed for type MULTI. Using MULTI type, you can pass +// multiple data attributes associated with the same time series in a single +// record +type MeasureValue struct { + _ struct{} `type:"structure"` + + // Name of the MeasureValue. + // + // For constraints on MeasureValue names, refer to Naming Constraints (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html#limits.naming) + // in the Timestream developer guide. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // Contains the data type of the MeasureValue for the time series data point. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"MeasureValueType"` + + // Value for the MeasureValue. + // + // Value is a required field + Value *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 MeasureValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s MeasureValue) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MeasureValue) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MeasureValue"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *MeasureValue) SetName(v string) *MeasureValue { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *MeasureValue) SetType(v string) *MeasureValue { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *MeasureValue) SetValue(v string) *MeasureValue { + s.Value = &v + return s +} + // Record represents a time series data point being written into Timestream. // Each record contains an array of dimensions. Dimensions represent the meta // data attributes of a time series data point such as the instance name or @@ -3456,6 +3690,13 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput // and the value type which is the data type of the measure value. In addition, // the record contains the timestamp when the measure was collected that the // timestamp unit which represents the granularity of the timestamp. +// +// Records have a Version field, which is a 64-bit long that you can use for +// updating data points. Writes of a duplicate record with the same dimension, +// timestamp, and measure name but different measure value will only succeed +// if the Version attribute of the record in the write request is higher than +// that of the existing record. Timestream defaults to a Version of 1 for records +// without the Version field. type Record struct { _ struct{} `type:"structure"` @@ -3470,8 +3711,15 @@ type Record struct { MeasureValue *string `min:"1" type:"string"` // Contains the data type of the measure value for the time series data point. + // Default type is DOUBLE. MeasureValueType *string `type:"string" enum:"MeasureValueType"` + // Contains the list of MeasureValue for time series data points. + // + // This is only allowed for type MULTI. For scalar values, use MeasureValue + // attribute of the Record directly. + MeasureValues []*MeasureValue `type:"list"` + // Contains the time at which the measure value for the data point was collected. // The time value plus the unit provides the time elapsed since the epoch. For // example, if the time value is 12345 and the unit is ms, then 12345 ms have @@ -3479,13 +3727,16 @@ type Record struct { Time *string `min:"1" type:"string"` // The granularity of the timestamp unit. It indicates if the time value is - // in seconds, milliseconds, nanoseconds or other supported values. + // in seconds, milliseconds, nanoseconds or other supported values. Default + // is MILLISECONDS. TimeUnit *string `type:"string" enum:"TimeUnit"` // 64-bit attribute used for record updates. Write requests for duplicate data // with a higher version number will update the existing measure value and version. // In cases where the measure value is the same, Version will still be updated - // . Default value is to 1. + // . Default value is 1. + // + // Version must be 1 or greater, or you will receive a ValidationException error. Version *int64 `type:"long"` } @@ -3529,6 +3780,16 @@ func (s *Record) Validate() error { } } } + if s.MeasureValues != nil { + for i, v := range s.MeasureValues { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MeasureValues", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3560,6 +3821,12 @@ func (s *Record) SetMeasureValueType(v string) *Record { return s } +// SetMeasureValues sets the MeasureValues field's value. +func (s *Record) SetMeasureValues(v []*MeasureValue) *Record { + s.MeasureValues = v + return s +} + // SetTime sets the Time field's value. func (s *Record) SetTime(v string) *Record { s.Time = &v @@ -3578,6 +3845,56 @@ func (s *Record) SetVersion(v int64) *Record { return s } +// Information on the records ingested by this request. +type RecordsIngested struct { + _ struct{} `type:"structure"` + + // Count of records ingested into the magnetic store. + MagneticStore *int64 `type:"integer"` + + // Count of records ingested into the memory store. + MemoryStore *int64 `type:"integer"` + + // Total count of successfully ingested records. + Total *int64 `type:"integer"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecordsIngested) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s RecordsIngested) GoString() string { + return s.String() +} + +// SetMagneticStore sets the MagneticStore field's value. +func (s *RecordsIngested) SetMagneticStore(v int64) *RecordsIngested { + s.MagneticStore = &v + return s +} + +// SetMemoryStore sets the MemoryStore field's value. +func (s *RecordsIngested) SetMemoryStore(v int64) *RecordsIngested { + s.MemoryStore = &v + return s +} + +// SetTotal sets the Total field's value. +func (s *RecordsIngested) SetTotal(v int64) *RecordsIngested { + s.Total = &v + return s +} + // Records that were not successfully inserted into Timestream due to data validation // issues that must be resolved prior to reinserting time series data into the // system. @@ -3593,7 +3910,13 @@ type RejectedRecord struct { // causes of failure include: // // * Records with duplicate data where there are multiple records with the - // same dimensions, timestamps, and measure names but different measure values. + // same dimensions, timestamps, and measure names but: Measure values are + // different Version is not present in the request or the value of version + // in the new record is equal to or lower than the existing value If Timestream + // rejects data for this case, the ExistingVersion field in the RejectedRecords + // response will indicate the current record’s version. To force an update, + // you can resend the request with a version for the record set to a value + // greater than the ExistingVersion. // // * Records with timestamps that lie outside the retention duration of the // memory store When the retention window is updated, you will receive a @@ -3654,7 +3977,13 @@ func (s *RejectedRecord) SetRecordIndex(v int64) *RejectedRecord { // WriteRecords would throw this exception in the following cases: // // * Records with duplicate data where there are multiple records with the -// same dimensions, timestamps, and measure names but different measure values. +// same dimensions, timestamps, and measure names but: Measure values are +// different Version is not present in the request or the value of version +// in the new record is equal to or lower than the existing value In this +// case, if Timestream rejects data, the ExistingVersion field in the RejectedRecords +// response will indicate the current record’s version. To force an update, +// you can resend the request with a version for the record set to a value +// greater than the ExistingVersion. // // * Records with timestamps that lie outside the retention duration of the // memory store @@ -3662,7 +3991,7 @@ func (s *RejectedRecord) SetRecordIndex(v int64) *RejectedRecord { // * Records with dimensions or measures that exceed the Timestream defined // limits. // -// For more information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) +// For more information, see Quotas (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) // in the Timestream Developer Guide. type RejectedRecordsException struct { _ struct{} `type:"structure"` @@ -3862,6 +4191,86 @@ func (s *RetentionProperties) SetMemoryStoreRetentionPeriodInHours(v int64) *Ret return s } +// Configuration specifing an S3 location. +type S3Configuration struct { + _ struct{} `type:"structure"` + + // >Bucket name of the customer S3 bucket. + BucketName *string `min:"3" type:"string"` + + // Encryption option for the customer s3 location. Options are S3 server side + // encryption with an S3-managed key or KMS managed key. + EncryptionOption *string `type:"string" enum:"S3EncryptionOption"` + + // KMS key id for the customer s3 location when encrypting with a KMS managed + // key. + KmsKeyId *string `min:"1" type:"string"` + + // Object key preview for the customer S3 location. + ObjectKeyPrefix *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 S3Configuration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s S3Configuration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Configuration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Configuration"} + if s.BucketName != nil && len(*s.BucketName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("BucketName", 3)) + } + if s.KmsKeyId != nil && len(*s.KmsKeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KmsKeyId", 1)) + } + if s.ObjectKeyPrefix != nil && len(*s.ObjectKeyPrefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ObjectKeyPrefix", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketName sets the BucketName field's value. +func (s *S3Configuration) SetBucketName(v string) *S3Configuration { + s.BucketName = &v + return s +} + +// SetEncryptionOption sets the EncryptionOption field's value. +func (s *S3Configuration) SetEncryptionOption(v string) *S3Configuration { + s.EncryptionOption = &v + return s +} + +// SetKmsKeyId sets the KmsKeyId field's value. +func (s *S3Configuration) SetKmsKeyId(v string) *S3Configuration { + s.KmsKeyId = &v + return s +} + +// SetObjectKeyPrefix sets the ObjectKeyPrefix field's value. +func (s *S3Configuration) SetObjectKeyPrefix(v string) *S3Configuration { + s.ObjectKeyPrefix = &v + return s +} + // Instance quota of resource exceeded for this account. type ServiceQuotaExceededException struct { _ struct{} `type:"structure"` @@ -3939,16 +4348,19 @@ type Table struct { CreationTime *time.Time `type:"timestamp"` // The name of the Timestream database that contains this table. - DatabaseName *string `min:"3" type:"string"` + DatabaseName *string `type:"string"` // The time when the Timestream table was last updated. LastUpdatedTime *time.Time `type:"timestamp"` + // Contains properties to set on the table when enabling magnetic store writes. + MagneticStoreWriteProperties *MagneticStoreWriteProperties `type:"structure"` + // The retention duration for the memory store and magnetic store. RetentionProperties *RetentionProperties `type:"structure"` // The name of the Timestream table. - TableName *string `min:"3" type:"string"` + TableName *string `type:"string"` // The current state of the table: // @@ -4000,6 +4412,12 @@ func (s *Table) SetLastUpdatedTime(v time.Time) *Table { return s } +// SetMagneticStoreWriteProperties sets the MagneticStoreWriteProperties field's value. +func (s *Table) SetMagneticStoreWriteProperties(v *MagneticStoreWriteProperties) *Table { + s.MagneticStoreWriteProperties = v + return s +} + // SetRetentionProperties sets the RetentionProperties field's value. func (s *Table) SetRetentionProperties(v *RetentionProperties) *Table { s.RetentionProperties = v @@ -4339,7 +4757,7 @@ type UpdateDatabaseInput struct { // The name of the database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` // The identifier of the new KMS key (KmsKeyId) to be used to encrypt the data // stored in the database. If the KmsKeyId currently registered with the database @@ -4383,9 +4801,6 @@ func (s *UpdateDatabaseInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.KmsKeyId == nil { invalidParams.Add(request.NewErrParamRequired("KmsKeyId")) } @@ -4450,17 +4865,18 @@ type UpdateTableInput struct { // The name of the Timestream database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` + + // Contains properties to set on the table when enabling magnetic store writes. + MagneticStoreWriteProperties *MagneticStoreWriteProperties `type:"structure"` // The retention duration of the memory store and the magnetic store. - // - // RetentionProperties is a required field - RetentionProperties *RetentionProperties `type:"structure" required:"true"` + RetentionProperties *RetentionProperties `type:"structure"` - // The name of the Timesream table. + // The name of the Timestream table. // // TableName is a required field - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` } // String returns the string representation. @@ -4487,17 +4903,13 @@ func (s *UpdateTableInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } - if s.RetentionProperties == nil { - invalidParams.Add(request.NewErrParamRequired("RetentionProperties")) - } if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) + if s.MagneticStoreWriteProperties != nil { + if err := s.MagneticStoreWriteProperties.Validate(); err != nil { + invalidParams.AddNested("MagneticStoreWriteProperties", err.(request.ErrInvalidParams)) + } } if s.RetentionProperties != nil { if err := s.RetentionProperties.Validate(); err != nil { @@ -4517,6 +4929,12 @@ func (s *UpdateTableInput) SetDatabaseName(v string) *UpdateTableInput { return s } +// SetMagneticStoreWriteProperties sets the MagneticStoreWriteProperties field's value. +func (s *UpdateTableInput) SetMagneticStoreWriteProperties(v *MagneticStoreWriteProperties) *UpdateTableInput { + s.MagneticStoreWriteProperties = v + return s +} + // SetRetentionProperties sets the RetentionProperties field's value. func (s *UpdateTableInput) SetRetentionProperties(v *RetentionProperties) *UpdateTableInput { s.RetentionProperties = v @@ -4627,27 +5045,29 @@ func (s *ValidationException) RequestID() string { type WriteRecordsInput struct { _ struct{} `type:"structure"` - // A record containing the common measure and dimension attributes shared across - // all the records in the request. The measure and dimension attributes specified - // in here will be merged with the measure and dimension attributes in the records - // object when the data is written into Timestream. + // A record containing the common measure, dimension, time, and version attributes + // shared across all the records in the request. The measure and dimension attributes + // specified will be merged with the measure and dimension attributes in the + // records object when the data is written into Timestream. Dimensions may not + // overlap, or a ValidationException will be thrown. In other words, a record + // must contain dimensions with unique names. CommonAttributes *Record `type:"structure"` // The name of the Timestream database. // // DatabaseName is a required field - DatabaseName *string `min:"3" type:"string" required:"true"` + DatabaseName *string `type:"string" required:"true"` - // An array of records containing the unique dimension and measure attributes - // for each time series data point. + // An array of records containing the unique measure, dimension, time, and version + // attributes for each time series data point. // // Records is a required field Records []*Record `min:"1" type:"list" required:"true"` - // The name of the Timesream table. + // The name of the Timestream table. // // TableName is a required field - TableName *string `min:"3" type:"string" required:"true"` + TableName *string `type:"string" required:"true"` } // String returns the string representation. @@ -4674,9 +5094,6 @@ func (s *WriteRecordsInput) Validate() error { if s.DatabaseName == nil { invalidParams.Add(request.NewErrParamRequired("DatabaseName")) } - if s.DatabaseName != nil && len(*s.DatabaseName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("DatabaseName", 3)) - } if s.Records == nil { invalidParams.Add(request.NewErrParamRequired("Records")) } @@ -4686,9 +5103,6 @@ func (s *WriteRecordsInput) Validate() error { if s.TableName == nil { invalidParams.Add(request.NewErrParamRequired("TableName")) } - if s.TableName != nil && len(*s.TableName) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TableName", 3)) - } if s.CommonAttributes != nil { if err := s.CommonAttributes.Validate(); err != nil { invalidParams.AddNested("CommonAttributes", err.(request.ErrInvalidParams)) @@ -4737,6 +5151,9 @@ func (s *WriteRecordsInput) SetTableName(v string) *WriteRecordsInput { type WriteRecordsOutput struct { _ struct{} `type:"structure"` + + // Information on the records ingested by this request. + RecordsIngested *RecordsIngested `type:"structure"` } // String returns the string representation. @@ -4757,6 +5174,12 @@ func (s WriteRecordsOutput) GoString() string { return s.String() } +// SetRecordsIngested sets the RecordsIngested field's value. +func (s *WriteRecordsOutput) SetRecordsIngested(v *RecordsIngested) *WriteRecordsOutput { + s.RecordsIngested = v + return s +} + const ( // DimensionValueTypeVarchar is a DimensionValueType enum value DimensionValueTypeVarchar = "VARCHAR" @@ -4781,6 +5204,12 @@ const ( // MeasureValueTypeBoolean is a MeasureValueType enum value MeasureValueTypeBoolean = "BOOLEAN" + + // MeasureValueTypeTimestamp is a MeasureValueType enum value + MeasureValueTypeTimestamp = "TIMESTAMP" + + // MeasureValueTypeMulti is a MeasureValueType enum value + MeasureValueTypeMulti = "MULTI" ) // MeasureValueType_Values returns all elements of the MeasureValueType enum @@ -4790,6 +5219,24 @@ func MeasureValueType_Values() []string { MeasureValueTypeBigint, MeasureValueTypeVarchar, MeasureValueTypeBoolean, + MeasureValueTypeTimestamp, + MeasureValueTypeMulti, + } +} + +const ( + // S3EncryptionOptionSseS3 is a S3EncryptionOption enum value + S3EncryptionOptionSseS3 = "SSE_S3" + + // S3EncryptionOptionSseKms is a S3EncryptionOption enum value + S3EncryptionOptionSseKms = "SSE_KMS" +) + +// S3EncryptionOption_Values returns all elements of the S3EncryptionOption enum +func S3EncryptionOption_Values() []string { + return []string{ + S3EncryptionOptionSseS3, + S3EncryptionOptionSseKms, } } diff --git a/service/timestreamwrite/errors.go b/service/timestreamwrite/errors.go index 03eb056260..a62afee09d 100644 --- a/service/timestreamwrite/errors.go +++ b/service/timestreamwrite/errors.go @@ -40,7 +40,13 @@ const ( // WriteRecords would throw this exception in the following cases: // // * Records with duplicate data where there are multiple records with the - // same dimensions, timestamps, and measure names but different measure values. + // same dimensions, timestamps, and measure names but: Measure values are + // different Version is not present in the request or the value of version + // in the new record is equal to or lower than the existing value In this + // case, if Timestream rejects data, the ExistingVersion field in the RejectedRecords + // response will indicate the current record’s version. To force an update, + // you can resend the request with a version for the record set to a value + // greater than the ExistingVersion. // // * Records with timestamps that lie outside the retention duration of the // memory store @@ -48,7 +54,7 @@ const ( // * Records with dimensions or measures that exceed the Timestream defined // limits. // - // For more information, see Access Management (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) + // For more information, see Quotas (https://docs.aws.amazon.com/timestream/latest/developerguide/ts-limits.html) // in the Timestream Developer Guide. ErrCodeRejectedRecordsException = "RejectedRecordsException" diff --git a/service/translate/api.go b/service/translate/api.go index b880ac6cd1..7d7df4f180 100644 --- a/service/translate/api.go +++ b/service/translate/api.go @@ -2178,12 +2178,12 @@ type EncryptionKey struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the encryption key being used to encrypt - // the custom terminology. + // this object. // // Id is a required field Id *string `min:"1" type:"string" required:"true"` - // The type of encryption key used by Amazon Translate to encrypt custom terminologies. + // The type of encryption key used by Amazon Translate to encrypt this object. // // Type is a required field Type *string `type:"string" required:"true" enum:"EncryptionKeyType"` @@ -2300,16 +2300,16 @@ type GetParallelDataOutput struct { // successfully imported into Amazon Translate. The location is returned as // a presigned URL that has a 30 minute expiration. // - // Amazon Translate doesn't scan parallel data input files for the risk of CSV - // injection attacks. + // Amazon Translate doesn't scan all input files for the risk of CSV injection + // attacks. // // CSV injection occurs when a .csv or .tsv file is altered so that a record // contains malicious code. The record begins with a special character, such // as =, +, -, or @. When the file is opened in a spreadsheet program, the program // might interpret the record as a formula and run the code within it. // - // Before you download a parallel data input file from Amazon S3, ensure that - // you recognize the file and trust its creator. + // Before you download an input file from Amazon S3, ensure that you recognize + // the file and trust its creator. DataLocation *ParallelDataDataLocation `type:"structure"` // The Amazon S3 location of a file that provides any errors or warnings that @@ -2438,8 +2438,20 @@ type GetTerminologyOutput struct { // presigned URL to that has a 30 minute expiration. AuxiliaryDataLocation *TerminologyDataLocation `type:"structure"` - // The data location of the custom terminology being retrieved. The custom terminology - // file is returned in a presigned url that has a 30 minute expiration. + // The Amazon S3 location of the most recent custom terminology input file that + // was successfully imported into Amazon Translate. The location is returned + // as a presigned URL that has a 30 minute expiration. + // + // Amazon Translate doesn't scan all input files for the risk of CSV injection + // attacks. + // + // CSV injection occurs when a .csv or .tsv file is altered so that a record + // contains malicious code. The record begins with a special character, such + // as =, +, -, or @. When the file is opened in a spreadsheet program, the program + // might interpret the record as a formula and run the code within it. + // + // Before you download an input file from Amazon S3, ensure that you recognize + // the file and trust its creator. TerminologyDataLocation *TerminologyDataLocation `type:"structure"` // The properties of the custom terminology being retrieved. @@ -3529,16 +3541,16 @@ type ParallelDataDataLocation struct { // The Amazon S3 location of the parallel data input file. The location is returned // as a presigned URL to that has a 30 minute expiration. // - // Amazon Translate doesn't scan parallel data input files for the risk of CSV - // injection attacks. + // Amazon Translate doesn't scan all input files for the risk of CSV injection + // attacks. // // CSV injection occurs when a .csv or .tsv file is altered so that a record // contains malicious code. The record begins with a special character, such // as =, +, -, or @. When the file is opened in a spreadsheet program, the program // might interpret the record as a formula and run the code within it. // - // Before you download a parallel data input file from Amazon S3, ensure that - // you recognize the file and trust its creator. + // Before you download an input file from Amazon S3, ensure that you recognize + // the file and trust its creator. // // Location is a required field Location *string `type:"string" required:"true"` @@ -3941,6 +3953,10 @@ type StartTextTranslationJobInput struct { // For more information, see customizing-translations-parallel-data. ParallelDataNames []*string `type:"list"` + // Settings to configure your translation output, including the option to mask + // profane words and phrases. + Settings *TranslationSettings `type:"structure"` + // The language code of the input language. For a list of language codes, see // what-is-languages. // @@ -4072,6 +4088,12 @@ func (s *StartTextTranslationJobInput) SetParallelDataNames(v []*string) *StartT return s } +// SetSettings sets the Settings field's value. +func (s *StartTextTranslationJobInput) SetSettings(v *TranslationSettings) *StartTextTranslationJobInput { + s.Settings = v + return s +} + // SetSourceLanguageCode sets the SourceLanguageCode field's value. func (s *StartTextTranslationJobInput) SetSourceLanguageCode(v string) *StartTextTranslationJobInput { s.SourceLanguageCode = &v @@ -4379,7 +4401,20 @@ func (s *TerminologyData) SetFormat(v string) *TerminologyData { type TerminologyDataLocation struct { _ struct{} `type:"structure"` - // The location of the custom terminology data. + // The Amazon S3 location of the most recent custom terminology input file that + // was successfully imported into Amazon Translate. The location is returned + // as a presigned URL that has a 30 minute expiration. + // + // Amazon Translate doesn't scan all input files for the risk of CSV injection + // attacks. + // + // CSV injection occurs when a .csv or .tsv file is altered so that a record + // contains malicious code. The record begins with a special character, such + // as =, +, -, or @. When the file is opened in a spreadsheet program, the program + // might interpret the record as a formula and run the code within it. + // + // Before you download an input file from Amazon S3, ensure that you recognize + // the file and trust its creator. // // Location is a required field Location *string `type:"string" required:"true"` @@ -4585,6 +4620,10 @@ func (s *TerminologyProperties) SetTermCount(v int64) *TerminologyProperties { type TextInput struct { _ struct{} `type:"structure"` + // Settings to configure your translation output, including the option to mask + // profane words and phrases. + Settings *TranslationSettings `type:"structure"` + // The language code for the language of the source text. The language must // be a language supported by Amazon Translate. For a list of language codes, // see what-is-languages. @@ -4661,6 +4700,12 @@ func (s *TextInput) Validate() error { return nil } +// SetSettings sets the Settings field's value. +func (s *TextInput) SetSettings(v *TranslationSettings) *TextInput { + s.Settings = v + return s +} + // SetSourceLanguageCode sets the SourceLanguageCode field's value. func (s *TextInput) SetSourceLanguageCode(v string) *TextInput { s.SourceLanguageCode = &v @@ -4688,6 +4733,9 @@ func (s *TextInput) SetText(v string) *TextInput { type TextOutput struct { _ struct{} `type:"structure"` + // Settings that configure the translation output. + AppliedSettings *TranslationSettings `type:"structure"` + // The names of the custom terminologies applied to the input text by Amazon // Translate for the translated text response. AppliedTerminologies []*AppliedTerminology `type:"list"` @@ -4726,6 +4774,12 @@ func (s TextOutput) GoString() string { return s.String() } +// SetAppliedSettings sets the AppliedSettings field's value. +func (s *TextOutput) SetAppliedSettings(v *TranslationSettings) *TextOutput { + s.AppliedSettings = v + return s +} + // SetAppliedTerminologies sets the AppliedTerminologies field's value. func (s *TextOutput) SetAppliedTerminologies(v []*AppliedTerminology) *TextOutput { s.AppliedTerminologies = v @@ -4931,6 +4985,9 @@ type TextTranslationJobProperties struct { // translation job. ParallelDataNames []*string `type:"list"` + // Settings that configure the translation output. + Settings *TranslationSettings `type:"structure"` + // The language code of the language of the source text. The language must be // a language supported by Amazon Translate. SourceLanguageCode *string `min:"2" type:"string"` @@ -5026,6 +5083,12 @@ func (s *TextTranslationJobProperties) SetParallelDataNames(v []*string) *TextTr return s } +// SetSettings sets the Settings field's value. +func (s *TextTranslationJobProperties) SetSettings(v *TranslationSettings) *TextTranslationJobProperties { + s.Settings = v + return s +} + // SetSourceLanguageCode sets the SourceLanguageCode field's value. func (s *TextTranslationJobProperties) SetSourceLanguageCode(v string) *TextTranslationJobProperties { s.SourceLanguageCode = &v @@ -5115,6 +5178,47 @@ func (s *TooManyRequestsException) RequestID() string { return s.RespMetadata.RequestID } +// Settings that configure the translation output. +type TranslationSettings struct { + _ struct{} `type:"structure"` + + // Enable the profanity setting if you want Amazon Translate to mask profane + // words and phrases in your translation output. + // + // To mask profane words and phrases, Amazon Translate replaces them with the + // grawlix string “?$#@$“. This 5-character sequence is used for each profane + // word or phrase, regardless of the length or number of words. + // + // Amazon Translate does not detect profanity in all of its supported languages. + // For languages that support profanity detection, see Supported Languages and + // Language Codes in the Amazon Translate Developer Guide (https://docs.aws.amazon.com/translate/latest/dg/what-is.html#what-is-languages). + Profanity *string `type:"string" enum:"Profanity"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TranslationSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TranslationSettings) GoString() string { + return s.String() +} + +// SetProfanity sets the Profanity field's value. +func (s *TranslationSettings) SetProfanity(v string) *TranslationSettings { + s.Profanity = &v + return s +} + // Amazon Translate does not support translation from the language of the source // text into the requested target language. For more information, see how-to-error-msg. type UnsupportedLanguagePairException struct { @@ -5460,6 +5564,18 @@ func ParallelDataStatus_Values() []string { } } +const ( + // ProfanityMask is a Profanity enum value + ProfanityMask = "MASK" +) + +// Profanity_Values returns all elements of the Profanity enum +func Profanity_Values() []string { + return []string{ + ProfanityMask, + } +} + const ( // TerminologyDataFormatCsv is a TerminologyDataFormat enum value TerminologyDataFormatCsv = "CSV"